:root {
  --teak: #123c35;
  --teak-dark: #082a26;
  --jade: #157461;
  --jade-light: #d9ece5;
  --gold: #f0bd52;
  --gold-soft: #f8e5b5;
  --porcelain: #f6f7f2;
  --paper: #ffffff;
  --ink: #17221f;
  --muted: #687570;
  --line: #dce2dd;
  --alert: #b5483d;
  --shadow: 0 24px 70px rgba(8, 42, 38, .12);
  --radius: 18px;
  --shell: min(1240px, calc(100vw - 48px));
  font-family: "Bricolage Grotesque", "Noto Sans Myanmar", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--porcelain);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--porcelain); color: var(--ink); line-height: 1.55; }
html[lang="my"] body { font-family: "Noto Sans Myanmar", sans-serif; }
html[lang="zh"] body { font-family: "Noto Sans SC", "Bricolage Grotesque", sans-serif; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; background: var(--gold); color: var(--teak-dark); padding: 12px 18px; z-index: 1000; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.utility-bar { background: var(--teak-dark); color: rgba(255,255,255,.76); font-size: 11px; letter-spacing: .055em; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.utility-links { display: flex; align-items: center; gap: 13px; }
.utility-links > span { padding-right: 14px; border-right: 1px solid rgba(255,255,255,.16); }
.utility-links a { color: rgba(255,255,255,.62); transition: color .2s ease; }
.utility-links a:hover, .utility-links a.active { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246,247,242,.92); border-bottom: 1px solid rgba(18,60,53,.1); backdrop-filter: blur(18px); }
.nav-row { min-height: 82px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skewY(-10deg); }
.brand-mark i { background: var(--teak); border-radius: 2px 2px 7px 2px; }
.brand-mark i:nth-child(2) { background: var(--jade); transform: translateY(5px); }
.brand-mark i:nth-child(3) { background: var(--gold); transform: translateY(10px); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 23px; letter-spacing: .11em; font-weight: 700; }
.brand-copy small { margin-top: 5px; font-size: 7px; font-weight: 700; letter-spacing: .19em; color: var(--muted); }
.nav-search { max-width: 380px; flex: 1; height: 44px; display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 0 17px; transition: border .2s, box-shadow .2s; }
.nav-search:focus-within { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(21,116,97,.08); }
.nav-search span { font-size: 24px; line-height: 1; transform: rotate(-15deg); color: var(--teak); }
.nav-search input { min-width: 0; flex: 1; border: 0; outline: none; background: none; color: var(--ink); font-size: 13px; }
.nav-search input::placeholder { color: #8d9894; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 27px; font-size: 13px; font-weight: 600; }
.main-nav > a:not(.cart-link) { position: relative; padding-block: 30px; }
.main-nav > a:not(.cart-link)::after { content: ""; position: absolute; bottom: 22px; left: 0; right: 100%; height: 2px; background: var(--gold); transition: right .25s ease; }
.main-nav > a:hover::after, .main-nav > a.active::after { right: 0; }
.cart-link { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--teak); color: white; position: relative; font-size: 21px; }
.cart-link b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 100px; background: var(--gold); color: var(--teak-dark); font-size: 10px; }
.menu-toggle { display: none; border: 0; background: none; width: 38px; height: 38px; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; }

