/* ============================================================================
   HoneyStore — Page Layouts
   ========================================================================== */

main { display: block; }
.section { padding-block: var(--sp-16); background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-5); text-align: left; max-width: none; margin: 0 0 var(--sp-8); }
.section-head .eyebrow { display: none; }
.section-head p { color: var(--brown-700); margin-top: var(--sp-2); font-size: var(--text-base); }
.section-link { color: var(--honey-800); font-weight: 800; font-size: var(--text-sm); white-space: nowrap; }

/* ── Staggered reveal on load / scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ── HERO ── */
.hero { position: relative; overflow: hidden; min-height: 500px; display: grid; place-items: center; padding-block: var(--sp-16); background:
    linear-gradient(90deg, rgba(250,248,244,0.78), rgba(250,248,244,0.64)),
    url("../assets/signin-honey.png") center 52% / cover no-repeat; border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.28; background-image: radial-gradient(rgba(149,89,10,0.42) 1px, transparent 1px); background-size: 16px 16px; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: var(--sp-10); align-items: center; justify-items: center; text-align: center; }
.hero__content { max-width: 720px; }
.hero .eyebrow { display: none; }
.hero h1 { margin-block: 0 var(--sp-4); font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: 0; }
.hero h1 em { font-style: normal; color: inherit; }
.hero__lead { font-size: var(--text-lg); color: var(--brown-900); margin: 0 auto var(--sp-8); max-width: 58ch; line-height: var(--leading-normal); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.hero__trust { display: none; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-8); color: var(--brown-700); font-size: var(--text-sm); font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--honey-600); }

.hero__media { display: none; position: relative; }
.hero__art { position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  background: radial-gradient(120% 120% at 30% 10%, var(--honey-300), var(--honey-600) 70%, var(--honey-800)); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.hero__float { position: absolute; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: var(--sp-3) var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); }
.hero__float--tl { top: var(--sp-5); left: calc(var(--sp-5) * -1); animation: float 5s ease-in-out infinite; }
.hero__float--br { bottom: var(--sp-6); right: calc(var(--sp-5) * -1); animation: float 6s ease-in-out infinite reverse; }
.hero__float .num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--honey-700); }
.hero__float small { color: var(--muted); font-size: var(--text-xs); display: block; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding-block: var(--sp-24); }
}

/* ── Trust strip ── */
.trust-strip { background: var(--paper); border-block: 0; padding-block: var(--sp-4) var(--sp-16); }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); padding-block: 0; }
.trust-item { display: flex; flex-direction: column; gap: var(--sp-4); align-items: center; justify-content: center; min-height: 190px; padding: var(--sp-8) var(--sp-6); text-align: center; border: 1px solid var(--line); border-radius: 8px; background: #F6F3EE; }
.trust-item__icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 0; display: grid; place-items: center; background: transparent; color: var(--honey-800); }
.trust-item__icon svg { width: 28px; height: 28px; }
.trust-item h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); margin-bottom: var(--sp-2); color: var(--ink); }
.trust-item p { font-size: var(--text-base); color: var(--brown-700); max-width: 34ch; margin-inline: auto; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Category chips row ── */
.cat-rail { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-2); scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-card { flex-shrink: 0; width: 160px; border-radius: var(--r-lg); overflow: hidden; position: relative; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); transition: transform var(--t) var(--ease), box-shadow var(--t); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: var(--sp-3); background: linear-gradient(to top, rgba(42,29,16,0.7), transparent 65%); }
.cat-card__overlay span { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); }

/* ── Product grid ── */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
@media (min-width: 640px) { .product-grid { gap: var(--sp-6); } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

#featuredGrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  justify-content: stretch;
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-12); }
  .section-head { align-items: start; flex-direction: column; gap: var(--sp-3); }
  .hero { min-height: 520px; padding-block: var(--sp-16); background-position: center top; }
  .hero h1 { font-size: 2.65rem; }
  .hero__lead { font-size: var(--text-base); }
  .hero__cta .btn { width: 100%; }
}

