/* Storefront + admin shared styles — builds on styles.css tokens */

.store-body { padding-top: 88px; min-height: 100vh; display: flex; flex-direction: column; }
.store-main { flex: 1 0 auto; }

/* nav cart button */
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: none; place-items: center;
  background: var(--gold); color: #241a05;
  font-family: var(--font-cond); font-size: 0.7rem; font-weight: 700;
  border-radius: 999px;
}

/* page header block */
.page-head { padding: clamp(2rem, 6vw, 4.5rem) 0 1.5rem; }
.page-head .eyebrow { margin-bottom: 0.8rem; }
.page-head h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 0.92; }
.page-head p { color: var(--muted); margin-top: 1rem; max-width: 52ch; }

/* filter tabs */
.tabs { display: flex; gap: 0.6rem; margin: 1.8rem 0 0.5rem; flex-wrap: wrap; }
.tab {
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
  padding: 0.55rem 1.1rem; border: 1px solid var(--line-soft); border-radius: 999px;
  background: transparent; transition: all 0.2s ease;
}
.tab:hover { color: var(--ink); border-color: var(--line); }
.tab.active { color: #241a05; background: var(--gold); border-color: var(--gold); }

/* product grid */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem); padding: 2rem 0 4rem;
}
.pcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden;
  background: var(--surface); transition: border-color 0.3s ease, transform 0.3s ease;
}
.pcard:hover { border-color: var(--line); transform: translateY(-4px); }
.pcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-media.momento img { object-fit: contain; padding: 10px; background: linear-gradient(145deg,#1a1712,#0c0a07); }
.pcard-type {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.62rem; font-weight: 600; color: var(--gold);
  background: rgba(11,11,13,0.7); backdrop-filter: blur(6px);
  padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--line);
}
.pcard-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.pcard-body h3 { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.25rem; font-weight: 600; line-height: 1.05; }
.pcard-body .p-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.price { font-family: var(--font-cond); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.price .from { font-size: 0.7rem; color: var(--muted-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-right: 0.35rem; }
.sold-out { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: #e07a7a; }

/* product detail */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding: 2rem 0 4rem; align-items: start; }
.pdp-media { position: sticky; top: 100px; border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.pdp-media img { width: 100%; display: block; }
.pdp-media.momento { padding: 20px; background: linear-gradient(145deg,#1a1712,#0c0a07); }
.pdp-media.momento::before { content:""; position:absolute; inset:12px; border:1px solid rgba(231,196,106,0.25); border-radius:3px; pointer-events:none; z-index:2; }
.pdp-info h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 0.95; margin-top: 0.6rem; }
.pdp-tagline { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.25rem; margin: 0.6rem 0 0; }
.pdp-desc { color: var(--muted); margin: 1.4rem 0; line-height: 1.7; }
.momento-meta { display: grid; gap: 0.9rem; margin: 1.6rem 0; }
.momento-meta .row { display: flex; gap: 1rem; border-top: 1px solid var(--line-soft); padding-top: 0.9rem; }
.momento-meta .k { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--gold); min-width: 92px; }
.momento-meta .v { color: var(--ink); font-size: 0.95rem; }

.variant-list { display: grid; gap: 0.6rem; margin: 1.5rem 0; }
.variant {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line-soft); border-radius: 4px; padding: 0.9rem 1.1rem;
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease;
}
.variant:hover { border-color: var(--line); }
.variant.selected { border-color: var(--gold); background: rgba(231,196,106,0.06); }
.variant .v-label { font-family: var(--font-cond); font-size: 1rem; letter-spacing: 0.02em; }
.variant .v-right { display: flex; align-items: center; gap: 0.9rem; }
.variant .v-price { font-family: var(--font-cond); font-weight: 600; }
.variant .v-stock { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-dim); }
.variant.out { opacity: 0.5; cursor: not-allowed; }

.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0 1.6rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.qty button { width: 40px; height: 44px; background: var(--surface); border: 0; color: var(--ink); font-size: 1.2rem; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 48px; height: 44px; text-align: center; background: var(--bg); border: 0; color: var(--ink); font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* cart */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding: 1.5rem 0 4rem; align-items: start; }
.cart-items { display: grid; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center;
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 1rem; background: var(--surface); }
.cart-line .thumb { width: 84px; height: 84px; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h4 { font-family: var(--font-cond); text-transform: uppercase; font-size: 1.05rem; font-weight: 600; margin: 0; }
.cart-line .c-label { color: var(--muted); font-size: 0.85rem; }
.cart-line .c-controls { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; }
.cart-line .link-remove { background: none; border: 0; color: var(--muted-dim); font-size: 0.8rem; text-decoration: underline; padding: 0; }
.cart-line .link-remove:hover { color: #e07a7a; }
.cart-line .c-price { font-family: var(--font-cond); font-weight: 600; text-align: right; white-space: nowrap; }

.summary { border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem; background: var(--surface); position: sticky; top: 100px; }
.summary h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; margin-bottom: 1.2rem; }
.summary .line { display: flex; justify-content: space-between; padding: 0.5rem 0; color: var(--muted); }
.summary .line.total { border-top: 1px solid var(--line-soft); margin-top: 0.6rem; padding-top: 1rem; color: var(--ink); font-size: 1.2rem; }
.summary .line.total b { font-family: var(--font-cond); }

.field { margin-bottom: 0.9rem; }
.field label { display: block; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 4px;
  color: var(--ink); padding: 0.8rem 0.9rem; font-family: var(--font-body); font-size: 0.95rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 72px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.empty-state { text-align: center; padding: 5rem 1rem; color: var(--muted); }
.empty-state h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; color: var(--ink); margin-bottom: 0.6rem; }

.notice { border-radius: 4px; padding: 0.8rem 1rem; font-size: 0.9rem; margin: 1rem 0; }
.notice.err { background: rgba(224,122,122,0.12); border: 1px solid rgba(224,122,122,0.4); color: #f0b4b4; }
.notice.ok { background: rgba(231,196,106,0.1); border: 1px solid var(--line); color: var(--gold); }

.success-box { text-align: center; max-width: 620px; margin: 4rem auto; padding: 3rem 2rem; border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(120% 120% at 50% 0%, rgba(231,196,106,0.12), transparent 60%), var(--surface); }
.success-box .tick { width: 72px; height: 72px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #241a05; font-size: 2.4rem; }
.success-box h1 { font-family: var(--font-display); text-transform: uppercase; font-size: 2.4rem; }
.success-box p { color: var(--muted); margin: 1rem 0; }
.success-box .oid { font-family: var(--font-cond); letter-spacing: 0.1em; color: var(--muted-dim); font-size: 0.8rem; }

.loading { text-align: center; padding: 4rem; color: var(--muted-dim); font-family: var(--font-cond); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; }

/* legal / policy prose pages */
.prose-wrap { max-width: 780px; }
.page-head .updated { color: var(--muted-dim); font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; margin-top: 0.7rem; }
.prose { color: var(--muted); line-height: 1.8; padding-bottom: 4rem; }
.prose h2 { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); font-size: 1.3rem; font-weight: 600; margin: 2.4rem 0 0.8rem; }
.prose h3 { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); font-size: 1.02rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.55rem; }
.prose a { color: var(--gold); text-decoration: underline; }
.prose strong { color: var(--ink); }
.prose .callout { border-left: 2px solid var(--gold); background: rgba(231,196,106,0.05); padding: 0.9rem 1.2rem; margin: 1.3rem 0; color: var(--ink); border-radius: 0 4px 4px 0; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.contact-card { border: 1px solid var(--line-soft); border-radius: 6px; padding: 1.4rem; background: var(--surface); }
.contact-card .k { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--gold); }
.contact-card .v { color: var(--ink); font-size: 1.05rem; margin-top: 0.4rem; word-break: break-word; }
.contact-card .v a { color: var(--ink); text-decoration: none; }
.contact-card .v a:hover { color: var(--gold); }

.footer-legal { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; margin-bottom: 1.4rem; }
.footer-legal a { color: var(--muted); font-size: 0.82rem; }
.footer-legal a:hover { color: var(--gold); }

/* landing "Shop the collection" featured section */
.featured { padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.featured-head { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.featured-head p { margin-left: auto; margin-right: auto; }
.featured .product-grid { padding: 0; }
.featured-cta { text-align: center; margin-top: clamp(2rem, 5vw, 3rem); }

/* order tracking page */
.track-form { max-width: 460px; margin: 1rem 0 2.5rem; }
.track-form .btn { margin-top: 0.4rem; }
.torder { border: 1px solid var(--line-soft); border-radius: 8px; padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--surface); margin-bottom: 1.2rem; }
.torder.cancelled { opacity: 0.75; }
.torder-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; margin-bottom: 0.4rem; }
.torder-ref { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; font-size: 1.1rem; }
.torder .t-date { color: var(--muted-dim); font-size: 0.8rem; }
.torder .t-total { font-family: var(--font-cond); font-weight: 600; }
.t-items { color: var(--muted); font-size: 0.9rem; margin: 0.6rem 0 0.4rem; }

.timeline { display: flex; margin: 1.6rem 0 0.6rem; }
.tstep { flex: 1; text-align: center; position: relative; }
.tstep .dot { width: 15px; height: 15px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-soft); margin: 0 auto 0.6rem; position: relative; z-index: 2; }
.tstep .lbl { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.66rem; color: var(--muted-dim); }
.tstep::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--line-soft); z-index: 1; }
.tstep:first-child::before { display: none; }
.tstep.done .dot { background: var(--gold); border-color: var(--gold); }
.tstep.done .lbl { color: var(--ink); }
.tstep.done::before { background: var(--gold); }
.tstep.current .dot { box-shadow: 0 0 0 4px rgba(231,196,106,0.18); }

.t-track { border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.2rem; margin-top: 1.2rem; background: rgba(231,196,106,0.05); }
.t-track .k { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; color: var(--gold); }
.t-track .awb { font-family: var(--font-cond); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-top: 0.2rem; letter-spacing: 0.03em; }
.t-track .courier { color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.t-cancelled { color: #e07a7a; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin-top: 1rem; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line .c-price { grid-column: 2; text-align: left; }
  .cart-line .thumb { width: 64px; height: 64px; }
}
