/*
  WARADA visual system
  --------------------
  The site deliberately avoids a centered max-width ecommerce template.
  Large editorial type, layered cards, rotated labels and unequal product modules create a premium
  fashion/warehouse identity while the high-contrast controls preserve commercial usability.
*/
:root {
  --ink: #161816;
  --paper: #eee9dd;
  --acid: #c8ff2e;
  --fog: #b7b9b2;
  --silver: #d8d8d2;
  --white: #fafaf7;
  --danger: #ff6c55;
  --line: rgba(22, 24, 22, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  --sans: "Noto Sans Thai", Arial, sans-serif;
  --display: "Archivo Black", "Noto Sans Thai", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}
body.sheet-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; background: var(--acid); padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1.4fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem 2.4vw;
  color: var(--white);
}
.brand-mark { display: flex; align-items: center; gap: .85rem; width: max-content; }
.brand-mark__stamp { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--display); font-size: .75rem; }
.brand-mark__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark__text strong { font-size: .77rem; letter-spacing: .08em; }
.brand-mark__text small { margin-top: .25rem; opacity: .72; font-size: .68rem; }
.rail-nav { display: flex; gap: 1.6rem; font-size: .78rem; font-weight: 600; }
.rail-nav a { position: relative; }
.rail-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.3rem; height: 1px; background: var(--acid); transition: right .25s; }
.rail-nav a:hover::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .8rem; }
.language-toggle, .cart-chip { color: inherit; background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: .65rem .9rem; cursor: pointer; }
.language-toggle__active { color: var(--acid); font-weight: 700; }
.cart-chip { display: flex; gap: .6rem; background: var(--acid); color: var(--ink); border-color: var(--acid); }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: 13vh 4vw 7vh;
}
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 65% 35%, rgba(200,255,46,.12), transparent 25%), linear-gradient(115deg, transparent 55%, rgba(255,255,255,.04) 55%); }
.hero__noise { position: absolute; inset: 0; opacity: .11; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }
.hero__copy { position: relative; z-index: 4; width: 58%; margin-top: 8vh; }
.eyebrow { font-size: .72rem; letter-spacing: .18em; color: var(--acid); }
.hero h1 { margin: 1rem 0 1.2rem; font-family: var(--display); font-size: clamp(4rem, 8vw, 8.5rem); line-height: .84; letter-spacing: -.055em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1px var(--white); transform: translateX(10%); }
.hero__lead { width: min(38rem, 90%); line-height: 1.75; color: rgba(255,255,255,.7); }
.hero__actions { display: flex; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .8rem 1.15rem; border: 1px solid transparent; border-radius: 2px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--acid); color: var(--ink); }
.button--ghost { border-color: rgba(255,255,255,.45); color: var(--white); background: rgba(255,255,255,.03); }
.button--ghost-dark { border-color: var(--ink); background: transparent; }
.button--full { width: 100%; }

.hero-card { position: absolute; margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.hero-card img { height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.05); }
.hero-card figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.hero-card figcaption span { font-size: .65rem; letter-spacing: .16em; }
.hero-card figcaption strong { font-size: .85rem; }
.hero-card--shoe { right: 7vw; top: 15vh; width: 31vw; height: 50vh; transform: rotate(3deg); }
.hero-card--garment { right: 25vw; bottom: 1vh; width: 20vw; height: 38vh; transform: rotate(-5deg); }
.hero-ledger { position: absolute; right: 2.5vw; bottom: 5vh; z-index: 4; width: 20vw; min-width: 240px; border-top: 1px solid rgba(255,255,255,.25); }
.hero-ledger div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .72rem; }
.hero-ledger span { color: rgba(255,255,255,.55); }
.scroll-cue { position: absolute; left: 2vw; bottom: 4vh; writing-mode: vertical-rl; font-size: .62rem; letter-spacing: .18em; opacity: .6; }
.scroll-cue span { display: inline-block; width: 1px; height: 50px; background: currentColor; margin-bottom: .5rem; }