/* ── Listing layout ── */
.listing { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.listing__head { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.listing__toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; }
.filter-pills { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.result-count { color: var(--muted); font-size: var(--text-sm); }
.search-inline { position: relative; }
.search-inline svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-inline .input { padding-left: 2.6rem; min-width: 220px; }

/* ── Product detail (PDP) ── */
.pdp { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
.gallery { display: flex; flex-direction: column; gap: var(--sp-3); }
.gallery__main { position: relative; aspect-ratio: 1/1; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, var(--paper-2), var(--honey-100)); box-shadow: var(--shadow-md); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.gallery__thumb { width: 72px; height: 72px; border-radius: var(--r-md); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--honey-100); transition: border-color var(--t-fast); }
.gallery__thumb.is-active { border-color: var(--honey-600); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp__info .badge { margin-bottom: var(--sp-3); }
.pdp__title { margin-bottom: var(--sp-3); }
.pdp__rating { margin-bottom: var(--sp-4); }
.pdp__price { margin-bottom: var(--sp-5); }
.pdp__price .price__now { font-size: var(--text-3xl); }
.pdp__short { color: var(--brown-700); font-size: var(--text-lg); line-height: var(--leading-normal); margin-bottom: var(--sp-6); }
.option-group { margin-bottom: var(--sp-6); }
.option-group__label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--sp-3); }
.option-group__label .label { margin: 0; }
.size-options { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.size-opt { padding: 0.7rem 1.1rem; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: var(--text-sm); cursor: pointer; transition: all var(--t-fast); display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; }
.size-opt small { font-weight: 600; color: var(--muted); font-size: var(--text-xs); }
.size-opt:hover:not(:disabled) { border-color: var(--honey-400); }
.size-opt.is-active { border-color: var(--honey-600); background: var(--honey-50); box-shadow: 0 0 0 3px rgba(224,160,60,0.14); }
.size-opt:disabled { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.pdp__buy { display: flex; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-6); flex-wrap: wrap; }
.pdp__buy .btn-primary { flex: 1; min-width: 200px; }
.stock-line { font-size: var(--text-sm); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.stock-line.in { color: var(--success); }
.stock-line.low { color: var(--honey-800); }
.stock-line.out { color: var(--danger); }
.pdp__meta { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--line-2); }
.pdp__meta a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: var(--text-sm); }
.pdp__meta svg { width: 18px; height: 18px; }

@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1fr; gap: var(--sp-12); } .gallery { position: sticky; top: calc(var(--sp-8) + 72px); align-self: start; } }

/* ── Rich text (description) ── */
.rich { color: var(--text); line-height: var(--leading-normal); }
.rich h2, .rich h3, .rich h4 { margin: var(--sp-6) 0 var(--sp-3); }
.rich p { margin-bottom: var(--sp-4); }
.rich ul, .rich ol { margin: 0 0 var(--sp-4) 1.25rem; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: var(--sp-2); }
.rich a { text-decoration: underline; text-underline-offset: 2px; }
.rich blockquote { border-left: 3px solid var(--honey-400); padding-left: var(--sp-4); color: var(--brown-700); font-style: italic; margin: var(--sp-4) 0; }

/* ── Tabs / detail sections ── */
.detail-tabs { display: flex; gap: var(--sp-2); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.tab-btn { padding: 0.75rem 0.25rem; margin-right: var(--sp-5); font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast); }
.tab-btn.is-active { color: var(--honey-800); border-color: var(--honey-600); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-in var(--t) var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Reviews ── */
.review { padding: var(--sp-5) 0; border-bottom: 1px solid var(--line-2); }
.review__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--honey-200); color: var(--honey-800); display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); }
.review__name { font-weight: 800; }
.review__meta { font-size: var(--text-xs); color: var(--muted); }
.review__reply { margin-top: var(--sp-3); margin-left: var(--sp-6); padding: var(--sp-3) var(--sp-4); background: var(--honey-50); border-radius: var(--r-md); font-size: var(--text-sm); }
.verified-tag { color: var(--success); font-size: var(--text-xs); font-weight: 800; display: inline-flex; align-items: center; gap: 0.3rem; }

