/* Loom & Luster Home — storefront styles
   Palette: brown #201414 · olive #715f53 · antique gold #c7bbab · ivory #f1eae2
   Accent threads (use sparingly): burgundy, rose, deep olive. */

/* ---- FONT SLOTS -------------------------------------------------------
   Drop your licensed font files into /public/fonts/ as:
     display.woff2  (headings)      text.woff2  (body, nav, buttons)
   They are detected automatically (the server adds the @font-face rules only when the files exist); until then the system pairing below is used. */

:root {
  --brown: #201414;
  --brown-soft: #462e2e;
  --olive: #715f53;
  --olive-deep: #5a4a40;
  --gold: #c7bbab;
  --gold-soft: #e4dccf;
  --ivory: #f1eae2;
  --ivory-deep: #e8dfd4;
  --burgundy: #462e2e;
  --rose: #a98782;
  --rose-soft: #e6d9d3;
  --line: rgba(40, 32, 28, .16);
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Bodoni Moda", "Cormorant Garamond", "Bodoni 72", Didot, "Didot LT STD", "Iowan Old Style", Georgia, serif;
  --max: 1320px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-wrap: anywhere; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--brown); font: 400 1rem/1.7 var(--font-text); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--burgundy); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brown); color: var(--ivory); padding: .75rem 1rem; z-index: 999; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.sr { position: absolute; margin: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 500 .75rem/1 var(--font-text); letter-spacing: .26em; text-transform: uppercase; color: var(--olive-deep); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .8rem; }
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold); }
.thread { display: block; height: 10px; width: 100%; color: var(--gold); }

