/* =====================================================================
   ZANA BY WANJA  |  SHOP DESIGN  ("warm and handmade")
   File: assets/css/style.css

   Colours come from the logo. To change a colour everywhere, change it
   once in the :root list below.
   Phone-first: the main rules are for phones; the @media parts at the
   bottom spread things out on tablets and computers.
   ===================================================================== */

:root {
  --black: #151515;      /* header, footer */
  --tan: #D3B89B;        /* accents, borders */
  --cream: #FAF4EA;      /* page background */
  --brown: #6B4A32;      /* buttons, prices */
  --brown-dark: #553925;
  --beige: #F1E6D6;      /* soft panels */
  --sand: #E9DBC6;
  --white: #FFFFFF;
  --text: #2A2420;
  --muted: #7A6E64;
  --line: #E8DCCB;
  --whatsapp: #25D366;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 6px 24px rgba(107, 74, 50, .08);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--black); line-height: 1.15;
             font-variant-numeric: lining-nums; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }

/* ---------- Buttons (pill shaped) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
       padding: 12px 28px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
       font: 500 1rem var(--sans); letter-spacing: .02em; text-decoration: none;
       transition: background .2s, color .2s, border-color .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: var(--brown-dark); }
.btn-outline { background: transparent; color: var(--brown); border-color: var(--tan); }
.btn-outline:hover { background: var(--beige); }
.btn-light { background: var(--cream); color: var(--black); }
.btn-whatsapp { background: var(--whatsapp); color: #0b3d1f; }
.btn-whatsapp:hover { filter: brightness(.95); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { background: var(--black); color: var(--tan); position: sticky; top: 0; z-index: 50;
               box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: grid;
                grid-template-columns: 48px 1fr 48px; align-items: center; }
.brand { justify-self: center; display: block; }
.brand img { width: 64px; height: 64px; border-radius: 50%; }
.nav-toggle { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: flex;
              flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--tan); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.cart-link { justify-self: end; color: var(--tan); position: relative; width: 44px; height: 44px;
             display: flex; align-items: center; justify-content: center; }
.cart-count { position: absolute; top: 2px; right: 0; background: var(--tan); color: var(--black); font-size: .72rem;
              font-weight: 600; min-width: 20px; height: 20px; border-radius: 999px; display: flex;
              align-items: center; justify-content: center; padding: 0 5px; }

.site-nav { display: none; grid-column: 1 / -1; flex-direction: column; padding: 8px 0 14px; }
.site-nav.open { display: flex; }
.site-nav a { color: var(--cream); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid #2a2a2a;
              font-size: 1.05rem; }
.site-nav a.active { color: var(--tan); }
.nav-search { display: flex; margin-top: 12px; background: #262626; border-radius: 999px; overflow: hidden; }
.nav-search input { flex: 1; background: transparent; border: 0; color: var(--cream); padding: 12px 18px;
                    font: 16px var(--sans); min-width: 0; }
.nav-search input::placeholder { color: #a59a8e; }
.nav-search button { background: none; border: 0; color: var(--tan); padding: 0 16px; cursor: pointer; }

/* ---------- Notices ---------- */
.notice { margin: 16px 0 12px; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--beige);
          border: 1px solid var(--tan); }
.notice-success { background: #E7F2E4; border-color: #BFDCBA; }
.notice-error { background: #F9E1DD; border-color: #ECBDB5; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 48px;
        background:
          radial-gradient(circle at 85% 15%, rgba(211, 184, 155, .45) 0, rgba(211, 184, 155, 0) 45%),
          radial-gradient(circle at 10% 90%, rgba(211, 184, 155, .35) 0, rgba(211, 184, 155, 0) 40%),
          var(--cream); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
           color: var(--brown); margin-bottom: 14px; }
.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: var(--brown); }
.hero p { font-size: 1.08rem; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-photos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.hero-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
                   box-shadow: var(--shadow); background: var(--beige); }