/* ── Cart ── */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--line-2); }
.cart-item__img { width: 84px; height: 84px; border-radius: var(--r-md); object-fit: cover; background: var(--honey-100); }
.cart-item__main { display: flex; flex-direction: column; gap: var(--sp-2); }
.cart-item__top { display: flex; justify-content: space-between; gap: var(--sp-3); }
.cart-item__name { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink); }
.cart-item__size { font-size: var(--text-sm); color: var(--muted); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: auto; }
.link-danger { color: var(--danger); font-weight: 700; font-size: var(--text-sm); }
.link-danger:hover { color: #8C1D17; }

.summary { position: sticky; top: calc(72px + var(--sp-5)); }
.summary__row { display: flex; justify-content: space-between; padding: var(--sp-2) 0; font-size: var(--text-sm); }
.summary__row.total { border-top: 1px solid var(--line); margin-top: var(--sp-2); padding-top: var(--sp-4); font-size: var(--text-lg); font-weight: 800; color: var(--ink); }
.summary__row .price__now { font-size: var(--text-xl); }
.coupon-row { display: flex; gap: var(--sp-2); margin: var(--sp-4) 0; }
.coupon-tag { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--success-bg); color: var(--success); font-weight: 700; font-size: var(--text-sm); padding: 0.35rem 0.7rem; border-radius: var(--r-pill); }
.free-ship-note { color: var(--honey-800); font-size: var(--text-sm); font-weight: 700; background: var(--honey-50); padding: var(--sp-3); border-radius: var(--r-md); margin-bottom: var(--sp-4); display: flex; align-items: center; gap: 0.5rem; }

@media (min-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1.6fr 1fr; gap: var(--sp-12); align-items: start; }
}

/* ── Checkout ── */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
.checkout-section { margin-bottom: var(--sp-8); }
.checkout-section h3 { margin-bottom: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); }
.checkout-section h3 .step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--brown-800); color: var(--honey-100); display: grid; place-items: center; font-size: var(--text-sm); font-family: var(--font-body); font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 560px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.pay-method { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-4); border: 1.5px solid var(--honey-500); background: var(--honey-50); border-radius: var(--r-md); }
.pay-method__icon { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--honey-100); color: var(--honey-700); display: grid; place-items: center; }
.mini-items { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.mini-item { display: flex; gap: var(--sp-3); align-items: center; font-size: var(--text-sm); }
.mini-item img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: var(--honey-100); }
.mini-item__qty { margin-left: auto; font-weight: 700; }