/* ---- buttons ---- */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 1.5rem; border: 1px solid var(--brown); background: var(--brown); color: var(--ivory); font: 500 .8rem/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); }
.btn.ghost { background: transparent; color: var(--brown); }
.btn.ghost:hover { background: var(--brown); color: var(--ivory); border-color: var(--brown); }
.btn.light { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn.light:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn.small { padding: .65rem 1.2rem; font-size: .75rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--burgundy); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---- announcement + header ---- */
.announce { background: var(--brown); color: var(--gold-soft); text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: .6rem var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(241, 234, 226, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tg { position: fixed; top: 0; left: 0; }
.bar { display: grid; grid-template-columns: minmax(44px, 1fr) minmax(0, auto) minmax(44px, 1fr); align-items: center; gap: .5rem; min-height: 64px; }
.nav-btn { grid-column: 1; grid-row: 1; justify-self: start; }
.brand { grid-column: 2; grid-row: 1; justify-self: center; text-decoration: none; display: block; text-align: center; max-width: 100%; }
.tools { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; }
.brand img { height: 40px; width: auto; max-width: 56vw; object-fit: contain; }
.wordmark { font-family: var(--font-display); font-size: clamp(1.1rem, 5.4vw, 2.1rem); letter-spacing: .04em; line-height: 1.1; white-space: nowrap; }
.lang { display: flex; gap: .15rem; align-items: center; font-size: .78rem; letter-spacing: .12em; }
.lang a, .lang span { min-width: 36px; min-height: 36px; display: inline-grid; place-items: center; text-decoration: none; }
.lang [aria-current] { font-weight: 500; color: var(--burgundy); }
.lang-d { display: none; }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer; color: var(--brown); position: relative; text-decoration: none; margin: 0; padding: 0; }
.icon-btn:hover { color: var(--burgundy); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--burgundy); color: var(--ivory); font-size: .75rem; display: grid; place-items: center; padding: 0 4px; }
#nav-t:focus-visible ~ .site-header .nav-btn, #search-t:focus-visible ~ .site-header label[for=search-t] { outline: 2px solid var(--burgundy); outline-offset: -2px; }
.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 64px); overflow: auto; background: var(--ivory); border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(32,20,20,.1); }
#nav-t:checked ~ .site-header .primary-nav { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.primary-nav a.top { display: block; padding: .9rem 0; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); }
.primary-nav a[aria-current="page"] { color: var(--burgundy); }
.sub { list-style: none; margin: 0; padding: .3rem 0 .6rem 1rem; }
.sub a { display: block; padding: .55rem 0; text-decoration: none; }
.lang-m { padding: .5rem 0 1.2rem; }
.nav-search { display: flex; gap: .5rem; padding: 1rem 0 .4rem; } .nav-search input { flex: 1; min-width: 0; }
.nav-acc { margin: 0; } .nav-acc a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: .92rem; }
.hide-m { display: none; }
.search-panel { display: none; border-top: 1px solid var(--line); padding: .8rem 0; }
#search-t:checked ~ .site-header .search-panel { display: block; }
.search-panel form { display: flex; gap: .5rem; }
.search-panel input { flex: 1; min-width: 0; }
/* ---- hero ---- */
.hero { position: relative; background: var(--brown); color: var(--ivory); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero-inner { min-height: min(78svh, 700px); display: grid; align-content: center; padding-block: 4rem; }
.hero-pause { position: absolute; right: var(--gutter); bottom: 1rem; width: 44px; height: 44px; border: 1px solid var(--gold); background: rgba(32,20,20,.5); color: var(--ivory); cursor: pointer; font-size: .9rem; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; } .hero-media video.on { opacity: .62; }
.hero-media { aspect-ratio: auto; }
.hero h1 { max-width: 20ch; color: var(--ivory); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.9rem, 5.2vw, 3.6rem); }
.hero p.lede { max-width: 46ch; font-size: 1.1rem; color: var(--gold-soft); }
.hero .eyebrow { color: var(--gold); }
.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .corner { position: absolute; right: var(--gutter); bottom: 1.2rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---- sections ---- */
section.block { padding-block: clamp(3.5rem, 8vw, 7rem); }
.block.tint { background: var(--ivory-deep); }
.block.dark { background: var(--brown); color: var(--ivory); }
.block.dark .eyebrow { color: var(--gold); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.more { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); }
.tile { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; text-decoration: none; color: var(--ivory); background: var(--brown); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; opacity: .9; }
.tile:hover img { transform: scale(1.05); opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(32,20,20,.78), rgba(32,20,20,0) 55%); }
.tile span { position: absolute; z-index: 1; left: 1.4rem; right: 1.4rem; bottom: 1.3rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); display: flex; justify-content: space-between; align-items: baseline; }
.tile span i { font: normal .75rem var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ---- product grid + cards ---- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .75rem; }
.card { position: relative; } .mwrap { position: relative; }
.card a.media { display: block; aspect-ratio: 4/5; background: var(--ivory-deep); overflow: hidden; position: relative; }
.card a.media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card a.media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover a.media img.alt { opacity: 1; }
.card:hover a.media img:first-child { transform: scale(1.03); }
.badge { position: absolute; top: .8rem; left: .8rem; z-index: 2; background: var(--ivory); color: var(--brown); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; padding: .35rem .7rem; border: 1px solid var(--gold); }
.badge.sale { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); left: auto; right: .8rem; }
.badge.sold { background: var(--brown); color: var(--ivory); border-color: var(--brown); top: auto; bottom: .8rem; }
.card h3 { font-size: 1.25rem; margin: .95rem 0 .2rem; }
.card .sample-tag { margin-left: 0; margin-top: .3rem; display: table; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--burgundy); }
.price { font-size: .98rem; letter-spacing: .02em; }
.price s { color: var(--brown-soft); margin-right: .5rem; opacity: .8; }
.price b { font-weight: 500; color: var(--burgundy); }
.sample-tag { display: inline-block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); border: 1px dashed var(--rose); padding: .1rem .45rem; margin-left: .5rem; vertical-align: middle; }

/* ---- story ---- */
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.story figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; position: relative; }
.story figure img { width: 100%; height: 100%; object-fit: cover; }
.story figure::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(241,234,226,.7); z-index: 1; pointer-events: none; }

