﻿:root {
  --bg: #f6f1ea;
  --bg-soft: #f1e7de;
  --surface: #fffaf5;
  --surface-strong: #ffffff;
  --surface-muted: #f4efe8;
  --text: #1b1a18;
  --muted: #5f5a56;
  --muted-strong: #46413d;
  --border: #e7ddd0;
  --brand: #ef7a2d;
  --brand-strong: #d85f1d;
  --brand-soft: #fff0e4;
  --success: #2f8f68;
  --shadow: 0 18px 40px rgba(31, 23, 15, 0.08);
  --container: 1320px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --input-height: 54px;
  color-scheme: light;
}

body[data-theme="dark"] {
  --bg: #111315;
  --bg-soft: #191d20;
  --surface: #181d1f;
  --surface-strong: #1f2529;
  --surface-muted: #20282c;
  --text: #f3f2ef;
  --muted: #b6b0a9;
  --muted-strong: #d7d1c9;
  --border: rgba(255, 255, 255, 0.08);
  --brand: #f28f4d;
  --brand-strong: #f7b17b;
  --brand-soft: rgba(242, 143, 77, 0.12);
  --success: #5cc38a;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

.product-page-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.product-page-brand { font-size: 24px; font-weight: 800; letter-spacing: 3px; }
.product-page { padding-block: 32px 64px; }
.product-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); margin-top: 28px; }
.product-page-layout h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.2; overflow-wrap: anywhere; }
.product-page-photo { border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--surface-strong); align-self: start; }
.product-page-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.product-page-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.product-page-footer { padding-block: 24px; border-top: 1px solid var(--border); color: var(--muted); }
@media (max-width: 700px) { .product-page-layout { grid-template-columns: 1fr; } }

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.875rem;
}
.stock-filter, .sort-control { display: inline-flex; align-items: center; gap: 10px; }
.stock-filter { cursor: pointer; min-height: 44px; }
.stock-filter input { width: 18px; height: 18px; accent-color: var(--brand); }
.sort-control { margin-left: auto; }
.sort-control select, #clear-filters, #retry-catalog {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--text);
}
#clear-filters, #retry-catalog { color: var(--brand-strong); }
.catalog-status { text-align: center; padding: 24px; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .catalog-tools { gap: 8px; padding: 12px; }
  .sort-control { width: 100%; margin-left: 0; justify-content: space-between; }
  .sort-control select { max-width: 72%; }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: linear-gradient(180deg, var(--bg) 0%, #fbf4ee 100%);
  color: var(--text);
  font-family: "Segoe UI", "Nirmala UI", sans-serif;
  line-height: 1.6;
  transition: background 180ms ease, color 180ms ease;
}
body[data-theme="dark"] {
  background: linear-gradient(180deg, var(--bg) 0%, #101417 100%);
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, textarea, select {
  font: inherit;
}
button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(239, 122, 45, 0.45);
  outline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  display: block;
}

.shell {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
}
.skip:focus {
  top: 16px;
}

.announcement-bar {
  background: #171511;
  color: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 40px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(250, 245, 240, 0.8);
  border-bottom: 1px solid var(--border);
}
body[data-theme="dark"] .site-header {
  background: rgba(20, 24, 27, 0.78);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(250px, 100%);
  line-height: 1;
  color: inherit;
}
.brand-lockup img {
  width: 100%;
  height: auto;
  max-width: 240px;
  object-fit: contain;
}
body[data-theme="dark"] .brand-lockup img,
body[data-theme="dark"] .hero-stage img,
body[data-theme="dark"] .footer-identity img {
  filter: invert(1) hue-rotate(180deg);
  opacity: 1;
}
body[data-theme="dark"] .site-header {
  background: rgba(18, 20, 23, 0.9);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
body[data-theme="dark"] .brand-lockup .brand-tagline,
body[data-theme="dark"] .brand .brand-tagline {
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px;
}
body[data-theme="dark"] .brand-lockup .brand-subtitle,
body[data-theme="dark"] .brand .brand-subtitle {
  color: #fff;
}
.brand-lockup .brand-tagline,
.brand .brand-tagline {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 700;
  color: var(--muted-strong);
}
.brand-lockup .brand-subtitle,
.brand .brand-subtitle {
  display: block;
  font-size: 9px;
  opacity: 0.72;
  letter-spacing: 0.14px;
  color: var(--muted);
}

.search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0.45rem 0.6rem 0.45rem 1rem;
}
.search svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--muted);
}
.search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  padding: 0.85rem 0;
}
.search input::placeholder {
  color: var(--muted);
}
.search button {
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1.3rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(239, 122, 45, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.cart-button,
.theme-button,
.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.cart-button:hover,
.theme-button:hover,
.language-switcher:hover,
.nav a:hover {
  transform: translateY(-1px);
}
.header-cart-icon { width: 24px; height: 24px; flex: 0 0 24px; color: var(--text); }
.cart-demo-label { color: var(--brand-strong); font-size: .75rem; font-weight: 700; }
#start-checkout:disabled { opacity: .55; cursor: not-allowed; }
.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 800;
}
.theme-button {
  width: 42px;
  padding: 0.5rem;
}
.theme-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.language-switcher {
  min-width: 88px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 56px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}
.nav a {
  position: relative;
  padding: 0.95rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-strong);
  transition: color 180ms ease;
}
.nav a.active,
.nav a:hover {
  color: var(--text);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}