/* ── Confirmation ── */
.confirm-hero { text-align: center; padding-block: var(--sp-12) var(--sp-8); }
.confirm-check { width: 84px; height: 84px; margin: 0 auto var(--sp-5); border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; animation: pop var(--t-slow) var(--ease); }
.confirm-check svg { width: 44px; height: 44px; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.order-id-badge { display: inline-block; font-family: var(--font-display); font-size: var(--text-2xl); color: var(--honey-800); background: var(--honey-50); padding: 0.4rem 1.2rem; border-radius: var(--r-md); border: 1px dashed var(--honey-300); margin-top: var(--sp-3); }

/* ── Status timeline ── */
.timeline { display: flex; flex-direction: column; gap: 0; margin: var(--sp-4) 0 0; }
.timeline__step { display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-3); position: relative; padding-bottom: var(--sp-5); }
.timeline__step::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: -4px; width: 2px; background: var(--line); }
.timeline__step:last-child::before { display: none; }
.timeline__dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; z-index: 1; }
.timeline__step.done .timeline__dot { background: var(--honey-600); border-color: var(--honey-600); color: #fff; }
.timeline__step.done::before { background: var(--honey-400); }
.timeline__content { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.timeline__label { font-weight: 800; font-size: var(--text-sm); color: var(--brown-800); }
.timeline__time { font-size: var(--text-xs); color: var(--muted); }
.timeline__step.is-active .timeline__label { color: var(--honey-800); }

/* ── Account ── */
.account-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); align-items: start; }
.account-nav { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.account-nav button { min-height: 48px; padding: 0.75rem 1.1rem; border-radius: var(--r-md); font-weight: 800; font-size: var(--text-sm); color: var(--brown-700); border: 1.5px solid var(--line); background: rgba(255,253,248,0.78); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.account-nav button:hover { border-color: var(--honey-300); background: var(--paper); }
.account-nav button.is-active { background: var(--brown-800); color: var(--honey-100); border-color: var(--brown-800); box-shadow: var(--shadow-sm); }
.order-row { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: rgba(255,253,248,0.94); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: var(--sp-4); }
.order-row__head { width: 100%; display: grid; grid-template-columns: minmax(0, 1.7fr) auto auto auto 20px; gap: var(--sp-4); align-items: center; padding: var(--sp-5); text-align: left; }
.order-row__head:hover { background: var(--paper-2); }
.order-row__main { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.order-row__eyebrow { display: block; color: var(--muted); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.order-row__id { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--ink); overflow-wrap: anywhere; }
.order-row__meta { color: var(--muted); font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }
.order-row__status { display: flex; justify-content: flex-end; }
.order-row__total { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--brown-900); white-space: nowrap; }
.order-row__chevron { width: 10px; height: 10px; border-right: 2px solid var(--brown-600); border-bottom: 2px solid var(--brown-600); transform: rotate(45deg); transition: transform var(--t-fast); }
.order-row__head[aria-expanded="true"] .order-row__chevron { transform: rotate(225deg); }
.order-row__detail { border-top: 1px solid var(--line-2); padding: var(--sp-5); background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.order-track { display: flex; flex-direction: column; gap: var(--sp-5); }
.order-track__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr); gap: var(--sp-5); align-items: start; }
.order-panel { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--paper); padding: var(--sp-5); }
.order-panel h4 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 900; color: var(--brown-900); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.order-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-2); }
.order-panel__head h4 { margin-bottom: 0.2rem; }
.order-panel__head p { color: var(--muted); font-size: var(--text-sm); }
.order-summary { position: static; top: auto; }
.tracking-code { border: 1px dashed var(--honey-300); border-radius: var(--r-pill); padding: 0.35rem 0.7rem; background: var(--honey-50); color: var(--honey-800); font-size: var(--text-xs); font-weight: 900; white-space: nowrap; }
.mini-items { gap: 0; margin-bottom: 0; }
.mini-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-2); }
.mini-item:first-child { padding-top: 0; }
.mini-item:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-item img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: var(--honey-100); }
.mini-item__main { min-width: 0; }
.mini-item__name { font-weight: 900; color: var(--ink); line-height: var(--leading-snug); }
.mini-item__sku { color: var(--muted); font-size: var(--text-xs); margin-top: 0.15rem; }
.mini-item__qty { color: var(--brown-700); font-weight: 900; white-space: nowrap; }
.mini-item__price { font-weight: 900; color: var(--brown-900); white-space: nowrap; }
.status-chip { font-size: var(--text-xs); font-weight: 800; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); text-transform: capitalize; }
.status-chip.pending, .status-chip.confirmed { background: var(--info-bg); color: var(--honey-800); }
.status-chip.processing, .status-chip.shipped, .status-chip.out_for_delivery { background: #E6EEF6; color: #2A5A8C; }
.status-chip.delivered { background: var(--success-bg); color: var(--success); }
.status-chip.cancelled, .status-chip.returned, .status-chip.refunded { background: #EFE7DA; color: var(--muted); }
@media (min-width: 860px) { .account-layout { grid-template-columns: 230px minmax(0, 1fr); gap: var(--sp-10); } .account-nav { flex-direction: column; position: sticky; top: calc(72px + var(--sp-5)); } }
@media (min-width: 980px) {
  .order-panel--progress .timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: var(--sp-5); }
  .order-panel--progress .timeline__step { display: flex; flex-direction: column; gap: var(--sp-3); padding-bottom: 0; padding-right: var(--sp-3); }
  .order-panel--progress .timeline__step::before { left: 26px; right: 0; top: 13px; bottom: auto; width: auto; height: 2px; }
  .order-panel--progress .timeline__step:last-child::before { display: none; }
  .order-panel--progress .timeline__content { padding-right: var(--sp-2); }
}
@media (max-width: 980px) {
  .order-track__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .account-nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .account-nav button { padding-inline: var(--sp-2); }
  .account-nav #logoutBtn { grid-column: 1 / -1; justify-content: center; text-align: center !important; }
  .order-row__head { grid-template-columns: 1fr auto; gap: var(--sp-3); padding: var(--sp-4); }
  .order-row__meta, .order-row__status, .order-row__total { grid-column: 1 / -1; justify-content: flex-start; }
  .order-row__chevron { grid-column: 2; grid-row: 1; justify-self: end; }
  .order-row__detail { padding: var(--sp-4); }
  .mini-item { grid-template-columns: minmax(0, 1fr) auto; }
  .mini-item__price { grid-column: 1 / -1; justify-self: start; }
}

/* ── Auth (login) ── */
.auth-page {
  background: var(--paper);
  background-image: none;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--paper);
}
.auth-visual {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: var(--brown-900);
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,29,16,0.08), rgba(42,29,16,0.22));
  pointer-events: none;
}
.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.auth-panel {
  display: grid;
  align-items: center;
  padding: var(--sp-8) var(--sp-5);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--honey-800);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-12);
}
.auth-brand img {
  width: 24px;
  height: 24px;
}
.auth-content h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--sp-2);
}
.auth-card p.sub {
  color: var(--brown-700);
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-8);
  max-width: 34ch;
}
.auth-card .field {
  margin-bottom: var(--sp-5);
}
.auth-card .label {
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 900;
}
.auth-card .btn-primary {
  background: var(--honey-800);
  box-shadow: none;
}
.auth-card .btn-primary:hover:not(:disabled) {
  background: var(--honey-700);
  box-shadow: var(--shadow-sm);
}
.input-icon {
  position: relative;
}
.input-icon svg {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--brown-700);
  pointer-events: none;
}
.input-icon .input {
  min-height: 54px;
  border-radius: 4px;
  padding-left: 3.15rem;
  background: var(--paper);
}
.auth-card #verifyBtn {
  margin-top: var(--sp-6);
}
.auth-step { animation: fade-in var(--t) var(--ease); }
.auth-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line-2);
  color: var(--brown-700);
  font-size: var(--text-xs);
  font-weight: 700;
}
.auth-footer span,
.auth-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.auth-footer svg {
  width: 14px;
  height: 14px;
}
.resend-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); font-size: var(--text-sm); color: var(--muted); }