.section-shell { width: min(94vw, 1600px); margin-inline: auto; }
.manifesto { display: grid; grid-template-columns: .45fr 1.4fr .8fr; gap: 5vw; padding-block: 9rem; border-bottom: 1px solid var(--line); }
.manifesto__index, .section-heading p, .wholesale-grid__intro > p, .estimator-panel > p, .contact-stage__copy > p, .terms-preview > p { font-size: .68rem; letter-spacing: .15em; }
.manifesto__statement p { margin: 0; font-size: .9rem; }
.manifesto h2 { margin: .8rem 0 0; font-size: clamp(2.2rem, 4.6vw, 5.2rem); line-height: 1.03; letter-spacing: -.045em; }
.manifesto__proof { align-self: end; line-height: 1.8; }
.manifesto__seal { display: inline-block; margin-top: 2rem; border: 1px solid var(--ink); border-radius: 999px; padding: .55rem .9rem; font-size: .62rem; letter-spacing: .12em; }

.shop-section { padding-block: 8rem; background: #d8d9d2; }
.section-heading { display: grid; grid-template-columns: 1.2fr .6fr; align-items: end; gap: 4vw; }
.section-heading h2 { margin: .4rem 0 0; font-size: clamp(3rem, 6vw, 7rem); line-height: .9; letter-spacing: -.05em; }
.section-heading > p { max-width: 28rem; line-height: 1.8; letter-spacing: 0; font-size: .83rem; }
.product-stream { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; width: min(96vw, 1680px); margin: 4rem auto 0; }
.product-card { min-width: 0; background: var(--white); border: 1px solid rgba(0,0,0,.08); }
.product-card:nth-child(1), .product-card:nth-child(5) { grid-column: span 5; }
.product-card:nth-child(2), .product-card:nth-child(4) { grid-column: span 3; transform: translateY(4rem); }
.product-card:nth-child(3), .product-card:nth-child(6) { grid-column: span 4; }
.product-card__image-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #ccc; }
.product-card:nth-child(1) .product-card__image-wrap, .product-card:nth-child(5) .product-card__image-wrap { aspect-ratio: 5 / 4; }
.product-card__image { height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card__image { transform: scale(1.04); }
.product-card__condition { position: absolute; top: .8rem; left: .8rem; background: var(--acid); padding: .35rem .55rem; font-size: .66rem; font-weight: 700; }
.product-card__body { padding: 1rem; }
.product-card__category { margin: 0 0 .5rem; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: #686b65; }
.product-card__name { margin: 0; font-size: 1.1rem; }
.product-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.product-card__meta strong { font-size: 1.3rem; }
.add-button { width: 100%; margin-top: 1rem; display: flex; justify-content: space-between; border: 0; border-top: 1px solid var(--line); background: transparent; padding: .9rem 0 0; cursor: pointer; font-weight: 700; }
.add-button b { font-size: 1.3rem; }

.wholesale-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1rem; padding-block: 9rem; }
.wholesale-grid__intro { grid-row: span 2; padding: 2rem 4vw 2rem 0; }
.wholesale-grid__intro h2 { margin: 1rem 0; font-size: clamp(3rem, 5vw, 6rem); line-height: .95; letter-spacing: -.05em; }
.wholesale-grid__intro > p:nth-of-type(2) { max-width: 34rem; line-height: 1.8; }
.text-link { display: inline-block; margin-top: 1.5rem; padding-bottom: .25rem; border-bottom: 1px solid currentColor; font-weight: 700; }
.text-link--button { border-width: 0 0 1px; background: transparent; padding-inline: 0; cursor: pointer; }
.lot-card { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
.lot-card span { font-size: .67rem; letter-spacing: .15em; }
.lot-card strong { font-family: var(--display); font-size: clamp(2rem, 4vw, 4.5rem); }
.lot-card p { margin: 0; }
.lot-card--light { background: var(--acid); }
.lot-card--heavy { background: var(--ink); color: var(--white); }
.lot-card--single { grid-column: 2 / 4; background: #bfc0ba; }

.sell-section { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 800px; background: var(--ink); color: var(--white); }
.sell-section__visual { position: relative; overflow: hidden; }
.sell-section__visual img { height: 100%; object-fit: cover; opacity: .78; }
.rotating-label { position: absolute; right: -7rem; bottom: 8rem; background: var(--acid); color: var(--ink); padding: .8rem 5rem; transform: rotate(-90deg); font-size: .7rem; letter-spacing: .17em; white-space: nowrap; }
.estimator-panel { padding: 7rem 7vw; align-self: center; }
.estimator-panel h2 { margin: .6rem 0 2rem; font-size: clamp(2.6rem, 4vw, 5rem); line-height: 1; letter-spacing: -.04em; }
.estimator-panel form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.estimator-panel label { display: flex; flex-direction: column; gap: .5rem; font-size: .78rem; color: rgba(255,255,255,.72); }
.estimator-panel label:first-child, .estimator-panel button { grid-column: 1 / -1; }
.estimator-panel select, .estimator-panel input { width: 100%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: var(--white); padding: .9rem; outline: none; }
.estimator-panel select option { color: var(--ink); }
.estimator-panel .is-hidden { display: none; }
.estimate-result { margin-top: 2rem; padding: 1.5rem; border-left: 4px solid var(--acid); background: rgba(255,255,255,.06); }
.estimate-result span { font-size: .72rem; color: rgba(255,255,255,.6); }
.estimate-result strong { display: block; margin: .3rem 0; font-size: clamp(2rem, 4vw, 4rem); color: var(--acid); }
.estimate-result p { margin: 0; font-size: .76rem; line-height: 1.6; color: rgba(255,255,255,.58); }

.contact-stage { display: grid; grid-template-columns: .78fr 1.22fr; gap: 5vw; padding-block: 10rem; }
.contact-stage__copy { align-self: center; }
.contact-stage__copy h2 { margin: .8rem 0 2rem; font-size: clamp(3rem, 5vw, 6rem); line-height: .95; letter-spacing: -.05em; }
.contact-stage address { display: flex; flex-direction: column; gap: .65rem; font-style: normal; line-height: 1.65; }
.contact-stage address span { max-width: 34rem; }
.contact-stage address a { font-weight: 700; }
.contact-actions { display: flex; gap: .7rem; margin-top: 2rem; }
.map-card { position: relative; min-height: 620px; transform: rotate(1.5deg); box-shadow: var(--shadow); background: var(--silver); }
.map-card iframe { width: 100%; height: 100%; min-height: 620px; border: 0; filter: grayscale(1) contrast(1.05); }
.map-card__label { position: absolute; left: -2rem; bottom: 2.5rem; background: var(--acid); padding: 1rem 1.2rem; box-shadow: 10px 10px 0 var(--ink); }
.map-card__label span { display: block; font-size: .62rem; letter-spacing: .14em; }
.map-card__label strong { display: block; margin-top: .2rem; }

.terms-preview { display: grid; grid-template-columns: .4fr 1.6fr; gap: 4vw; padding-block: 8rem; border-top: 1px solid var(--line); }
.terms-preview h2 { margin: 0; font-size: clamp(3rem, 6vw, 7rem); line-height: .95; letter-spacing: -.05em; }
.terms-preview div > p { max-width: 48rem; line-height: 1.8; }
.site-footer { display: grid; grid-template-columns: 1.3fr .6fr .7fr; gap: 2rem; padding: 2.5rem 3vw 7rem; background: var(--ink); color: var(--white); font-size: .72rem; }
.site-footer > div { display: flex; flex-direction: column; gap: .35rem; }
.site-footer > div:last-child { align-items: flex-end; }
.site-footer button { color: inherit; border: 0; background: transparent; padding: 0; cursor: pointer; }

.cart-dock { position: fixed; z-index: 50; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(620px, calc(100vw - 2rem)); display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; border: 1px solid rgba(255,255,255,.22); background: rgba(22,24,22,.94); backdrop-filter: blur(14px); color: var(--white); padding: .8rem 1rem; box-shadow: 0 15px 50px rgba(0,0,0,.32); cursor: pointer; }
.cart-dock > span:nth-child(2) { color: var(--acid); font-weight: 800; }
.cart-dock > span:last-child { justify-self: end; font-size: .72rem; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.bottom-sheet { position: fixed; z-index: 90; left: 50%; bottom: 0; width: min(760px, 100%); max-height: 88vh; overflow: auto; transform: translate(-50%, 105%); background: var(--white); border-radius: 18px 18px 0 0; padding: .8rem 1.4rem 1.5rem; box-shadow: 0 -20px 80px rgba(0,0,0,.3); transition: transform .34s cubic-bezier(.22,.8,.22,1); }
.bottom-sheet.is-open { transform: translate(-50%, 0); }
.bottom-sheet__handle { width: 56px; height: 5px; margin: 0 auto 1rem; border-radius: 999px; background: #c7c7c2; }
.bottom-sheet__header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.bottom-sheet__header p { margin: 0; font-size: .62rem; letter-spacing: .15em; }
.bottom-sheet__header h2 { margin: .25rem 0 0; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.5rem; cursor: pointer; }
.cart-items { display: grid; gap: .8rem; padding: 1rem 0; }
.cart-empty { padding: 3rem 1rem; text-align: center; color: #6a6d67; }
.cart-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 1rem; align-items: center; }
.cart-row img { width: 74px; height: 74px; object-fit: cover; }
.cart-row h3 { margin: 0; font-size: .93rem; }
.cart-row p { margin: .25rem 0; font-size: .75rem; color: #6a6d67; }
.cart-row__controls { display: flex; align-items: center; gap: .5rem; }
.cart-row__controls button { width: 28px; height: 28px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.cart-row__price { text-align: right; font-weight: 800; }
.cart-row__remove { display: block; margin: .35rem 0 0 auto; border: 0; background: transparent; color: var(--danger); font-size: .7rem; cursor: pointer; }
.cart-summary { border-top: 1px solid var(--line); padding-top: 1rem; }
.cart-summary > div { display: flex; justify-content: space-between; font-size: 1.2rem; }
.cart-summary p { font-size: .72rem; color: #6a6d67; }

.legal-dialog { width: min(780px, calc(100% - 2rem)); max-height: 86vh; border: 0; padding: 2rem; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.legal-dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.legal-dialog__close { position: sticky; top: 0; float: right; background: var(--paper); }
.legal-dialog h2 { font-size: 2.2rem; }
.legal-dialog h3 { margin-top: 2rem; }
.legal-dialog p, .legal-dialog li { line-height: 1.75; }
.legal-dialog small { display: block; margin-top: 2rem; color: #6a6d67; }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .rail-nav { display: none; }
  .hero__copy { width: 72%; }
  .hero-card--shoe { right: -5vw; width: 42vw; }
  .hero-card--garment { right: 18vw; width: 27vw; }
  .manifesto { grid-template-columns: 1fr 2fr; }
  .manifesto__proof { grid-column: 2; }
  .wholesale-grid { grid-template-columns: 1fr 1fr; }
  .wholesale-grid__intro { grid-column: 1 / -1; grid-row: auto; }
  .lot-card--single { grid-column: 1 / -1; }
  .sell-section { grid-template-columns: 1fr; }
  .sell-section__visual { min-height: 55vh; }
  .contact-stage { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { padding: 1rem; }
  .brand-mark__text small, .cart-chip span { display: none; }
  .hero { min-height: 920px; padding-inline: 1rem; }
  .hero__copy { width: 100%; margin-top: 12vh; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 6rem); }
  .hero h1 .outline { transform: none; }
  .hero__lead { width: 100%; font-size: .9rem; }
  .hero-card--shoe { top: 52%; right: -8%; width: 72vw; height: 300px; }
  .hero-card--garment { left: -5%; right: auto; bottom: 5%; width: 46vw; height: 230px; }
  .hero-ledger { display: none; }
  .scroll-cue { display: none; }
  .section-shell { width: calc(100% - 2rem); }
  .manifesto { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 5rem; }
  .manifesto__proof { grid-column: auto; }
  .section-heading { grid-template-columns: 1fr; }
  .product-stream { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 1rem 4rem; }
  .product-card { min-width: 82vw; transform: none !important; scroll-snap-align: center; }
  .product-card__image-wrap, .product-card:nth-child(1) .product-card__image-wrap, .product-card:nth-child(5) .product-card__image-wrap { aspect-ratio: 4 / 5; }
  .shop-section { padding-block: 5rem 1rem; }
  .wholesale-grid { grid-template-columns: 1fr; padding-block: 5rem; }
  .lot-card--single { grid-column: auto; }
  .estimator-panel { padding: 5rem 1rem; }
  .estimator-panel form { grid-template-columns: 1fr; }
  .estimator-panel label, .estimator-panel label:first-child, .estimator-panel button { grid-column: auto; }
  .contact-stage { padding-block: 6rem; }
  .map-card, .map-card iframe { min-height: 430px; }
  .map-card__label { left: .8rem; right: .8rem; bottom: 1rem; box-shadow: 6px 6px 0 var(--ink); }
  .terms-preview { grid-template-columns: 1fr; padding-block: 5rem; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 7rem; }
  .site-footer > div:last-child { align-items: flex-start; }
  .cart-dock { grid-template-columns: 1fr auto; }
  .cart-dock > span:last-child { display: none; }
  .cart-row { grid-template-columns: 60px 1fr; }
  .cart-row img { width: 60px; height: 60px; }
  .cart-row__price { grid-column: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* Catalogue controls: condition is the primary buying decision; category is secondary. */
.catalog-toolbar{display:grid;grid-template-columns:1fr auto auto;gap:1rem;align-items:end;margin-bottom:2rem}
.condition-filters{display:flex;flex-wrap:wrap;gap:.55rem}
.filter-chip,.outline-button{border:1px solid currentColor;background:transparent;color:inherit;padding:.8rem 1rem;font:700 .72rem/1 var(--font-display);letter-spacing:.08em;cursor:pointer;text-transform:uppercase}
.filter-chip.is-active{background:var(--ink);color:var(--paper)}
.category-select{display:grid;gap:.35rem;font-size:.65rem;letter-spacing:.08em;text-transform:uppercase}
.category-select select{min-width:220px;border:1px solid var(--ink);background:var(--paper);padding:.78rem;font:inherit;color:var(--ink)}
.catalog-count{font:700 .8rem/1 var(--font-display);padding-bottom:.8rem}
.catalog-more{display:flex;justify-content:center;padding:2rem 1rem 5rem}
.outline-button{min-width:220px}
.product-card__description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em;margin:.55rem 0;color:var(--muted);font-size:.82rem;line-height:1.45}
.product-card[data-condition="used"] .product-card__condition{background:#d9ff3f;color:#111}
.product-card[data-condition="new"] .product-card__condition{background:#111;color:#fff}
@media (max-width:760px){.catalog-toolbar{grid-template-columns:1fr}.category-select select{width:100%;min-width:0}.catalog-count{padding:0}.condition-filters{display:grid;grid-template-columns:repeat(3,1fr)}.filter-chip{padding:.75rem .35rem;font-size:.58rem}}