.main-shell {
  padding-bottom: 0.5rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  margin-top: 2rem;
  padding: clamp(1.2rem, 2vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.66), rgba(255,250,245,0.92));
  box-shadow: var(--shadow);
}
body[data-theme="dark"] .hero {
  background: linear-gradient(135deg, rgba(29, 33, 35, 0.86), rgba(19, 24, 26, 0.96));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.eyebrow-dark {
  color: var(--muted);
}
.hero h1 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: var(--text);
}
.hero h1 em {
  color: var(--brand);
  font-style: normal;
}
.hero-copy p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.7rem;
}
.primary-button,
.secondary-link,
.cart-add,
.detail-link,
.secondary-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}
.primary-button {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 20px rgba(239, 122, 45, 0.25);
  font-weight: 700;
}
.primary-button.alt {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}
.secondary-link {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}
.primary-button:hover,
.secondary-link:hover,
.cart-add:hover,
.detail-link:hover,
.secondary-cart:hover {
  transform: translateY(-1px);
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0.9rem;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--border);
  border-radius: 16px;
}
body[data-theme="dark"] .trust-item {
  background: rgba(255,255,255,0.02);
}
.trust-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 800;
}
.trust-item strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
}
.trust-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 560px;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.95), rgba(239, 236, 230, 0.75) 28%, rgba(241, 210, 163, 0.18) 70%, rgba(255,255,255,0) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}
body[data-theme="dark"] .hero-stage {
  background: radial-gradient(circle at 50% 30%, rgba(36, 40, 43, 0.9), rgba(25, 28, 31, 0.85) 26%, rgba(240, 131, 59, 0.08) 68%, rgba(0,0,0,0) 100%);
}
.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 78%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(155, 122, 88, 0.16);
  filter: blur(34px);
}
.hero-stage img {
  position: relative;
  z-index: 1;
  max-width: min(480px, 80%);
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 32px rgba(0,0,0,0.12));
}
.hero-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
body[data-theme="dark"] .hero-badge {
  background: rgba(25, 29, 31, 0.7);
}
.hero-microcard {
  position: absolute;
  right: 24px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
body[data-theme="dark"] .hero-microcard {
  background: rgba(24, 29, 31, 0.82);
}
.hero-microcard span {
  font-weight: 700;
}
.hero-microcard small {
  color: var(--muted);
}

.showcase-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  align-items: stretch;
}
.showcase-strip > * {
  min-height: 62px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
}
.showcase-strip > span {
  justify-content: flex-start;
  padding-inline: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.showcase-strip a {
  justify-content: space-between;
  padding: 1rem 1.2rem;
}
body[data-theme="dark"] .showcase-strip > * {
  background: rgba(255,255,255,0.02);
}

.catalog {
  padding-top: 3.5rem;
  scroll-margin-top: 100px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.section-heading h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
#result-count {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.catalog-notice {
  margin: 0 0 1.5rem;
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.filters button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-strong);
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
}
.filters button.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0.8rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.02);
}
.product-image {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--surface-muted);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(247, 242, 236, 0.9));
}
body[data-theme="dark"] .product-image img {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(28, 35, 38, 0.7));
}
.sample-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(17, 17, 17, 0.06);
  color: var(--muted-strong);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.product-category {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-name {
  margin-top: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.detail-link {
  background: transparent;
  border-color: transparent;
  color: var(--brand-strong);
  font-weight: 700;
  padding-inline: 0.2rem;
}
.cart-add {
  width: 100%;
  margin-top: 0.9rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border: 1px solid var(--brand);
}
.cart-add.secondary-cart {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.cart-add:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.empty {
  margin-top: 1.5rem;
  padding: 2rem 1.2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.empty h3 {
  margin: 0 0 0.5rem;
}
.empty button {
  margin-top: 0.4rem;
  padding: 0.8rem 1.05rem;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}

.support-shell {
  padding-top: 1.5rem;
}
.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.3rem, 2vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.36);
}
body[data-theme="dark"] .support-card {
  background: rgba(255,255,255,0.03);
}
.support-card h2 {
  margin: 0.5rem 0 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}
.support-card p {
  margin: 0;
  color: var(--muted);
}

.market-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.35);
}
body[data-theme="dark"] .market-footer {
  background: rgba(255,255,255,0.02);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.15fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
.footer-identity p,
.footer-contact p,
.footer-grid nav a,
.footer-bottom a {
  color: var(--muted);
}
.footer-grid h3 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.footer-grid nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-identity {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.social-actions a {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.contact-banner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.34);
}
body[data-theme="dark"] .contact-banner {
  background: rgba(255,255,255,0.03);
}
.payment-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.payment-chip.cod {
  background: rgba(239, 122, 45, 0.12);
  color: var(--brand-strong);
}
.contact-order-payments {
  color: var(--muted-strong);
  line-height: 1.7;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
}

#product-dialog,
#cart-dialog,
#checkout-dialog,
#invoice-dialog {
  width: min(820px, calc(100% - 24px));
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
#product-dialog::backdrop,
#cart-dialog::backdrop,
#checkout-dialog::backdrop,
#invoice-dialog::backdrop {
  background: rgba(10,10,12,0.48);
}
#dialog-content {
  padding-top: 0.5rem;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.detail-layout > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  border-radius: 18px;
  background: var(--surface-muted);
}
.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}
.detail-copy h2 {
  margin: 0.5rem 0 0.6rem;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  letter-spacing: -0.04em;
}
.detail-copy .price {
  margin-bottom: 0.8rem;
}
.detail-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.detail-copy .cart-add {
  width: auto;
}
.sku {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.detail-notice {
  margin-top: 0.75rem;
  color: var(--muted);
}

.cart-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-right: 1rem;
}
.cart-panel h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  letter-spacing: -0.04em;
}
.cart-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
#cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.cart-row:first-child {
  border-top: 0;
}
.cart-row img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--surface-muted);
}
.cart-info h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}
.cart-info p {
  margin: 0 0 0.45rem;
  color: var(--muted);
}
.quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
}
.quantity button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 1.1rem;
}
.quantity button:disabled {
  opacity: 0.5;
}
.cart-row-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.remove-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
}
#cart-summary {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
#start-checkout,
#continue-shopping,
#show-invoice,
#edit-checkout,
#place-order,
#back-to-cart,
#print-invoice {
  width: auto;
  margin-top: 0.4rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(320px, calc(100vw - 24px));
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(23, 28, 31, 0.96);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