@media (min-width: 860px) {
  .auth-shell {
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  }
  .auth-visual {
    min-height: 100vh;
  }
  .auth-panel {
    padding: var(--sp-12);
  }
}

@media (min-width: 1200px) {
  .auth-card {
    max-width: 430px;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    min-height: 100svh;
  }
  .auth-visual {
    height: min(38svh, 300px);
    min-height: 230px;
  }
  .auth-panel {
    align-items: start;
    padding: var(--sp-8) var(--sp-5) var(--sp-10);
  }
  .auth-brand {
    margin-bottom: var(--sp-8);
  }
  .auth-content h1 {
    font-size: var(--text-3xl);
  }
  .auth-card p.sub {
    max-width: none;
  }
  .auth-footer {
    margin-top: var(--sp-10);
    padding-top: var(--sp-6);
  }
  .otp-inputs {
    gap: 0.35rem;
  }
  .otp-inputs input {
    width: 44px;
    height: 52px;
  }
}

/* ── Policy / legal ── */
.legal { max-width: var(--container-narrow); margin-inline: auto; }
.legal h1 { margin-bottom: var(--sp-6); }
.legal .rich h2 { font-size: var(--text-2xl); }

/* ── Page header band ── */
.page-band { background: var(--paper); border-bottom: 1px solid var(--line-2); padding-block: var(--sp-8); }
.page-band h1 { font-size: var(--text-3xl); }
.page-band p { color: var(--muted); margin-top: var(--sp-2); }
