/* Brands n Friends — storefront styles */
:root {
  --navy: #185677;
  --navy-d: #0e3a52;
  --navy-l: #e8f0f5;
  --gold: #c59e53;
  --gold-d: #a9833c;
  --gold-l: #f6efe2;
  --ink: #15212a;
  --muted: #5d6b75;
  --line: #e2e7eb;
  --alt: #f7f5f1;
  --white: #fff;
  --red: #c0392b;
  --green: #2e7d4f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(14, 58, 82, .08);
  --font-h: "Exo 2", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-b); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-d); }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.eyebrow { display: inline-block; font-family: var(--font-h); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); margin-bottom: .6rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.4em; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; text-align: center; line-height: 1.2; }
.btn:hover { background: var(--navy-d); border-color: var(--navy-d); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-d); border-color: var(--gold-d); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn-lg { padding: .95em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow.back::after { content: ""; }
.link-arrow.back::before { content: "← "; }
.link-btn { background: none; border: 0; color: var(--red); cursor: pointer; padding: 0; font-size: .9rem; }

/* Promo + header */
.promo-bar { background: var(--navy-d); color: #fff; text-align: center; font-size: .85rem; padding: 8px 12px; letter-spacing: .02em; }
.promo-bar a { color: #fff; }
.promo-bar a:hover { color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand img { height: 52px; width: auto; }
.header-search { flex: 1; max-width: 520px; margin: 0 auto; display: flex; background: var(--alt); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.header-search input { flex: 1; border: 0; background: transparent; padding: 10px 18px; outline: none; min-width: 0; }
.header-search button { border: 0; background: transparent; padding: 0 16px; cursor: pointer; color: var(--navy); }
.header-search:focus-within { border-color: var(--navy); background: #fff; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--navy-l); color: var(--navy); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav-toggle, .search-toggle { display: none; }
.mainnav { border-top: 1px solid var(--line); }
.nav-head { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { display: block; padding: 14px 16px; font-family: var(--font-h); font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.nav-list > li > a:hover { color: var(--navy); }
.nav-list .nav-sale { color: var(--red); }
.sub-toggle { display: none; }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .18s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { display: block; padding: 8px 14px; border-radius: 6px; color: var(--ink); font-size: .95rem; }
.sub a:hover { background: var(--navy-l); color: var(--navy); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(10, 30, 45, .45); z-index: 60; }

/* Flash */
.flashes { margin-top: 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid; font-size: .95rem; }
.alert-success { background: #edf7f1; border-color: #bfe1cc; color: #1d5e39; }
.alert-error { background: #fdf0ee; border-color: #f2c6bf; color: #8f2b1f; }
.alert-info { background: var(--navy-l); border-color: #c9dbe6; color: var(--navy-d); }
.alert.big { padding: 24px; font-size: 1.05rem; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% 20%, rgba(197,158,83,.35), transparent 60%), linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 60%, #2a7aa3 100%); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,35,50,.75) 0%, rgba(10,35,50,.35) 55%, rgba(10,35,50,.05) 100%); }
.hero-inner { position: relative; z-index: 1; padding: clamp(80px, 12vw, 160px) 20px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; max-width: 12ch; }
.hero .eyebrow { color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.88); font-size: 1.15rem; margin-bottom: 1.8rem; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-top0 { padding-top: 0; }
.section-alt { background: var(--alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.empty, .empty-state { color: var(--muted); }
.empty-state { text-align: center; padding: 48px 0; }

/* Department tiles */
.dept-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dept { position: relative; display: flex; align-items: flex-end; min-height: 120px; border-radius: var(--radius); overflow: hidden; background: var(--navy-l); padding: 20px 24px; color: var(--navy-d); }
.dept img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dept:has(img) { min-height: 260px; color: #fff; }
.dept:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,35,50,.6), transparent 55%); }
.dept span { position: relative; z-index: 1; font-family: var(--font-h); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; }
.dept span::after { content: " →"; color: var(--gold); }
.dept:hover img { transform: scale(1.04); }

/* Product grid & cards */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--alt); aspect-ratio: 4 / 5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.img-ph { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 4 / 5; background: linear-gradient(135deg, var(--alt), #ece7dd); position: relative; }
.img-ph::after { content: ""; position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; opacity: .25; background: url("../img/favicon-192.png") center / contain no-repeat; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; }
.badge-sale { background: var(--red); color: #fff; }
.badge-out { background: var(--ink); color: #fff; }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.card-title { font-family: var(--font-b); font-size: .98rem; font-weight: 500; margin: 0; line-height: 1.35; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--navy); }
.card-body form, .card-body > .btn { margin-top: auto; padding-top: 6px; }
.card-body .btn { width: 100%; }
.price { font-weight: 600; color: var(--navy-d); }
.price del { color: var(--muted); font-weight: 400; margin-right: 4px; }
.price ins { text-decoration: none; color: var(--red); }
.price-lg { font-size: 1.5rem; margin-bottom: 16px; }

/* New arrivals */
.arrivals { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.arrivals-banner { position: relative; display: flex; align-items: flex-end; min-height: 440px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--gold) 0%, var(--gold-d) 100%); color: #fff; }
.arrivals-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.arrivals-banner.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,35,50,.7), transparent 60%); }
.arrivals-banner:hover img { transform: scale(1.03); }
.arrivals-copy { position: relative; z-index: 1; padding: 32px; max-width: 460px; }
.arrivals-copy h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.arrivals-banner:hover { color: #fff; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: #fff; display: block; }
.tile img, .tile .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.05); }
.tile-label { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font-family: var(--font-h); font-weight: 600; font-size: .95rem; box-shadow: var(--shadow); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quote { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 14px; color: var(--ink); flex: 1; }
.quote blockquote p { margin: 0; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.quote figcaption { color: var(--muted); font-size: .9rem; }
.quote figcaption strong { color: var(--ink); }

/* Offer */
.offer { position: relative; display: flex; align-items: center; min-height: 300px; border-radius: var(--radius); overflow: hidden; color: #fff; background: radial-gradient(600px 300px at 85% 50%, rgba(197,158,83,.45), transparent 70%), var(--navy-d); }
.offer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,35,50,.85), rgba(10,35,50,.2)); }
.offer-copy { position: relative; z-index: 1; padding: clamp(28px, 5vw, 56px); max-width: 560px; }
.offer-copy h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
.offer-copy .eyebrow { color: var(--gold); }
.offer-copy p { color: rgba(255,255,255,.85); }
.offer:hover { color: #fff; }

/* Posts */
.grid-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; }
.post-media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--alt); }
.post-media img, .post-media .img-ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.post-body { padding-top: 14px; }
.post-body time, .post-head time { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post-body h3 { margin: 4px 0 8px; }
.post-body h3 a { color: var(--ink); }
.post-body p { color: var(--muted); font-size: .95rem; }
.post-hero { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }

/* Page head, breadcrumbs */
.page-head { position: relative; padding: 32px 0 36px; }
.page-head.has-img { padding: 80px 0; color: #fff; overflow: hidden; margin-bottom: 40px; }
.page-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head.has-img::after { content: ""; position: absolute; inset: 0; background: rgba(10,35,50,.55); }
.page-head.has-img .container { position: relative; z-index: 1; }
.page-head.has-img h1, .page-head.has-img .lead, .page-head.has-img .crumbs a, .page-head.has-img .crumbs span { color: #fff; }
.page-head h1 { margin-bottom: .3em; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink); background: #fff; }
.chip:hover { border-color: var(--navy); color: var(--navy); }

/* Toolbar, pagination */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar .count { margin: 0; color: var(--muted); font-size: .9rem; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.sort-form select { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: #fff; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.pagination [aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .dots { border: 0; }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: 48px; }
.gallery { position: sticky; top: 140px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--alt); aspect-ratio: 4 / 5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--alt); }
.gallery-thumbs button.is-active { border-color: var(--navy); }
.product-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.prose.short { color: var(--muted); }
.opts { border: 0; padding: 0; margin: 0 0 20px; }
.opts legend { font-weight: 600; margin-bottom: 10px; display: flex; gap: 12px; align-items: baseline; width: 100%; }
.size-link { font-weight: 400; font-size: .85rem; text-decoration: underline; margin-left: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; min-width: 50px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); text-align: center; cursor: pointer; transition: .15s; font-weight: 500; }
.pill:hover span { border-color: var(--navy); }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.buy-row { display: flex; gap: 12px; align-items: stretch; }
.grow { flex: 1; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; align-items: center; background: #fff; }
.qty button { width: 40px; height: 46px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--alt); }
.qty input { width: 44px; border: 0; text-align: center; -moz-appearance: textfield; padding: 0; height: 46px; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.stock-low { color: var(--gold-d); font-size: .9rem; margin: 10px 0 0; font-weight: 600; }
.stock-out { color: var(--red); font-weight: 600; }
.perks { list-style: none; padding: 18px 0; margin: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.perks li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9rem; margin: 0; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; }
.product-desc { border-top: 1px solid var(--line); padding: 40px 0; max-width: 860px; }

/* Prose (page content) */
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.prose a { text-decoration: underline; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1.4em 0; padding: .2em 0 .2em 1.2em; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 2em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.prose thead th { background: var(--navy); color: #fff; font-weight: 600; }
.prose tbody tr:nth-child(even) { background: var(--alt); }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--radius-sm); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 400; font-size: 1rem; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; }
[aria-invalid=true] { border-color: var(--red) !important; }
.field-error { color: var(--red); font-size: .82rem; font-weight: 500; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; margin: 16px 0 6px; }
label.check input { margin-top: 4px; accent-color: var(--navy); }
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); margin-bottom: 32px; }
.card-form h2 { font-size: 1.4rem; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact-cards { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.contact-cards li { display: flex; flex-direction: column; padding: 16px 20px; background: var(--alt); border-radius: var(--radius-sm); }
.contact-cards a, .contact-cards span:last-child { font-weight: 600; color: var(--ink); }
.map iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }
.search-big { display: flex; gap: 10px; max-width: 520px; margin: 24px auto; }

/* Cart, checkout */
.cart-layout, .checkout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto auto 32px; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--alt); }
.cart-img img, .cart-img .img-ph { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.cart-name { font-weight: 600; color: var(--ink); font-size: 1rem; }
.cart-total { min-width: 80px; text-align: right; }
.link-remove { border: 0; background: var(--alt); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--muted); }
.link-remove:hover { background: #fdf0ee; color: var(--red); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
.summary { background: var(--alt); border-radius: var(--radius); padding: 28px; position: sticky; top: 140px; }
.summary h2 { font-size: 1.3rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 0 20px; }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .grand { font-size: 1.2rem; font-family: var(--font-h); font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); color: var(--navy-d); }
.coupon-form { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon-form input { padding: 10px 12px; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #fff; border-radius: var(--radius-sm); margin-bottom: 16px; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 16px; font-size: .9rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pay-method { padding: 16px 20px; border: 1.5px solid var(--navy); border-radius: var(--radius-sm); background: var(--navy-l); display: flex; gap: 10px; align-items: center; }
.pay-method label { display: inline; font-weight: 400; }
.checkout-fields h2 { font-size: 1.3rem; margin-top: 8px; }

/* Order detail */
.order-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
.order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.order-meta div { display: flex; flex-direction: column; font-size: .9rem; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.order-table .r { text-align: right; }
.order-table .grand th, .order-table .grand td { font-size: 1.15rem; font-weight: 700; border: 0; }
.order-address { margin-top: 20px; }

/* Trust, newsletter, footer */
.trust { border-top: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.trust-item { display: flex; align-items: center; gap: 16px; }
.trust-ico { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-l); color: var(--gold-d); }
.trust-item strong { display: block; font-family: var(--font-h); font-size: 1.05rem; }
.trust-item span { color: var(--muted); font-size: .9rem; }
.newsletter { background: var(--navy); color: #fff; }
.newsletter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.newsletter h2 { color: #fff; margin-bottom: .3em; }
.newsletter p { color: rgba(255,255,255,.8); margin: 0; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input[type=email] { flex: 1; min-width: 200px; border: 0; border-radius: 999px; padding: 14px 20px; }
.newsletter-form .form-msg { flex-basis: 100%; margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-msg.ok { color: #bff0cf; }
.form-msg.err { color: #ffd2cb; }
.site-footer { background: var(--navy-d); color: rgba(255,255,255,.78); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand img { width: 180px; height: auto; margin-bottom: 16px; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--gold); }
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.partner-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.partner-chip { padding: 5px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 999px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; font-size: .93rem; max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }
.toast a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.toast.err { background: var(--red); }
.toast.err a { color: #fff; }

/* Responsive */
@media (max-width: 1080px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-row { height: 64px; gap: 8px; }
  .brand img { height: 42px; }
  .nav-toggle, .search-toggle { display: inline-flex; }
  .header-search { display: none; position: absolute; left: 12px; right: 12px; top: 70px; max-width: none; background: #fff; box-shadow: var(--shadow); }
  .site-header.search-open .header-search { display: flex; }
  .mainnav { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: #fff; z-index: 70; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; border: 0; }
  .mainnav.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .mainnav .container { padding: 0; }
  .nav-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); font-family: var(--font-h); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 16px 20px; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; background: transparent; cursor: pointer; }
  .sub-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
  .sub { position: static; transform: none; opacity: 1; visibility: visible; display: none; width: 100%; box-shadow: none; border: 0; border-radius: 0; background: var(--alt); padding: 6px 12px 12px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { transform: none; }
  .sub.open { display: block; }
  .product, .cart-layout, .checkout, .split { grid-template-columns: 1fr; }
  .gallery, .summary { position: static; }
  .arrivals { grid-template-columns: 1fr; }
  .arrivals-banner { min-height: 340px; }
  .grid-posts { grid-template-columns: 1fr 1fr; }
  .newsletter-row { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; gap: 16px; }
  .order-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card-title { font-size: .9rem; }
  .dept-row { grid-template-columns: 1fr; gap: 10px; }
  .dept { min-height: 80px; }
  .dept:has(img) { min-height: 180px; }
  .testimonials, .grid-posts { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr 32px; grid-template-areas: "img info rm" "img qty total"; gap: 8px 14px; }
  .cart-img { grid-area: img; }
  .cart-info { grid-area: info; }
  .cart-line .qty { grid-area: qty; justify-self: start; }
  .cart-total { grid-area: total; }
  .link-remove { grid-area: rm; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .buy-row { flex-direction: column; }
  .buy-row .qty { align-self: flex-start; }
  .hero-inner { padding: 72px 16px 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