.hero-photos img:nth-child(2) { margin-top: 36px; }
.hero-logo { width: min(320px, 80%); margin: 0 auto; border-radius: 50%; box-shadow: 0 16px 40px rgba(21, 21, 21, .25); }
.stitch { height: 14px; margin: 0 auto; max-width: 1180px;
          background: repeating-linear-gradient(90deg, var(--tan) 0 14px, transparent 14px 24px);
          mask: linear-gradient(transparent 6px, #000 6px, #000 8px, transparent 8px);
          -webkit-mask: linear-gradient(transparent 6px, #000 6px, #000 8px, transparent 8px); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--beige); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.see-all { white-space: nowrap; font-weight: 500; text-decoration: none; border-bottom: 1.5px solid var(--tan); padding-bottom: 2px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
                border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(107, 74, 50, .14); }
.product-card-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.product-card-photo { position: relative; background: var(--beige); }
.product-card-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-card-body { padding: 12px 14px 16px; }
.product-card-cat { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.product-card-name { font-family: var(--sans); font-size: .98rem; font-weight: 500; margin: 2px 0 6px; line-height: 1.35; color: var(--text); }
.product-card-price { color: var(--brown); font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.tag { position: absolute; top: 10px; left: 10px; padding: 4px 12px; border-radius: 999px; font-size: .72rem;
       font-weight: 600; letter-spacing: .12em; }
.tag-new { background: var(--brown); color: var(--white); }
.tag-soldout { left: auto; right: 10px; background: rgba(255, 255, 255, .92); color: var(--brown); letter-spacing: .04em; }

/* ---------- Category shortcuts ---------- */
.category-grid { display: grid; gap: 14px; }
.category-card { position: relative; display: flex; align-items: flex-end; min-height: 170px; border-radius: var(--radius);
                 overflow: hidden; text-decoration: none; color: var(--white); background: var(--brown);
                 box-shadow: var(--shadow); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.category-card:hover img { transform: scale(1.04); }
.category-card::after { content: ''; position: absolute; inset: 0;
                        background: linear-gradient(180deg, rgba(21,21,21,0) 30%, rgba(21,21,21,.72) 100%); }
.category-card.no-photo { background:
    radial-gradient(circle at 80% 20%, rgba(211,184,155,.5), transparent 55%), var(--brown); }
.category-card-text { position: relative; z-index: 1; padding: 18px 20px; }
.category-card h3 { color: var(--white); font-size: 1.9rem; margin: 0; }
.category-card span { font-size: .9rem; opacity: .9; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: 14px; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line);
               box-shadow: var(--shadow); margin: 0; }
.review-card blockquote { margin: 10px 0 14px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--black); }
.review-card figcaption { font-size: .9rem; color: var(--muted); }
.review-card figcaption a { color: var(--brown); }
.stars { position: relative; display: inline-block; color: #E2D3C0; letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #B98A4E; }

/* ---------- Custom piece banner ---------- */
.custom-banner { background: var(--black); color: var(--cream); border-radius: var(--radius); padding: 32px 22px;
                 display: grid; gap: 18px; align-items: center; position: relative; overflow: hidden; }
.custom-banner::before { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px;
                         border: 2px dashed rgba(211, 184, 155, .35); border-radius: 50%; }
.custom-banner h2 { color: var(--tan); margin-bottom: 8px; }
.custom-banner p { color: #ddd2c4; margin: 0; }

/* ---------- Shop page ---------- */
.page-head { padding: 32px 0 12px; }
.page-head h1 { margin-bottom: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--tan); background: var(--white);
        color: var(--text); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.chip.active { background: var(--brown); border-color: var(--brown); color: var(--white); }
.shop-tools { display: grid; grid-template-columns: 1fr 140px; gap: 10px; margin: 6px 0 18px; }
.shop-tools input, .shop-tools select { width: 100%; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line);
        background: var(--white); font: 16px var(--sans); color: var(--text); }
.shop-tools input:focus, .shop-tools select:focus { outline: none; border-color: var(--brown); }
.result-count { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
        border-radius: 999px; border: 1.5px solid var(--tan); text-decoration: none; color: var(--text); padding: 0 14px; }
.pagination .current { background: var(--brown); border-color: var(--brown); color: var(--white); }
.empty-state { text-align: center; background: var(--white); border-radius: var(--radius); padding: 40px 20px; border: 1px dashed var(--tan); }

/* ---------- Product page ---------- */
.breadcrumbs { font-size: .88rem; color: var(--muted); padding: 16px 0 8px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brown); }
.product-layout { display: grid; gap: 24px; padding-bottom: 32px; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius);
                background: var(--beige); scrollbar-width: none; box-shadow: var(--shadow); }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: 0 0 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden;
                         cursor: pointer; background: var(--beige); }
.gallery-thumbs button.active { border-color: var(--brown); }
.gallery-thumbs img { width: 64px; height: 80px; object-fit: cover; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }
.gallery-dots span.active { background: var(--brown); }

.product-info .tag { position: static; display: inline-block; margin-bottom: 10px; }
.product-info h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 8px; }
.product-price { font-size: 1.6rem; color: var(--brown); font-weight: 600; margin: 0 0 8px; }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.rating-line a { color: var(--muted); }
.option-group { border: 0; padding: 0; margin: 0 0 18px; }
.option-group legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.option-group legend .chosen { color: var(--muted); font-weight: 400; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { min-width: 52px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--tan);
          background: var(--white); cursor: pointer; font: 500 .95rem var(--sans); color: var(--text); }
