:root {
  --ink: #3f3f3d;
  --ink-soft: #6e6e6a;
  --forest: #4a4744;
  --teal-900: #782933;
  --teal-700: #922b3a;
  --teal-600: #a63346;
  --teal-100: #f1dde1;
  --mint: #fbf4f4;
  --cream: #f8f2e8;
  --paper: #fffdfa;
  --coral: #c4a5a4;
  --coral-dark: #782933;
  --gold: #c8a46c;
  --line: #e4dbd4;
  --line-dark: #cdbeb5;
  --danger: #b84242;
  --warning: #7a4d00;
  --success: #197056;
  --shadow-sm: 0 8px 24px rgba(78, 44, 47, 0.09);
  --shadow-lg: 0 24px 70px rgba(63, 45, 47, 0.18);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; }
p { color: var(--ink-soft); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  color: white;
  background: var(--forest);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.preview-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 20px;
  color: #fffaf3;
  background: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: #d7909e; box-shadow: 0 0 0 4px rgba(166,51,70,.2); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(146, 43, 58, .12);
  background: rgba(248, 242, 232, .94);
  backdrop-filter: blur(18px);
}
.header-inner { display: flex; align-items: center; min-height: 76px; gap: 28px; }
.brand { display: inline-flex; align-items: center; color: var(--forest); }
.brand-logo { width: 158px; height: auto; border-radius: 6px; }
.brand-mark { width: 35px; height: 35px; color: var(--teal-700); }
.brand-mark svg path:first-child { fill: var(--teal-100); stroke: currentColor; stroke-width: 2; }
.brand-mark svg path:last-child { fill: none; stroke: var(--coral-dark); stroke-width: 3.5; stroke-linecap: round; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a, .portal-link { padding: 10px 13px; border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 700; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active, .portal-link:hover, .portal-link.active { color: var(--teal-700); background: var(--teal-100); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.portal-link { display: inline-flex; align-items: center; gap: 7px; }
.icon { display: inline-flex; width: 19px; height: 19px; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 13px;
  color: white;
  background: var(--teal-700);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}
.cart-button:hover { background: var(--teal-900); }
.cart-count { display: grid; place-items: center; min-width: 23px; height: 23px; padding-inline: 6px; color: var(--forest); background: var(--coral); border-radius: 99px; font-size: 12px; }
.mobile-menu { display: none; width: 42px; height: 42px; padding: 10px; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.mobile-menu span { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 4px; }

.loading-shell { min-height: 62vh; display: grid; place-content: center; justify-items: center; gap: 14px; }
.loader { width: 38px; height: 38px; border: 3px solid var(--teal-100); border-top-color: var(--teal-700); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--teal-600); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero { position: relative; overflow: hidden; padding: 80px 0 72px; background: linear-gradient(135deg, #fffaf3 0%, #f8f2e8 56%, #f5e5e7 100%); }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; top: -230px; right: -100px; border: 70px solid rgba(166,51,70,.06); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.hero-copy h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(46px, 6.1vw, 82px); font-weight: 780; }
.hero-copy h1 span { color: var(--teal-600); }
.hero-copy > p { max-width: 610px; margin-bottom: 30px; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 47px;
  padding: 11px 19px;
  color: white;
  background: var(--teal-700);
  border: 1px solid var(--teal-700);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-1px); background: var(--teal-900); border-color: var(--teal-900); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line-dark); }
.button.secondary:hover { color: var(--teal-700); background: white; border-color: var(--teal-600); }
.button.coral { color: var(--forest); background: var(--coral); border-color: var(--coral); }
.button.coral:hover { background: #d2b5b4; border-color: #d2b5b4; }
.button.danger { background: var(--danger); border-color: var(--danger); }
.button.small { min-height: 37px; padding: 8px 13px; font-size: 13px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.text-button { padding: 0; color: var(--teal-700); background: none; border: 0; font-weight: 800; }
.text-button:hover { text-decoration: underline; }
.hero-card { position: relative; min-height: 448px; }
.hero-panel {
  position: absolute;
  inset: 20px 20px 20px 50px;
  overflow: hidden;
  color: white;
  background: var(--teal-900);
  border-radius: 42px;
  box-shadow: var(--shadow-lg);
}
.hero-panel::before { content: ""; position: absolute; width: 310px; height: 310px; top: -140px; right: -80px; border: 45px solid rgba(255,244,240,.1); border-radius: 50%; }
.hero-panel::after { content: "+"; position: absolute; right: 48px; bottom: 34px; color: rgba(255,255,255,.07); font-size: 210px; font-weight: 200; line-height: .5; }
.hero-product { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 30px; }
.hero-product svg { width: 78%; height: 78%; filter: drop-shadow(0 24px 20px rgba(0,0,0,.18)); }
.hero-photo-panel::before, .hero-photo-panel::after { display: none; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.hero-photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(53,16,23,.04), rgba(53,16,23,.28)); }
.hero-badge { position: absolute; z-index: 2; max-width: 200px; padding: 15px 18px; background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.5); border-radius: 18px; box-shadow: var(--shadow-sm); }
.hero-badge strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 14px; }
.hero-badge span { color: var(--ink-soft); font-size: 12px; }
.hero-badge.top { top: 0; left: 0; }
.hero-badge.bottom { right: 0; bottom: 0; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 92px; padding: 18px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--teal-700); background: var(--teal-100); border-radius: 50%; font-weight: 900; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { color: var(--ink-soft); font-size: 12px; }

.photo-story { padding-bottom: 20px; background: #fffdf9; }
.photo-story-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.photo-story-feature, .photo-story-side { position: relative; min-height: 390px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.photo-story-feature img, .photo-story-side img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-story-feature:hover img, .photo-story-side:hover img { transform: scale(1.025); }
.photo-story-feature img { object-position: center 52%; }
.photo-story-side img { object-position: 52% center; }
.photo-story-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,21,24,.82) 0%, rgba(42,21,24,.48) 48%, rgba(42,21,24,.04) 82%); }
.photo-story-copy { position: absolute; z-index: 1; left: 38px; bottom: 34px; width: min(60%, 540px); color: white; }
.photo-story-copy .eyebrow { color: #f0bec6; }
.photo-story-copy h2 { margin-bottom: 12px; font-size: clamp(32px, 4vw, 50px); }
.photo-story-copy p { margin: 0; color: rgba(255,255,255,.84); font-size: 15px; }
.photo-caption { position: absolute; right: 16px; bottom: 16px; left: 16px; padding: 18px; color: var(--ink); background: rgba(255,250,243,.94); border: 1px solid rgba(255,255,255,.6); border-radius: 16px; backdrop-filter: blur(8px); }
.photo-caption strong { display: block; margin-bottom: 4px; font-size: 17px; }
.photo-caption span { color: var(--ink-soft); font-size: 12px; }

.section { padding: 78px 0; }
.section.alt { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 8px; font-size: clamp(32px, 4vw, 48px); }
.section-head p { max-width: 570px; margin-bottom: 0; }
.category-bar { display: flex; gap: 8px; margin-bottom: 25px; padding-bottom: 5px; overflow-x: auto; scrollbar-width: thin; }
.category-pill { flex: 0 0 auto; padding: 9px 15px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 800; }
.category-pill:hover, .category-pill.active { color: white; background: var(--teal-700); border-color: var(--teal-700); }
.catalogue-tools { display: flex; align-items: center; gap: 12px; }
.search-box { position: relative; width: min(100%, 320px); }
.search-box input { width: 100%; height: 45px; padding: 10px 15px 10px 42px; background: white; border: 1px solid var(--line); border-radius: 99px; outline: none; }
.search-box input:focus { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(166,51,70,.1); }
.search-box .icon { position: absolute; top: 13px; left: 15px; color: var(--ink-soft); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.product-card:hover { transform: translateY(-5px); border-color: var(--line-dark); box-shadow: var(--shadow-sm); }
.product-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1.22; padding: 22px; background: linear-gradient(145deg, #fbf4f4, #f8f2e8); }
.product-visual svg { width: 75%; height: 75%; }
.product-tag { position: absolute; top: 13px; left: 13px; padding: 6px 9px; color: var(--teal-900); background: rgba(255,255,255,.9); border: 1px solid rgba(11,98,91,.12); border-radius: 99px; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.product-category { margin-bottom: 7px; color: var(--teal-600); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { margin-bottom: 8px; font-size: 18px; }
.product-card p { display: -webkit-box; margin-bottom: 18px; overflow: hidden; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-meta { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; }
.price strong { display: block; font-size: 19px; letter-spacing: -.02em; }
.price span { color: var(--ink-soft); font-size: 10px; }
.stock-note { margin-top: 8px; color: var(--success); font-size: 11px; font-weight: 700; }
.stock-note.low { color: var(--warning); }
.add-button { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--teal-700); border: 0; border-radius: 50%; font-size: 23px; line-height: 1; }
.add-button:hover { background: var(--forest); }
.empty-card { grid-column: 1 / -1; padding: 60px 25px; text-align: center; background: white; border: 1px dashed var(--line-dark); border-radius: var(--radius); }

.bundle-banner { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 42px; padding: 45px 50px; color: white; background: var(--teal-900); border-radius: var(--radius-lg); overflow: hidden; }
.bundle-banner h2 { margin-bottom: 14px; font-size: clamp(34px, 4.5vw, 56px); }
.bundle-banner p { color: #c9e2dd; }
.bundle-visual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; transform: rotate(2deg); }
.mini-product { min-height: 122px; padding: 16px; color: var(--forest); background: var(--mint); border-radius: 20px; }
.mini-product:nth-child(2), .mini-product:nth-child(3) { background: #fde4d5; }
.mini-product svg { width: 55px; height: 55px; margin: 0 auto 6px; }
.mini-product span { display: block; font-size: 11px; font-weight: 900; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 30px; color: var(--coral-dark); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.step h3 { margin-bottom: 9px; font-size: 22px; }
.step p { margin-bottom: 0; font-size: 14px; }

.page-hero { padding: 72px 0 55px; background: var(--mint); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 60px; }
.page-hero h1 { margin-bottom: 20px; font-size: clamp(42px, 6vw, 72px); }
.page-hero p { max-width: 650px; font-size: 18px; }
.stat-cluster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-tile { min-height: 135px; padding: 23px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.stat-tile strong { display: block; margin-bottom: 7px; color: var(--teal-700); font-size: 30px; }
.stat-tile span { color: var(--ink-soft); font-size: 13px; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.sticky-copy { position: sticky; top: 130px; }
.sticky-copy h2 { font-size: 39px; }
.feature-list { display: grid; gap: 12px; margin: 25px 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 11px; color: var(--ink-soft); }
.feature-list li::before { content: "✓"; flex: 0 0 24px; display: grid; place-items: center; width: 24px; height: 24px; color: white; background: var(--teal-600); border-radius: 50%; font-size: 12px; font-weight: 900; }

.form-card { padding: 32px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-card h2 { margin-bottom: 7px; font-size: 28px; }
.form-intro { margin-bottom: 25px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 11px;
  outline: none;
}
.field textarea { min-height: 105px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(166,51,70,.1); }
.field small { color: var(--ink-soft); font-size: 11px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; grid-column: 1 / -1; color: var(--ink-soft); font-size: 13px; }
.check-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal-700); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; }
.form-note { margin: 0; font-size: 12px; }

.track-wrap { min-height: 58vh; padding: 85px 0; }
.track-card { width: min(100%, 700px); margin: 0 auto; padding: 38px; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.track-card h1 { margin-bottom: 10px; font-size: 42px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin-top: 25px; }
.tracking-result { margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--line); }
.status-line { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 25px 0; }
.status-node { height: 5px; background: var(--line); border-radius: 99px; }
.status-node.done { background: var(--teal-600); }
.order-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }

.auth-page { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 690px; background: white; }
.auth-visual { position: relative; overflow: hidden; padding: 55px; color: white; background: var(--teal-900); }
.auth-visual::before { content: "+"; position: absolute; right: -20px; bottom: -70px; color: rgba(255,255,255,.07); font-size: 390px; font-weight: 200; }
.auth-visual h1 { position: relative; max-width: 480px; margin: 110px 0 20px; font-size: clamp(40px, 5vw, 66px); }
.auth-visual p { position: relative; max-width: 430px; color: #cbe3df; font-size: 18px; }
.auth-main { display: grid; place-items: center; padding: 50px 24px; }
.auth-box { width: min(100%, 440px); }
.auth-box h2 { margin-bottom: 9px; font-size: 34px; }
.auth-box form { display: grid; gap: 16px; margin-top: 27px; }

.portal-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: calc(100vh - 110px); background: #faf6f0; }
.portal-sidebar { position: sticky; top: 76px; align-self: start; height: calc(100vh - 76px); padding: 27px 18px; color: #d8e8e4; background: var(--forest); }
.portal-user { padding: 0 10px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.portal-user strong { display: block; color: white; }
.portal-user span { font-size: 12px; }
.portal-nav { display: grid; gap: 5px; margin-top: 22px; }
.portal-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; color: #c6d9d5; background: transparent; border: 0; border-radius: 10px; font-size: 13px; font-weight: 750; text-align: left; }
.portal-nav button:hover, .portal-nav button.active { color: white; background: rgba(255,255,255,.1); }
.portal-sidebar .logout { position: absolute; right: 18px; bottom: 22px; left: 18px; }
.portal-main { min-width: 0; padding: 36px; }
.portal-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
.portal-heading h1 { margin-bottom: 5px; font-size: 35px; }
.portal-heading p { margin: 0; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.metric-card { min-width: 0; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.metric-card .metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.metric-card strong { display: block; overflow: hidden; font-size: 25px; letter-spacing: -.04em; text-overflow: ellipsis; }
.metric-card small { color: var(--ink-soft); }
.panel-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.panel { min-width: 0; padding: 23px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.panel.full { grid-column: 1 / -1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 20px; }
.referral-box { padding: 20px; color: white; background: var(--teal-900); border-radius: 15px; }
.referral-code { margin: 8px 0; color: var(--coral); font-size: 30px; font-weight: 900; letter-spacing: .08em; }
.referral-link { display: block; margin-bottom: 14px; overflow: hidden; color: #cbe3df; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.progress-track { height: 9px; overflow: hidden; background: var(--line); border-radius: 99px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--teal-600), var(--coral)); border-radius: inherit; }
.progress-labels { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-soft); font-size: 11px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 10px 12px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #edf1ef; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; color: var(--ink-soft); background: #edf2f0; border-radius: 99px; font-size: 10px; font-weight: 900; text-transform: capitalize; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status.completed, .status.approved, .status.verified, .status.paid, .status.active, .status.received { color: var(--success); background: #e6f5ef; }
.status.pending, .status.pending_payment, .status.submitted, .status.more_information { color: var(--warning); background: #fff5dd; }
.status.cancelled, .status.rejected, .status.refunded, .status.suspended { color: var(--danger); background: #fbeaea; }
.status.dispatched, .status.processing, .status.packed, .status.confirmed { color: #3561a8; background: #eaf0fb; }
.table-actions { display: flex; gap: 7px; }
.table-button { padding: 6px 9px; color: var(--teal-700); background: var(--mint); border: 1px solid var(--teal-100); border-radius: 8px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.table-button:hover { color: white; background: var(--teal-700); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.muted { color: var(--ink-soft); }
.empty-state { padding: 35px 15px; color: var(--ink-soft); text-align: center; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 89; visibility: hidden; background: rgba(4, 24, 23, .48); opacity: 0; transition: .22s ease; }
.drawer-backdrop.open, .modal-backdrop.open { visibility: visible; opacity: 1; }
.cart-drawer { position: fixed; z-index: 90; top: 0; right: 0; display: flex; flex-direction: column; width: min(100%, 455px); height: 100dvh; background: white; box-shadow: var(--shadow-lg); visibility: hidden; transform: translateX(105%); transition: .28s ease; }
.cart-drawer.open { visibility: visible; transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 25px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); background: var(--mint); border: 0; border-radius: 50%; font-size: 27px; }
.cart-body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { display: grid; place-items: center; width: 72px; height: 72px; padding: 10px; background: var(--mint); border-radius: 13px; }
.cart-thumb svg { width: 100%; height: 100%; }
.cart-line h3 { margin-bottom: 4px; font-size: 14px; }
.cart-line .price { color: var(--ink-soft); font-size: 12px; }
.quantity { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.quantity button { display: grid; place-items: center; width: 25px; height: 25px; background: white; border: 1px solid var(--line); border-radius: 50%; }
.remove-line { align-self: start; color: var(--danger); background: none; border: 0; font-size: 20px; }
.cart-footer { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.cart-total strong { font-size: 23px; }
.cart-footer .button { width: 100%; }

.modal { position: fixed; z-index: 91; top: 50%; left: 50%; width: min(calc(100% - 30px), 760px); max-height: min(88dvh, 900px); overflow-y: auto; background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg); visibility: hidden; opacity: 0; transform: translate(-50%, -46%) scale(.98); transition: .22s ease; }
.modal.wide { width: min(calc(100% - 30px), 1020px); }
.modal.open { visibility: visible; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 25px 28px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin-bottom: 4px; font-size: 26px; }
.modal-head p { margin: 0; font-size: 12px; }
.modal-body { padding: 25px 28px 28px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px 25px; border-top: 1px solid var(--line); }
.line-items { display: grid; gap: 11px; margin-bottom: 22px; }
.line-item { display: grid; grid-template-columns: 1fr 90px; gap: 12px; align-items: center; padding: 12px; background: var(--mint); border-radius: 12px; }
.line-item strong { display: block; font-size: 13px; }
.line-item span { color: var(--ink-soft); font-size: 11px; }
.line-item input { width: 100%; height: 39px; padding: 8px; border: 1px solid var(--line-dark); border-radius: 8px; }
.success-box { padding: 28px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; color: white; background: var(--success); border-radius: 50%; font-size: 31px; }
.success-box h2 { font-size: 31px; }
.reference { display: inline-block; margin: 8px 0 18px; padding: 10px 14px; color: var(--teal-900); background: var(--mint); border-radius: 9px; font-family: ui-monospace, monospace; font-weight: 900; }

.toast-region { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: grid; gap: 9px; width: min(calc(100% - 36px), 390px); pointer-events: none; }
.toast { padding: 14px 16px; color: white; background: var(--forest); border-left: 4px solid var(--coral); border-radius: 10px; box-shadow: var(--shadow-lg); animation: toast-in .25s ease; }
.toast.error { background: #672d2d; }
.toast.success { background: #145947; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.noscript { position: fixed; inset: auto 10px 10px; z-index: 999; padding: 15px; color: white; background: var(--danger); text-align: center; }

.site-footer { padding: 58px 0 20px; color: #bdd3cf; background: var(--forest); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .8fr 1fr; gap: 45px; padding-bottom: 40px; }
.brand-footer { margin-bottom: 17px; padding: 7px 11px; background: var(--cream); border-radius: 10px; }
.brand-footer .brand-logo { width: 150px; }
.brand-footer .brand-mark svg path:first-child { fill: rgba(216,243,234,.12); stroke: #9fd1c7; }
.footer-grid h2 { margin-bottom: 17px; color: white; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid p { max-width: 330px; color: #aac3be; font-size: 13px; }
.footer-grid a, .footer-grid span { display: block; margin: 8px 0; font-size: 13px; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .portal-main { padding: 28px 22px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 67px; }
  .brand-logo { width: 135px; }
  .brand-mark { width: 31px; height: 31px; }
  .main-nav { position: absolute; top: 67px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .mobile-menu { display: block; }
  .portal-label, .cart-button > span:nth-child(2) { display: none; }
  .hero { padding: 55px 0; }
  .hero-grid, .page-hero-grid, .split, .bundle-banner, .auth-page { grid-template-columns: 1fr; }
  .hero-card { min-height: 390px; }
  .hero-panel { inset: 20px 10px 20px 25px; }
  .photo-story-grid { grid-template-columns: 1fr; }
  .photo-story-feature { min-height: 420px; }
  .photo-story-side { min-height: 330px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 58px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .catalogue-tools { width: 100%; }
  .search-box { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .bundle-banner { padding: 35px 28px; }
  .steps { grid-template-columns: 1fr; }
  .page-hero { padding: 50px 0; }
  .sticky-copy { position: static; }
  .track-form { grid-template-columns: 1fr; }
  .auth-visual { min-height: 380px; padding: 35px; }
  .auth-visual h1 { margin-top: 50px; }
  .portal-shell { display: block; }
  .portal-sidebar { position: static; height: auto; padding: 14px; }
  .portal-user { display: none; }
  .portal-nav { display: flex; margin: 0; overflow-x: auto; }
  .portal-nav button { width: auto; flex: 0 0 auto; }
  .portal-sidebar .logout { position: static; margin-top: 8px; }
  .panel-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .preview-strip { font-size: 10px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 44px; }
  .hero-copy > p { font-size: 16px; }
  .hero-card { min-height: 330px; }
  .hero-badge { max-width: 170px; padding: 11px 13px; }
  .hero-badge.bottom { right: 4px; }
  .photo-story { padding-top: 38px; }
  .photo-story-feature { min-height: 430px; }
  .photo-story-side { min-height: 300px; }
  .photo-story-overlay { background: linear-gradient(0deg, rgba(42,21,24,.9) 0%, rgba(42,21,24,.48) 58%, rgba(42,21,24,.04) 100%); }
  .photo-story-copy { right: 22px; bottom: 25px; left: 22px; width: auto; }
  .photo-story-copy h2 { font-size: 31px; }
  .trust-item { justify-content: flex-start; padding: 15px 12px; }
  .trust-icon { width: 32px; height: 32px; }
  .trust-item strong { font-size: 12px; }
  .trust-item span { font-size: 10px; }
  .section-head h2 { font-size: 34px; }
  .form-card, .track-card { padding: 23px 18px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .check-field { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .stat-cluster { grid-template-columns: 1fr 1fr; }
  .stat-tile { min-height: 110px; padding: 17px; }
  .stat-tile strong { font-size: 23px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 19px; }
  .portal-main { padding: 22px 14px; }
  .portal-heading { align-items: flex-start; flex-direction: column; }
  .panel { padding: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { flex-direction: column; }
  .modal-head, .modal-body, .modal-footer { padding-right: 19px; padding-left: 19px; }
  .line-item { grid-template-columns: 1fr 75px; }
}

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