/* ShopOut Theme System — CSS Custom Properties */

/* ═══════════════ BASE DESIGN TOKENS ═══════════════ */
:root {
  --color-brand-orange: #FF6B35;
  --color-brand-coral: #FF8C42;
  --color-brand-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  --shadow-brand: 0 8px 24px rgba(255,107,53,0.25);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* ═══════════════ THEME: CLEAN ═══════════════ */
.theme-clean {
  --theme-bg: #FFFFFF;
  --theme-surface: #FFFFFF;
  --theme-surface-alt: #F8FAFC;
  --theme-border: #E2E8F0;
  --theme-text-primary: #1E293B;
  --theme-text-secondary: #64748B;
  --theme-text-inverse: #FFFFFF;
  --theme-primary: #FF6B35;
  --theme-primary-hover: #e55a27;
  --theme-primary-gradient: linear-gradient(135deg, #FF6B35, #FF8C42);
  --theme-primary-text: #FFFFFF;
  --theme-header-bg: #FFFFFF;
  --theme-header-text: #1E293B;
  --theme-header-border: #E2E8F0;
  --theme-footer-bg: #F1F5F9;
  --theme-footer-text: #64748B;
  --theme-card-bg: #FFFFFF;
  --theme-card-border: #E2E8F0;
  --theme-card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --theme-card-hover-shadow: 0 10px 25px rgba(0,0,0,0.1);
  --theme-card-radius: 12px;
  --theme-btn-radius: 9999px;
  --theme-badge-bg: #F1F5F9;
  --theme-badge-text: #64748B;
  --theme-badge-active-bg: linear-gradient(135deg, #FF6B35, #FF8C42);
  --theme-badge-active-text: #FFFFFF;
  --theme-img-fallback: #F8FAFC;
  --theme-heading-weight: 700;
}

/* ═══════════════ THEME: BOLD ═══════════════ */
.theme-bold {
  --theme-bg: #0D1117;
  --theme-surface: #161B22;
  --theme-surface-alt: #21262D;
  --theme-border: #30363D;
  --theme-text-primary: #F0F6FC;
  --theme-text-secondary: #8B949E;
  --theme-text-inverse: #0D1117;
  --theme-primary: #FF6B35;
  --theme-primary-hover: #FF4500;
  --theme-primary-gradient: linear-gradient(135deg, #FF4500, #FF6B35);
  --theme-primary-text: #FFFFFF;
  --theme-header-bg: rgba(13, 17, 23, 0.95);
  --theme-header-text: #F0F6FC;
  --theme-header-border: rgba(255,255,255,0.06);
  --theme-footer-bg: #0D1117;
  --theme-footer-text: #8B949E;
  --theme-card-bg: #161B22;
  --theme-card-border: #30363D;
  --theme-card-shadow: none;
  --theme-card-hover-shadow: 0 0 0 1px #FF6B35;
  --theme-card-radius: 8px;
  --theme-btn-radius: 6px;
  --theme-badge-bg: #21262D;
  --theme-badge-text: #8B949E;
  --theme-badge-active-bg: #FF6B35;
  --theme-badge-active-text: #FFFFFF;
  --theme-img-fallback: #21262D;
  --theme-heading-weight: 800;
}

/* ═══════════════ THEME: WARM ═══════════════ */
.theme-warm {
  --theme-bg: #FDF8F5;
  --theme-surface: #FFFFFF;
  --theme-surface-alt: #FEF0E9;
  --theme-border: #F0D9CE;
  --theme-text-primary: #3D2B1F;
  --theme-text-secondary: #8B6F62;
  --theme-text-inverse: #FFFFFF;
  --theme-primary: #D4845A;
  --theme-primary-hover: #C4674A;
  --theme-primary-gradient: linear-gradient(135deg, #C4674A, #E09572);
  --theme-primary-text: #FFFFFF;
  --theme-header-bg: rgba(253, 248, 245, 0.95);
  --theme-header-text: #3D2B1F;
  --theme-header-border: #F0D9CE;
  --theme-footer-bg: #FAF0EB;
  --theme-footer-text: #8B6F62;
  --theme-card-bg: #FFFFFF;
  --theme-card-border: #F0D9CE;
  --theme-card-shadow: 0 4px 20px rgba(180,100,80,0.08);
  --theme-card-hover-shadow: 0 12px 32px rgba(180,100,80,0.15);
  --theme-card-radius: 16px;
  --theme-btn-radius: 9999px;
  --theme-badge-bg: #FEF0E9;
  --theme-badge-text: #8B6F62;
  --theme-badge-active-bg: #D4845A;
  --theme-badge-active-text: #FFFFFF;
  --theme-img-fallback: #FDF8F5;
  --theme-heading-weight: 700;
}

/* ═══════════════ NICHE LAYOUT FAMILIES ═══════════════ */
.sf-page[class*="kit-family-"] {
  --theme-primary: var(--kit-accent);
  --theme-primary-gradient: linear-gradient(135deg, var(--kit-accent), color-mix(in srgb, var(--kit-accent), #fff 22%));
  --theme-badge-active-bg: var(--theme-primary-gradient);
}
.sf-kit-hero { overflow: hidden; background: var(--kit-bg); }
.sf-kit-hero-inner { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); align-items: center; gap: 7vw; padding-top: 64px; padding-bottom: 64px; }
.sf-kit-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.sf-kit-hero-copy h1 { font-size: clamp(42px, 6vw, 82px); line-height: 1.05; letter-spacing: -.04em; margin: 10px 0 18px; }
.sf-kit-hero-copy > p:last-of-type { max-width: 580px; font-size: 17px; line-height: 1.8; color: var(--theme-text-secondary); }
.sf-kit-eyebrow { color: var(--kit-accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.sf-kit-hero-art { position: relative; min-height: 390px; }
.sf-kit-art-card { position: absolute; display: block; background: #fff; border: 1px solid color-mix(in srgb, var(--kit-accent), transparent 72%); box-shadow: 0 28px 70px color-mix(in srgb, var(--kit-accent), transparent 76%); }
.sf-kit-art-card-main { inset: 8% 5% 5% 15%; transform: rotate(5deg); background-size: cover; background-position: center; }
.sf-kit-art-card-small { width: 42%; height: 42%; left: 0; bottom: 0; background: var(--kit-accent); transform: rotate(-8deg); }
.sf-kit-art-card-main::before, .sf-kit-art-card-main::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; }
.sf-kit-art-card-main::before { width: 58%; aspect-ratio: 1; background: var(--kit-accent); opacity: .16; right: 10%; top: 10%; }
.sf-kit-art-card-main::after { width: 45%; height: 12px; background: var(--kit-accent); left: 12%; bottom: 15%; }
.sf-kit-art-mark { position: absolute; right: 12%; top: 20%; z-index: 2; font-size: 110px; line-height: 1; font-weight: 800; color: var(--kit-accent); }
.sf-kit-sections { padding-bottom: 12px; }
.sf-kit-section { padding-top: 72px; }
.sf-kit-section > h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin: 7px 0 24px; }
.sf-kit-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.sf-kit-category-card { overflow: hidden; }
.sf-kit-category-art { position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--kit-bg), var(--kit-accent) 12%); }
.sf-kit-category-art > span { font-size: clamp(42px, 5vw, 72px); font-weight: 800; color: var(--kit-accent); z-index: 1; }
.sf-kit-category-art > i { position: absolute; width: 62%; aspect-ratio: 1; border: 2px solid var(--kit-accent); opacity: .22; transform: rotate(24deg); }
.sf-kit-story { overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; }
.sf-kit-story-art { position: relative; min-height: 420px; overflow: hidden; display: grid; place-items: center; background: var(--kit-bg); }
.sf-kit-story-art > span { max-width: 70%; font-size: clamp(32px, 4vw, 58px); line-height: 1.15; font-weight: 800; color: var(--kit-accent); z-index: 1; }
.sf-kit-story-art > i { position: absolute; width: 54%; aspect-ratio: 1; border: 26px solid var(--kit-accent); opacity: .13; border-radius: 50%; right: -7%; bottom: -18%; }
.sf-kit-story-copy { padding: clamp(32px, 6vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.sf-kit-story-copy h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.2; margin: 10px 0 14px; }
.sf-kit-guide { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: clamp(28px, 5vw, 58px); background: var(--kit-bg); border: 1px solid var(--theme-border); border-radius: var(--theme-card-radius); }
.sf-kit-guide h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 7px; }
.sf-kit-promo { border-radius: var(--theme-card-radius); }
.sf-kit-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--theme-border); border-radius: var(--theme-card-radius); overflow: hidden; background: var(--theme-card-bg); }
.sf-kit-trust-grid article { padding: 30px; border-right: 1px solid var(--theme-border); }
.sf-kit-trust-grid article:last-child { border-right: 0; }
.sf-kit-trust-grid b { color: var(--kit-accent); font-size: 13px; }
.sf-kit-trust-grid h3 { margin: 18px 0 8px; font-size: 18px; }
.sf-kit-trust-grid p { color: var(--theme-text-secondary); font-size: 14px; line-height: 1.7; }

.kit-family-editorial h1, .kit-family-editorial h2, .kit-family-editorial .sf-kit-art-mark,
.kit-family-luxury h1, .kit-family-luxury h2, .kit-family-food h1, .kit-family-food h2,
.kit-family-cafe h1, .kit-family-cafe h2, .kit-family-natural h1, .kit-family-natural h2,
.kit-family-artisan h1, .kit-family-artisan h2 {
  font-family: 'Noto Serif Thai', Georgia, serif;
}
.kit-family-editorial .sf-kit-art-card, .kit-family-editorial .sf-card,
.kit-family-editorial .sf-card-static { border-radius: 0; }
.kit-family-editorial .sf-kit-hero-inner { grid-template-columns: 1.1fr .9fr; min-height: 620px; }
.kit-family-editorial .sf-kit-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit-family-editorial .sf-kit-category-art { aspect-ratio: 4 / 5; }

.kit-family-luxury .sf-kit-hero { background: linear-gradient(120deg, var(--kit-bg), #fff); }
.kit-family-luxury .sf-kit-hero-inner { min-height: 660px; grid-template-columns: .8fr 1.2fr; }
.kit-family-luxury .sf-kit-art-card { border-radius: 999px 999px 24px 24px; }
.kit-family-luxury .sf-kit-art-card-small { border-radius: 50%; width: 30%; height: 30%; }
.kit-family-luxury .sf-card, .kit-family-luxury .sf-card-static { border-radius: 2px; box-shadow: 0 18px 60px rgba(31,41,55,.08); }
.kit-family-luxury .sf-kit-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kit-family-premium .sf-kit-hero { background: linear-gradient(145deg, #fff, var(--kit-bg)); }
.kit-family-premium .sf-kit-hero-inner { min-height: 600px; }
.kit-family-premium .sf-kit-art-card-main { border-radius: 48% 48% 18px 18px; transform: none; }
.kit-family-premium .sf-kit-art-card-small { border-radius: 50%; opacity: .78; }
.kit-family-premium .sf-card, .kit-family-premium .sf-card-static, .kit-family-premium .sf-kit-guide { border-radius: 28px; box-shadow: 0 14px 44px rgba(31,41,55,.06); }
.kit-family-premium .sf-kit-trust-grid { border: 0; gap: 12px; background: transparent; }
.kit-family-premium .sf-kit-trust-grid article { border: 1px solid var(--theme-border); border-radius: 20px; background: var(--theme-card-bg); }

.kit-family-playful .sf-kit-hero { background-image: radial-gradient(color-mix(in srgb, var(--kit-accent), transparent 70%) 2px, transparent 2px); background-size: 24px 24px; }
.kit-family-playful .sf-kit-art-card, .kit-family-playful .sf-card, .kit-family-playful .sf-card-static, .kit-family-playful .sf-kit-guide { border-radius: 28px; }
.kit-family-playful .sf-kit-art-card-main { transform: rotate(7deg); }
.kit-family-playful .sf-kit-art-card-small { border-radius: 50%; }
.kit-family-playful .sf-kit-category-card:nth-child(even) { transform: translateY(18px); }

.kit-family-food .sf-kit-hero-inner { min-height: 590px; }
.kit-family-food .sf-kit-art-card-main { border-radius: 50% 50% 12px 12px; }
.kit-family-food .sf-kit-art-card-small { border-radius: 50%; }
.kit-family-food .sf-kit-category-art, .kit-family-food .sf-kit-story-art { background: linear-gradient(145deg, var(--kit-bg), #fff); }
.kit-family-food .sf-kit-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.kit-family-cafe .sf-kit-hero { background: linear-gradient(160deg, var(--kit-bg) 0 62%, color-mix(in srgb, var(--kit-accent), #111 12%) 62%); }
.kit-family-cafe .sf-kit-hero-inner { min-height: 610px; grid-template-columns: .9fr 1.1fr; }
.kit-family-cafe .sf-kit-art-card-main { border-radius: 50% 50% 50% 10px; transform: rotate(-3deg); }
.kit-family-cafe .sf-kit-art-card-small { border-radius: 50%; }
.kit-family-cafe .sf-kit-guide { border-radius: 999px; padding-left: 64px; padding-right: 64px; }

.kit-family-technical .sf-kit-hero { background-image: linear-gradient(color-mix(in srgb, var(--kit-accent), transparent 90%) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--kit-accent), transparent 90%) 1px, transparent 1px); background-size: 32px 32px; }
.kit-family-technical .sf-kit-art-card, .kit-family-technical .sf-card, .kit-family-technical .sf-card-static, .kit-family-technical .sf-kit-guide { border-radius: 4px; }
.kit-family-technical .sf-kit-eyebrow { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.kit-family-technical .sf-kit-art-card-main::before { border-radius: 0; }

.kit-family-industrial .sf-kit-hero { background: linear-gradient(120deg, #111820 0 64%, var(--kit-accent) 64%); }
.kit-family-industrial .sf-kit-hero-copy h1 { color: #fff; text-transform: uppercase; font-size: clamp(42px, 6vw, 76px); }
.kit-family-industrial .sf-kit-hero-copy > p:last-of-type { color: #aeb8c2; }
.kit-family-industrial .sf-kit-art-card, .kit-family-industrial .sf-card, .kit-family-industrial .sf-card-static, .kit-family-industrial .sf-kit-guide { border-radius: 0; }
.kit-family-industrial .sf-kit-art-card-main { transform: none; clip-path: polygon(8% 0,100% 0,92% 100%,0 100%); }
.kit-family-industrial .sf-kit-eyebrow { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.kit-family-industrial .sf-kit-trust-grid b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.kit-family-natural .sf-kit-hero { background: linear-gradient(135deg, var(--kit-bg), #fff); }
.kit-family-natural .sf-kit-art-card-main { border-radius: 48% 48% 12px 12px; transform: rotate(2deg); }
.kit-family-natural .sf-kit-art-card-small { border-radius: 62% 38% 58% 42%; }
.kit-family-natural .sf-card, .kit-family-natural .sf-card-static { border-radius: 34px 8px; }
.kit-family-natural .sf-kit-category-art { border-radius: 50% 50% 10px 10px; margin: 10px; }
.kit-family-natural .sf-kit-story-art > i { border-radius: 62% 38% 58% 42%; }

.kit-family-artisan .sf-kit-art-card-main, .kit-family-artisan .sf-card, .kit-family-artisan .sf-card-static { border-radius: 40px 8px 40px 8px; }
.kit-family-artisan .sf-kit-art-card-small { border-radius: 50% 12px 50% 12px; }
.kit-family-artisan .sf-kit-story-art > i { border-radius: 40% 60% 35% 65%; transform: rotate(18deg); }

.kit-family-energetic .sf-kit-hero-copy h1 { text-transform: uppercase; font-style: italic; }
.kit-family-energetic .sf-kit-hero { background: linear-gradient(118deg, #0d1117 0 64%, var(--kit-accent) 64%); }
.kit-family-energetic .sf-kit-hero-copy > p:last-of-type { color: #b7c0ca; }
.kit-family-energetic .sf-kit-art-card, .kit-family-energetic .sf-card, .kit-family-energetic .sf-card-static, .kit-family-energetic .sf-kit-guide { border-radius: 0; }
.kit-family-energetic .sf-kit-art-card-main { transform: skew(-8deg) rotate(3deg); }
.kit-family-energetic .sf-kit-category-card:nth-child(odd) { transform: skewY(-1deg); }

.kit-family-catalog .sf-kit-hero-inner { min-height: 400px; }
.kit-family-catalog .sf-kit-hero-copy h1 { font-size: clamp(38px, 5vw, 64px); }
.kit-family-catalog .sf-kit-art-card, .kit-family-catalog .sf-card, .kit-family-catalog .sf-card-static, .kit-family-catalog .sf-kit-guide { border-radius: 6px; box-shadow: none; }
.kit-family-catalog .sf-kit-category-grid { gap: 8px; }
.kit-family-catalog .sf-kit-section { padding-top: 48px; }

.kit-variant-soft .sf-kit-art-card-main { transform: rotate(-2deg); }
.kit-variant-soft .sf-kit-hero-copy h1 { letter-spacing: -.025em; }
.kit-variant-contrast .sf-kit-art-card-small { width: 52%; height: 24%; transform: none; }
.kit-variant-contrast .sf-kit-eyebrow { background: var(--kit-accent); color: #fff; display: inline-flex; padding: 6px 10px; letter-spacing: .12em; }
.kit-variant-split .sf-kit-hero-inner { grid-template-columns: .75fr 1.25fr; gap: 4vw; }
.kit-variant-split .sf-kit-art-card-main { inset: 0; transform: none; }
.kit-variant-frame .sf-kit-art-card-main { border: 14px solid #fff; box-shadow: 0 0 0 1px var(--kit-accent),0 28px 70px color-mix(in srgb,var(--kit-accent),transparent 76%); }
.kit-variant-frame .sf-kit-category-art { border: 8px solid color-mix(in srgb,var(--kit-bg),#fff 35%); }
@media (min-width: 1024px) {
  .kit-family-catalog .sf-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 767px) {
  .sf-kit-hero-inner { min-height: auto; grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .sf-kit-hero-art { min-height: 290px; }
  .sf-kit-category-grid, .kit-family-editorial .sf-kit-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-kit-story { grid-template-columns: 1fr; }
  .sf-kit-story-art { min-height: 300px; }
  .sf-kit-guide { align-items: flex-start; flex-direction: column; }
  .sf-kit-trust-grid { grid-template-columns: 1fr; }
  .sf-kit-trust-grid article { border-right: 0; border-bottom: 1px solid var(--theme-border); }
  .sf-kit-trust-grid article:last-child { border-bottom: 0; }
  .kit-family-playful .sf-kit-category-card:nth-child(even) { transform: none; }
  .kit-family-luxury .sf-kit-category-grid, .kit-family-food .sf-kit-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-family-premium .sf-kit-trust-grid { gap: 8px; }
  .kit-family-cafe .sf-kit-guide { border-radius: 28px; padding-left: 28px; padding-right: 28px; }
}

/* ═══════════════ SHARED STOREFRONT STYLES ═══════════════ */
.sf-page { background: var(--theme-bg); color: var(--theme-text-primary); min-height: 100vh; }
.sf-header { background: var(--theme-header-bg); color: var(--theme-header-text); border-bottom: 1px solid var(--theme-header-border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sf-header a { color: var(--theme-header-text); }
.sf-footer { background: var(--theme-footer-bg); color: var(--theme-footer-text); border-top: 1px solid var(--theme-border); }
.sf-card { background: var(--theme-card-bg); border: 1px solid var(--theme-card-border); border-radius: var(--theme-card-radius); box-shadow: var(--theme-card-shadow); transition: all 200ms ease; }
.sf-card:hover { box-shadow: var(--theme-card-hover-shadow); transform: translateY(-4px); }
.sf-card-static { background: var(--theme-card-bg); border: 1px solid var(--theme-card-border); border-radius: var(--theme-card-radius); }

.sf-btn-primary { background: var(--theme-primary-gradient); color: var(--theme-primary-text); border-radius: var(--theme-btn-radius); font-weight: 600; transition: all 150ms ease; box-shadow: 0 4px 12px rgba(255,107,53,0.2); }
.sf-btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 24px rgba(255,107,53,0.3); }
.sf-btn-primary:active { transform: scale(0.98); }
.sf-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; box-shadow: none; }

.sf-btn-secondary { background: transparent; border: 2px solid var(--theme-primary); color: var(--theme-primary); border-radius: var(--theme-btn-radius); font-weight: 600; transition: all 150ms ease; }
.sf-btn-secondary:hover { background: rgba(255,107,53,0.06); }

.sf-variant { background: var(--theme-card-bg); border-color: var(--theme-card-border); color: var(--theme-text-secondary); }
.sf-variant:hover:not(:disabled) { border-color: var(--theme-primary); color: var(--theme-primary); }
.sf-variant-selected { background: var(--theme-primary); color: var(--theme-primary-text); border-color: var(--theme-primary); font-weight: 600; }

.sf-badge { background: var(--theme-badge-bg); color: var(--theme-badge-text); border-radius: 9999px; padding: 6px 14px; font-size: 13px; font-weight: 500; transition: all 150ms ease; display: inline-block; }
.sf-badge-active { background: var(--theme-badge-active-bg); color: var(--theme-badge-active-text); box-shadow: 0 2px 8px rgba(255,107,53,0.2); }

.sf-price { color: var(--theme-primary); font-weight: 700; }
/* Active category pill in the header nav — buyers reported that the
   pre-existing "primary colour, bolder weight" treatment wasn't loud
   enough to tell them which category they were filtered into. The pill
   shape borrows the same shape language as .sf-badge-active. */
.sf-cat-active {
  background: var(--theme-badge-active-bg);
  color: var(--theme-badge-active-text);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255,107,53,0.2);
}
.sf-text-secondary { color: var(--theme-text-secondary); }
.sf-text-primary { color: var(--theme-text-primary); }
.sf-surface-alt { background: var(--theme-surface-alt); }
.sf-border { border-color: var(--theme-border); }
.sf-img-fallback { background: var(--theme-img-fallback); }

.sf-input { border: 1.5px solid var(--theme-border); border-radius: 8px; background: var(--theme-surface); color: var(--theme-text-primary); padding: 0 14px; height: 44px; outline: none; transition: all 150ms ease; }
.sf-input:focus { border-color: var(--theme-primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.12); }
.sf-textarea { border: 1.5px solid var(--theme-border); border-radius: 8px; background: var(--theme-surface); color: var(--theme-text-primary); padding: 10px 14px; outline: none; transition: all 150ms ease; resize: vertical; min-height: 80px; }
.sf-textarea:focus { border-color: var(--theme-primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.12); }

.sf-radio-card { background: var(--theme-card-bg); border: 2px solid var(--theme-border); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: all 150ms ease; }
.sf-radio-card.active, .sf-radio-card:has(input:checked) { border-color: var(--theme-primary); background: rgba(255,107,53,0.04); }

/* Cart badge */
.sf-cart-badge { background: var(--theme-primary); color: #FFF; font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; position: absolute; top: -4px; right: -4px; }

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Line clamp */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ═══════════════ ADMIN STYLES ═══════════════ */
.admin-sidebar { background: #0F172A; color: #94A3B8; }
.admin-sidebar-item { display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; margin: 0 8px; font-size: 14px; font-weight: 500; color: #94A3B8; transition: all 150ms ease; gap: 12px; }
.admin-sidebar-item:hover { background: #1E293B; color: #CBD5E1; }
.admin-sidebar-item.active { background: rgba(255,107,53,0.12); color: #FFFFFF; border-left: 3px solid #FF6B35; }
.admin-sidebar-item.active svg { color: #FF6B35; }

.admin-stat-card { background: #1E293B; border: 1px solid #334155; border-radius: 12px; padding: 20px 24px; }
.admin-card { background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; }
.admin-table-header { background: #F8FAFC; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #64748B; font-weight: 600; }

.admin-btn-primary { background: var(--color-brand-gradient); color: #FFF; border-radius: 9999px; font-weight: 600; padding: 10px 24px; font-size: 14px; transition: all 150ms ease; box-shadow: var(--shadow-brand); }
.admin-btn-primary:hover { filter: brightness(1.05); }
.admin-btn-neutral { background: #F1F5F9; color: #334155; border: 1px solid #E2E8F0; border-radius: 8px; font-weight: 500; padding: 8px 16px; font-size: 14px; transition: all 150ms ease; }
.admin-btn-neutral:hover { background: #E2E8F0; }
.admin-btn-danger { background: #EF4444; color: #FFF; border-radius: 8px; font-weight: 500; padding: 8px 16px; font-size: 14px; transition: all 150ms ease; }
.admin-btn-danger:hover { background: #DC2626; }
.admin-btn-success { background: #10B981; color: #FFF; border-radius: 8px; font-weight: 500; padding: 8px 16px; font-size: 14px; transition: all 150ms ease; }
.admin-btn-success:hover { background: #059669; }

.admin-input { border: 1.5px solid #E2E8F0; border-radius: 8px; height: 44px; padding: 0 14px; font-size: 14px; color: #1E293B; outline: none; transition: all 150ms ease; }
.admin-input:focus { border-color: #FF6B35; box-shadow: 0 0 0 3px rgba(255,107,53,0.12); }
.admin-select { border: 1.5px solid #E2E8F0; border-radius: 8px; height: 44px; padding: 0 14px; font-size: 14px; color: #1E293B; outline: none; transition: all 150ms ease; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.admin-select:focus { border-color: #FF6B35; box-shadow: 0 0 0 3px rgba(255,107,53,0.12); }

/* Status badges */
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 9999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; }
.status-pending { background: #FEF3C7; color: #92400E; }
.status-pending::before { background: #F59E0B; }
.status-confirmed, .status-paid { background: #D1FAE5; color: #065F46; }
.status-confirmed::before, .status-paid::before { background: #10B981; }
.status-new { background: #DBEAFE; color: #1E40AF; }
.status-new::before { background: #3B82F6; }
.status-shipped { background: #EDE9FE; color: #4C1D95; }
.status-shipped::before { background: #8B5CF6; }
.status-completed, .status-delivered { background: #F0FDF4; color: #166534; }
.status-completed::before, .status-delivered::before { background: #22C55E; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }
.status-cancelled::before { background: #EF4444; }
.status-refunded { background: #F1F5F9; color: #334155; }
.status-refunded::before { background: #64748B; }

/* Toggle switch */
.toggle-switch { width: 40px; height: 22px; border-radius: 9999px; position: relative; cursor: pointer; transition: background 150ms ease; }
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 9999px; background: white; box-shadow: var(--shadow-sm); transition: transform 150ms ease; }
.toggle-switch.off { background: #CBD5E1; }
.toggle-switch.on { background: #FF6B35; }
.toggle-switch.on::after { transform: translateX(18px); }

/* Toast notifications */
.toast { position: fixed; top: 16px; right: 16px; width: 340px; border-radius: 10px; padding: 16px; box-shadow: var(--shadow-xl); z-index: 9999; animation: slideIn 300ms ease; }
.toast-success { background: #1E293B; border-left: 4px solid #10B981; color: #F8FAFC; }
.toast-error { background: #1E293B; border-left: 4px solid #EF4444; color: #F8FAFC; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ═══════════════ LANDING PAGE ═══════════════ */
.landing-gradient { background: linear-gradient(160deg, #FFF5F0 0%, #FFFFFF 40%, #F8FAFC 100%); }
.landing-hero-blob { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%); border-radius: 9999px; filter: blur(60px); top: -200px; right: -200px; pointer-events: none; }
.gradient-text { background: linear-gradient(135deg, #FF6B35, #FF8C42); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pain-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 9999px; font-size: 13px; font-weight: 500; }
.pain-pill-red { background: #FEF2F2; color: #991B1B; }
.pain-pill-green { background: #F0FDF4; color: #166534; }

/* Fee calculator */
.fee-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; }
.fee-row-amount { color: #EF4444; font-weight: 600; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid #E2E8F0; }
.faq-question { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.faq-answer { overflow: hidden; transition: max-height 300ms ease, opacity 200ms ease; }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; border: 1px solid #E2E8F0; }
.comparison-table th, .comparison-table td { padding: 14px 20px; text-align: center; border-bottom: 1px solid #E2E8F0; font-size: 14px; }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; }
.comparison-table thead th { font-weight: 600; font-size: 13px; }

/* Pricing card */
.pricing-card { border-radius: 20px; padding: 32px; position: relative; }
.pricing-popular { border: 2px solid #FF6B35; background: linear-gradient(135deg, #FFF5F2 0%, #FFFFFF 100%); box-shadow: var(--shadow-brand); }

/* LINE button */
.btn-line { background: #06C755; color: #FFF; border-radius: 9999px; font-weight: 600; padding: 14px 28px; font-size: 15px; box-shadow: 0 4px 12px rgba(6,199,85,0.3); transition: all 150ms ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-line:hover { filter: brightness(0.95); }

/* ═══════════════ ANIMATIONS ═══════════════ */
[x-cloak] { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 600ms ease forwards; }

@keyframes checkmark {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}
.animate-checkmark path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: checkmark 600ms ease-out 300ms forwards; }

/* Skeleton loader */
.skeleton { background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Print */
@media print {
  .no-print { display: none !important; }
}