.option.selected { background: var(--brown); border-color: var(--brown); color: var(--white); }
.option.unavailable { opacity: .45; text-decoration: line-through; }
.variant-select select { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
                         font: 16px var(--sans); background: var(--white); }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--tan); border-radius: 999px; background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--brown); }
.qty input { width: 44px; border: 0; text-align: center; font: 500 1rem var(--sans); background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-note { font-size: .9rem; color: var(--muted); }
.stock-note.low { color: #A0612A; }
.buy-actions { display: grid; gap: 10px; margin-bottom: 20px; }
.custom-hint { font-size: .92rem; color: var(--muted); margin: -8px 0 18px; }
.product-desc { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; white-space: pre-line; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: .94rem; color: var(--muted); }
.perks li::before { content: '✿'; color: var(--tan); margin-right: 8px; }

.reviews-section { border-top: 1px solid var(--line); padding: 32px 0; }
.rating-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rating-big { font-family: var(--serif); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--black); font-variant-numeric: lining-nums; }
.review-list { display: grid; gap: 12px; }
.review-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.review-item header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-item p { margin: 0; }

/* ---------- Forms (checkout, custom request, track order) ---------- */
.narrow { max-width: 760px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
             margin-bottom: 16px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; }
.field { display: block; margin-bottom: 14px; font-weight: 500; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea, .field select {
  display: block; width: 100%; margin-top: 6px; padding: 13px 16px; font: 16px var(--sans); color: var(--text);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #FFFDF9; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(107,74,50,.12); }
.field input[type=file] { display: block; margin: 8px 0 4px; max-width: 100%; }
.field.has-error input, .field.has-error textarea { border-color: #C0473A; background: #FFF7F5; }
.field-error { display: block; color: #A8352A; font-size: .88rem; font-weight: 400; margin-top: 4px; }
.optional { color: var(--muted); font-weight: 400; font-size: .88rem; }
.field-row { display: grid; gap: 0 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-big { min-height: 56px; font-size: 1.08rem; margin-top: 4px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: .9rem var(--sans); padding: 6px 0; }

/* Payment choices */
.pay-options { display: grid; gap: 10px; margin-bottom: 14px; }
.pay-option { display: block; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-box { display: block; padding: 14px 16px 14px 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
           position: relative; background: #FFFDF9; }
.pay-box::before { content: ''; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%;
                   border: 2px solid var(--tan); background: var(--white); }
.pay-option input:checked + .pay-box { border-color: var(--brown); background: #FBF5EC; }
.pay-option input:checked + .pay-box::before { border-color: var(--brown); box-shadow: inset 0 0 0 4px var(--white); background: var(--brown); }
.pay-option input:focus-visible + .pay-box { outline: 3px solid var(--tan); }
.pay-box small { display: block; color: var(--muted); }
.mpesa-box { background: #F3F8EF; border: 1px solid #CFE3C3; border-radius: var(--radius-sm); padding: 16px; }
.mpesa-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.mpesa-steps .big { font-size: 1.15rem; color: var(--black); letter-spacing: .03em; }

/* Cart */
.cart-list { display: grid; gap: 12px; margin-bottom: 18px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: start; background: var(--white);
             border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.cart-photo img { width: 80px; height: 100px; object-fit: cover; border-radius: 12px; background: var(--beige); }
.cart-name { color: var(--black); font-weight: 500; text-decoration: none; display: block; line-height: 1.3; }
.cart-info .small { display: block; margin: 2px 0 8px; font-size: .86rem; }
.cart-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cart-line-total { color: var(--brown); white-space: nowrap; }
.qty-small button { width: 38px; height: 38px; font-size: 1.1rem; }
.qty-small button[disabled] { opacity: .35; cursor: not-allowed; }
.qty-value { min-width: 28px; text-align: center; font-weight: 500; }

.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
                box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.summary-card h2 { font-size: 1.5rem; margin: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary-total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; font-size: 1.15rem; }
.summary-total span:last-child { color: var(--brown); }
.summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; }
.summary-item img { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; background: var(--beige); }
.summary-item small { display: block; }
.checkout-layout { display: grid; gap: 18px; align-items: start; }

/* Order view */
.order-view { display: grid; gap: 0; margin-bottom: 20px; }
.order-number { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--black); letter-spacing: .02em;
                font-variant-numeric: lining-nums; margin-bottom: 6px; word-break: break-word; }
.badge-status { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin: 4px 0 10px; }
.status-new { background: #E3ECF8; color: #24518f; }
.status-confirmed { background: #EFE7DA; color: var(--brown); }
.status-paid { background: #E5F2E3; color: #2c6a33; }
.status-shipped { background: #EDE3F5; color: #5b3a85; }
.status-delivered { background: #DCEFE0; color: #1f5b2a; }
.status-cancelled { background: #F9E1DD; color: #A8352A; }
.progress { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); font-size: .74rem;
            color: var(--muted); text-align: center; }
.progress li { position: relative; padding-top: 22px; }
.progress li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%;
                    background: var(--sand); z-index: 1; }
.progress li::before { content: ''; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--sand); }
.progress li:first-child::before { display: none; }
.progress li.done { color: var(--brown); font-weight: 600; }
.progress li.done span, .progress li.done::before { background: var(--brown); }
.pay-state { background: #FBF5EC; border-radius: var(--radius-sm); padding: 12px 14px; }
.pay-state.ok { background: #E5F2E3; color: #2c6a33; font-weight: 600; }
.code-form { display: grid; gap: 4px; }
.thanks-icon { font-size: 2.6rem; color: var(--tan); line-height: 1; }
.recent-order { text-decoration: none; color: var(--text); align-items: center; border-bottom: 1px solid var(--line); }

/* ---------- Write a review (Step 7) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.review-piece { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); margin-bottom: 14px; }
.review-piece img { width: 64px; height: 80px; object-fit: cover; border-radius: 12px; background: var(--beige); flex: 0 0 64px; }
.star-input { border: 0; padding: 0; margin: 0 0 14px; }
.star-input legend { font-weight: 500; padding: 0; margin-bottom: 4px; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { font-size: 2.4rem; line-height: 1; color: #E2D3C0; cursor: pointer; padding: 2px; transition: color .1s, transform .1s; }
.star-row input:checked ~ label,
.star-row label:hover, .star-row label:hover ~ label { color: #B98A4E; }
.star-row input:focus-visible + label { outline: 3px solid var(--tan); border-radius: 8px; }
.star-row label:active { transform: scale(.9); }
.has-error .star-row label { color: #EBC3BC; }
.reviewed-note { margin: 0; color: #2c6a33; font-weight: 500; }
.review-item .verified { color: #2c6a33; margin-left: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #CFC3B5; margin-top: 48px; }
.footer-grid { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 32px; }
.footer-brand img { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 12px; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--tan); margin-bottom: 6px; }
.footer-note { font-size: .92rem; }
.site-footer h3 { color: var(--tan); font-size: 1.25rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #E8DED2; text-decoration: none; }
.site-footer a:hover { color: var(--tan); }
.socials { display: grid; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 10px; }
.footer-bottom { border-top: 1px solid #2b2b2b; text-align: center; padding: 18px 16px 90px; font-size: .85rem; color: #9C9186; }

/* ---------- WhatsApp button ---------- */
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 8px;
                  background: var(--whatsapp); color: var(--white); border-radius: 999px; padding: 12px;
                  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); text-decoration: none; font-weight: 500; }
.whatsapp-label { display: none; padding-right: 6px; }

/* ===================== Tablets and up ===================== */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card { min-height: 260px; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-banner { grid-template-columns: 1fr auto; padding: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .whatsapp-label { display: inline; }
  .buy-actions { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: 96px 1fr auto; padding: 14px; }
  .cart-photo img { width: 96px; height: 120px; }
}

/* ===================== Computers ===================== */
@media (min-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 24px; padding: 10px 24px; }
  .nav-toggle { display: none; }
  .brand { justify-self: start; }
  .brand img { width: 72px; height: 72px; }
  .site-nav { display: flex; grid-column: auto; flex-direction: row; align-items: center; justify-content: flex-end;
              gap: 4px; padding: 0; flex-wrap: wrap; }
  .site-nav a { border: 0; padding: 8px 14px; border-radius: 999px; font-size: .98rem; }
  .site-nav a:hover { background: #262626; }
  .site-nav a.active { background: #262626; }
  .nav-search { margin: 0 0 0 8px; width: 210px; }
  .nav-search input { padding: 9px 16px; }
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 72px 0; }
  .product-layout { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
  .gallery { position: sticky; top: 110px; }
  .shop-tools { grid-template-columns: 1fr 220px; }
  .checkout-layout { grid-template-columns: 1.4fr 1fr; gap: 28px; }
  .order-summary { position: sticky; top: 110px; }
}
