:root {
  --ink: #20201e;
  --muted: #6e6b66;
  --paper: #fcfbf8;
  --surface: #fff;
  --line: #e7e3dc;
  --accent: #c7735d;
  --accent-dark: #9e4f3d;
  --sage: #dce8df;
  --lavender: #e8e2f0;
  --gold: #d9b978;
  --shadow: 0 18px 45px rgba(42, 35, 27, .08);
  --radius: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--ink); color: white; padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.container { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(252,251,248,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { min-height: 76px; display: flex; align-items: center; gap: 1.35rem; }
.brand { text-decoration: none; font-size: .84rem; font-weight: 750; letter-spacing: .19em; white-space: nowrap; }
.brand span { color: var(--accent); font-weight: 450; }
.nav-links { display: flex; align-items: center; gap: 1.15rem; margin-left: 1rem; font-size: .88rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.search { display: flex; align-items: center; gap: .55rem; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: .5rem .85rem; width: min(250px, 27vw); }
.search input { border: 0; outline: 0; background: transparent; min-width: 0; width: 100%; color: var(--ink); }
.icon-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.count { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding-inline: .25rem; border-radius: 99px; background: var(--ink); color: white; font-size: .7rem; }
.menu-button { display: none; border: 0; background: transparent; font-size: 1.35rem; }
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0 6rem; }
.hero:after { content: ""; position: absolute; width: 22rem; height: 22rem; border-radius: 43% 57% 60% 40%; background: var(--lavender); opacity: .55; right: -7rem; top: -6rem; transform: rotate(18deg); }
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; font-weight: 750; }
.hero h1 { position: relative; z-index: 1; max-width: 760px; font: 450 clamp(3rem, 7vw, 6.3rem)/.96 Georgia, serif; letter-spacing: -.055em; margin: .85rem 0 1.5rem; }
.hero p { max-width: 560px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 999px; padding: .8rem 1.25rem; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(32,32,30,.12); }
.button-primary { background: var(--ink); color: white; }
.button-secondary { background: var(--surface); }
.section { padding: 4.5rem 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { font: 450 clamp(2rem, 4vw, 3.1rem)/1 Georgia, serif; letter-spacing: -.04em; margin: .35rem 0 0; }
.text-link { color: var(--accent-dark); text-decoration: none; font-weight: 650; }
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.category-card { min-height: 150px; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; background: var(--surface); transition: transform .2s, box-shadow .2s; }
.category-card:nth-child(3n) { background: var(--sage); }
.category-card:nth-child(3n+2) { background: #f2ebe5; }
.category-card:hover, .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card strong { display: block; margin-top: 2.8rem; font: 450 1.35rem Georgia, serif; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s, box-shadow .2s; }
.product-art { position: relative; overflow: hidden; aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(135deg, #eee8df, #e4e9e2); color: #5f625d; font: 450 1.5rem Georgia, serif; text-align: center; padding: 1rem; }
.product-card:nth-child(2n) .product-art { background: linear-gradient(135deg, #e9e1ef, #f0e5df); }
.product-card-image, .product-visual-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 1rem; }
.product-info h3 { font-size: 1rem; margin: 0 0 .35rem; }
.product-info h3 a { text-decoration: none; }
.product-meta { color: var(--muted); font-size: .8rem; margin: 0 0 .8rem; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.price { font-weight: 750; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .55rem; color: var(--muted); font-size: .72rem; }
.trust { background: var(--ink); color: white; }
.trust .eyebrow { color: var(--gold); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trust h3 { font: 450 1.35rem Georgia, serif; margin: .5rem 0; }
.trust p { color: #c3c0b9; line-height: 1.6; }
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.footer nav { display: flex; gap: 1rem; }
.footer a { text-decoration: none; }
.page-header { padding: 4rem 0 2rem; }
.page-header h1 { font: 450 clamp(2.6rem, 6vw, 5rem)/1 Georgia, serif; letter-spacing: -.05em; margin: .5rem 0 1rem; }
.catalog-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; padding-bottom: 5rem; }
.filters { border-right: 1px solid var(--line); padding-right: 1.25rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .78rem; font-weight: 700; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: .7rem; color: var(--ink); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-size: .85rem; }
.status { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.auth-shell { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 3rem 0; }
.auth-card { width: min(440px, 100%); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 2rem; box-shadow: var(--shadow); }
.auth-card h1 { font: 450 2.5rem Georgia, serif; margin: .4rem 0 1.5rem; }
.auth-card .button { width: 100%; }
.notice { min-height: 1.5rem; color: var(--accent-dark); font-size: .9rem; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-bottom: 5rem; }
.account-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--surface); }
.product-detail { padding: 2.5rem 0 5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .78rem; margin-bottom: 2rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.product-visual { aspect-ratio: 1 / .86; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; border-radius: 28px; background: var(--sage); box-shadow: var(--shadow); }
.product-visual-image { z-index: 2; }
.product-visual:before, .product-visual:after { content: ""; position: absolute; border-radius: 48% 52% 60% 40%; opacity: .65; }
.product-visual:before { width: 60%; height: 70%; background: var(--lavender); transform: rotate(20deg) translate(25%, -12%); }
.product-visual:after { width: 42%; height: 50%; background: #f2ebe5; transform: rotate(-24deg) translate(-55%, 28%); }
.visual-mark, .visual-label, .visual-note { position: relative; z-index: 1; }
.visual-mark { font: 400 clamp(5rem, 13vw, 10rem)/.8 Georgia, serif; color: rgba(32,32,30,.7); }
.visual-label { margin-top: 1.5rem; font: 450 1.15rem Georgia, serif; }
.visual-note { margin-top: .55rem; color: var(--muted); font-size: .78rem; }
.product-summary h1 { font: 450 clamp(2.8rem, 6vw, 5.7rem)/.94 Georgia, serif; letter-spacing: -.055em; margin: .55rem 0 1rem; }
.product-subtitle { color: var(--muted); font-size: 1.1rem; line-height: 1.6; max-width: 38rem; }
.seller-line { color: var(--muted); font-size: .9rem; }
.seller-line a { color: var(--ink); font-weight: 700; }
.price-line { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.detail-price { font-size: 1.65rem; }
.compare-price { color: var(--muted); }
.rating { color: var(--accent-dark); font-weight: 700; }
.rating span { color: var(--muted); font-weight: 400; }
.trust-note { display: grid; gap: .3rem; margin-top: 1.5rem; padding: 1rem; border-left: 3px solid var(--gold); background: #f7f1e7; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.trust-note strong { color: var(--ink); }
.product-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; color: var(--muted); font-size: .75rem; }
.product-facts span { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .65rem; }
.product-description { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); gap: 2rem 5rem; max-width: 960px; margin-top: 5rem; }
.detail-section { margin-top: 2rem; }
.detail-section h2 { font: 450 clamp(1.8rem, 3vw, 2.7rem)/1 Georgia, serif; letter-spacing: -.04em; margin: .45rem 0 1rem; }
.detail-section p:not(.eyebrow) { color: var(--muted); line-height: 1.8; white-space: pre-line; }
.detail-list { display: grid; gap: .75rem; padding-left: 1.2rem; color: var(--muted); line-height: 1.55; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.back-link { margin-top: 3rem; }
.product-gallery { width: 100%; min-width: 0; }
.product-gallery-main { position: relative; overflow: hidden; aspect-ratio: 1 / .86; border: 1px solid var(--line); border-radius: 28px; background: var(--sage); box-shadow: var(--shadow); }
.product-gallery-main-trigger { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 1.25rem; border: 0; background: transparent; cursor: zoom-in; }
.product-gallery-main-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-gallery-main-image[hidden], .product-lightbox-image[hidden], .product-gallery-failure[hidden], .product-lightbox[hidden] { display: none; }
.product-gallery-failure { color: var(--muted); font-size: .95rem; text-align: center; }
.product-gallery-zoom-hint { position: absolute; right: 1rem; bottom: 1rem; padding: .45rem .7rem; border: 1px solid rgba(32,32,30,.12); border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .75rem; }
.product-gallery-position { margin: .65rem 0 0; color: var(--muted); font-size: .78rem; text-align: right; }
.product-gallery-thumbnails { display: flex; gap: .65rem; overflow-x: auto; padding: .8rem .15rem .25rem; }
.product-gallery-thumbnail { flex: 0 0 clamp(4rem, 12vw, 6rem); width: clamp(4rem, 12vw, 6rem); aspect-ratio: 1; overflow: hidden; padding: .2rem; border: 2px solid transparent; border-radius: 12px; background: var(--surface); cursor: pointer; }
.product-gallery-thumbnail img { display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.product-gallery-thumbnail.is-active { border-color: var(--accent-dark); box-shadow: 0 0 0 1px var(--accent-dark); }
.product-gallery-thumbnail:hover { border-color: var(--accent); }
.product-gallery-thumbnail:focus-visible, .product-gallery-main-trigger:focus-visible, .product-lightbox button:focus-visible { outline-offset: -3px; }
.product-lightbox { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: clamp(.75rem, 3vw, 2rem); }
.product-lightbox-backdrop { position: absolute; inset: 0; background: rgba(20,19,18,.9); }
.product-lightbox-content { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(1100px, 100%); height: min(900px, 100%); max-height: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: #242321; color: white; }
.product-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; }
.product-lightbox-position { margin: 0; color: #e4e0d9; font-size: .85rem; }
.product-lightbox-close, .product-lightbox-nav { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: rgba(32,32,30,.75); color: white; cursor: pointer; }
.product-lightbox-close { padding: .45rem .9rem; }
.product-lightbox-image-wrap { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 4rem 1.25rem; }
.product-lightbox-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.product-lightbox-failure { position: absolute; color: #f3f0eb; }
.product-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.8rem; line-height: 1; }
.product-lightbox-prev { left: .75rem; }
.product-lightbox-next { right: .75rem; }
.product-lightbox button:hover { background: rgba(255,255,255,.2); }
@media (max-width: 900px) { .nav-links { display: none; position: absolute; left: 1.25rem; right: 1.25rem; top: 68px; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); } .nav-links.open { display: grid; } .menu-button { display: block; order: 2; } .search { width: min(240px, 45vw); } .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catalog-layout { grid-template-columns: 1fr; } .filters { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 1rem; } .product-detail-grid, .product-description { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .container { width: min(100% - 1.5rem, 1180px); } .nav { gap: .7rem; min-height: 66px; } .brand { font-size: .72rem; } .search { width: auto; flex: 1; } .search input { width: 70px; } .icon-label { display: none; } .hero { padding-top: 4rem; } .hero h1 { font-size: 3.2rem; } .section { padding: 3.5rem 0; } .category-grid, .product-grid, .trust-grid, .account-grid { grid-template-columns: 1fr; } .footer-inner { display: grid; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Shared customer marketplace refinement */
:root {
  --ink: #20282b;
  --muted: #59666b;
  --paper: #f8f9f8;
  --surface: #fff;
  --line: #dfe5e3;
  --accent: #a65c47;
  --accent-dark: #854330;
  --sage: #edf2ef;
  --lavender: #f0efed;
  --gold: #d6a84e;
  --shadow: 0 12px 28px rgba(31, 42, 42, .08);
  --radius: 14px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
body { color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; }
button, a { touch-action: manipulation; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #9b6820; outline-offset: 3px; }
.container { width: min(1320px, calc(100% - 3rem)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 30; transform: translateY(-180%); border-radius: 8px; background: var(--ink); color: white; }
.skip-link:focus { top: .75rem; transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.nav { min-height: 72px; gap: clamp(.8rem, 1.6vw, 1.4rem); }
.brand { display: inline-flex; gap: .38rem; align-items: baseline; color: var(--ink); font-size: .82rem; font-weight: 800; letter-spacing: .14em; }
.brand span { color: var(--accent-dark); font-size: .73rem; font-weight: 650; letter-spacing: .13em; }
.nav-links { gap: clamp(.8rem, 1.5vw, 1.35rem); margin-left: .25rem; font-size: .93rem; font-weight: 620; }
.nav-links a, .icon-link { min-height: 44px; display: inline-flex; align-items: center; color: #465256; }
.nav-links a { padding: .25rem 0; text-decoration: none; }
.nav-links a:hover, .icon-link:hover { color: var(--accent-dark); }
.search { width: min(380px, 32vw); min-height: 46px; gap: .65rem; padding: .25rem .35rem .25rem .85rem; border-radius: 9px; border-color: #cfd8d5; background: #f8faf9; transition: border-color .16s, box-shadow .16s, background .16s; }
.search:focus-within { border-color: var(--accent-dark); background: var(--surface); box-shadow: 0 0 0 3px rgba(133,67,48,.12); }
.search input { min-height: 38px; font-size: .94rem; }
.search input::placeholder { color: #687478; opacity: 1; }
.search input:focus-visible { outline: 0; }
.search-glyph { position: relative; flex: 0 0 15px; width: 15px; height: 15px; border: 1.7px solid #59666b; border-radius: 50%; }
.search-glyph::after { position: absolute; right: -5px; bottom: -3px; width: 6px; height: 1.7px; border-radius: 2px; background: currentColor; content: ""; transform: rotate(45deg); }
.search-submit { position: relative; min-width: 38px; min-height: 36px; padding: .35rem .6rem; border: 0; border-radius: 7px; background: var(--ink); color: white; font-size: .76rem; font-weight: 700; cursor: pointer; }
.search-submit:hover { background: var(--accent-dark); }
.icon-link { position: relative; gap: .4rem; padding: .25rem .1rem; color: #465256; font-size: .9rem; font-weight: 620; text-decoration: none; white-space: nowrap; }
.wishlist-glyph { font-size: 1.25rem; line-height: 1; }
.cart-glyph { position: relative; width: 17px; height: 13px; margin: -2px 2px 0 0; border: 1.6px solid currentColor; border-top: 0; border-radius: 1px 1px 3px 3px; transform: skew(-8deg); }
.cart-glyph::before { position: absolute; top: -4px; left: -4px; width: 6px; height: 5px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; content: ""; }
.cart-glyph::after { position: absolute; right: 1px; bottom: -5px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: -9px 0 currentColor; content: ""; }
.count { min-width: 1.2rem; height: 1.2rem; padding-inline: .3rem; background: var(--accent-dark); font-size: .68rem; font-weight: 750; }
.menu-button { min-width: 44px; min-height: 44px; padding: .4rem; border-radius: 8px; color: var(--ink); font-size: .85rem; font-weight: 650; cursor: pointer; }
.menu-glyph { display: none; }

.hero { overflow: visible; padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); background: #f2f5f3; }
.hero:after { display: none; }
.eyebrow { color: var(--accent-dark); letter-spacing: .12em; font-size: .74rem; line-height: 1.4; }
.hero h1 { max-width: 760px; margin: .65rem 0 .9rem; color: var(--ink); font: 720 clamp(2.4rem, 4.8vw, 3.9rem)/1.08 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.045em; }
.hero p { max-width: 660px; margin: 0; color: #4e5a5e; font-size: 1.04rem; line-height: 1.65; }
.hero .actions { gap: .7rem; margin-top: 1.4rem; }
.actions { align-items: center; }
.button { min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--ink); border-radius: 8px; font-size: .9rem; font-weight: 680; transition: transform .16s, box-shadow .16s, background .16s, border-color .16s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(32,40,43,.13); }
.button-primary { border-color: var(--ink); background: var(--ink); color: white; }
.button-primary:hover { background: #344449; }
.button-secondary { border-color: #cbd4d1; background: white; color: var(--ink); }
.hero-assurances { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: #465256; font-size: .87rem; font-weight: 580; }
.hero-assurances li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-assurances li::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ""; }
.section { padding: clamp(2.5rem, 4vw, 3.35rem) 0; }
.section-heading { align-items: end; margin-bottom: 1.15rem; }
.section-heading h2, .detail-section h2 { margin: .3rem 0 0; color: var(--ink); font: 680 clamp(1.55rem, 2.5vw, 2rem)/1.2 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.025em; }
.text-link { color: var(--accent-dark); font-size: .9rem; font-weight: 680; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.category-grid:has(> .category-card:only-child) { grid-template-columns: minmax(0, min(440px, 100%)); justify-content: center; }
.category-grid:has(> .category-card:first-child:nth-last-child(2)) { grid-template-columns: repeat(2, minmax(0, min(380px, calc((100% - .9rem) / 2)))); justify-content: center; }
.category-card { position: relative; min-height: 136px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; overflow: hidden; padding: 1.15rem 1.25rem; border-radius: 10px; background: #fff; transition: border-color .16s, box-shadow .16s, transform .16s; }
.category-card:nth-child(n) { background: #fff; }
.category-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #c9a15b; content: ""; opacity: .85; }
.category-card .eyebrow { font-size: .64rem; }
.category-card strong { max-width: calc(100% - 1.5rem); margin: .9rem 0 0; font-size: 1.08rem; font-weight: 670; line-height: 1.4; }
.category-arrow { position: absolute; right: 1rem; bottom: .85rem; color: var(--accent-dark); font-size: 1.2rem; }
.category-card:hover, .product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.category-card:hover { border-color: #c5a36c; }

.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product-grid:has(> .product-card:only-child) { grid-template-columns: minmax(0, min(440px, 100%)); justify-content: center; }
.product-grid:has(> .product-card:first-child:nth-last-child(2)) { grid-template-columns: repeat(2, minmax(0, min(380px, calc((100% - 1rem) / 2)))); justify-content: center; }
.category-grid > .status, .product-grid > .status { grid-column: 1 / -1; justify-self: start; width: min(100%, 620px); margin: 0; }
.product-card { min-width: 0; display: flex; overflow: hidden; border-radius: 12px; box-shadow: 0 1px 2px rgba(31,42,42,.04); transition: transform .16s, box-shadow .16s, border-color .16s; }
.product-card-link { min-width: 0; width: 100%; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.product-card-link:focus-visible { border-radius: 12px; }
.product-art { aspect-ratio: 4 / 3; flex: 0 0 auto; padding: .8rem; background: #eff2f0; color: #59666b; font: 620 1rem/1.35 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
.product-card:nth-child(n) .product-art { background: #eff2f0; }
.product-art > span { max-width: 80%; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-card-image { object-fit: cover; transition: transform .28s ease; }
.product-card:hover .product-card-image { transform: scale(1.025); }
.product-info { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: .85rem .9rem .9rem; }
.product-info .product-meta { min-height: 1.25rem; overflow: hidden; margin: 0 0 .4rem; color: #5b686c; font-size: .82rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.product-info h3 { display: -webkit-box; min-height: 2.65em; overflow: hidden; margin: 0 0 .8rem; font-size: 1rem; font-weight: 680; line-height: 1.4; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-bottom { margin-top: auto; align-items: baseline; }
.price { color: var(--ink); font-size: 1.05rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.tag { padding: .2rem .5rem; border-color: #dfe5e3; background: #f7f9f8; color: #546166; font-size: .72rem; font-weight: 620; }
.product-meta { color: #59666b; font-size: .83rem; line-height: 1.5; }

.trust { background: transparent; color: var(--ink); }
.trust .eyebrow { color: var(--accent-dark); }
.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.trust-grid > div { padding: 1.25rem 1.45rem; }
.trust-grid > div + div { border-left: 1px solid var(--line); }
.trust h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 690; }
.trust p { margin: 0; color: #59666b; font-size: .9rem; line-height: 1.55; }

.footer { padding: 2.1rem 0 1.35rem; background: white; color: #4f5c60; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: minmax(180px, .8fr) 2fr; gap: 1.4rem 3rem; }
.footer-brand .brand { color: var(--ink); text-decoration: none; }
.footer-brand p { margin: .4rem 0 0; color: #687478; font-size: .88rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.footer-nav > div { display: grid; align-content: start; justify-items: start; gap: .45rem; }
.footer-nav strong { margin-bottom: .1rem; color: var(--ink); font-size: .86rem; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; color: #4f5c60; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-dark); text-decoration: underline; }
.footer-copyright { grid-column: 1 / -1; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); color: #687478; font-size: .82rem; }
.footer-inner > span { align-self: center; }
.footer-inner > nav:not(.footer-nav) { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; }

.page-header { padding: 2.2rem 0 1.25rem; }
.page-header h1 { margin: .35rem 0 .4rem; color: var(--ink); font: 690 clamp(1.8rem, 3.5vw, 2.65rem)/1.15 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.035em; }
.page-header > .product-meta { margin: 0; font-size: .94rem; }
.catalog-layout { grid-template-columns: 245px minmax(0, 1fr); align-items: start; gap: 1.5rem; padding-bottom: 4rem; }
.filters { padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.filters h2 { margin: 0 0 .85rem; font-size: 1rem; font-weight: 700; }
.filters form { display: grid; gap: .15rem; }
.field { gap: .35rem; margin-bottom: .8rem; }
.field label { color: #3e4a4e; font-size: .85rem; font-weight: 670; }
.field input, .field select { min-height: 44px; padding: .6rem .7rem; border-color: #cfd8d5; border-radius: 8px; color: var(--ink); font-size: .94rem; }
.field input:focus-visible, .field select:focus-visible { border-color: var(--accent-dark); }
.filters .button { width: 100%; margin-top: .1rem; }
.catalog-toolbar { min-height: 44px; margin: 0 0 .85rem; color: #536065; font-size: .84rem; }
.catalog-toolbar strong { color: var(--ink); font-size: .95rem; }
.catalog-live { display: inline-flex; align-items: center; gap: .4rem; color: #58666a; font-size: .78rem; }
.catalog-live::before { width: 7px; height: 7px; border-radius: 50%; background: #5c886e; content: ""; }
.catalog-status { margin-top: 0; }
.status { border-color: #d8e0dc; background: white; color: #526065; line-height: 1.55; }

.auth-shell { min-height: calc(100vh - 72px); padding: 2.5rem 1.5rem; }
.auth-card { border-color: var(--line); border-radius: 14px; box-shadow: 0 8px 26px rgba(31,42,42,.06); }
.auth-card h1 { color: var(--ink); font: 680 1.9rem/1.2 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.025em; }
.account-grid { gap: 1rem; }
.account-card { border-radius: 12px; box-shadow: 0 1px 3px rgba(31,42,42,.04); }
.account-card h2 { font-size: 1.15rem; }

.product-detail { padding-top: 1.5rem; }
.breadcrumbs { min-width: 0; flex-wrap: wrap; row-gap: .25rem; margin-bottom: 1.4rem; font-size: .76rem; line-height: 1.5; }
.breadcrumbs a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.product-detail-grid { gap: clamp(1.5rem, 4vw, 4rem); }
.product-summary h1 { margin: .45rem 0 .75rem; color: var(--ink); font: 700 clamp(1.9rem, 3.8vw, 3rem)/1.12 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.product-subtitle { color: #4e5b60; font-size: 1rem; line-height: 1.65; }
.seller-line { color: #536065; line-height: 1.5; }
.seller-line a { color: var(--accent-dark); }
.detail-price { font-size: 1.55rem; }
.trust-note { border-left-color: #bb9450; border-radius: 0 8px 8px 0; background: #f3f2ed; color: #526065; }
.product-description { margin-top: 3.5rem; }
.detail-section h2 { margin: .35rem 0 .85rem; }
.detail-section p:not(.eyebrow) { color: #536065; line-height: 1.7; overflow-wrap: anywhere; }
.detail-list { color: #536065; }
.tag-list { gap: .4rem; }
.product-visual { background: #edf2ef; border-radius: 18px; box-shadow: none; }
.product-visual:before, .product-visual:after { opacity: .3; }
.product-gallery-main { border-radius: 16px; background: #f0f2f0; box-shadow: none; }
.product-gallery-main-trigger { padding: clamp(.6rem, 2vw, 1.25rem); }
.product-gallery-thumbnail { min-width: 44px; min-height: 44px; }
.product-lightbox-content { width: min(1100px, 100%); height: min(900px, 100dvh); border-radius: 12px; }
.product-lightbox-image-wrap { touch-action: pan-y; }
.product-gallery-position { font-variant-numeric: tabular-nums; }
.product-gallery-zoom-hint { border-color: #dfe5e3; font-weight: 620; }

@media (max-width: 1020px) {
  .nav { gap: .85rem; }
  .nav-links { gap: .8rem; }
  .search { width: min(310px, 30vw); }
  .icon-label { font-size: .8rem; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { position: relative; min-height: 66px; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; order: 1; }
  .menu-glyph { position: relative; display: inline-block; width: 16px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .menu-glyph::after { position: absolute; top: 4px; left: 0; width: 100%; border-top: 2px solid currentColor; content: ""; }
  .menu-label { font-size: .76rem; }
  .nav-links { position: absolute; top: calc(100% + .4rem); left: 0; right: 0; z-index: 12; display: none; margin: 0; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links a { min-height: 44px; padding: .55rem .7rem; border-radius: 6px; }
  .nav-links a:hover { background: #f3f6f4; }
  .search { flex: 1 1 180px; width: auto; margin-left: auto; order: 2; }
  .wishlist-link { order: 3; }
  .cart-link { order: 4; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid:has(> .category-card:first-child:nth-last-child(2)),
  .product-grid:has(> .product-card:first-child:nth-last-child(2)) { max-width: 780px; margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .filters { padding: 1rem; }
  .filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .8rem; }
  .filters form h2, .filters form button { grid-column: 1 / -1; }
  .filters form button { justify-self: start; width: auto; min-width: 180px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 2rem, 1320px); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.1rem; }
  .footer-nav { gap: .75rem; }
  .footer-copyright { grid-column: auto; }
  .product-detail-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .product-gallery-main { aspect-ratio: 1 / .9; }
  .product-description { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
  .product-summary h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .product-visual { aspect-ratio: 1 / .9; }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 1.5rem); }
  .nav { gap: .45rem; min-height: 62px; }
  .brand { gap: .24rem; font-size: .72rem; letter-spacing: .11em; }
  .brand span { font-size: .63rem; }
  .menu-button { min-width: 44px; padding-inline: .25rem; }
  .menu-label { display: none; }
  .search { min-width: 0; min-height: 42px; gap: .4rem; padding-left: .65rem; }
  .search-glyph { flex-basis: 13px; width: 13px; height: 13px; }
  .search input { min-width: 0; width: 100%; font-size: .82rem; }
  .search input::placeholder { color: #59666b; }
  .search-submit { min-width: 32px; width: 32px; min-height: 32px; padding: 0; overflow: hidden; font-size: 0; }
  .search-submit::after { position: absolute; top: 10px; left: 9px; display: block; width: 7px; height: 7px; border: 1.5px solid white; border-radius: 50%; content: ""; }
  .search-submit::before { position: absolute; top: 18px; left: 17px; width: 5px; height: 1.5px; background: white; content: ""; transform: rotate(45deg); }
  .icon-link { min-width: 44px; min-height: 44px; justify-content: center; padding: .25rem 0; }
  .icon-label { display: none; }
  .count { position: absolute; top: 0; right: -5px; min-width: 1rem; height: 1rem; font-size: .62rem; }
  .hero { padding: 2.6rem 0 2.2rem; }
  .hero h1 { max-width: 520px; margin: .55rem 0 .75rem; font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero p { font-size: .96rem; }
  .hero .actions { margin-top: 1.15rem; }
  .hero-assurances { gap: .5rem .9rem; margin-top: 1.1rem; font-size: .8rem; }
  .section { padding: 2.25rem 0; }
  .section-heading { align-items: center; margin-bottom: 1rem; }
  .section-heading h2 { font-size: 1.45rem; }
  .category-grid { gap: .6rem; }
  .category-grid:has(> .category-card:first-child:nth-last-child(2)),
  .product-grid:has(> .product-card:first-child:nth-last-child(2)) { max-width: none; }
  .category-grid:has(> .category-card:only-child),
  .product-grid:has(> .product-card:only-child) { grid-template-columns: minmax(0, 1fr); }
  .category-card { min-height: 120px; padding: .85rem .9rem; }
  .category-card strong { font-size: .95rem; }
  .product-grid { gap: .65rem; }
  .product-card { border-radius: 10px; }
  .product-art { aspect-ratio: 1 / .86; padding: .6rem; }
  .product-info { padding: .65rem .68rem .7rem; }
  .product-info .product-meta { margin-bottom: .28rem; font-size: .74rem; }
  .product-info h3 { min-height: 2.55em; margin-bottom: .6rem; font-size: .9rem; }
  .price { font-size: .95rem; }
  .tag { padding: .17rem .38rem; font-size: .68rem; }
  .trust-grid > div { padding: .9rem 1rem; }
  .page-header { padding: 1.65rem 0 1rem; }
  .page-header h1 { font-size: 1.85rem; }
  .catalog-layout { padding-bottom: 2.5rem; }
  .filters { padding: .8rem; }
  .filters form { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .field input, .field select { padding-inline: .55rem; font-size: .83rem; }
  .filters form button { width: 100%; }
  .catalog-toolbar { align-items: flex-start; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .6rem; }
  .auth-shell { padding: 1.5rem .75rem; }
  .auth-card { padding: 1.4rem; }
  .account-grid { grid-template-columns: 1fr; padding-bottom: 2.5rem; }
  .product-detail { padding-top: 1rem; }
  .breadcrumbs { gap: .3rem; margin-bottom: 1rem; font-size: .7rem; }
  .product-gallery-main { aspect-ratio: 1 / .92; border-radius: 12px; }
  .product-gallery-main-trigger { padding: .55rem; }
  .product-gallery-thumbnails { gap: .45rem; }
  .product-gallery-thumbnail { flex-basis: 3.5rem; width: 3.5rem; }
  .product-lightbox { padding: .5rem; }
  .product-lightbox-content { height: min(100%, 100dvh); border-radius: 9px; }
  .product-lightbox-image-wrap { padding: 0 2.8rem .8rem; }
  .product-lightbox-prev { left: .35rem; }
  .product-lightbox-next { right: .35rem; }
  .product-lightbox-nav { min-width: 2.5rem; min-height: 2.5rem; }
  .product-summary .actions { align-items: stretch; }
  .product-summary .actions .button { flex: 1 1 auto; padding-inline: .7rem; }
}
@media (max-width: 359px) {
  .product-grid, .product-grid:has(> .product-card:first-child:nth-last-child(2)) { grid-template-columns: minmax(0, 1fr); }
  .product-art { aspect-ratio: 4 / 3; }
  .footer-nav { grid-template-columns: 1fr; }
  .menu-button, .icon-link { min-width: 40px; }
  .search { gap: .25rem; padding-inline: .45rem .25rem; }
  .search-glyph { display: none; }
  .footer-nav a { min-height: 44px; }
}

/* Final marketplace readability refinement */
@media (min-width: 901px) {
  .nav {
    min-height: 76px;
  }

  .brand {
    font-size: .9rem;
  }

  .brand span {
    font-size: .78rem;
  }

  .nav-links {
    font-size: .98rem;
  }

  .search input,
  .search button,
  .icon-link {
    font-size: .92rem;
  }

  .footer-nav strong {
    font-size: .92rem;
  }

  .footer-nav a,
  .footer-brand p {
    font-size: .9rem;
  }
}
