/* Yeeriba commerce layer — mockup v3 (running-business build) */
:root { --olive: #3B4436; --olive-dark: #2e3629; --gold: #C5A059; }

.cart-btn {
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1px solid var(--ink); border-radius: 99px; padding: .55rem .9rem;
  cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
}
.cart-count {
  background: var(--olive); color: #fff; border-radius: 99px; min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; padding: 0 .3rem;
}

.btn-olive {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .8rem 1.5rem; background: var(--olive); color: #fff;
  border: 1px solid var(--olive); border-radius: 4px; cursor: pointer;
  font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; transition: background .2s ease;
}
.btn-olive:hover { background: var(--olive-dark); }
.btn-block { width: 100%; }

/* Cart drawer — glassmorphic per the design spec */
.cart-backdrop {
  position: fixed; inset: 0; background: rgba(17,17,17,.38); opacity: 0; pointer-events: none;
  transition: opacity .3s ease; z-index: 40;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 92vw); z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border-left: 1px solid rgba(255,255,255,.7); box-shadow: -18px 0 50px rgba(17,17,17,.18);
  transform: translateX(105%); transition: transform .34s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line);
}
.cart-head h3 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; font-weight: 600; }
.cart-close { background: none; border: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink); padding: .2rem .4rem; }
.ship-meter { padding: 1rem 1.4rem 0; }
.ship-meter p { margin: 0 0 .5rem; font-size: .8rem; color: var(--muted); }
.ship-meter p strong { color: var(--ink); }
.meter { height: 6px; background: rgba(17,17,17,.08); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--olive); border-radius: 99px; transition: width .3s ease; }
.cart-items { flex: 1; overflow-y: auto; padding: 1.1rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 2.4rem 0; }
.cart-empty a { color: var(--olive); font-weight: 700; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: start; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line); }
.cart-item .ci-name { font-weight: 700; font-size: .92rem; }
.cart-item .ci-meta { font-size: .74rem; color: var(--muted); margin-top: .1rem; }
.cart-item .ci-row { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; }
.ci-price { font-weight: 700; font-size: .92rem; }
.ci-remove { background: none; border: none; padding: 0; font: inherit; font-size: .74rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: #fff; }
.qty button { background: none; border: none; width: 34px; height: 34px; font-size: 1rem; cursor: pointer; color: var(--ink); }
.qty .qty-val { min-width: 26px; text-align: center; font-weight: 700; font-size: .88rem; }
.cart-foot { border-top: 1px solid var(--line); padding: 1.2rem 1.4rem calc(1.2rem + env(safe-area-inset-bottom)); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: .4rem; }
.cart-subtotal strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; }
.cart-note { margin: 0 0 1rem; font-size: .76rem; color: var(--muted); }

/* Buy rows + buy box */
.buy-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.buy-price { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; font-weight: 600; }
.buy-price small { display: block; font-family: "Manrope", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.buy-box { max-width: 560px; margin: 2rem auto 0; text-align: center; }
.buy-box .buy-row { justify-content: center; margin-top: 0; }
.buy-box .btn-olive { flex: 1; min-width: 220px; }
.buy-meta { margin: .7rem 0 0; font-size: .8rem; color: var(--muted); }

/* Shop grid */
.shop-hero { text-align: center; padding: clamp(2.6rem, 7vw, 4.5rem) 0 1rem; }
.shop-hero h1 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.05; }
.shop-hero p { color: var(--muted); max-width: 520px; margin: 1rem auto 0; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 4vw, 3rem); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.product-card { border-top: 3px solid var(--accent, var(--ink)); padding-top: 1.2rem; }
.product-card .pc-photo { background: #fff; padding: .8rem; }
.product-card h3 { margin: 1.1rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.9rem; letter-spacing: .03em; }
.product-card .pc-tag { margin: .3rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.15rem; color: var(--accent, var(--muted)); }
.product-card .pc-meta { margin: .7rem 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.product-card .pc-actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-top: 1.1rem; }
.pc-link { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--accent, var(--ink)); color: var(--accent, var(--ink)); padding-bottom: .2rem; }
.pc-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
@media (max-width: 700px) { .shop-grid { grid-template-columns: 1fr; } }