#checkout-form,
#order-review {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
#checkout-form label {
  font-weight: 600;
  color: var(--muted-strong);
}
#checkout-form input,
#checkout-form textarea,
#paper-size {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0.9rem 0.9rem;
}
#buyer-address {
  resize: vertical;
  min-height: 120px;
}
.review-customer {
  white-space: pre-line;
  margin: 0;
}
#review-lines {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.review-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
#order-submit-status[data-state="error"] {
  color: #dd5a5a;
}
#order-submit-status[data-state="success"] {
  color: var(--success);
}
.whatsapp-order {
  text-align: center;
}
.invoice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}
.invoice-toolbar h2 {
  margin: 0;
}
.invoice-toolbar p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}
.invoice-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0 1rem;
}
.invoice-stage {
  background: #f3f3f3;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
}
.receipt {
  background: #fff;
  color: #111;
  padding: 1rem;
  border-radius: 12px;
}
.receipt-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.receipt-brand .brand-lockup {
  width: 180px;
}
.receipt-brand p {
  margin: 0;
  color: #555;
  font-size: 0.8rem;
  text-align: right;
}
.receipt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-weight: 700;
}
.receipt-warning,
.receipt-date,
.receipt-customer,
.receipt-footer {
  color: #444;
}
.receipt-customer {
  margin: 0.6rem 0;
}
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
}
.receipt-table th,
.receipt-table td {
  padding: 0.45rem 0.2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: left;
  vertical-align: top;
}
.receipt-table th:nth-child(2),
.receipt-table td:nth-child(2),
.receipt-table th:nth-child(3),
.receipt-table td:nth-child(3),
.receipt-table th:nth-child(4),
.receipt-table td:nth-child(4) {
  text-align: right;
}
.receipt-table td small {
  display: block;
  color: #777;
}
.receipt-totals {
  margin: 0.9rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.receipt-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
}
.receipt-footer {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  line-height: 1.6;
}
.receipt.thermal {
  width: 80mm;
  padding: 0.4rem;
  font-size: 0.78rem;
}
.receipt.thermal .brand-lockup {
  width: 140px;
}
.receipt.thermal .receipt-table th,
.receipt.thermal .receipt-table td {
  font-size: 0.7rem;
  padding: 0.2rem 0.1rem;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-main {
    flex-wrap: wrap;
    padding: 0.9rem 0;
  }
  .brand { width: auto; }
  .search { order: 3; width: 100%; }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-stage { min-height: 420px; }
  .showcase-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showcase-strip > span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(var(--container), calc(100% - 24px));
  }
  .announcement-inner {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    gap: 0.9rem;
  }
  .header-actions {
    margin-left: 0;
  }
  .hero-trust {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .support-card,
  .footer-bottom,
  .invoice-toolbar,
  .invoice-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .announcement-inner {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .announcement-inner::-webkit-scrollbar {
    display: none;
  }
  .header-main {
    gap: 0.9rem;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .cart-button,
  .language-switcher {
    flex: 1 1 auto;
  }
  .theme-button {
    flex: 0 0 auto;
  }
  .nav {
    gap: 1rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .showcase-strip {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    min-height: 300px;
  }
  .cart-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .cart-row-end {
    grid-column: 1 / -1;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    font-size: 0.82rem;
  }
}

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

/* Reference-led storefront layout refinements. */
.announcement-inner {
  min-height: 32px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}
.header-main {
  min-height: 76px;
  gap: 1.25rem;
}
.header-main .brand-lockup {
  width: 190px;
}
.header-main .brand-lockup img {
  max-width: 190px;
}
.search {
  border-radius: 14px;
  box-shadow: none;
}
.search input {
  padding-block: 0.6rem;
}
.header-actions {
  gap: 0.45rem;
}
.cart-button,
.theme-button,
.language-switcher {
  border-radius: 10px;
}
.nav {
  min-height: 44px;
  gap: clamp(1.2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}
.nav a {
  padding: 0.65rem 0;
  font-size: 0.86rem;
}

.hero {
  width: 100vw;
  margin: 0 calc((100% - 100vw) / 2);
  min-height: 370px;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 30px max(24px, calc((100vw - 1140px) / 2));
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 82% 44%, rgba(238, 215, 181, 0.56), transparent 41%),
    linear-gradient(100deg, #fffaf4 0%, #f8f0e5 100%);
  box-shadow: inset 0 1px rgba(255,255,255,0.8), inset 0 -1px rgba(95,70,43,0.08);
  background:
    linear-gradient(90deg, rgba(255,253,249,0.96) 0%, rgba(255,253,249,0.84) 37%, rgba(255,253,249,0.08) 70%),
    url("/hero-backdrop.svg") center / cover no-repeat;
}
body[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(17,19,21,0.97) 0%, rgba(17,19,21,0.84) 37%, rgba(17,19,21,0.52) 100%),
    url("/hero-backdrop.svg") center / cover no-repeat;
}
.hero-copy {
  max-width: 540px;
}
.hero h1 {
  max-width: 570px;
  margin: 0.65rem 0 0.8rem;
  font-size: clamp(2.7rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.hero h1 > span,
.hero h1 > em {
  display: block;
}
.hero-copy p {
  max-width: 32rem;
  font-size: 0.98rem;
}
.hero-actions {
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.primary-button,
.secondary-link {
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
}
.hero-trust {
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.trust-item {
  gap: 0.55rem;
  padding: 0.25rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body[data-theme="dark"] .trust-item {
  background: transparent;
}
.trust-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.trust-item strong {
  font-size: 0.76rem;
}
.trust-item small {
  font-size: 0.66rem;
}
.hero-stage {
  min-height: 318px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body[data-theme="dark"] .hero-stage {
  background: transparent;
}
.hero-stage::before {
  display: none;
}
.hero-stage::after {
  display: none;
}
.hero-stage img {
  z-index: 2;
  max-width: min(420px, 82%);
  margin: 1.15rem 0 0;
  filter: drop-shadow(0 12px 16px rgba(68,48,28,0.12));
}
body[data-theme="dark"] .hero-stage img {
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 12px 16px rgba(0,0,0,0.22));
}
.hero-badge,
.hero-microcard {
  display: none;
}

.lifestyle {
  padding-top: 2rem;
}
.lifestyle-heading {
  margin-bottom: 1rem;
  text-align: center;
}
.lifestyle-heading h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.lifestyle-heading p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.showcase-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0;
}
.showcase-strip > a {
  position: relative;
  display: flex;
  min-height: 142px;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(119,89,58,0.08);
  border-radius: 10px;
  background: linear-gradient(110deg, #f7eee2, #eee1d0);
}
body[data-theme="dark"] .showcase-strip > a {
  background: linear-gradient(110deg, #242320, #2b2925);
}
.showcase-strip > a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,238,226,0.98) 0%, rgba(247,238,226,0.88) 44%, rgba(247,238,226,0.04) 100%);
}
body[data-theme="dark"] .showcase-strip > a::after {
  background: linear-gradient(90deg, rgba(36,35,32,0.98) 0%, rgba(36,35,32,0.84) 44%, rgba(36,35,32,0.04) 100%);
}
.showcase-strip > a img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.showcase-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 58%;
  gap: 0.2rem;
}
.showcase-copy strong {
  font-size: 1.05rem;
}
.showcase-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}
.showcase-copy b {
  margin-top: 0.25rem;
  color: var(--brand-strong);
  font-size: 0.74rem;
}

.catalog {
  padding-top: 2.6rem;
}
.catalog .section-heading {
  position: relative;
  display: block;
  margin-bottom: 0.35rem;
  text-align: center;
}
.catalog .section-heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
#result-count {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  font-size: 0.72rem;
}
.catalog-notice {
  margin: 0 auto 0.9rem;
  max-width: 760px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}
.filters {
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.filters button {
  padding: 0.48rem 0.9rem;
  border-radius: 7px;
  font-size: 0.76rem;
}
.product-grid {
  gap: 0.8rem;
}
.product-card {
  padding: 0.45rem;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(35,27,18,0.04);
}
.product-image {
  height: auto;
  aspect-ratio: 1 / 0.86;
  border-radius: 7px;
  background: #f1eee9;
}
.product-image img {
  padding: 0.4rem;
  object-fit: contain;
  background: linear-gradient(150deg, #faf9f7, #eeece8);
}
body[data-theme="dark"] .product-image img {
  background: linear-gradient(150deg, #282a2b, #202223);
}
.sample-badge {
  top: 0.45rem;
  left: 0.45rem;
  padding: 0.24rem 0.48rem;
  color: #1b8251;
  font-size: 0.62rem;
  letter-spacing: 0;
}
.product-category {
  margin-top: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}
.product-name {
  margin-top: 0.12rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
.card-bottom {
  margin-top: 0.35rem;
}
.price {
  font-size: 0.92rem;
}
.detail-link {
  min-height: 28px;
  padding: 0.15rem 0;
  font-size: 0.68rem;
}
.cart-add {
  min-height: 34px;
  padding: 0.35rem 0.6rem;
  border-radius: 7px;
  font-size: 0.7rem;
}
.support-shell {
  padding-top: 1.25rem;
}
.support-card {
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  background: #fbf6ef;
}
.contact-banner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #fbf6ef;
}
.market-footer {
  margin-top: 1.7rem;
  padding-top: 1.5rem;
  background: rgba(244,245,247,0.8);
}
body[data-theme="dark"] .market-footer {
  background: rgba(255,255,255,0.025);
}
.footer-grid {
  gap: 1.1rem;
  padding-bottom: 1.3rem;
}
.footer-grid .brand-lockup {
  width: 175px;
}
.footer-grid h3 {
  margin-bottom: 0.55rem;
  font-size: 0.7rem;
}
.footer-grid nav,
.footer-contact {
  gap: 0.48rem;
  font-size: 0.78rem;
}
.footer-identity p,
.footer-contact p {
  margin: 0;
  font-size: 0.78rem;
}
.social-actions {
  gap: 0.4rem;
}
.social-actions a {
  padding: 0.38rem 0.58rem;
  font-size: 0.72rem;
}
.footer-bottom {
  padding-block: 0.75rem 1rem;
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: 340px;
    grid-template-columns: 1fr 0.9fr;
    padding-inline: 24px;
  }
  .hero-stage {
    min-height: 290px;
  }
  .hero-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .header-main .brand-lockup {
    width: 175px;
  }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 30px 20px 18px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }
  .hero-stage {
    min-height: 260px;
  }
  .hero-trust {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .showcase-strip {
    grid-template-columns: 1fr;
  }
  .showcase-strip > a {
    min-height: 128px;
  }
  #result-count {
    position: static;
    margin: 0.35rem 0 0;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .header-main {
    min-height: 0;
  }
  .header-main .brand-lockup {
    width: 150px;
  }
  .hero {
    margin-top: 0;
  }
  .hero-stage {
    min-height: 220px;
  }
  .hero-actions {
    gap: 0.5rem;
  }
  .hero-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .trust-item {
    align-items: flex-start;
  }
  .trust-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
  .trust-item strong {
    font-size: 0.68rem;
  }
  .trust-item small {
    font-size: 0.6rem;
  }
  .filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
  .filters button {
    flex: 0 0 auto;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-identity {
    grid-column: 1 / -1;
  }
}

/* Storefront catalog layout follows the approved product-led reference. */
.catalog {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.catalog .section-heading {
  margin-bottom: 0;
}
.catalog .section-heading h2 {
  margin-top: 0.3rem;
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
}
.catalog .section-heading h2 em {
  color: var(--brand);
  font-style: normal;
}
.catalog-subtitle {
  margin: 0.25rem auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.catalog-notice {
  margin: 0.4rem auto 0;
  font-size: 0.74rem;
  text-align: center;
}
.filters {
  justify-content: center;
  gap: 0.55rem;
  margin: 1.25rem 0 1.15rem;
}
.filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 42px;
  padding: 0.48rem 1rem;
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 650;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.filters button:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}
.filters button.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 16px rgba(239, 122, 45, 0.2);
}
.filter-icon {
  min-width: 1rem;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.product-grid {
  gap: 1rem;
}
.product-card {
  gap: 0;
  padding: 0.5rem;
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239,122,45,0.5);
  box-shadow: 0 14px 28px rgba(0,0,0,0.2);
}
.product-image {
  height: auto;
  aspect-ratio: 1.42 / 1;
  border-radius: 11px;
  background: #e9dfd1;
}
.product-image img {
  padding: 0;
  object-fit: cover;
  background: linear-gradient(145deg, #e9dfd1, #d8c8b5);
}
body[data-theme="dark"] .product-image img {
  background: linear-gradient(145deg, #39332e, #252321);
}
.sample-badge {
  top: 0.55rem;
  left: 0.55rem;
  min-height: 25px;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(19,22,23,0.88);
  color: #f5f4f0;
  font-size: 0.65rem;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
}
.sample-badge.in-stock::before {
  width: 7px;
  height: 7px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #49c781;
  content: "";
}
.sample-badge.demo {
  border-color: rgba(239,122,45,0.45);
  background: rgba(239,122,45,0.94);
  color: #fff;
}
.product-category {
  margin-top: 0.65rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}
.product-name {
  min-height: 2.65em;
  margin-top: 0.12rem;
  font-size: 0.92rem;
  line-height: 1.35;
}
.card-bottom {
  margin-top: 0.3rem;
}
.price {
  color: var(--brand);
  font-size: 1.02rem;
}
.product-card-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.product-card-actions .detail-link {
  min-height: 38px;
  padding: 0.3rem 0.45rem;
  font-size: 0.72rem;
  white-space: nowrap;
}
.product-card-actions .cart-add {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  white-space: nowrap;
}
.product-card-actions .cart-add svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.support-shell {
  padding-top: 1.5rem;
}
.support-card {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(390px, 2fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: var(--surface);
}
.support-lead {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.support-headset {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.support-headset svg {
  width: 25px;
  height: 25px;
}
.support-lead .eyebrow {
  font-size: 0.61rem;
}
.support-card h2 {
  margin: 0.12rem 0 0.2rem;
  font-size: 1rem;
  letter-spacing: -0.025em;
}
.support-card p {
  font-size: 0.7rem;
  line-height: 1.45;
}
.support-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding-inline: 0.9rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.support-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  text-align: center;
}
.support-benefit > span {
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}
.support-benefit strong {
  font-size: 0.68rem;
}
.support-benefit small {
  color: var(--muted);
  font-size: 0.61rem;
}
.support-card > .primary-button {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 9px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.market-footer {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
}
.footer-grid {
  gap: 1rem;
  padding-bottom: 1rem;
}
.footer-grid h3 {
  margin-bottom: 0.45rem;
  font-size: 0.69rem;
}
.footer-grid nav,
.footer-contact {
  gap: 0.35rem;
  font-size: 0.73rem;
}
.footer-identity {
  gap: 0.45rem;
}
.footer-identity p,
.footer-contact p {
  font-size: 0.72rem;
}
.footer-contact #download-app:not([hidden]) {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(239,122,45,0.42);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 750;
}
.footer-contact #download-app:not([hidden])::before {
  content: "↓";
  font-size: 1rem;
}
.social-actions a {
  padding: 0.35rem 0.58rem;
  font-size: 0.68rem;
}
.footer-bottom {
  gap: 0.8rem;
  font-size: 0.68rem;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .support-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }
  .support-benefits {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0.7rem 0 0;
    border: 0;
    border-top: 1px solid var(--border);
  }
  .support-card > .primary-button {
    justify-self: end;
  }
}
@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .catalog {
    padding-top: 2rem;
  }
  .catalog .section-heading h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
  .catalog-subtitle {
    font-size: 0.78rem;
  }
  .filters {
    justify-content: flex-start;
    gap: 0.4rem;
    margin-top: 1rem;
    margin-bottom: 0.85rem;
  }
  .filters button {
    min-height: 38px;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .product-card {
    padding: 0.38rem;
    border-radius: 12px;
  }
  .product-name {
    min-height: 2.7em;
    font-size: 0.78rem;
  }
  .product-category {
    font-size: 0.56rem;
  }
  .price {
    font-size: 0.88rem;
  }
  .product-card-actions {
    grid-template-columns: 1fr;
  }
  .product-card-actions .detail-link {
    display: none;
  }
  .product-card-actions .cart-add {
    min-height: 36px;
    font-size: 0.64rem;
  }
  .support-card {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .support-benefits {
    grid-column: auto;
    grid-row: auto;
  }
  .support-card > .primary-button {
    justify-self: stretch;
  }
  .support-benefit strong {
    font-size: 0.61rem;
  }
  .support-benefit small {
    font-size: 0.54rem;
  }
}
/* Finite entrance motion; the catalog remains usable without JavaScript. */
@keyframes storefront-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes storefront-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > .eyebrow { animation: storefront-arrive .65s both; }
  .hero-copy h1 { animation: storefront-arrive .75s .08s both; }
  .hero-copy > p { animation: storefront-arrive .75s .16s both; }
  .hero-actions { animation: storefront-arrive .75s .24s both; }
  .hero-trust { animation: storefront-arrive .75s .32s both; }
  .hero-brand-mark { animation: storefront-float 4s ease-in-out 1; }
  .lifestyle-heading, .showcase-strip > a, .support-card, .contact-banner {
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  }
  .reveal-pending { opacity: 0; transform: translateY(20px); }
  .primary-button, .cart-button { transition: transform .2s ease, box-shadow .2s ease; }
  .primary-button:active, .cart-button:active { transform: scale(.97); }
}
@media print {
  html:has(#invoice-dialog[open]),
  body:has(#invoice-dialog[open]) {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    background: white !important;
    color: #111 !important;
    overflow: visible !important;
  }
  body:has(#invoice-dialog[open]) > :not(#invoice-dialog) { display: none !important; }
  #invoice-dialog[open] {
    position: static !important;
    inset: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: white !important;
    box-shadow: none !important;
  }
  #invoice-dialog[open] > :not(.invoice-stage),
  #invoice-dialog[open]::backdrop { display: none !important; }
  #invoice-dialog .invoice-stage {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: white !important;
    overflow: visible !important;
  }
  #invoice-sheet {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    font-size: 11pt;
  }
  #invoice-sheet.thermal { width: 74mm !important; max-width: 100% !important; font-size: 9pt; }
  #invoice-sheet :is(.receipt-brand,.receipt-heading,.receipt-customer,.receipt-totals,.receipt-footer,tr) { break-inside: avoid; }
  #invoice-sheet thead { display: table-header-group; }
  #invoice-sheet .receipt-table { width: 100%; table-layout: fixed; }
  #invoice-sheet .receipt-table :is(th,td) { white-space: normal; overflow-wrap: anywhere; }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
  .hero-copy > *, .hero-brand-mark { animation: none !important; }
}
/* Printed sheets use the original dark wordmark and orange z in both themes. */
#invoice-sheet .brand-lockup img,
body[data-theme="dark"] #invoice-sheet .brand-lockup img {
  filter: none !important;
}
#invoice-sheet .brand-tagline,
#invoice-sheet .brand-subtitle { color: #15191d; }
.nav .my-orders-button { flex-shrink:0; border:0; background:transparent; color:var(--text); font:inherit; font-weight:700; padding:12px 0; white-space:nowrap; }
#saved-orders-dialog { width:min(620px,calc(100% - 24px)); color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:20px; max-height:90dvh; overflow:auto; }
#saved-orders-dialog::backdrop { background:rgba(0,0,0,.65); }
.saved-order-row { padding:18px 0; border-bottom:1px solid var(--border); }
.saved-order-row h3 { font-size:1rem; overflow-wrap:anywhere; }
.saved-order-row p { color:var(--muted); }
@media print { #saved-orders-dialog { display:none!important; } }