/* ---- forms ---- */
label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; color: var(--brown-soft); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=url], input[type=file], select, textarea { width: 100%; padding: .85rem 1rem; border: 1px solid rgba(32,20,20,.4); background: #fff; color: var(--brown); font: inherit; font-size: 1rem; border-radius: 0; min-height: 44px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--burgundy); outline-offset: 1px; border-color: var(--burgundy); }
.field { margin-bottom: 1.1rem; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.hint { font-size: .82rem; color: var(--brown-soft); margin-top: .3rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--brown); }
.check input { margin-top: .35rem; accent-color: var(--burgundy); }
.flash { padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 3px solid var(--olive); background: var(--ivory-deep); }
.flash.error { border-color: var(--burgundy); background: var(--rose-soft); color: #2e1a1b; }
.notice { border: 1px dashed var(--rose); background: #f5ede8; padding: 1rem 1.2rem; font-size: .92rem; color: #2e1a1b; }

/* ---- listing layout ---- */
.crumbs { font-size: .8rem; letter-spacing: .08em; padding-block: 1.4rem 0; color: var(--brown-soft); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--burgundy); }
.crumbs span { margin: 0 .5rem; color: var(--olive); }
.page-head { padding-block: 2rem 2.4rem; border-bottom: 1px solid var(--line); margin-bottom: 2.2rem; }
.page-head p { max-width: 60ch; color: var(--brown-soft); margin: 0; }
.listing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding-bottom: 4rem; align-items: start; }
.listing > aside, .results { min-width: 0; }
.filters { display: none; margin-top: .8rem; }
#ft:checked ~ .filters { display: block; }
#ft:focus-visible ~ .filter-toggle { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.filter-toggle { display: inline-flex; margin: 0; }
.fg { border-top: 1px solid var(--line); padding: 1rem 0; min-width: 0; }
.fh { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 .7rem; }
.filters ul { list-style: none; margin: 0; padding: 0; }
.filters li { margin: .1rem 0; }
.filters li a { display: inline-block; padding: .3rem 0; text-decoration: none; font-size: .95rem; } .filters li a.on { color: var(--burgundy); font-weight: 500; }
.filters li ul { padding-left: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { margin: 0; position: relative; text-transform: none; letter-spacing: 0; font-size: .86rem; color: var(--brown); }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.chip span { display: block; border: 1px solid var(--line); padding: .45rem .8rem; }
.chip:has(input:checked) span { border-color: var(--burgundy); background: var(--rose-soft); }
.chip:has(input:focus-visible) span { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.pair > div { min-width: 0; }
.pair input { width: 100%; min-width: 0; }
.filters .row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.results { overflow: hidden; }
.toolbar { display: flex; min-width: 0; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.toolbar select { width: auto; max-width: 100%; padding: .55rem .8rem; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pager a, .pager b { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; }
.pager b { background: var(--brown); color: var(--ivory); border-color: var(--brown); font-weight: 400; }

/* ---- product page ---- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); padding-block: 1.6rem 4rem; align-items: start; }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.thumbs { display: flex; gap: .6rem; order: 2; overflow-x: auto; }
.thumbs button { width: 72px; flex: none; }
.thumbs button { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; aspect-ratio: 4/5; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--burgundy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ivory-deep); cursor: zoom-in; }
.stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; }
.stage.zoom img { transform: scale(2.2); }
.stage .zoom-hint { position: absolute; right: .8rem; bottom: .8rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(241,234,226,.9); padding: .3rem .6rem; pointer-events: none; }
.pdp h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.pdp .price { font-size: 1.4rem; margin-block: .6rem 1.2rem; }
.stock { font-size: .86rem; display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem; }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--olive); }
.stock.out::before { background: var(--burgundy); } .stock.low::before { background: var(--gold); }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.opts label { margin: 0; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: block; min-width: 3rem; text-align: center; padding: .6rem 1rem; border: 1px solid rgba(32,20,20,.4); cursor: pointer; font-size: .9rem; letter-spacing: .04em; text-transform: none; color: var(--brown); transition: all .2s; }
.opts input:checked + span { background: var(--brown); color: var(--ivory); border-color: var(--brown); }
.opts input:focus-visible + span { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.opts span:hover { border-color: var(--burgundy); }
.buy { display: flex; gap: .8rem; margin-block: 1.4rem; }
.qty { display: inline-flex; border: 1px solid rgba(32,20,20,.4); background: #fff; }
.qty button { width: 44px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: var(--brown); }
.qty button:hover { color: var(--burgundy); }
.qty input { width: 52px; border: 0; text-align: center; padding: .7rem 0; -moz-appearance: textfield; }
.buy .btn { flex: 1; }
.wa-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; }
.accordion details { border-top: 1px solid var(--line); padding: 1rem 0; }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion dl { margin: 1rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem 1rem; }
.accordion dt { color: var(--brown-soft); } .accordion dd { margin: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(32,20,20,.94); z-index: 200; display: none; place-items: center; padding: 2rem; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; max-width: 92vw; object-fit: contain; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: var(--ivory); font-size: 2rem; cursor: pointer; width: 48px; height: 48px; }

/* ---- cart / checkout / account ---- */
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.2rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 72px; aspect-ratio: 4/5; object-fit: cover; }
.cart-line h3 { font-size: 1.2rem; margin: 0 0 .2rem; } .cart-line small { color: var(--brown-soft); display: block; }
.cart-line .qty { margin-top: .6rem; }
.summary { background: var(--ivory-deep); padding: 1.4rem; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin: 0 0 1rem; }
.summary dd { margin: 0; text-align: right; } .summary .total { font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .3rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); padding-block: 1rem 5rem; align-items: start; }
.panel { border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); background: #fff; margin-bottom: 1.5rem; }
.radio { display: flex; gap: .8rem; padding: 1rem; border: 1px solid var(--line); margin-bottom: .6rem; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--brown); }
.radio:has(input:checked) { border-color: var(--burgundy); background: #f5ede8; }
.radio input { accent-color: var(--burgundy); margin-top: .35rem; }
.radio.off { opacity: .55; cursor: not-allowed; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brown-soft); font-weight: 500; }
.account-nav { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; flex-wrap: wrap; }
.account-nav a { padding-block: .8rem; text-decoration: none; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.account-nav a[aria-current="page"] { border-color: var(--burgundy); }
.auth { max-width: 460px; margin: 3rem auto 6rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2rem; } .prose { max-width: 72ch; }
.prose ul { padding-left: 1.2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { font-family: var(--font-display); font-size: 1.3rem; cursor: pointer; }
.faq p { margin: .8rem 0 0; color: var(--brown-soft); }
.status { display: inline-block; padding: .2rem .7rem; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; background: var(--ivory-deep); border: 1px solid var(--gold); }

/* ---- footer ---- */
.site-footer { background: var(--brown); color: var(--gold-soft); padding-top: 4.5rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { font: 500 .75rem/1 var(--font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin: .5rem 0; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--ivory); text-decoration: underline; }
.site-footer .wordmark { color: var(--ivory); } .site-footer .wordmark small { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(199,187,171,.25); padding-block: 1.4rem; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.social { display: flex; gap: .4rem; margin-top: 1.2rem; }
.social a { width: 42px; height: 42px; border: 1px solid rgba(199,187,171,.45); display: grid; place-items: center; }
.social a:hover { background: var(--gold); color: var(--brown); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---- helpers ---- */
.seller { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .3rem 1rem; margin: 0 0 1rem; font-size: .92rem; } .seller dt { color: var(--brown-soft); } .seller dd { margin: 0; }
.full { width: 100%; } .right { text-align: right; } .big { font-size: 2.4rem; } .nolink { text-decoration: none; } .m0 { margin: 0; }
.pb5 { padding-block: 1.5rem 4rem; } .pt2 { padding-top: 2rem; } .mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mb1 { margin-bottom: 1.2rem; } .mb2 { margin-bottom: 2rem; }
.hp { position: absolute; left: -9999px; }
.mini { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .92rem; }
fieldset.opt { border: 0; padding: 0; margin: 0; min-width: 0; } fieldset.opt legend { padding: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; }
.wa-link svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.center { text-align: center; } .small { font-size: .86rem; } .row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.buy { flex-wrap: wrap; }
img, video { height: auto; }
.card a.media img, .tile img, .stage img, .cart-line img, .story figure img, .hero-media img, .hero-media video, .thumbs img { height: 100%; }

/* ---- responsive (mobile-first: larger screens add) ---- */
@media (min-width: 600px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1rem; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-line { grid-template-columns: 96px minmax(0, 1fr) auto; } .cart-line img { width: 96px; }
  .accordion dl { grid-template-columns: 9rem minmax(0, 1fr); }
  .brand img { height: 48px; }
}
@media (min-width: 900px) {
  .bar { min-height: 84px; }
  .brand img { height: 56px; max-width: 320px; }
  .nav-btn, .lang-m, .nav-search, .nav-acc, #nav-t { display: none; }
  .hide-m { display: inline-grid; }
  .lang-d { display: flex; }
  .primary-nav { display: block; position: static; max-height: none; overflow: visible; box-shadow: none; border-top: 1px solid var(--line); background: none; }
  .primary-nav > .wrap > ul { display: flex; justify-content: center; gap: clamp(1.2rem, 3.4vw, 3.2rem); padding: 0; }
  .primary-nav li { position: relative; }
  .primary-nav a.top { padding: .95rem 0; font-size: .8rem; letter-spacing: .2em; border: 0; position: relative; }
  .primary-nav a.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: .6rem; height: 1px; background: var(--burgundy); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .primary-nav li:hover > a.top::after, .primary-nav a.top:focus-visible::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .sub { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); min-width: 230px; background: var(--ivory); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 1rem 0; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; box-shadow: 0 18px 40px rgba(32,20,20,.08); }
  .primary-nav li:hover > .sub, .primary-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .sub a { padding: .5rem 1.6rem; font-size: .95rem; }
  .sub a:hover, .sub a:focus-visible { background: var(--ivory-deep); color: var(--burgundy); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .story { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
  .filter-toggle, #ft { display: none; }
  .filters { display: block; position: sticky; top: 150px; margin: 0; }
  .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); }
  .gallery { grid-template-columns: 84px minmax(0, 1fr); position: sticky; top: 150px; }
  .thumbs { flex-direction: column; order: 0; overflow: visible; } .thumbs button { width: auto; }
  .two-col { grid-template-columns: minmax(0, 1fr) 380px; }
  .summary { position: sticky; top: 150px; padding: 1.8rem; }
  .foot-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .stage { cursor: zoom-in; }
}
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { #search-t { display: none; } }
@media (max-width: 599px) { .buy .btn { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .announce { display: none; } }
/* ---- dark header (must stay AFTER the responsive blocks so it wins the cascade) (the supplied logo is ivory-on-transparent, made for dark backgrounds) ---- */
.site-header { background: var(--brown); color: var(--ivory); border-bottom: 1px solid rgba(199,187,171,.28); }
.site-header .icon-btn, .site-header .wordmark, .site-header .lang { color: var(--ivory); }
.site-header .icon-btn:hover, .site-header .lang a:hover { color: var(--gold); }
.site-header .lang [aria-current] { color: var(--gold); }
.site-header :focus-visible { outline-color: var(--gold); }
.site-header .cart-count { background: var(--gold); color: var(--brown); }
.primary-nav { background: var(--brown); border-top: 1px solid rgba(199,187,171,.22); }
.primary-nav a.top, .nav-acc a { color: var(--ivory); border-color: rgba(199,187,171,.2); }
.primary-nav a[aria-current="page"], .primary-nav a.top:hover { color: var(--gold); }
.primary-nav a.top::after { background: var(--gold); }
.sub { background: var(--brown); border-color: rgba(199,187,171,.28); }
.sub a { color: var(--ivory); } .sub a:hover, .sub a:focus-visible { background: rgba(199,187,171,.14); color: var(--gold); }
.search-panel { background: var(--brown); border-color: rgba(199,187,171,.22); }
.brand img { height: 36px; } @media (min-width: 600px) { .brand img { height: 44px; } } @media (min-width: 900px) { .brand img { height: 52px; } }


/* ---- forms: refined ---- */
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=url], select, textarea { display: block; width: 100%; height: auto; min-height: 50px; padding: .8rem 1rem; line-height: 1.4; border: 1px solid rgba(32,20,20,.28); border-radius: 2px; background: #f8f3ed; color: var(--brown); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
input:not([type]):hover, input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=tel]:hover, textarea:hover, select:hover { border-color: rgba(32,20,20,.55); }
input:not([type]):focus, input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(113,95,83,.22); }
.field { margin-bottom: 1.25rem; }
.field > label { margin-bottom: .5rem; font-size: .75rem; letter-spacing: .16em; font-weight: 500; }
.auth { max-width: 480px; margin: 2rem auto 5rem; }
.auth-card { background: #fff; border: 1px solid rgba(199,187,171,.55); padding: 2rem 1.4rem; box-shadow: 0 18px 40px -26px rgba(32,20,20,.35); position: relative; }
.auth-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(199,187,171,.3); pointer-events: none; }
.auth-card h1 { margin: 0 0 1.6rem; text-align: center; font-size: clamp(1.7rem, 6vw, 2.2rem); }
.auth-card h1::after { content: ""; display: block; width: 44px; height: 1px; background: var(--gold); margin: 1rem auto 0; }
.auth-card .btn { margin-top: .4rem; min-height: 50px; }
.auth-card .check { margin: 0 0 1.2rem; }
.auth-card > p { text-align: center; font-size: .92rem; margin: 1.3rem 0 0; color: var(--brown-soft); }
@media (min-width: 640px) { .auth-card { padding: 2.8rem 2.6rem; } }

/* ---- typography: Cormorant Garamond (large headings) / Bodoni Moda (sub-headings & text) ---- */
h1, .big, .wordmark { font-family: var(--font-display); font-weight: 500; }
h2, h3, h4, h5, .tile span { font-family: var(--font-text); font-weight: 400; letter-spacing: .01em; }
h3, h4, h5, .faq summary { font-family: var(--font-text); font-weight: 500; letter-spacing: .01em; }
body { font-weight: 400; line-height: 1.75; }
strong, b { font-weight: 500; }

button, input, select, textarea, optgroup { font-family: inherit; }


/* footer brand block: logo, tagline and icons share one centre axis */
.foot-grid > div:first-child { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.3rem; }
.foot-grid > div:first-child p { margin: 0; max-width: 30ch; }
.foot-brand { grid-column: auto; grid-row: auto; justify-self: auto; display: block; }
.foot-brand img { height: 46px; width: auto; max-width: 100%; margin: 0 auto; }
.foot-grid > div:first-child .social { margin: .3rem 0 0; justify-content: center; }

/* reviews */
.stars { color: var(--olive); letter-spacing: .12em; white-space: nowrap; }
.rv-sum { font-size: .95rem; }
.review { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.review p { margin: .4rem 0 0; }
#yorumlar .panel { margin-top: 1.6rem; max-width: 640px; }

/* cart & summary polish */
.cart-line .line-total { grid-column: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.cart-line .line-total br { display: none; }
@media (min-width: 600px) { .cart-line .line-total { grid-column: auto; display: block; text-align: right; } .cart-line .line-total br { display: inline; } }
.summary dl { column-gap: 0; }
.summary dd { padding-left: 1rem; }
.summary dt.total, .summary dd.total { margin-top: .5rem; }
.panel > h3 { margin-bottom: 1.2rem; }

/* language button: shows the OTHER language (TR <-> EN) as one 44px target */
.lang-d a { width: 44px; height: 44px; min-width: 44px; display: inline-grid; place-items: center; }
/* footer: four equal columns, each centred; copyright sits at the far left */
.foot-grid { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
@media (min-width: 600px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer ul { text-align: center; }
.social { justify-content: center; }
.foot-bottom { justify-content: flex-start; text-align: left; }
.foot-grid > div:first-child { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.3rem; }
.foot-grid > div:first-child p { margin: 0; max-width: 30ch; }
.foot-brand { grid-column: auto; grid-row: auto; justify-self: auto; display: block; }
.foot-brand img { height: 46px; width: auto; max-width: 100%; margin: 0 auto; }
.foot-grid > div:first-child .social { margin: .3rem 0 0; justify-content: center; }

input[type=search]::-webkit-search-cancel-button{display:none}

/* language toggle: one control; header on desktop, bottom-right of the footer on mobile */
.lang-f { display: flex; } .foot-bottom { justify-content: space-between; align-items: center; }
@media (min-width:900px){ .lang-f{display:none;} }
.lang-f a { width: 44px; height: 44px; display: inline-grid; place-items: center; }
@media (max-width: 899px) { .bar { grid-template-columns: 44px minmax(0,1fr) auto; } .brand img { height: 30px; max-width: 100%; } .tools .icon-btn { width: 40px; } }
/* mobile menu: lock the page behind it and fill the screen */
@media (max-width: 899px) {
  body:has(#nav-t:checked) { overflow: hidden; }
  .primary-nav { min-height: calc(100dvh - 65px); max-height: calc(100dvh - 65px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
/* hero photo: keep the napkin in frame, darken the text side */
.hero-media img { object-position: 50% 62%; opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(32,20,20,.82) 0%, rgba(32,20,20,.55) 55%, rgba(32,20,20,.25) 100%); }
@media (max-width: 899px) { .hero-media::after { background: linear-gradient(180deg, rgba(32,20,20,.55), rgba(32,20,20,.78)); } }

/* sticky footer: short pages (empty cart…) never show bare background below it */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; } body > .site-footer { flex: none; }
/* compact search: slim underlined field, icon submit */
.search-panel { padding: .55rem 0; }
.search-panel form { max-width: 560px; margin-inline: auto; gap: 0; border-bottom: 1px solid var(--gold); align-items: center; }
.search-panel input[type=search] { background: transparent; border: 0; box-shadow: none; color: var(--ivory); padding: .7rem .2rem; min-height: 44px; font-size: 1rem; letter-spacing: .04em; }
.search-panel input[type=search]::placeholder { color: rgba(199,187,171,.7); }
.search-panel input[type=search]:focus { outline: none; }
.search-panel form:focus-within { border-color: var(--ivory); }
.search-panel .sbtn { flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; color: var(--gold); cursor: pointer; }
.search-panel .sbtn:hover, .search-panel .sbtn:focus-visible { color: var(--ivory); }
.search-panel .sbtn svg { width: 20px; height: 20px; }
.search-panel .sbtn svg{stroke:currentColor;fill:none;stroke-width:1.4}

/* ---- search tab: drops down from the header, compact, same dark palette ---- */
.search-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 0; background: transparent; border: 0; pointer-events: none; }
.search-panel .wrap { display: flex; justify-content: flex-end; }
.sp-card { pointer-events: auto; width: min(100%, 520px); max-height: calc(100dvh - 90px); overflow: auto; overscroll-behavior: contain; background: var(--brown); border: 1px solid rgba(199,187,171,.3); border-top: 0; box-shadow: 0 24px 40px rgba(32,20,20,.35); padding: .2rem 1.2rem 1.1rem; }
.search-panel form { max-width: none; margin: 0; }
.sp-h { margin: 1.1rem 0 .6rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.sp-row { display: flex; justify-content: space-between; align-items: baseline; }
.sp-clear { background: none; border: 0; color: var(--gold); font-size: .8rem; cursor: pointer; min-height: 44px; padding: 0 .2rem; text-decoration: underline; text-underline-offset: 3px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.sp-chips a, .sp-recent a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid rgba(199,187,171,.4); color: var(--ivory); text-decoration: none; font-size: .88rem; letter-spacing: .06em; }
.sp-chips a:hover, .sp-recent a:hover { background: rgba(199,187,171,.14); border-color: var(--gold); }
.sp-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sp-list { list-style: none; margin: 0; padding: 0; }
.sp-list a { display: flex; align-items: center; gap: .9rem; min-height: 60px; padding: .4rem 0; color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(199,187,171,.16); }
.sp-list a:hover, .sp-list a:focus-visible { color: var(--gold); }
.sp-list img { width: 48px; height: 48px; object-fit: cover; flex: none; }
.sp-list span { flex: 1; min-width: 0; } .sp-list small { color: var(--gold); font-size: .9rem; white-space: nowrap; }
.sp-all { display: flex; align-items: center; min-height: 48px; margin-top: .3rem; color: var(--gold); text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.sp-none { margin: 1rem 0 .4rem; color: var(--gold); }
.sp-pop[hidden] { display: none; }
.sp-card :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 899px) { .sp-card { width: 100%; } .search-panel .wrap { padding-inline: 0; } }
html { font-synthesis: none; }

/* sign-in / register: the photo sits behind the cream area, like the home hero */
.auth-bg { position: relative; isolation: isolate; overflow: hidden; background: var(--brown); padding: 3rem 0 5rem; flex: 1 0 auto; }
.auth-img { position: absolute; inset: 0; z-index: -1; }
.auth-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.auth-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,20,20,.62), rgba(32,20,20,.8)); }
.auth-bg .auth { margin: 0 auto; }
main:has(> .auth-bg) { display: flex; flex-direction: column; }
/* auth pages: the photo is pinned to the window, so every sign-in/register/reset page shows the exact same picture no matter how tall the form is */
.auth-bg { clip-path: inset(0); background: transparent; }
.auth-img { position: fixed; inset: 0; width: 100%; height: 100lvh; z-index: -1; }
.auth-img::after { background: radial-gradient(ellipse at 50% 45%, rgba(32,20,20,.5) 0%, rgba(32,20,20,.78) 100%); }
.auth-card { box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.auth-card h1 + p { margin-bottom: 1.3rem; }

/* order progress */
.track { list-style: none; margin: 1.6rem 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.track li { position: relative; text-align: center; padding-top: 1.9rem; font-size: .92rem; color: var(--muted, #8a7e72); }
.track li::before { content: ""; position: absolute; top: .55rem; left: -50%; width: 100%; height: 2px; background: currentColor; opacity: .25; }
.track li:first-child::before { display: none; }
.track .dot { position: absolute; top: 0; left: 50%; width: 1.1rem; height: 1.1rem; margin-left: -.55rem; border-radius: 50%; border: 2px solid currentColor; background: var(--bg, #fff); z-index: 1; }
.track li.done, .track li.cur { color: var(--ink, #201414); }
.track li.done::before, .track li.cur::before { opacity: 1; }
.track li.done .dot { background: currentColor; }
.track li.cur .dot { background: var(--accent-2, #462e2e); border-color: var(--accent-2, #462e2e); box-shadow: 0 0 0 4px rgba(70,46,46,.15); }
.track strong { display: block; font-weight: 500; line-height: 1.25; }
.track small { display: block; margin-top: .2rem; color: var(--muted, #8a7e72); font-size: .78rem; }
.trk { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; background: rgba(0,0,0,.05); padding: .15rem .45rem; border-radius: 4px; }
.linkbtn { background: none; border: 0; padding: 0 .3rem; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 480px) { .track li { font-size: .8rem; } }