/* Reviews (honest empty state until launch orders exist) */
.reviews { max-width: 680px; margin: clamp(3rem, 7vw, 5rem) auto 0; text-align: center; }
.reviews h2 { margin: 0 0 .8rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.reviews p { color: var(--muted); margin: 0; }
.reviews .stars { color: var(--gold); letter-spacing: .35em; font-size: 1rem; margin-bottom: .8rem; }

/* Checkout */
.co-layout { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem); }
@media (max-width: 860px) { .co-layout { grid-template-columns: 1fr; } }
.co-layout h2 { margin: 0 0 1.2rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.9rem; }
.co-section { margin-bottom: 2.4rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #c9c9c9; border-radius: 6px; padding: .8rem 1rem;
}
.field input[disabled] { background: #f4f2ee; color: #9a958c; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .9rem; }
.field-error input { border-color: #b3261e; }
.ship-option { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid #c9c9c9; border-radius: 6px; padding: .9rem 1.1rem; margin-bottom: .7rem; background: #fff; cursor: pointer; }
.ship-option small { display: block; color: var(--muted); }
.pay-panel { border: 1px solid #c9c9c9; border-radius: 8px; padding: 1.2rem; background: #fff; }
.pay-panel .pay-note { display: flex; gap: .5rem; align-items: center; font-size: .8rem; color: var(--muted); margin: 0 0 1rem; }
.pay-panel .pay-note strong { color: var(--ink); }
.co-summary { background: var(--band, #F7F5F2); border: 1px solid var(--line); padding: 1.6rem; position: sticky; top: 84px; }
.co-summary h2 { font-size: 1.6rem; }
.co-item { display: grid; grid-template-columns: 52px 1fr auto; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.co-item img { width: 52px; height: 52px; object-fit: cover; border: 1px solid var(--line); }
.co-item .ci-name { font-size: .88rem; }
.co-totals { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.1rem; }
.co-totals .row { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .92rem; color: var(--muted); }
.co-totals .row.total { font-size: 1.05rem; color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.co-totals .row.total strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; }
.co-confirm { text-align: center; max-width: 620px; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) 0; }
.co-confirm .check { width: 74px; height: 74px; margin: 0 auto 1.4rem; border-radius: 50%; background: var(--olive); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.co-confirm h2 { margin: 0 0 .8rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); }
.co-confirm p { color: var(--muted); }
.co-confirm .order-no { font-weight: 700; color: var(--ink); letter-spacing: .08em; }
.preview-note { margin-top: 1.6rem; font-size: .76rem; color: var(--muted); border: 1px dashed #c9c2b4; border-radius: 6px; padding: .7rem 1rem; display: inline-block; }

/* FAQ + footer trust */
.faq-item { border-top: 1px solid var(--line); padding: 1.6rem 0; max-width: 760px; }
.faq-item h3 { margin: 0 0 .5rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.5rem; }
.faq-item p { margin: 0; color: var(--muted); max-width: 640px; }
.trust-foot { border-top: 1px solid var(--line); margin-top: 0; }
.trust-links { width: min(1200px, calc(100% - 40px)); margin: auto; padding: 1.4rem 0 0; display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.trust-links a { text-decoration: none; color: var(--muted); }
.trust-links a:hover { color: var(--ink); }
.trust-line { width: min(1200px, calc(100% - 40px)); margin: auto; padding: .6rem 0 0; color: var(--muted); font-size: .8rem; }

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .cart-btn { padding: .5rem .65rem; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .cart-drawer, .cart-backdrop, .meter span { transition: none; } }
