/* ───────────────────────────────────────────────────────────
   Paradise Angels Jewels — storefront UI
   Product grid, cart drawer, image placeholders, and the
   responsive rules that make the design work on phones/tablets.
   Palette matches the design: teal #2f5b60, cream #fbf8f3,
   gold #b78a3c, ink #22201c.
   ─────────────────────────────────────────────────────────── */
:root {
  --teal: #2f5b60;
  --teal-dark: #234447;
  --cream: #fbf8f3;
  --sand: #f6efe5;
  --ink: #22201c;
  --muted: #8a8275;
  --line: #ddd0bf;
  --gold: #b78a3c;
}

/* ───────── Responsive grids (the design used fixed columns) ───────── */
.hero        { grid-template-columns: 1fr 1fr; }
.cats        { grid-template-columns: repeat(3, 1fr); }
.product-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 22px; }
.story-grid  { grid-template-columns: 1fr 1.05fr; }
.reviews     { grid-template-columns: repeat(3, 1fr); }
.ig-grid     { grid-template-columns: repeat(6, 1fr); }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

@media (max-width: 1000px) {
  .hero, .story-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 46px !important; }
}
@media (max-width: 680px) {
  .cats, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-left, .nav-reviews { display: none; }          /* keep header tidy on phones */
  .header-inner { padding: 14px 18px !important; }
  .hero { padding: 40px 18px 24px !important; }
  .hero h1 { font-size: 38px !important; }
  section { padding-left: 18px !important; padding-right: 18px !important; }
}
@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ───────── Header bag button ───────── */
.bag-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  font: inherit; text-transform: uppercase; letter-spacing: .06em;
  font-size: 13px; font-weight: 600; color: #4a463f;
  transition: color .15s ease;
}
.bag-btn:hover { color: var(--teal); }
.bag-count {
  display: inline-grid; place-items: center;
  min-width: 1.5em; height: 1.5em; padding: 0 .35em;
  background: var(--teal); color: #fff;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.bag-count.is-empty { opacity: 0; transform: scale(.6); }

/* ───────── Image placeholders (swap in real photos later) ───────── */
.img-slot {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background-color: #e7ddcd;
  background-image:
    radial-gradient(120% 120% at 25% 20%, rgba(255,255,255,.65), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #d7e4e2 0%, #efe7da 50%, #e7d8c2 100%);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.img-slot::after {
  content: attr(data-label);
  font-family: 'Marcellus', serif; font-style: italic;
  color: var(--teal); opacity: .55; font-size: 14px;
  letter-spacing: .04em; text-align: center; padding: 0 16px;
}
.img-slot--dark {
  background-image:
    radial-gradient(120% 120% at 25% 20%, rgba(255,255,255,.18), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #3a6b70 0%, #2a5256 100%);
}
.img-slot--dark::after { color: #cfe0df; opacity: .7; }
/* When a real photo is set inline (background-image), hide the label */
.img-slot[style*="assets/img"]::after { content: none; }

/* ───────── Live product cards (rendered by shopify.js) ───────── */
.pearl-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 3rem 0; }

.pcard { display: flex; flex-direction: column; }
.pcard__media { position: relative; display: block; }
.pcard__img {
  width: 100%; height: 300px; object-fit: cover;
  border-radius: 12px; display: block; background: #f1ece4;
}
@media (max-width: 680px) { .pcard__img { height: 240px; } }
.pcard__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--teal); color: #fff;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
}
.pcard__badge--sold { background: #9a9384; }
.pcard__title { margin-top: 14px; font-family: 'Marcellus', serif; font-size: 18px; color: var(--ink); }
.pcard__sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.pcard__row { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard__price { font-weight: 700; font-size: 16px; color: var(--teal); }
.pcard__add {
  font-family: inherit; cursor: pointer; background: none;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border: 1.5px solid var(--line); padding: 7px 14px; border-radius: 999px; color: #4a463f;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pcard__add:hover { border-color: var(--teal); color: var(--teal); }
.pcard__add:disabled { opacity: .55; cursor: not-allowed; border-color: var(--line); color: var(--muted); }

/* ───────── Slide-in cart drawer ───────── */
.pearl-drawer { position: fixed; inset: 0; pointer-events: none; z-index: 1000; }
.pearl-drawer.is-open { pointer-events: auto; }
.pearl-drawer__overlay {
  position: absolute; inset: 0; background: rgba(15, 30, 36, 0.45);
  opacity: 0; transition: opacity .25s ease;
}
.pearl-drawer.is-open .pearl-drawer__overlay { opacity: 1; }
.pearl-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 100%); background: var(--cream);
  box-shadow: 0 12px 40px rgba(20, 40, 50, 0.22);
  transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column;
}
.pearl-drawer.is-open .pearl-drawer__panel { transform: translateX(0); }
.pearl-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.4rem; border-bottom: 1px solid #ece2d4;
}
.pearl-drawer__head h2 { margin: 0; font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.pearl-drawer__close { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); }
.pearl-drawer__lines { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.pearl-drawer__empty { color: var(--muted); text-align: center; padding: 2.5rem 0; }

.pearl-line { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid #ece2d4; }
.pearl-line__media { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #f1ece4; flex: none; }
.pearl-line__media img { width: 100%; height: 100%; object-fit: cover; }
.pearl-line__title { margin: 0 0 .15rem; font-size: .95rem; color: var(--ink); }
.pearl-line__price { margin: 0 0 .4rem; color: var(--teal); font-size: .9rem; font-weight: 600; }
.pearl-line__qty { display: flex; align-items: center; gap: .5rem; }
.pearl-line__qty button {
  width: 26px; height: 26px; border: 1px solid var(--line);
  background: #fff; border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1;
}
.pearl-line__remove { width: auto !important; border: 0 !important; background: none !important; color: #a23; font-size: .8rem !important; margin-left: auto; }

.pearl-drawer__foot { padding: 1.2rem 1.4rem; border-top: 1px solid #ece2d4; }
.pearl-drawer__subtotal { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: .9rem; color: var(--ink); }
.pearl-drawer__checkout {
  display: block; text-align: center; text-decoration: none;
  background: var(--teal); color: #fff;
  padding: .95rem; border-radius: 999px; font-weight: 700; letter-spacing: .04em;
  transition: background .15s ease;
}
.pearl-drawer__checkout:hover { background: var(--teal-dark); }
.pearl-drawer__checkout.is-disabled { opacity: .4; pointer-events: none; }
.pearl-drawer__note { text-align: center; color: var(--muted); font-size: .78rem; margin: .7rem 0 0; }

/* ───────── Shop filter tabs ───────── */
.shop-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.shop-tab {
  font: inherit; cursor: pointer; background: none;
  border: 1.5px solid var(--line); color: #4a463f;
  padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.shop-tab:hover { border-color: var(--teal); color: var(--teal); }
.shop-tab.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.pcard__titlelink:hover .pcard__title { color: var(--teal); }

/* ───────── Product page ───────── */
.pp-crumbs { font-size: 12.5px; color: var(--muted); margin: 6px 0 26px; }
.pp-crumbs a:hover { color: var(--teal); }
.pp-crumbs span { color: #4a463f; }

.pp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .pp { grid-template-columns: 1fr; gap: 30px; } }

.pp-main img { width: 100%; border-radius: 18px; background: #f1ece4; display: block; aspect-ratio: 1/1; object-fit: cover; }
.pp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pp-thumb { width: 64px; height: 64px; padding: 0; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.pp-thumb.is-active { border-color: var(--teal); }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pp-info { padding-top: 6px; }
.pp-type { color: var(--teal); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.pp-title { font-family: 'Marcellus', serif; font-weight: 400; font-size: 38px; line-height: 1.1; margin: 0 0 16px; color: var(--ink); }
.pp-price { font-size: 24px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.pp-avail { font-size: 13px; color: #4f7d4f; font-weight: 600; margin-bottom: 24px; min-height: 1em; }
.pp-avail--out { color: #b0264a; }
.pp-option { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; max-width: 240px; }
.pp-option span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: #6a6356; }
.pp-option select { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.pp-buy { display: flex; gap: 12px; align-items: stretch; margin: 6px 0 28px; flex-wrap: wrap; }
.pp-qty { width: 72px; font: inherit; padding: 12px; border: 1.5px solid var(--line); border-radius: 999px; text-align: center; color: var(--ink); }
.pp-add { flex: 1; min-width: 180px; font: inherit; cursor: pointer; background: var(--teal); color: #fff; border: none; padding: 14px 28px; border-radius: 999px; font-weight: 700; letter-spacing: .04em; transition: background .15s ease; }
.pp-add:hover { background: var(--teal-dark); }
.pp-add:disabled { background: #c9c2b6; cursor: not-allowed; }
.pp-desc { font-size: 15.5px; line-height: 1.8; color: #48433b; border-top: 1px solid #ece2d4; padding-top: 22px; }
.pp-desc p { margin: 0 0 12px; }
.pp-desc img { max-width: 100%; border-radius: 12px; }

.pp-msg { text-align: center; padding: 80px 0; color: var(--muted); }
.pp-msg .pp-add { display: inline-block; flex: none; margin-top: 16px; text-decoration: none; }

.pp-related { margin-top: 80px; }
.pp-related h2 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 28px; color: var(--ink); margin: 0 0 26px; }
.pp-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 880px) { .pp-related-grid { grid-template-columns: repeat(2, 1fr); } }
.pp-rel__img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f1ece4; }
.pp-rel__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-rel__title { font-family: 'Marcellus', serif; font-size: 16px; margin-top: 12px; color: var(--ink); }
.pp-rel:hover .pp-rel__title { color: var(--teal); }
.pp-rel__price { color: var(--teal); font-weight: 700; font-size: 14px; margin-top: 4px; }