.toast { position: fixed; z-index: 300; top: 132px; right: 24px; max-width: min(420px, calc(100vw - 48px)); padding: 14px 18px; color: white; background: var(--teak); border-radius: 12px; box-shadow: var(--shadow); animation: toast-in .35s ease both; }
.toast.error { background: var(--alert); }
.toast.info { background: #315c72; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }

.hero { overflow: hidden; background: var(--porcelain); }
.hero-grid { min-height: 670px; display: grid; grid-template-columns: .96fr 1.04fr; align-items: stretch; gap: 72px; }
.hero-copy { padding: 88px 0 62px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 9px; color: var(--jade); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow > span { width: 24px; height: 2px; background: var(--gold); }
.eyebrow.light { color: var(--gold-soft); }
.hero h1 { max-width: 690px; margin: 0; color: var(--teak-dark); font-family: "Bricolage Grotesque", "Noto Sans Myanmar", "Noto Sans SC", sans-serif; font-size: clamp(52px, 5.1vw, 82px); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
html[lang="my"] .hero h1 { line-height: 1.35; letter-spacing: -.025em; font-size: clamp(42px, 4.1vw, 68px); }
html[lang="zh"] .hero h1 { letter-spacing: -.07em; line-height: 1.08; }
.hero h1 em { color: var(--jade); font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; height: 8px; left: 4%; right: -2%; bottom: -4px; background: var(--gold); transform: skewX(-19deg); opacity: .82; z-index: -1; }
.hero-lede { max-width: 585px; margin: 31px 0 0; font-size: 17px; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--teak); color: white; box-shadow: 0 14px 34px rgba(18,60,53,.18); }
.button.primary:hover { background: var(--jade); box-shadow: 0 17px 38px rgba(18,60,53,.23); }
.button.primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button.gold { background: var(--gold); color: var(--teak-dark); }
.button.outline { border-color: var(--teak); color: var(--teak); }
.button.wide { width: 100%; }
.text-link { font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); padding: 13px 2px; }
.text-link span { margin-left: 12px; color: var(--jade); }
.hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: auto; padding-top: 55px; }
.hero-trust div { padding: 0 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.hero-trust div:first-child { padding-left: 0; border: 0; }
.hero-trust b { color: var(--teak); font-size: 20px; line-height: 1; }
.hero-trust span { margin-top: 7px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.hero-stage { min-width: 0; position: relative; isolation: isolate; background: var(--teak); overflow: hidden; }
.hero-stage::before { content: ""; position: absolute; inset: 0; opacity: .21; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 58px 58px; }
.hero-stage::after { content: ""; position: absolute; width: 570px; height: 570px; border: 1px solid rgba(240,189,82,.3); border-radius: 50%; left: 9%; top: 4%; }
.power-line { position: absolute; z-index: 4; top: 29px; left: 31px; right: 31px; height: 1px; background: rgba(240,189,82,.5); }
.power-line::before, .power-line::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.power-line::before { left: 0; } .power-line::after { right: 0; }
.power-line span { position: absolute; top: 8px; left: 0; color: var(--gold); font: 600 9px/1 "Bricolage Grotesque"; letter-spacing: .1em; }
.hero-product { position: absolute; z-index: 3; }
.hero-product img { width: 100%; filter: drop-shadow(0 28px 30px rgba(2,18,16,.3)); }
.hero-product > span { position: absolute; display: block; padding: 5px 8px; background: var(--gold); color: var(--teak-dark); font: 700 8px/1 "Bricolage Grotesque"; letter-spacing: .08em; white-space: nowrap; }
.hero-tv { width: 66%; right: 5%; top: 13%; }
.hero-tv > span { top: 11%; right: -5px; }
.hero-fridge { width: 40%; left: 12%; bottom: 7%; }
.hero-fridge > span { left: -10px; top: 33%; }
.hero-solar { width: 45%; right: -2%; bottom: 4%; }
.hero-solar > span { right: 8%; bottom: 10%; }
.stage-caption { position: absolute; z-index: 5; right: 31px; bottom: 26px; left: 31px; display: flex; justify-content: space-between; color: rgba(255,255,255,.67); font-size: 9px; letter-spacing: .12em; }
.stage-caption strong { color: var(--gold); }

.assurance-strip { background: var(--paper); border-block: 1px solid var(--line); }
.assurance-grid { min-height: 108px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.assurance-grid > div { min-height: 45px; display: flex; align-items: center; gap: 17px; padding-left: 44px; border-left: 1px solid var(--line); }
.assurance-grid > div:first-child { padding-left: 0; border-left: 0; }
.assurance-grid > div > span { width: 41px; height: 41px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--jade); font-size: 18px; }
.assurance-grid strong, .assurance-grid small { display: block; }
.assurance-grid strong { font-size: 13px; }
.assurance-grid small { color: var(--muted); font-size: 11px; margin-top: 3px; }

.section { padding-block: 90px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 35px; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head h2 { margin: 0; color: var(--teak-dark); font-size: clamp(34px, 3.5vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.section-head > a { padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--teak); font-size: 12px; font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); background: var(--paper); }
.category-tile { min-height: 174px; padding: 24px 18px 17px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); transition: background .25s ease, color .25s ease, transform .25s ease; }
.category-tile:last-child { border: 0; }
.category-tile:hover { background: var(--jade-light); transform: translateY(-5px); box-shadow: 0 16px 35px rgba(8,42,38,.08); }
.category-tile.solar-tile { background: var(--gold-soft); }
.category-icon { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--jade); font-size: 20px; background: rgba(255,255,255,.7); }
.category-tile strong { font-size: 14px; line-height: 1.4; }
.category-tile small { align-self: flex-end; color: #9ba49f; font: 600 9px/1 "Bricolage Grotesque"; letter-spacing: .1em; }

.products-section { background: #edf0eb; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { min-width: 0; background: var(--paper); border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(8,42,38,.09); border-color: var(--line); }
.product-image { position: relative; aspect-ratio: 1 / .93; display: grid; place-items: center; overflow: hidden; background: #f2f3ef; }
.product-image::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(18,60,53,.06)); }
.product-image img { width: 86%; height: 86%; object-fit: contain; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-badge { position: absolute; z-index: 2; left: 15px; top: 15px; padding: 6px 9px; background: var(--teak); color: white; border-radius: 4px; font-size: 10px; font-weight: 700; }
.product-meta { padding: 18px; }
.product-kicker { min-height: 18px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; letter-spacing: .035em; text-transform: uppercase; }
.product-kicker span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-kicker span:last-child { color: var(--jade); flex: 0 0 auto; }
.product-card h3 { min-height: 48px; margin: 9px 0 7px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.price-row { min-height: 26px; display: flex; align-items: baseline; gap: 9px; }
.price-row strong { color: var(--teak); font-size: 18px; }
.price-row del { color: #98a29e; font-size: 11px; }
.quick-add { margin-top: 15px; }
.quick-add button { width: 100%; height: 41px; display: flex; justify-content: space-between; align-items: center; padding: 0 13px; border: 1px solid var(--line); background: transparent; color: var(--teak); border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 700; transition: background .2s, color .2s; }
.quick-add button:hover { background: var(--teak); color: white; }
.quick-add button span { font-size: 18px; font-weight: 400; }

.seller-callout { min-height: 360px; margin-block: 90px; padding: 62px 70px; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; background: var(--teak); color: white; }
.seller-callout h2 { max-width: 690px; margin: 0; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.06; letter-spacing: -.05em; }
.seller-callout > div:last-child { position: relative; z-index: 2; }
.seller-callout > div:last-child p { margin: 0 0 25px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; }
.seller-pattern { position: absolute; z-index: -1; inset: 0; display: flex; justify-content: space-around; align-items: center; color: transparent; -webkit-text-stroke: 1px rgba(240,189,82,.15); font: 700 360px/1 "Bricolage Grotesque"; transform: rotate(-8deg); }

.site-footer { padding: 68px 0 25px; background: var(--teak-dark); color: rgba(255,255,255,.7); }
.brand-light .brand-mark i { background: var(--gold-soft); }
.brand-light .brand-mark i:nth-child(2) { background: var(--jade); }
.brand-light .brand-mark i:nth-child(3) { background: var(--gold); }
.brand-light .brand-copy strong { color: white; }
.brand-light .brand-copy small { color: rgba(255,255,255,.52); }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 60px; }
.footer-grid > div:first-child p { max-width: 330px; margin-top: 24px; font-size: 13px; line-height: 1.8; }
.footer-grid h4 { margin: 0 0 19px; color: var(--gold-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a, .footer-grid span { display: block; margin: 10px 0; font-size: 12px; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { margin-top: 54px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; }

/* Catalog and product detail */
.page-hero { padding-block: 68px 52px; }
.page-hero.compact h1 { margin: 0; color: var(--teak-dark); font-size: clamp(48px, 6vw, 78px); letter-spacing: -.06em; line-height: 1; }
.page-hero.compact > p:last-child { max-width: 600px; margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.catalog-layout { display: grid; grid-template-columns: 190px 1fr; gap: 44px; padding-bottom: 90px; }
.filters { position: sticky; top: 125px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.filters strong { margin-bottom: 11px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filters a { padding: 9px 12px; border-left: 2px solid transparent; color: var(--muted); font-size: 13px; }
.filters a:hover, .filters a.active { border-color: var(--gold); background: var(--paper); color: var(--teak); font-weight: 700; }
.catalog-products { grid-template-columns: repeat(3, 1fr); }
.pagination { margin-top: 35px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.pagination a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: white; color: var(--teak); border-radius: 6px; font-size: 11px; font-weight: 700; }
.pagination a:hover, .pagination a.active { border-color: var(--teak); background: var(--teak); color: white; }
.pagination > span { height: 38px; display: grid; place-items: center; color: var(--muted); }
.empty-state { min-height: 440px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--paper); border: 1px solid var(--line); }
.empty-state.full { min-height: 460px; grid-column: 1 / -1; }
.empty-state > span { color: var(--jade); font-size: 56px; }
.empty-state h2 { margin: 15px 0 24px; }

.product-detail { display: grid; grid-template-columns: 1.08fr .92fr; gap: 76px; padding-block: 65px 100px; }
.gallery-main { aspect-ratio: 1 / .85; display: grid; place-items: center; background: #edf0eb; overflow: hidden; }
.gallery-main img { width: 88%; height: 88%; object-fit: contain; }
.thumbnails { display: flex; gap: 12px; margin-top: 14px; }
.thumbnails button { width: 78px; height: 78px; padding: 5px; border: 1px solid var(--line); background: white; cursor: pointer; }
.thumbnails button:hover { border-color: var(--jade); }
.thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.product-info { padding-top: 22px; }
.product-info h1 { margin: 0; color: var(--teak-dark); font-size: clamp(39px, 4vw, 60px); line-height: 1.12; letter-spacing: -.045em; }
.detail-price { display: flex; align-items: baseline; gap: 16px; margin-top: 25px; }
.detail-price strong { color: var(--jade); font-size: 31px; }
.detail-price del { color: #98a29e; }
.detail-description { margin: 25px 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.spec-rail { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; border-block: 1px solid var(--line); }
.spec-rail div { padding: 17px 15px; border-left: 1px solid var(--line); }
.spec-rail div:first-child { padding-left: 0; border: 0; }
.spec-rail span, .spec-rail strong { display: block; }
.spec-rail span { margin-bottom: 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.spec-rail strong { color: var(--teak); font-size: 12px; }
.buy-box { display: flex; gap: 11px; }
.buy-box label { width: 95px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 9px; }
.buy-box input { width: 100%; margin-top: 1px; border: 0; outline: none; background: transparent; color: var(--ink); font-weight: 700; }
.buy-box .button { flex: 1; }
.payment-note { margin-top: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; background: var(--jade-light); color: var(--teak); border-radius: 8px; }
.payment-note > span { width: 25px; height: 25px; display: grid; place-items: center; background: var(--teak); color: white; border-radius: 50%; font-size: 11px; }
.payment-note p { margin: 0; }
.payment-note strong, .payment-note small { display: block; }
.payment-note strong { font-size: 11px; }
.payment-note small { margin-top: 2px; font-size: 9px; color: var(--muted); }

/* Cart and checkout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 365px; gap: 55px; align-items: start; padding-bottom: 100px; }
.cart-items { display: flex; flex-direction: column; }
.cart-item { min-height: 145px; display: grid; grid-template-columns: 125px 1fr 95px 120px; align-items: center; gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-of-type { border-top: 1px solid var(--line); }
.cart-item > img { width: 125px; height: 108px; object-fit: contain; background: #edf0eb; }
.cart-item h3 { margin: 4px 0; font-size: 16px; }
.cart-item small, .cart-item div > span { color: var(--muted); font-size: 10px; }
.cart-item label span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.cart-item input { width: 68px; margin-top: 5px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.cart-item > strong { text-align: right; color: var(--teak); }
.text-button { align-self: flex-start; margin-top: 17px; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--teak); background: transparent; color: var(--teak); font-weight: 700; font-size: 12px; cursor: pointer; }
.order-summary { position: sticky; top: 125px; padding: 28px; background: var(--paper); border-top: 4px solid var(--gold); box-shadow: 0 16px 45px rgba(8,42,38,.08); }
.order-summary > div:not(.mini-item) { display: flex; justify-content: space-between; gap: 25px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.order-summary small { color: var(--muted); }
.order-summary .summary-total { margin-top: 5px; padding: 21px 0; align-items: center; border: 0; }
.summary-total strong { color: var(--teak); font-size: 24px; }
.summary-back { display: block; margin-top: 17px; text-align: center; color: var(--muted); font-size: 11px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 50px; align-items: start; padding-bottom: 100px; }
.checkout-form { display: flex; flex-direction: column; gap: 18px; }
.form-panel { padding: 30px; background: var(--paper); border: 1px solid var(--line); }
.form-panel h2 { margin: 0 0 25px; color: var(--teak); font-size: 19px; }
.form-panel h2 > span { margin-right: 14px; color: var(--gold); font: 700 10px/1 "Bricolage Grotesque"; letter-spacing: .08em; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-panel label, .auth-form label { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.form-panel input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .form-panel textarea, .form-panel select, .auth-form input { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fafbf8; color: var(--ink); transition: border .2s, box-shadow .2s; }
.form-panel input:focus, .form-panel textarea:focus, .form-panel select:focus, .auth-form input:focus { border-color: var(--jade) !important; box-shadow: 0 0 0 4px rgba(21,116,97,.08); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-card { padding: 16px; display: flex !important; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--jade); background: var(--jade-light); }
.choice-card span b, .choice-card span small { display: block; }
.choice-card span b { color: var(--teak); font-size: 12px; }
.choice-card span small { margin-top: 3px; font-size: 9px; font-weight: 400; }
.delivery-fields { margin-top: 20px; }
.payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.payment-choice { min-height: 74px; padding: 10px 8px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; text-align: center; }
.payment-choice input { position: absolute; opacity: 0; pointer-events: none; }
.payment-choice:has(input:checked) { border-color: var(--jade); background: var(--jade-light); box-shadow: inset 0 0 0 1px var(--jade); }
.pay-icon { width: 27px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--teak); font-size: 8px; }
.payment-choice b { color: var(--ink); font-size: 9px; }
.upload-box { margin-top: 20px; min-height: 80px; padding: 16px; display: flex !important; align-items: center; gap: 14px; border: 1px dashed #a9b5af; border-radius: 8px; cursor: pointer; }
.upload-box:hover { background: var(--porcelain); }
.upload-box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-box > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--teak); color: white; font-size: 22px; }
.upload-box b, .upload-box small { display: block; }
.upload-box b { color: var(--ink); font-size: 11px; }
.upload-box small { margin-top: 3px; font-size: 9px; font-weight: 400; }
.form-help { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.checkout-summary { padding: 25px; }
.mini-item { display: grid; grid-template-columns: 53px 1fr auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-item img { width: 53px; height: 48px; object-fit: contain; background: var(--porcelain); }
.mini-item b, .mini-item small { display: block; }
.mini-item b { font-size: 10px; line-height: 1.35; }
.mini-item small { margin-top: 3px; font-size: 9px; }
.mini-item strong { font-size: 10px; }
.success-page { min-height: 650px; padding-block: 100px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.success-mark { width: 80px; height: 80px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 50%; background: var(--teak); color: var(--gold); font-size: 34px; box-shadow: 0 0 0 14px var(--jade-light); }
.success-page h1 { max-width: 760px; margin: 0; color: var(--teak); font-size: clamp(42px, 5vw, 68px); line-height: 1.1; letter-spacing: -.05em; }
.success-page > p:not(.eyebrow) { margin: 28px 0; color: var(--muted); }
.success-page > p strong { color: var(--teak); }

/* Authentication */
.auth-layout { min-height: 720px; display: grid; grid-template-columns: 1.04fr .96fr; background: var(--paper); }
.auth-story { position: relative; overflow: hidden; padding: 78px max(45px, calc((100vw - 1240px) / 2)); display: flex; flex-direction: column; justify-content: space-between; background: var(--teak); color: white; }
.auth-story::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 70px 70px; opacity: .3; }
.auth-story::after { content: "R"; position: absolute; right: -10px; bottom: -140px; color: transparent; -webkit-text-stroke: 1px rgba(240,189,82,.24); font: 700 640px/1 "Bricolage Grotesque"; }
.auth-story > div { position: relative; z-index: 1; }
.auth-story h1 { max-width: 690px; margin: 0; font-size: clamp(52px, 5vw, 76px); line-height: 1.03; letter-spacing: -.055em; }
.auth-stats { display: flex; gap: 90px; }
.auth-stats strong, .auth-stats span { display: block; }
.auth-stats strong { color: var(--gold); font-size: 35px; }
.auth-stats span { color: rgba(255,255,255,.6); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.auth-form-wrap { display: grid; place-items: center; padding: 65px; }
.auth-form { width: min(410px, 100%); }
.auth-form h2 { margin: 0 0 29px; color: var(--teak); font-size: 30px; letter-spacing: -.035em; }
.auth-form label { margin-top: 16px; }
.auth-form .button { margin-top: 24px; }
.auth-switch { text-align: center; color: var(--muted); font-size: 11px; }
.auth-switch a { color: var(--jade); font-weight: 700; border-bottom: 1px solid var(--jade); }

/* Seller and admin */
.dashboard-shell { display: grid; grid-template-columns: 225px 1fr; gap: 45px; padding-block: 58px 100px; }
.dash-sidebar { position: sticky; top: 125px; align-self: start; min-height: 520px; display: flex; flex-direction: column; padding: 25px; background: var(--teak); color: rgba(255,255,255,.7); }
.dash-sidebar > div > span, .dash-sidebar strong, .dash-sidebar small { display: block; }
.dash-sidebar > div > span { color: var(--gold); font-size: 8px; letter-spacing: .13em; }
.dash-sidebar strong { margin-top: 7px; color: white; font-size: 16px; }
.dash-sidebar small { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
.dash-sidebar nav { display: flex; flex-direction: column; gap: 5px; margin: 40px -10px; }
.dash-sidebar nav a { padding: 10px 12px; font-size: 11px; border-radius: 6px; }
.dash-sidebar nav a:hover, .dash-sidebar nav a.active { background: rgba(255,255,255,.1); color: var(--gold-soft); }
.dash-sidebar > a { margin-top: auto; font-size: 11px; }
.dash-main { min-width: 0; }
.dash-welcome { display: flex; align-items: end; justify-content: space-between; margin-bottom: 35px; }
.dash-welcome .eyebrow { margin-bottom: 8px; }
.dash-welcome h1 { margin: 0; color: var(--teak); font-size: clamp(35px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-grid article { min-height: 135px; padding: 21px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); }
.stat-grid article > span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.stat-grid article strong { margin-top: auto; color: var(--teak); font-size: 25px; letter-spacing: -.03em; }
.stat-grid article strong i { color: #9da6a2; font-size: 13px; font-style: normal; }
.stat-grid article small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.stat-grid .commission-stat { background: var(--gold-soft); border-color: var(--gold); }
.dash-panel { margin-top: 25px; padding: 26px; background: var(--paper); border: 1px solid var(--line); scroll-margin-top: 120px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.panel-head h2 { margin: 0; color: var(--teak); font-size: 22px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.panel-head > a { color: var(--jade); font-size: 11px; font-weight: 700; }
.data-table { overflow-x: auto; }
.table-row { min-width: 700px; display: grid; grid-template-columns: 2fr 1fr .65fr .8fr .9fr; align-items: center; gap: 15px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.table-row.table-head { padding-block: 8px; color: #929c98; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.table-product { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--ink); }
.table-product img { width: 47px; height: 43px; object-fit: contain; background: var(--porcelain); }
.table-product b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #9ca7a2; }
.status-dot.published, .status-dot.active { background: #28a07e; }
.row-actions { display: flex; gap: 9px; }
.row-actions a, .row-actions button { border: 0; background: none; color: var(--jade); font-size: 10px; font-weight: 700; cursor: pointer; }
.orders-table .table-row span b, .orders-table .table-row span small { display: block; }
.orders-table .table-row span b { color: var(--ink); }
.orders-table .table-row span small { margin-top: 3px; font-size: 8px; }
.status-form select { max-width: 115px; padding: 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--porcelain); color: var(--ink); font-size: 9px; }
.panel-empty { padding: 50px; text-align: center; color: var(--muted); font-size: 12px; }

.editor-shell { padding-block: 55px 100px; }
.editor-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 35px; }
.editor-head a { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.editor-head .eyebrow { margin-bottom: 8px; }
.editor-head h1 { margin: 0; color: var(--teak); font-size: clamp(40px, 5vw, 62px); line-height: 1; letter-spacing: -.05em; }
.editor-head > p { max-width: 400px; margin: 0; color: var(--muted); font-size: 12px; }
.editor-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 25px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 18px; }
.editor-side { position: sticky; top: 125px; }
.editor-side .form-panel > label { margin: 15px 0; }
.image-drop { min-height: 155px; display: flex !important; flex-direction: column; justify-content: center; align-items: center; border: 1px dashed #a9b5af; background: #fafbf8; border-radius: 9px; cursor: pointer; }
.image-drop:hover { border-color: var(--jade); background: var(--jade-light); }
.image-drop input { position: absolute; opacity: 0; pointer-events: none; }
.image-drop > span { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; background: var(--teak); color: white; font-size: 22px; }
.image-drop b { color: var(--ink); font-size: 12px; }
.image-drop small { margin-top: 4px; font-size: 9px; font-weight: 400; }
.existing-images { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.existing-images label { width: 100px; }
.existing-images img { width: 100px; height: 80px; object-fit: contain; background: var(--porcelain); border: 1px solid var(--line); }
.existing-images span { display: block; margin-top: 4px; font-size: 9px; }
.language-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.language-fields label > span { display: inline-block; padding: 3px 7px; margin-bottom: 2px; background: var(--jade-light); color: var(--teak); border-radius: 3px; font-size: 8px; }
.money-input { position: relative; }
.money-input input { padding-right: 45px !important; }
.money-input > span { position: absolute; right: 12px; top: 19px; color: var(--jade); font-size: 10px; font-weight: 700; }
.commission-note { display: block; margin-top: 12px; text-align: center; color: var(--muted); font-size: 9px; }

/* Production workflows */
.logout-form { margin-top: auto; }
.logout-form button { padding: 0; border: 0; background: none; color: rgba(255,255,255,.7); font: inherit; font-size: 11px; cursor: pointer; }
.logout-form button:hover { color: var(--gold); }
.setup-page { min-height: 720px; padding-block: 75px 100px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.setup-intro { min-height: 520px; padding: 55px; display: flex; flex-direction: column; justify-content: center; background: var(--teak); color: white; position: relative; overflow: hidden; }
.setup-intro::after { content: "220V"; position: absolute; right: -26px; bottom: -36px; color: transparent; -webkit-text-stroke: 1px rgba(240,189,82,.22); font: 700 150px/1 "Bricolage Grotesque"; }
.setup-intro h1 { margin: 0; font-size: clamp(45px, 5vw, 72px); line-height: 1; letter-spacing: -.05em; }
.setup-intro > p:not(.eyebrow) { max-width: 520px; color: rgba(255,255,255,.72); }
.setup-intro ol { margin: 35px 0 0; padding-left: 20px; color: var(--gold-soft); font-size: 13px; line-height: 2.1; }
.setup-intro code { padding: 2px 5px; background: rgba(255,255,255,.1); border-radius: 3px; }
.setup-form { box-shadow: var(--shadow); }
.setup-warning { margin-bottom: 18px; padding: 13px; border-left: 3px solid var(--alert); background: #f5dfdc; color: #7d3029; font-size: 10px; line-height: 1.7; }
.setup-form > label, .profile-form > label { margin-top: 15px; }
.setup-form label small, .profile-form label small, .auth-form label small { display: block; margin-top: 5px; font-size: 9px; font-weight: 400; }
.setup-form .button, .profile-form > .button { margin-top: 24px; }
.payment-instructions { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--gold-soft); color: var(--teak-dark); font-size: 11px; line-height: 1.7; }
.terms-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.terms-check input { margin-top: 4px; accent-color: var(--jade); }
.terms-check a { color: var(--jade); border-bottom: 1px solid var(--jade); }
.success-actions { display: flex; gap: 12px; }
.track-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 38px; align-items: start; padding-bottom: 100px; }
.track-form { position: sticky; top: 125px; box-shadow: 0 16px 45px rgba(8,42,38,.07); }
.track-form > label { margin: 15px 0; }
.track-form .button { margin-top: 8px; }
.track-placeholder { min-height: 440px; padding: 50px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px solid var(--line); background: rgba(255,255,255,.5); color: var(--muted); }
.track-placeholder > span { color: var(--gold); font-size: 58px; }
.track-placeholder h2 { margin: 16px 0 8px; color: var(--teak); }
.track-placeholder p { max-width: 470px; font-size: 12px; }
.track-result { min-width: 0; }
.track-status { min-height: 155px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 25px; background: var(--teak); color: white; }
.track-status .eyebrow { color: var(--gold-soft); margin-bottom: 10px; }
.track-status h2 { margin: 0; font-size: 31px; }
.track-status small { color: rgba(255,255,255,.55); }
.track-status > strong { color: var(--gold); font-size: 24px; }
.track-items { background: white; border: 1px solid var(--line); border-top: 0; }
.track-items article { min-height: 105px; padding: 14px 20px; display: grid; grid-template-columns: 78px 1fr auto; gap: 17px; align-items: center; border-bottom: 1px solid var(--line); }
.track-items article:last-child { border-bottom: 0; }
.track-items img { width: 78px; height: 72px; object-fit: contain; background: var(--porcelain); }
.track-items h3 { margin: 3px 0; font-size: 14px; }
.track-items small, .track-items span { color: var(--muted); font-size: 9px; }
.fulfillment-pill { padding: 6px 9px; border-radius: 100px; background: var(--jade-light); color: var(--jade); font-size: 9px; white-space: nowrap; }
.fulfillment-pill.cancelled { background: #f1d8d5; color: var(--alert); }
.fulfillment-pill.completed { background: var(--teak); color: white; }
.track-meta { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); background: white; border: 1px solid var(--line); }
.track-meta div { padding: 19px; border-left: 1px solid var(--line); }
.track-meta div:first-child { border-left: 0; }
.track-meta span, .track-meta strong { display: block; }
.track-meta span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.track-meta strong { margin-top: 6px; color: var(--teak); font-size: 11px; line-height: 1.5; }
.proof-panel { margin-top: 17px; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; background: var(--gold-soft); border: 1px solid var(--gold); }
.proof-panel h3 { margin: 0 0 6px; color: var(--teak); }
.proof-panel p { margin: 0; color: var(--muted); font-size: 10px; }
.proof-panel .upload-box { margin: 0 0 10px; background: rgba(255,255,255,.65); }
.proof-panel .button { width: 100%; }
.order-timeline { margin-top: 17px; padding: 25px; background: white; border: 1px solid var(--line); }
.order-timeline h3 { margin: 0 0 18px; color: var(--teak); }
.order-timeline > div { min-height: 46px; display: flex; gap: 14px; position: relative; }
.order-timeline > div:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.order-timeline i { width: 9px; height: 9px; margin-top: 4px; flex: 0 0 auto; border: 2px solid var(--gold); border-radius: 50%; background: white; }
.order-timeline b, .order-timeline small { display: block; }
.order-timeline b { font-size: 11px; }
.order-timeline small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.narrow-editor { max-width: 900px; }
.profile-form { max-width: 760px; }
.detail-status { display: flex; flex-direction: column; align-items: flex-end; }
.detail-status span { padding: 8px 12px; border-radius: 100px; background: var(--jade-light); color: var(--jade); font-size: 11px; font-weight: 700; }
.detail-status small { margin-top: 7px; color: var(--muted); font-size: 9px; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.order-detail-grid > div { display: flex; flex-direction: column; gap: 18px; }
.order-detail-grid > aside { display: flex; flex-direction: column; gap: 18px; }
.order-detail-grid .order-summary { position: static; }
.detail-items article { min-height: 95px; display: grid; grid-template-columns: 75px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-items article:last-child { border-bottom: 0; }
.detail-items img { width: 75px; height: 70px; object-fit: contain; background: var(--porcelain); }
.detail-items h3 { margin: 3px 0; font-size: 13px; }
.detail-items small, .detail-items span { color: var(--muted); font-size: 9px; }
.contact-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card div { padding: 15px; background: var(--porcelain); }
.contact-card span, .contact-card strong { display: block; }
.contact-card span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { margin-top: 5px; font-size: 11px; line-height: 1.6; }
.proof-card p { display: flex; justify-content: space-between; gap: 15px; }
.proof-card p span { color: var(--jade); font-size: 10px; }
.proof-card > small { color: var(--muted); }
.settlement-card form { padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.settlement-card form:last-child { border-bottom: 0; }
.settlement-card b, .settlement-card small { display: block; }
.settlement-card b { font-size: 11px; }
.settlement-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.settlement-card button { padding: 6px 9px; border: 1px solid var(--jade); border-radius: 6px; background: transparent; color: var(--jade); font-size: 9px; font-weight: 700; cursor: pointer; }
.settlement-card button.settled { border-color: var(--line); color: var(--muted); }
.vendor-cards { display: flex; flex-direction: column; gap: 10px; }
.vendor-card { padding: 15px; display: grid; grid-template-columns: minmax(220px, 1fr) 120px 130px 90px; align-items: end; gap: 15px; border: 1px solid var(--line); background: #fafbf8; }
.vendor-card > div:first-of-type { display: flex; align-items: center; gap: 12px; }
.vendor-card p { margin: 0; }
.vendor-card p b, .vendor-card p small { display: block; }
.vendor-card p small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.vendor-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--teak); color: var(--gold); font-weight: 700; }
.vendor-card label, .settings-form label { color: var(--muted); font-size: 9px; font-weight: 600; }
.vendor-card input, .vendor-card select, .settings-form input, .settings-form textarea { width: 100%; margin-top: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); outline: 0; }
.percent-input { position: relative; }
.percent-input input { padding-right: 25px; }
.percent-input span { position: absolute; right: 8px; top: 12px; color: var(--jade); }
.vendor-card .button { min-height: 36px; padding: 0 12px; font-size: 10px; }
.status-dot.suspended { background: var(--alert); }
.category-admin { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.category-list { align-self: start; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.category-list > span { padding: 12px; display: grid; grid-template-columns: 28px 1fr; gap: 0 9px; background: var(--porcelain); border: 1px solid var(--line); }
.category-list i { grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--jade-light); color: var(--jade); font-style: normal; }
.category-list b { font-size: 10px; }
.category-list small { color: var(--muted); font-size: 8px; }
.category-admin .form-panel { padding: 20px; }
.category-admin .form-panel h2 { font-size: 16px; }
.category-admin .button { margin-top: 15px; }
.settings-form { padding: 5px 0; }
.settings-form .button { margin-top: 20px; }
.payment-toggles { margin-bottom: 23px; padding: 17px; background: var(--porcelain); border: 1px solid var(--line); }
.payment-toggles > strong { display: block; margin-bottom: 10px; color: var(--teak); font-size: 11px; }
.payment-toggles > div { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-toggles label { padding: 7px 10px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 100px; background: white; cursor: pointer; }
.payment-toggles label:has(input:checked) { border-color: var(--jade); background: var(--jade-light); color: var(--teak); }
.payment-toggles input { width: auto; margin: 0; accent-color: var(--jade); }
.payment-toggles small { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; }
.settings-form input:focus, .settings-form textarea:focus, .vendor-card input:focus, .vendor-card select:focus { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(21,116,97,.08); }
.legal-page { max-width: 900px; padding-block: 80px 110px; }
.legal-page > h1 { max-width: 800px; margin: 0; color: var(--teak); font-size: clamp(45px, 6vw, 72px); line-height: 1.05; letter-spacing: -.05em; }
.legal-date { color: var(--muted); font-size: 11px; }
.legal-page section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal-page section h2 { margin: 0 0 10px; color: var(--teak); font-size: 20px; }
.legal-page section p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.legal-notice { margin-top: 35px; padding: 18px; border-left: 3px solid var(--gold); background: var(--gold-soft); color: var(--teak); font-size: 11px; }
.health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.health-grid article { min-height: 115px; padding: 20px; display: flex; align-items: flex-start; gap: 13px; border: 1px solid var(--line); background: white; }
.health-grid article > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--jade-light); color: var(--jade); font-weight: 700; }
.health-grid article.failed > span { background: #f5dfdc; color: var(--alert); }
.health-grid h2 { margin: 3px 0 5px; color: var(--teak); font-size: 13px; }
.health-grid p { margin: 0; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }

@media (max-width: 1080px) {
  :root { --shell: min(100% - 36px, 1000px); }
  .nav-row { gap: 18px; }
  .nav-search { max-width: 260px; }
  .main-nav { gap: 17px; }
  .hero-grid { min-height: 610px; gap: 38px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-tile:nth-child(3) { border-right: 0; }
  .category-tile:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-products { grid-template-columns: repeat(2, 1fr); }
  .seller-callout { padding: 50px; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; }
  .dashboard-shell { grid-template-columns: 190px 1fr; gap: 25px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-form { grid-template-columns: minmax(0, 1fr) 300px; }
  .payment-grid { grid-template-columns: repeat(3, 1fr); }
  .vendor-card { grid-template-columns: 1fr 100px 115px; }
  .vendor-card .button { grid-column: 3; }
}

@media (max-width: 800px) {
  :root { --shell: calc(100vw - 30px); }
  .utility-inner > span { display: none; }
  .utility-inner { justify-content: flex-end; }
  .nav-row { min-height: 70px; }
  .brand-copy strong { font-size: 19px; }
  .brand-mark { width: 29px; height: 32px; }
  .nav-search { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; padding: 20px 24px 28px; flex-direction: column; align-items: stretch; background: var(--porcelain); border-bottom: 1px solid var(--line); box-shadow: 0 15px 25px rgba(8,42,38,.08); }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.cart-link) { padding: 8px 0; }
  .main-nav > a:not(.cart-link)::after { display: none; }
  .cart-link { align-self: flex-start; }
  .hero-grid { width: 100%; min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .hero-copy { width: var(--shell); margin-inline: auto; padding: 65px 0 50px; }
  .hero-stage { min-height: 520px; }
  .hero-trust { margin-top: 30px; padding-top: 30px; }
  .assurance-grid { grid-template-columns: 1fr; padding-block: 8px; }
  .assurance-grid > div { min-height: 70px; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .assurance-grid > div:first-child { border-top: 0; }
  .section { padding-block: 65px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .seller-callout { width: 100%; margin-block: 60px 0; padding: 50px 30px; grid-template-columns: 1fr; gap: 30px; }
  .seller-pattern { font-size: 280px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .filters strong { display: none; }
  .filters a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .product-detail { grid-template-columns: 1fr; gap: 25px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .checkout-summary { grid-row: 1; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 500px; padding: 60px 30px; }
  .auth-form-wrap { padding: 60px 30px; }
  .dashboard-shell { grid-template-columns: 1fr; padding-top: 25px; }
  .dash-sidebar { position: static; min-height: auto; }
  .dash-sidebar nav { flex-direction: row; overflow-x: auto; margin: 25px -10px; }
  .dash-sidebar nav a { white-space: nowrap; }
  .editor-form { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .language-fields { grid-template-columns: 1fr; }
  .setup-page, .track-layout, .order-detail-grid { grid-template-columns: 1fr; }
  .setup-page { gap: 25px; }
  .track-form { position: static; }
  .category-admin { grid-template-columns: 1fr; }
  .vendor-card { grid-template-columns: 1fr 1fr; }
  .vendor-card .button { grid-column: auto; }
  .health-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  :root { --shell: calc(100vw - 24px); }
  .utility-links { gap: 10px; }
  .hero-copy { padding-top: 48px; }
  .hero h1 { font-size: 48px; }
  html[lang="zh"] .hero h1 { font-size: 45px; }
  html[lang="my"] .hero h1 { font-size: 38px; }
  .hero-lede { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .hero-actions .text-link { text-align: center; }
  .hero-trust { grid-template-columns: 1fr; gap: 15px; }
  .hero-trust div, .hero-trust div:first-child { padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--line); }
  .hero-stage { min-height: 430px; }
  .hero-stage::after { width: 390px; height: 390px; left: 0; }
  .hero-tv { width: 72%; top: 15%; }
  .hero-fridge { width: 43%; bottom: 8%; left: 8%; }
  .hero-solar { width: 49%; bottom: 7%; }
  .section-head { align-items: start; gap: 15px; }
  .section-head h2 { font-size: 34px; }
  .section-head > a { margin-top: 36px; white-space: nowrap; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-tile { min-height: 150px; }
  .category-tile:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .category-tile:nth-child(2n) { border-right: 0; }
  .category-tile:nth-last-child(-n+2) { border-bottom: 0; }
  .product-grid, .catalog-products { grid-template-columns: 1fr; }
  .product-card h3 { min-height: auto; }
  .seller-callout h2 { font-size: 38px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { gap: 15px; flex-direction: column; }
  .page-hero { padding-block: 48px 35px; }
  .page-hero.compact h1 { font-size: 50px; }
  .product-detail { padding-top: 25px; }
  .product-info h1 { font-size: 36px; }
  .spec-rail { grid-template-columns: 1fr; }
  .spec-rail div, .spec-rail div:first-child { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); }
  .buy-box { flex-direction: column; }
  .buy-box label { width: 100%; }
  .cart-item { grid-template-columns: 85px 1fr auto; gap: 12px; }
  .cart-item > img { width: 85px; height: 78px; }
  .cart-item label { grid-column: 2; }
  .cart-item > strong { grid-column: 3; grid-row: 1; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .form-panel { padding: 22px 18px; }
  .auth-story { min-height: 460px; }
  .auth-story h1 { font-size: 48px; }
  .auth-stats { gap: 35px; }
  .dash-welcome, .editor-head { align-items: stretch; flex-direction: column; gap: 22px; }
  .stat-grid { grid-template-columns: 1fr; }
  .dash-panel { padding: 20px 15px; }
  .setup-intro { min-height: 440px; padding: 35px 25px; }
  .track-status { align-items: flex-start; flex-direction: column; }
  .track-items article { grid-template-columns: 65px 1fr; }
  .track-items img { width: 65px; height: 60px; }
  .track-items .fulfillment-pill { grid-column: 2; justify-self: start; }
  .track-meta { grid-template-columns: 1fr; }
  .track-meta div, .track-meta div:first-child { border-left: 0; border-top: 1px solid var(--line); }
  .track-meta div:first-child { border-top: 0; }
  .proof-panel { grid-template-columns: 1fr; }
  .success-actions { flex-direction: column; width: 100%; }
  .contact-card { grid-template-columns: 1fr; }
  .vendor-card { grid-template-columns: 1fr; align-items: stretch; }
  .category-list { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: 1fr; }
}

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