:root {
  --bg: #f5f7fb;
  --text: #1f2937;
  --primary: #0f3e8c;
  --secondary: #f0b90b;
  --danger: #b91c1c;
  --muted: #6b7280;
  --card: #ffffff;
  --line: #d9e0ee;
  --body-glow: #e6f0ff;
  --header-grad-1: #08275a;
  --header-grad-2: #114da8;
  --hero-grad-1: #0f3e8c;
  --hero-grad-2: #0a2b64;
  --hero-accent: rgba(167, 223, 255, 0.22);
  --hero-border: rgba(208, 241, 255, 0.28);
  --hero-dot: rgba(210, 240, 255, 0.34);
  --brand-grad-1: rgba(16, 76, 164, 0.97);
  --brand-grad-2: rgba(8, 47, 102, 0.97);
  --brand-accent: rgba(201, 236, 255, 0.3);
  --theme-hero-text: #ffffff;
  --theme-hero-card-title: #ffe9a7;
  --theme-hero-card-border: rgba(208, 241, 255, 0.26);
  --theme-visual-bg: rgba(208, 241, 255, 0.14);
  --theme-visual-border: rgba(208, 241, 255, 0.28);
  --theme-visual-ring: rgba(240, 185, 11, 0.36);
  --theme-visual-seal-bg: #0f3e8c;
  --theme-visual-seal-text: #ffffff;
  --theme-visual-panel-bg: rgba(8, 39, 90, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, var(--body-glow), transparent 30%), var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
}

body.theme-fresh-green {
  --bg: #f2f8f4;
  --text: #1f2b24;
  --primary: #1e6b4d;
  --secondary: #f4b53f;
  --line: #d6e5dc;
  --body-glow: #d9f3e2;
  --header-grad-1: #1f5a40;
  --header-grad-2: #2f8c5f;
  --hero-grad-1: #2e805a;
  --hero-grad-2: #1f5a40;
  --hero-accent: rgba(185, 240, 215, 0.24);
  --hero-border: rgba(191, 238, 215, 0.34);
  --hero-dot: rgba(219, 248, 233, 0.35);
  --brand-grad-1: rgba(37, 125, 83, 0.97);
  --brand-grad-2: rgba(24, 88, 59, 0.97);
  --brand-accent: rgba(213, 246, 226, 0.28);
  --theme-hero-card-title: #ffe3a0;
  --theme-hero-card-border: rgba(191, 238, 215, 0.3);
  --theme-visual-bg: rgba(213, 246, 226, 0.14);
  --theme-visual-border: rgba(191, 238, 215, 0.3);
  --theme-visual-ring: rgba(244, 181, 63, 0.36);
  --theme-visual-seal-bg: #1e6b4d;
  --theme-visual-seal-text: #ffffff;
  --theme-visual-panel-bg: rgba(24, 88, 59, 0.44);
}

body.theme-warm-gold {
  --bg: #faf6ef;
  --text: #362d1e;
  --primary: #8f4d17;
  --secondary: #f4b53f;
  --line: #eadfcd;
  --body-glow: #ffe8c6;
  --header-grad-1: #8b4c17;
  --header-grad-2: #c67a1d;
  --hero-grad-1: #9c5b1f;
  --hero-grad-2: #6f3f14;
  --hero-accent: rgba(255, 220, 168, 0.25);
  --hero-border: rgba(255, 223, 175, 0.35);
  --hero-dot: rgba(255, 241, 214, 0.4);
  --brand-grad-1: rgba(177, 109, 31, 0.97);
  --brand-grad-2: rgba(117, 67, 20, 0.97);
  --brand-accent: rgba(255, 230, 186, 0.3);
  --theme-hero-card-title: #fff0c2;
  --theme-hero-card-border: rgba(255, 223, 175, 0.34);
  --theme-visual-bg: rgba(255, 230, 186, 0.16);
  --theme-visual-border: rgba(255, 223, 175, 0.34);
  --theme-visual-ring: rgba(244, 181, 63, 0.42);
  --theme-visual-seal-bg: #8f4d17;
  --theme-visual-seal-text: #ffffff;
  --theme-visual-panel-bg: rgba(111, 63, 20, 0.44);
}

body.theme-clean-slate {
  --bg: #f5f7fa;
  --text: #1f2630;
  --primary: #2f4258;
  --secondary: #87a0b8;
  --line: #dbe2ea;
  --body-glow: #e2e9f2;
  --header-grad-1: #2b3a4d;
  --header-grad-2: #455e78;
  --hero-grad-1: #32475d;
  --hero-grad-2: #253748;
  --hero-accent: rgba(189, 208, 230, 0.22);
  --hero-border: rgba(204, 218, 235, 0.3);
  --hero-dot: rgba(219, 229, 241, 0.35);
  --brand-grad-1: rgba(57, 82, 109, 0.97);
  --brand-grad-2: rgba(38, 57, 78, 0.97);
  --brand-accent: rgba(202, 217, 235, 0.28);
  --theme-hero-card-title: #dfeaf5;
  --theme-hero-card-border: rgba(204, 218, 235, 0.28);
  --theme-visual-bg: rgba(202, 217, 235, 0.14);
  --theme-visual-border: rgba(204, 218, 235, 0.3);
  --theme-visual-ring: rgba(135, 160, 184, 0.42);
  --theme-visual-seal-bg: #2f4258;
  --theme-visual-seal-text: #ffffff;
  --theme-visual-panel-bg: rgba(37, 55, 72, 0.46);
}

body.theme-j-general-crimson {
  --bg: #faf8f4;
  --text: #2c2c2c;
  --primary: #173d3f;
  --secondary: #c8a24d;
  --danger: #971b24;
  --muted: #6f6a60;
  --card: #fff7ea;
  --line: #eadfcd;
  --body-glow: #fff7ea;
  --header-grad-1: #fffaf0;
  --header-grad-2: #f4ead7;
  --hero-grad-1: #123638;
  --hero-grad-2: #2f5f5b;
  --hero-accent: rgba(255, 247, 234, 0.22);
  --hero-border: rgba(255, 247, 234, 0.3);
  --hero-dot: rgba(255, 247, 234, 0.24);
  --brand-grad-1: rgba(47, 95, 91, 0.97);
  --brand-grad-2: rgba(18, 54, 56, 0.97);
  --brand-accent: rgba(255, 247, 234, 0.28);
  --theme-tag-bg: rgba(200, 162, 77, 0.2);
  --theme-tag-color: #ffe9a7;
  --theme-tag-border: rgba(255, 247, 234, 0.28);
  --theme-visual-bg: rgba(255, 247, 234, 0.13);
  --theme-visual-border: rgba(255, 247, 234, 0.28);
  --theme-visual-ring: rgba(200, 162, 77, 0.42);
  --theme-visual-seal-bg: #971b24;
  --theme-visual-seal-text: #fff7ea;
  --theme-visual-panel-bg: rgba(10, 38, 40, 0.38);
  --theme-outline-bg: #fff7ea;
}

body.theme-j-classic-trust {
  --bg: #f9f8f6;
  --text: #2f3438;
  --primary: #34516f;
  --secondary: #b8945e;
  --danger: #84252a;
  --muted: #676b70;
  --card: #ffffff;
  --line: #ded8d1;
  --body-glow: #eaf1f7;
  --header-grad-1: #f8f5f2;
  --header-grad-2: #efe7de;
  --hero-grad-1: #eaf1f7;
  --hero-grad-2: #d8e4ef;
  --hero-accent: rgba(255, 255, 255, 0.28);
  --hero-border: rgba(255, 255, 255, 0.36);
  --hero-dot: rgba(52, 81, 111, 0.14);
  --brand-grad-1: rgba(234, 241, 247, 0.97);
  --brand-grad-2: rgba(216, 228, 239, 0.97);
  --brand-accent: rgba(132, 37, 42, 0.12);
  --theme-header-text: #3a4a5f;
  --theme-active-bg: #84252a;
  --theme-active-hover: #34516f;
  --theme-tag-bg: #84252a;
  --theme-tag-color: #ffffff;
  --theme-tag-border: rgba(132, 37, 42, 0.22);
  --theme-visual-bg: rgba(255, 255, 255, 0.6);
  --theme-visual-border: rgba(52, 81, 111, 0.16);
  --theme-visual-ring: rgba(132, 37, 42, 0.22);
  --theme-visual-seal-bg: #84252a;
  --theme-visual-seal-text: #ffffff;
  --theme-visual-panel-bg: rgba(255, 255, 255, 0.72);
  --theme-hero-text: #28394d;
  --theme-hero-text-shadow: rgba(255, 255, 255, 0.5);
  --theme-hero-fade: #f9f8f6;
  --theme-section-mid: #f4f6f7;
  --theme-card-bg: #ffffff;
  --theme-card-border: #ded8d1;
  --theme-image-bg-end: #f1f3f5;
  --theme-outline-border: #d4c8ba;
  --theme-outline-bg: #e8e3dc;
  --theme-hero-card-bg: rgba(255, 255, 255, 0.66);
  --theme-hero-card-border: rgba(52, 81, 111, 0.18);
  --theme-hero-card-title: #84252a;
  --theme-btn-hover: #a47f45;
}

body.theme-j-fresh-health {
  --bg: #fbfefc;
  --text: #24352e;
  --primary: #2f6b55;
  --secondary: #7fa66a;
  --danger: #84252a;
  --muted: #647268;
  --card: #ffffff;
  --line: #dcebe2;
  --body-glow: #e8f6f1;
  --header-grad-1: #f2f9f4;
  --header-grad-2: #e6f3ec;
  --hero-grad-1: #e8f6f1;
  --hero-grad-2: #d2e9e2;
  --hero-accent: rgba(255, 255, 255, 0.28);
  --hero-border: rgba(255, 255, 255, 0.36);
  --hero-dot: rgba(47, 107, 85, 0.13);
  --brand-grad-1: rgba(232, 246, 241, 0.97);
  --brand-grad-2: rgba(210, 233, 226, 0.97);
  --brand-accent: rgba(47, 107, 85, 0.1);
  --theme-header-text: #2a4a3d;
  --theme-active-bg: #2f6b55;
  --theme-active-hover: #4f8068;
  --theme-tag-bg: #2f6b55;
  --theme-tag-color: #ffffff;
  --theme-tag-border: rgba(47, 107, 85, 0.22);
  --theme-visual-bg: rgba(255, 255, 255, 0.62);
  --theme-visual-border: rgba(47, 107, 85, 0.18);
  --theme-visual-ring: rgba(47, 107, 85, 0.24);
  --theme-visual-seal-bg: #2f6b55;
  --theme-visual-seal-text: #ffffff;
  --theme-visual-panel-bg: rgba(255, 255, 255, 0.74);
  --theme-hero-text: #24352e;
  --theme-hero-text-shadow: rgba(255, 255, 255, 0.42);
  --theme-hero-fade: #fbfefc;
  --theme-section-mid: #f3faf6;
  --theme-card-bg: #ffffff;
  --theme-card-border: #dcebe2;
  --theme-image-bg-end: #eef7ef;
  --theme-outline-border: #c7ddcf;
  --theme-outline-bg: #f7fcf8;
  --theme-hero-card-bg: rgba(255, 255, 255, 0.64);
  --theme-hero-card-border: rgba(47, 107, 85, 0.18);
  --theme-hero-card-title: #2f6b55;
  --theme-btn-hover: #668d52;
}

body.theme-j-luxury-light {
  --bg: #f8f4ec;
  --text: #2d2925;
  --primary: #7a2a2a;
  --secondary: #9a7c52;
  --danger: #7a2a2a;
  --muted: #746c61;
  --card: #ffffff;
  --line: #e2d6c5;
  --body-glow: #f3efe8;
  --header-grad-1: #f5efe6;
  --header-grad-2: #ece1d2;
  --hero-grad-1: #f3efe8;
  --hero-grad-2: #e6ded2;
  --hero-accent: rgba(255, 255, 255, 0.28);
  --hero-border: rgba(154, 124, 82, 0.2);
  --hero-dot: rgba(122, 42, 42, 0.12);
  --brand-grad-1: rgba(243, 239, 232, 0.97);
  --brand-grad-2: rgba(230, 222, 210, 0.97);
  --brand-accent: rgba(122, 42, 42, 0.1);
  --theme-header-text: #4c4034;
  --theme-active-bg: #7a2a2a;
  --theme-active-hover: #9a7c52;
  --theme-tag-bg: #7a2a2a;
  --theme-tag-color: #fff7ea;
  --theme-tag-border: rgba(122, 42, 42, 0.22);
  --theme-visual-bg: rgba(255, 255, 255, 0.64);
  --theme-visual-border: rgba(154, 124, 82, 0.24);
  --theme-visual-ring: rgba(154, 124, 82, 0.3);
  --theme-visual-seal-bg: #7a2a2a;
  --theme-visual-seal-text: #fff7ea;
  --theme-visual-panel-bg: rgba(255, 255, 255, 0.76);
  --theme-hero-text: #322b25;
  --theme-hero-text-shadow: rgba(255, 255, 255, 0.5);
  --theme-hero-fade: #f8f4ec;
  --theme-section-mid: #f1ebe1;
  --theme-card-bg: #ffffff;
  --theme-card-border: #e2d6c5;
  --theme-image-bg-end: #f1e7d6;
  --theme-outline-border: #d4c5ad;
  --theme-outline-bg: #f3eee6;
  --theme-hero-card-bg: rgba(255, 255, 255, 0.64);
  --theme-hero-card-border: rgba(154, 124, 82, 0.24);
  --theme-hero-card-title: #7a2a2a;
  --theme-btn-hover: #856a46;
}

body.theme-j-science-bluegold {
  --bg: #f4f8fd;
  --text: #203246;
  --primary: #245689;
  --secondary: #d7a93f;
  --danger: #7f1f2b;
  --muted: #627286;
  --card: #ffffff;
  --line: #d5e0eb;
  --body-glow: #dbeafe;
  --header-grad-1: #f9f7f1;
  --header-grad-2: #edf4fb;
  --hero-grad-1: #0e4181;
  --hero-grad-2: #1f67b8;
  --hero-accent: rgba(214, 232, 255, 0.22);
  --hero-border: rgba(224, 237, 255, 0.3);
  --hero-dot: rgba(223, 236, 255, 0.3);
  --brand-grad-1: rgba(16, 76, 151, 0.97);
  --brand-grad-2: rgba(8, 43, 103, 0.97);
  --brand-accent: rgba(218, 232, 255, 0.26);
  --theme-header-text: #294a6a;
  --theme-active-bg: #245689;
  --theme-active-hover: #1b4a74;
  --theme-tag-bg: linear-gradient(135deg, #cf9e34 0%, #e4bf64 100%);
  --theme-tag-color: #17324a;
  --theme-tag-border: rgba(215, 169, 63, 0.28);
  --theme-visual-bg: rgba(224, 237, 255, 0.18);
  --theme-visual-border: rgba(224, 237, 255, 0.3);
  --theme-visual-ring: rgba(215, 169, 63, 0.32);
  --theme-visual-seal-bg: #245689;
  --theme-visual-seal-text: #fffaf1;
  --theme-visual-panel-bg: rgba(7, 42, 84, 0.42);
  --theme-hero-text: #ffffff;
  --theme-hero-text-shadow: rgba(7, 28, 63, 0.22);
  --theme-hero-fade: #eef5fd;
  --theme-section-mid: #eef5fd;
  --theme-card-bg: #ffffff;
  --theme-card-border: #d5e0eb;
  --theme-image-bg-end: #eaf3ff;
  --theme-outline-border: #bdd2e9;
  --theme-outline-bg: #f6faff;
  --theme-hero-card-bg: rgba(7, 42, 84, 0.38);
  --theme-hero-card-border: rgba(224, 237, 255, 0.24);
  --theme-hero-card-title: #f7d98e;
  --theme-btn-hover: #bf9130;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header,
.admin-header {
  background: linear-gradient(120deg, var(--header-grad-1), var(--header-grad-2));
  border-bottom: 4px solid var(--secondary);
  position: relative;
  z-index: 60;
  overflow: visible;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  position: relative;
  overflow: visible;
}

.brand-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-mark {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.lang-switch a {
  color: #dbeafe;
  text-decoration: none;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  line-height: 1;
}

.lang-switch a.active,
.lang-switch a:hover {
  color: #111111;
  background: #ffffff;
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header {
  box-shadow: 0 12px 28px rgba(24, 37, 39, 0.08);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .admin-header {
  border-bottom-color: var(--theme-active-bg, #971b24);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .brand-logo {
  color: var(--theme-header-text, #1c2a2c);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .brand-logo-mark {
  filter: drop-shadow(0 3px 7px rgba(151, 27, 36, 0.25));
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .nav > a,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .nav > .nav-dropdown > .nav-link,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .admin-link {
  color: var(--theme-header-text, #203235);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .nav > a.active,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .nav-dropdown.active .nav-link,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .admin-link.active {
  color: #ffffff;
  background: var(--theme-active-bg, #7a1f2b);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .nav > a:hover,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .nav > .nav-dropdown > .nav-link:hover,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .admin-link:hover {
  color: #ffffff;
  background: var(--theme-active-hover, var(--primary));
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .lang-switch a {
  color: var(--theme-header-text, #203235);
  border-color: rgba(151, 27, 36, 0.28);
  background: rgba(255, 255, 255, 0.55);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .lang-switch a.active,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .lang-switch a:hover {
  color: #ffffff;
  background: var(--theme-active-bg, #971b24);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .nav-toggle {
  border-color: rgba(151, 27, 36, 0.28);
  background: rgba(255, 255, 255, 0.62);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .site-header .nav-toggle span {
  background: var(--theme-active-bg, #971b24);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero {
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0) 0%, rgba(255, 247, 234, 0) 54%, rgba(255, 247, 234, 0.42) 82%, var(--theme-hero-fade, #fff7ea) 100%),
    linear-gradient(130deg, var(--hero-grad-1), var(--hero-grad-2)),
    radial-gradient(circle at 18% 24%, var(--hero-accent), transparent 40%);
  min-height: 520px;
  padding: 80px 0 100px;
  color: var(--theme-hero-text, #ffffff);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 247, 234, 0.2), rgba(255, 247, 234, 0.06) 46%, transparent 67%);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero::after {
  opacity: 1;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 247, 234, 0.16) 1.5px, transparent 1.5px) 0 0 / 30px 30px,
    linear-gradient(105deg, rgba(255, 247, 234, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(255, 247, 234, 0) 0%, rgba(255, 247, 234, 0) 48%, rgba(255, 247, 234, 0.44) 82%, var(--theme-hero-fade, #fff7ea) 100%);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero + .section {
  background:
    linear-gradient(180deg, var(--theme-hero-fade, #fff7ea) 0%, var(--theme-section-mid, #fdf5ea) 42%, var(--bg) 100%);
  margin-top: -1px;
  padding-top: 72px;
}

.hero + .section {
  position: relative;
  overflow: hidden;
}

.hero + .section::before {
  content: "";
  position: absolute;
  left: max(4%, calc((100% - 1120px) / 2));
  top: -72px;
  width: min(620px, 94vw);
  height: 220px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(132deg, transparent 0%, var(--theme-visual-bg, rgba(255, 247, 234, 0.14)) 24%, transparent 58%),
    linear-gradient(180deg, var(--theme-visual-ring, rgba(200, 162, 77, 0.34)), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.78) 42%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.78) 42%, transparent 100%);
  opacity: 0.3;
}

.hero + .section > .container {
  position: relative;
  z-index: 1;
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-grid {
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 28px 30px 30px;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -18px -28px -34px -22px;
  z-index: 0;
  pointer-events: none;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(118deg, var(--theme-visual-bg, rgba(255, 247, 234, 0.14)) 0%, transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 100%);
  border: 1px solid var(--theme-visual-border, rgba(255, 247, 234, 0.24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 60px rgba(14, 24, 28, 0.08);
  opacity: 0.92;
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: -92px;
  width: min(520px, 94vw);
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(132deg, transparent 0 18%, var(--theme-visual-ring, rgba(200, 162, 77, 0.32)) 18% 38%, transparent 38% 100%),
    linear-gradient(132deg, transparent 0 42%, var(--theme-visual-bg, rgba(255, 247, 234, 0.14)) 42% 68%, transparent 68% 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
  opacity: 0.22;
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero .tag {
  background: var(--theme-tag-bg, rgba(240, 185, 11, 0.2));
  color: var(--theme-tag-color, #ffe9a7);
  border-color: var(--theme-tag-border, rgba(255, 255, 255, 0.2));
  box-shadow: 0 8px 22px rgba(40, 32, 24, 0.08);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero h1 {
  line-height: 1.03;
  max-width: 11.5em;
  text-shadow: 0 2px 18px var(--theme-hero-text-shadow, transparent);
}

.hero-title {
  overflow-wrap: anywhere;
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-title-brand,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-title-line {
  display: block;
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-title-brand {
  font-size: clamp(2.35rem, 4.6vw, 4.15rem);
  line-height: 1.03;
  font-weight: 900;
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-title-line {
  font-size: clamp(1.34rem, 2.45vw, 2.22rem);
  font-weight: 800;
  line-height: 1.18;
  margin-top: 8px;
  max-width: 14em;
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-title-compact .hero-title-brand {
  font-size: clamp(2rem, 3.8vw, 3.42rem);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-title-compact .hero-title-line {
  font-size: clamp(1.18rem, 2.05vw, 1.82rem);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-title-condensed .hero-title-brand {
  font-size: clamp(1.72rem, 3.15vw, 2.72rem);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-title-condensed .hero-title-line {
  font-size: clamp(1.06rem, 1.8vw, 1.52rem);
  max-width: 18em;
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-card {
  background: var(--theme-hero-card-bg, rgba(10, 38, 40, 0.38));
  border: 1px solid var(--theme-hero-card-border, rgba(255, 247, 234, 0.26));
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-card h3 {
  color: var(--theme-hero-card-title, #e8d3a2);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero-card li {
  color: var(--theme-hero-text, #fff7ea);
}

.hero-visual {
  position: relative;
  min-height: 390px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(145deg, var(--theme-visual-bg, rgba(255, 247, 234, 0.14)), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--theme-visual-border, rgba(255, 247, 234, 0.28));
  box-shadow: 0 24px 70px rgba(24, 30, 28, 0.16);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  z-index: -1;
}

.hero-visual::before {
  width: 320px;
  height: 320px;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--theme-visual-ring, rgba(200, 162, 77, 0.38)) 0%, transparent 66%);
  opacity: 0.75;
}

.hero-visual::after {
  width: 180px;
  height: 180px;
  right: -46px;
  bottom: -52px;
  border: 1px solid var(--theme-visual-ring, rgba(200, 162, 77, 0.38));
  opacity: 0.55;
}

.hero-visual-ring {
  position: absolute;
  inset: 34px 54px 92px;
  border: 1px solid var(--theme-visual-ring, rgba(200, 162, 77, 0.38));
  border-radius: 50%;
  opacity: 0.72;
}

.hero-product-stage {
  position: absolute;
  inset: 32px 26px 112px;
}

.hero-product-shot {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(44%, 180px);
  max-height: 220px;
  object-fit: contain;
  --hero-shot-end-transform: translateX(-50%);
  --hero-shot-start-transform: translateX(-50%) translateY(22px) scale(0.84);
  --hero-shot-peak-transform: translateX(-50%) translateY(-4px) scale(1.01);
  transform: var(--hero-shot-end-transform);
  transform-origin: center bottom;
  filter: drop-shadow(0 22px 22px rgba(20, 24, 22, 0.24));
  opacity: 0;
  animation: hero-shot-pop 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.hero-product-shot-1 {
  z-index: 3;
  width: min(50%, 204px);
  max-height: 254px;
  --hero-shot-end-transform: translateX(-50%) scale(1);
  --hero-shot-start-transform: translateX(-50%) translateY(24px) scale(0.9);
  --hero-shot-peak-transform: translateX(-50%) translateY(-5px) scale(1.02);
  animation-delay: 0.06s;
}

.hero-product-shot-2 {
  left: 28%;
  z-index: 2;
  bottom: 8px;
  width: min(35%, 146px);
  max-height: 208px;
  --hero-shot-end-transform: translateX(-50%) rotate(-9deg) scale(0.9);
  --hero-shot-start-transform: translateX(-50%) translateY(18px) rotate(-13deg) scale(0.78);
  --hero-shot-peak-transform: translateX(-50%) translateY(-3px) rotate(-8deg) scale(0.93);
  animation-delay: 0.18s;
  opacity: 0.9;
}

.hero-product-shot-3 {
  left: 72%;
  z-index: 2;
  bottom: 8px;
  width: min(35%, 146px);
  max-height: 208px;
  --hero-shot-end-transform: translateX(-50%) rotate(9deg) scale(0.9);
  --hero-shot-start-transform: translateX(-50%) translateY(18px) rotate(13deg) scale(0.78);
  --hero-shot-peak-transform: translateX(-50%) translateY(-3px) rotate(8deg) scale(0.93);
  animation-delay: 0.28s;
  opacity: 0.9;
}

@keyframes hero-shot-pop {
  0% {
    opacity: 0;
    transform: var(--hero-shot-start-transform);
  }

  68% {
    opacity: 1;
    transform: var(--hero-shot-peak-transform);
  }

  100% {
    opacity: 1;
    transform: var(--hero-shot-end-transform);
  }
}

.hero-product-logo-fallback {
  width: min(62%, 240px);
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
}

.hero-quality-seal {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  display: grid;
  grid-template-rows: 30px 24px 16px;
  align-content: center;
  justify-items: center;
  row-gap: 2px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18) 18%, transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 36%),
    linear-gradient(150deg, var(--theme-visual-seal-bg, #971b24) 0%, var(--theme-visual-seal-bg, #971b24) 58%, rgba(0, 0, 0, 0.22) 100%);
  color: var(--theme-visual-seal-text, #fff7ea);
  border: 5px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 3px 8px rgba(255, 255, 255, 0.32),
    inset 0 -9px 16px rgba(0, 0, 0, 0.2),
    0 18px 34px rgba(26, 22, 20, 0.25);
  text-align: center;
  line-height: 1;
}

.hero-quality-seal::before,
.hero-quality-seal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-quality-seal::before {
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 0 rgba(0, 0, 0, 0.08);
}

.hero-quality-seal::after {
  inset: 15px 18px auto;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent);
  opacity: 0.8;
}

.hero-quality-seal span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.hero-quality-seal strong {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.hero-quality-seal small {
  position: relative;
  z-index: 1;
  align-self: start;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0.94;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-assurance-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--theme-visual-panel-bg, rgba(10, 38, 40, 0.38));
  border: 1px solid var(--theme-hero-card-border, rgba(255, 247, 234, 0.26));
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(20, 24, 22, 0.16);
}

.hero-assurance-card h3 {
  margin: 0 0 8px;
  color: var(--theme-hero-card-title, #e8d3a2);
  font-size: 1rem;
}

.hero-assurance-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-assurance-card li {
  color: var(--theme-hero-text, #fff7ea);
  font-size: 0.92rem;
  line-height: 1.35;
}

.hero-assurance-card li::before {
  content: "✓";
  display: inline-block;
  margin-right: 7px;
  color: var(--theme-hero-card-title, #e8d3a2);
  font-weight: 800;
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .btn-primary {
  background: var(--secondary);
  color: #1f1f1f;
  box-shadow: 0 8px 22px rgba(200, 161, 90, 0.28);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .btn-primary:hover {
  background: var(--theme-btn-hover, #b58d43);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .product-card {
  background: var(--theme-card-bg, #fffdf8);
  border: 1px solid var(--theme-card-border, #e5d8c2);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(80, 55, 30, 0.08);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .product-image {
  background: linear-gradient(180deg, #ffffff 0%, var(--theme-image-bg-end, #f3e9d8) 100%);
  border-color: var(--theme-card-border, #e5d8c2);
  border-radius: 18px;
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .section:not(.hero):not(.brand-hero):not(.product-detail-page) {
  background: var(--bg);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .section-muted {
  background: linear-gradient(180deg, var(--theme-hero-fade, var(--card)) 0%, var(--bg) 100%);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .card,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .info-box,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .category-filter,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .contact-grid > .card {
  background: var(--theme-card-bg, #fffdf8);
  border-color: var(--theme-card-border, #e5d8c2);
  box-shadow: 0 12px 34px rgba(80, 55, 30, 0.07);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .btn-outline {
  background: var(--theme-outline-bg, var(--card));
  color: var(--primary);
  border-color: var(--theme-outline-border, #d9c59d);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) input,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) select,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) textarea {
  background: var(--theme-card-bg, #fffdf8);
  border-color: var(--theme-outline-border, #d9c59d);
  color: var(--text);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .brand-hero {
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0) 0%, rgba(255, 247, 234, 0) 58%, rgba(255, 247, 234, 0.34) 84%, var(--theme-hero-fade, var(--card)) 100%),
    linear-gradient(120deg, var(--brand-grad-2), var(--brand-grad-1)),
    radial-gradient(circle at 82% 18%, var(--brand-accent), transparent 34%);
  padding-bottom: 72px;
  color: var(--theme-hero-text, #ffffff);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .brand-kicker {
  color: var(--theme-hero-card-title, #e8d3a2);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .brand-values .info-box,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .brand-strip,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .strip-item {
  background: var(--theme-card-bg, #fffdf8);
  border-color: var(--theme-card-border, #e5d8c2);
  box-shadow: 0 12px 34px rgba(80, 55, 30, 0.07);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .strip-item strong,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .brand-values .info-box h3 {
  color: var(--primary);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .product-detail-page {
  --detail-bg: var(--bg);
  --detail-glow-a: rgba(255, 247, 234, 0.72);
  --detail-glow-b: rgba(200, 161, 90, 0.14);
  --detail-sheet-border: var(--theme-card-border, #e5d8c2);
  --detail-sheet-shadow: rgba(80, 55, 30, 0.08);
  --detail-divider: var(--theme-outline-border, #d9c59d);
  --detail-stitch-border: var(--theme-card-border, #e5d8c2);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-sheet,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-gallery-card,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-summary-card,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-quick-item,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-spec-box,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-stitch-wrap {
  background: var(--theme-card-bg, #fffdf8);
  border-color: var(--theme-card-border, #e5d8c2);
  box-shadow: 0 12px 34px rgba(80, 55, 30, 0.07);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-image,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .thumbs img {
  background: linear-gradient(180deg, #ffffff 0%, var(--theme-image-bg-end, #f3e9d8) 100%);
  border-color: var(--theme-card-border, #e5d8c2);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-category-pill {
  background: var(--card);
  border-color: var(--theme-outline-border, #d9c59d);
  color: var(--theme-active-bg, #7a1f2b);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-main-subtitle,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-quick-item strong,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-spec-box h3,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .subtitle {
  color: var(--primary);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-main-desc,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-quick-item p,
body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .detail-spec-box p {
  color: var(--muted);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .thumb-btn.active {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(200, 161, 90, 0.26);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .chip {
  background: var(--card);
  border-color: var(--theme-outline-border, #d9c59d);
  color: var(--primary);
}

body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .chip:hover {
  background: var(--theme-active-bg, #7a1f2b);
  border-color: var(--theme-active-bg, #7a1f2b);
  color: #ffffff;
}

.admin-logout-inline {
  display: none;
}

.admin-logout-desktop {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transform: none !important;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  margin: 5px 0;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown .nav-link {
  color: #dbeafe;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown.active .nav-link,
.nav-dropdown:hover .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: max-content;
  width: max-content;
  background: var(--bg);
  color: #111111;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 14px;
  border: 1px solid #cbd5e1;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.3s;
  z-index: 120;
}

.dropdown-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.nav-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.dropdown-panel:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.dropdown-title {
  font-weight: 700;
  color: #111111;
  margin-bottom: 10px;
}

.dropdown-grid {
  display: grid;
  gap: 10px;
}

.dropdown-item {
  position: relative;
}

.dropdown-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dropdown-expand {
  display: none;
  border: 1px solid #c9d7f0;
  background: #fff;
  color: #1e3a70;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.dropdown-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111111;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
}

.dropdown-category:hover {
  background: #ffffff;
  color: #111111;
}

.dropdown-submenu {
  position: absolute;
  top: -6px;
  left: calc(100% + 8px);
  min-width: max-content;
  width: max-content;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  padding: 10px;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.3s;
  max-height: 320px;
  overflow: auto;
  z-index: 130;
}

.dropdown-submenu::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: 14px;
}

.dropdown-submenu.empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.dropdown-item:hover .dropdown-submenu {
  display: grid;
  gap: 6px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}
.nav-dropdown.open .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}
.dropdown-submenu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

.dropdown-product {
  text-decoration: none;
  color: #111111;
  padding: 6px 8px;
  border-radius: 8px;
}

.dropdown-product:hover {
  background: #ffffff;
  color: #111111;
}

.dropdown-panel a,
.dropdown-submenu a {
  color: #111111 !important;
}

.nav > a,
.nav > .nav-dropdown > .nav-link,
.admin-link {
  color: #dbeafe;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  position: relative;
  z-index: 10;
}

.nav > a.active,
.nav > a:hover,
.nav > .nav-dropdown > .nav-link:hover,
.admin-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(130deg, var(--hero-grad-1), var(--hero-grad-2)),
    radial-gradient(circle at 18% 24%, var(--hero-accent), transparent 40%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 68px 0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  right: -16%;
  top: -34%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(198, 237, 255, 0.22), rgba(198, 237, 255, 0.05) 46%, transparent 67%);
  border: 1px solid var(--hero-border);
}

.hero::after {
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(circle at 12px 12px, var(--hero-dot) 1.5px, transparent 1.5px) 0 0 / 30px 30px,
    linear-gradient(105deg, rgba(255, 255, 255, 0.09), transparent 45%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.hero .tag {
  margin: 0;
  display: inline-block;
  background: rgba(240, 185, 11, 0.2);
  color: #ffe9a7;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero-title-brand,
.hero-title-line {
  display: block;
}

.hero-title-brand {
  font-size: clamp(2.15rem, 4.2vw, 3.6rem);
  line-height: 1.04;
  font-weight: 900;
}

.hero-title-line {
  max-width: 14em;
  margin-top: 8px;
  font-size: clamp(1.25rem, 2.25vw, 2rem);
  line-height: 1.18;
  font-weight: 800;
}

.hero-title-compact .hero-title-brand {
  font-size: clamp(1.9rem, 3.55vw, 3rem);
}

.hero-title-compact .hero-title-line {
  font-size: clamp(1.12rem, 1.95vw, 1.68rem);
}

.hero-title-condensed .hero-title-brand {
  font-size: clamp(1.62rem, 3vw, 2.42rem);
}

.hero-title-condensed .hero-title-line {
  max-width: 18em;
  font-size: clamp(1rem, 1.7vw, 1.42rem);
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.section {
  padding: 44px 0;
}

.section-muted {
  background: #eef3ff;
}

.section-sm {
  margin-top: 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.product-card {
  text-decoration: none;
  color: inherit;
}

.product-subtitle {
  margin: 6px 0 0;
}

.product-image {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  margin-bottom: 10px;
}

.product-image img {
  display: block;
}

.fit-image {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px) !important;
  height: calc(100% - 16px) !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

.home-product-image-box {
  aspect-ratio: auto;
  height: 250px;
}

.product-image .img-placeholder {
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
}

.detail-image {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(320px, 46vw, 560px);
  padding: 8px;
  margin-bottom: 10px;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.img-placeholder {
  color: var(--muted);
  font-weight: 700;
}

.btn {
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--secondary);
  color: #2b2000;
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid #bfd2ff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.text-page {
  max-width: 900px;
}

.info-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.info-box {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}

.detail-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product-detail-page {
  --detail-bg: #f4f6fb;
  --detail-glow-a: rgba(160, 210, 255, 0.2);
  --detail-glow-b: rgba(240, 185, 11, 0.1);
  --detail-sheet-border: #dbe4f1;
  --detail-sheet-shadow: rgba(15, 23, 42, 0.08);
  --detail-divider: #dbe4f1;
  --detail-stitch-border: #e5ebf5;
  background:
    radial-gradient(circle at 92% 8%, var(--detail-glow-a), transparent 26%),
    radial-gradient(circle at 8% 88%, var(--detail-glow-b), transparent 30%),
    var(--detail-bg);
}

.detail-sheet {
  background: #ffffff;
  border: 1px solid var(--detail-sheet-border);
  border-radius: 18px;
  box-shadow: 0 16px 34px var(--detail-sheet-shadow);
  padding: 18px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.detail-gallery-card {
  padding: 10px;
  position: sticky;
  top: 86px;
  border-color: #e3eaf6;
  box-shadow: none;
}

.detail-summary-card {
  border-color: #e3eaf6;
  background: #ffffff;
  box-shadow: none;
}

.detail-category-pill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid #bfd2ff;
  background: #edf4ff;
  color: #114da8;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 5px 10px;
}

.detail-main-title {
  margin: 10px 0 6px;
  line-height: 1.3;
}

.detail-main-subtitle {
  margin: 0;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.detail-main-desc {
  margin: 12px 0 0;
  color: #334155;
  line-height: 1.75;
}

.detail-action-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-quick-grid {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.detail-quick-item {
  border: 1px solid #d9e4f5;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}

.detail-quick-item strong {
  color: #0f3e8c;
  font-size: 0.92rem;
}

.detail-quick-item p {
  margin: 7px 0 0;
  color: #334155;
  line-height: 1.65;
}

.detail-spec-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-spec-box {
  border-color: #d7e2f5;
  box-shadow: 0 8px 22px rgba(15, 62, 140, 0.06);
}

.detail-spec-box h3 {
  margin: 0 0 8px;
  color: #0f3e8c;
  font-size: 1.02rem;
}

.detail-spec-box p {
  margin: 0;
  color: #334155;
  line-height: 1.75;
  white-space: pre-line;
}

.detail-sheet-divider {
  height: 1px;
  margin: 20px 0 16px;
  background: linear-gradient(90deg, rgba(219, 228, 241, 0), var(--detail-divider) 16%, var(--detail-divider) 84%, rgba(219, 228, 241, 0));
}

.product-gallery {
  position: relative;
}

.detail-image img {
  transform-origin: center center;
  transition: transform 0.2s ease;
  cursor: zoom-in;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.thumbs img {
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.thumb-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 2px;
  background: transparent;
  cursor: pointer;
}

.thumb-btn.active {
  border-color: #2a5fbe;
  box-shadow: 0 0 0 2px #d6e6ff;
}

.zoom-controls {
  display: flex;
  gap: 8px;
}

.subtitle {
  color: var(--primary);
  font-weight: 700;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-stitch {
  line-height: 0;
}

.detail-stitch-wrap {
  margin-top: 14px;
  border: 1px solid var(--detail-stitch-border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.detail-stitch img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid #bfd2ff;
  color: #143b82;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.admin-image-module {
  padding: 16px;
}

.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.admin-image-slot {
  display: grid;
  gap: 10px;
}

.admin-image-slot-head {
  font-weight: 700;
}

.admin-image-preview {
  position: relative;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.admin-image-preview .img-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.admin-image-upload-label {
  display: grid;
  gap: 8px;
}

.admin-image-check {
  justify-content: flex-start;
  font-weight: 600;
  color: var(--text);
}

.admin-image-check input[type="checkbox"] {
  margin: 0;
}

.admin-image-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 4px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
}

.admin-image-option {
  position: relative;
  display: block;
  cursor: pointer;
  font-weight: 400;
}

.admin-image-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-image-option-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 100%;
  padding: 8px;
  border: 1px solid #d3dbe8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.admin-image-option:hover .admin-image-option-card {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.admin-image-option input[type="radio"]:checked + .admin-image-option-card {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, #ffffff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent), 0 16px 28px rgba(15, 23, 42, 0.09);
}

.admin-image-option-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

.admin-image-option-preview .img-placeholder {
  min-height: 100%;
  padding: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.admin-image-option-name {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  word-break: break-word;
}

.admin-image-option-empty .admin-image-option-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="checkbox"] {
  width: auto;
}

.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  white-space: nowrap;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.category-filter {
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.category-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.stat {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0 0;
}

.list {
  margin: 0;
  padding-left: 20px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #e3ecff, #f8fbff);
}

.login-card {
  width: min(460px, 92%);
}

.error {
  color: #b91c1c;
  font-weight: 600;
}

.success {
  color: #166534;
  font-weight: 700;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
}

.footer-brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-mark {
  width: 22px;
  height: 22px;
}

.brand-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, var(--brand-grad-1), var(--brand-grad-2)),
    radial-gradient(circle at 82% 18%, var(--brand-accent), transparent 34%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.brand-hero::before,
.brand-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.brand-hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.22), transparent 26%),
    radial-gradient(circle at 72% 108%, rgba(145, 215, 255, 0.16), transparent 34%);
}

.brand-hero::after {
  width: min(52vw, 640px);
  height: min(52vw, 640px);
  left: -18%;
  bottom: -52%;
  border-radius: 52% 48% 60% 40%;
  border: 1px solid rgba(209, 238, 255, 0.26);
  background:
    linear-gradient(160deg, rgba(208, 239, 255, 0.18), rgba(208, 239, 255, 0.03));
}

.brand-hero .container {
  position: relative;
  z-index: 1;
}

.brand-kicker {
  margin: 0;
  letter-spacing: 1.2px;
  font-size: 0.86rem;
  color: #ffdfa1;
}

.brand-lead {
  max-width: 860px;
  line-height: 1.85;
}

.brand-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.brand-values .info-box {
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border: 1px solid #d6e1f8;
  box-shadow: 0 12px 30px rgba(15, 62, 140, 0.08);
}

.brand-strip {
  margin-top: 18px;
  background: linear-gradient(90deg, #f8fbff, #edf4ff);
  border: 1px solid #d3dff6;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
}

.strip-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.strip-item strong {
  color: #114da8;
  font-size: 1.1rem;
}

.strip-image {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  object-position: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.strip-item small {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .hero-grid,
  .detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-product-stage {
    inset: 28px 22px 108px;
  }

  .detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-sheet {
    padding: 12px;
    border-radius: 14px;
  }

  .detail-gallery-card {
    position: static;
    top: auto;
  }

  .detail-spec-grid {
    grid-template-columns: 1fr;
  }

  .detail-image {
    height: clamp(260px, 68vw, 420px);
  }

  .home-product-image-box {
    height: 220px;
  }

  .nav-wrap {
    align-items: center;
    padding: 10px 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
  }

  .nav {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    width: max-content;
    min-width: 220px;
    max-width: calc(100vw - 20px);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 180;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background:
      linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
      linear-gradient(120deg, var(--header-grad-1), var(--header-grad-2));
    box-shadow: 0 20px 38px rgba(2, 10, 28, 0.24);
  }

  .site-header.nav-open .nav,
  .admin-header.nav-open .nav {
    display: grid;
  }

  .brand-logo {
    flex: 0 0 auto;
    min-width: 0;
    max-width: calc(100% - 54px);
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav > a,
  .nav > .nav-dropdown > .nav-link {
    width: auto;
    display: block;
    padding: 10px 12px;
    text-align: right;
    touch-action: manipulation;
    transform: none !important;
    color: #dbeafe;
  }

  .nav-dropdown {
    width: 100%;
    flex: none;
  }

  .nav-dropdown .nav-link {
    width: 100%;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }

  .dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
    max-height: min(62vh, 520px);
    overflow: auto;
    overflow-x: hidden;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .nav-dropdown.open .dropdown-panel {
    display: block;
  }

  .nav-dropdown:hover .dropdown-panel {
    display: none;
  }

  .nav-dropdown.open:hover .dropdown-panel {
    display: block;
  }

  .dropdown-panel::before {
    display: none;
  }

  .dropdown-grid {
    gap: 8px;
    text-align: right;
  }

  .dropdown-item {
    border: 1px solid #d8e1ef;
    border-radius: 10px;
    padding: 6px;
    background: #fff;
    min-width: 0;
  }

  .dropdown-title {
    text-align: right;
  }

  .dropdown-item-head {
    text-align: right;
  }

  .dropdown-submenu {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 6px;
    padding: 8px;
    border-radius: 10px;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    display: none;
    gap: 6px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .dropdown-submenu::before {
    display: none;
  }

  .dropdown-item:hover .dropdown-submenu {
    display: none;
  }

  .dropdown-item.open .dropdown-submenu {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .dropdown-expand {
    display: inline-block;
  }

  .dropdown-item.open .dropdown-expand {
    background: #1f3f74;
    color: #ffffff;
    border-color: #1f3f74;
  }

  .dropdown-product {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
  }

  .dropdown-category {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: right;
  }

  .dropdown-submenu,
  .dropdown-submenu.empty {
    text-align: right;
  }

  .admin-link {
    display: none;
  }

  .admin-header .admin-logout-desktop {
    display: none;
  }

  .admin-header .admin-logout-inline {
    display: block;
    width: 100%;
    margin-top: 4px;
  }

  .admin-header .admin-logout-inline .btn {
    width: 100%;
    justify-content: center;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-strip {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-switch {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 50% -8%, var(--body-glow), transparent 52%),
      var(--bg);
    background-repeat: no-repeat;
    background-size: cover;
  }

  .container {
    width: min(1120px, 95%);
  }

  .section {
    padding: 30px 0;
  }

  .hero {
    padding: 42px 0;
  }

  body:is(.theme-j-general-crimson, .theme-j-classic-trust, .theme-j-fresh-health, .theme-j-luxury-light, .theme-j-science-bluegold) .hero {
    padding: 48px 0 82px;
  }

  .hero-copy {
    padding: 16px 0 18px 16px;
  }

  .hero-copy::before {
    inset: -22px -18px -70px -18px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 40%),
      linear-gradient(118deg, var(--theme-visual-bg, rgba(255, 247, 234, 0.14)) 0%, transparent 68%);
  }

  .hero-copy::after {
    bottom: -86px;
    width: min(330px, 88vw);
    opacity: 0.46;
  }

  .hero + .section::before {
    top: -36px;
    height: 128px;
    opacity: 0.32;
  }

  .hero-visual {
    min-height: 330px;
    border-radius: 22px;
  }

  .hero-product-stage {
    inset: 28px 16px 116px;
  }

  .hero-product-shot {
    width: min(42%, 152px);
    max-height: 176px;
    --hero-shot-start-transform: translateX(-50%) translateY(18px) scale(0.84);
    --hero-shot-peak-transform: translateX(-50%) translateY(-3px) scale(1.01);
  }

  .hero-product-shot-1 {
    width: min(47%, 172px);
    max-height: 206px;
    --hero-shot-end-transform: translateX(-50%) scale(1);
    --hero-shot-start-transform: translateX(-50%) translateY(18px) scale(0.9);
    --hero-shot-peak-transform: translateX(-50%) translateY(-3px) scale(1.02);
  }

  .hero-product-shot-2 {
    width: min(33%, 120px);
    max-height: 164px;
    bottom: 6px;
    --hero-shot-end-transform: translateX(-50%) rotate(-9deg) scale(0.88);
    --hero-shot-start-transform: translateX(-50%) translateY(16px) rotate(-13deg) scale(0.76);
    --hero-shot-peak-transform: translateX(-50%) translateY(-2px) rotate(-8deg) scale(0.91);
  }

  .hero-product-shot-3 {
    width: min(33%, 120px);
    max-height: 164px;
    bottom: 6px;
    --hero-shot-end-transform: translateX(-50%) rotate(9deg) scale(0.88);
    --hero-shot-start-transform: translateX(-50%) translateY(16px) rotate(13deg) scale(0.76);
    --hero-shot-peak-transform: translateX(-50%) translateY(-2px) rotate(8deg) scale(0.91);
  }

  .hero-quality-seal {
    top: 14px;
    right: 14px;
    grid-template-rows: 23px 18px 13px;
    row-gap: 1px;
    width: 88px;
    height: 88px;
    border-width: 4px;
  }

  .hero-quality-seal::before {
    inset: 7px;
  }

  .hero-quality-seal::after {
    inset: 11px 14px auto;
    height: 26px;
  }

  .hero-quality-seal span {
    width: 23px;
    height: 23px;
    font-size: 0.95rem;
  }

  .hero-quality-seal strong {
    font-size: 0.66rem;
  }

  .hero-quality-seal small {
    font-size: 0.43rem;
  }

  .hero-assurance-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 13px 14px;
    border-radius: 16px;
  }

  .hero::before {
    width: 92vw;
    height: 92vw;
    right: -34vw;
    top: -28vw;
  }

  .hero::after {
    background:
      radial-gradient(circle at 10px 10px, var(--hero-dot) 1.2px, transparent 1.2px) 0 0 / 22px 22px,
      linear-gradient(105deg, rgba(255, 255, 255, 0.09), transparent 45%);
  }

  .brand-hero::after {
    width: 72vw;
    height: 72vw;
    left: -24vw;
    bottom: -32vw;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .nav {
    overflow: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
    gap: 8px;
  }

  .nav a,
  .admin-link {
    white-space: nowrap;
  }

  .brand-logo-mark {
    width: 26px;
    height: 26px;
  }

  .brand-logo span {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .nav-toggle:active,
  .nav > a:active,
  .nav > .nav-dropdown > .nav-link:active {
    transform: none !important;
  }

  .table th,
  .table td {
    padding: 8px;
    font-size: 0.9rem;
  }

  .card {
    padding: 14px;
  }

  .thumbs img {
    width: 68px;
    height: 68px;
  }

  .home-product-image-box {
    height: 190px;
  }

  .category-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .product-subtitle {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-filter .btn {
    width: 100%;
    text-align: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-product-shot {
    animation: none;
    opacity: 1;
    transform: var(--hero-shot-end-transform);
  }
}

@media (max-width: 860px) {
  .site-header .nav {
    justify-items: end;
    text-align: right;
  }

  .site-header .nav > a,
  .site-header .nav > .nav-dropdown > .nav-link {
    text-align: right !important;
    justify-content: flex-end;
  }

  .site-header .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .site-header .dropdown-panel,
  .site-header .dropdown-title,
  .site-header .dropdown-grid,
  .site-header .dropdown-item,
  .site-header .dropdown-item-head,
  .site-header .dropdown-category,
  .site-header .dropdown-submenu,
  .site-header .dropdown-product {
    text-align: right !important;
  }
}

/* mobile dropdown: category left align + product name wrapping */
@media (max-width: 860px) {
  .site-header .nav > a,
  .site-header .nav > .nav-dropdown > .nav-link {
    text-align: right !important;
  }

  .site-header .nav-dropdown .dropdown-panel {
    text-align: left !important;
  }

  .site-header .nav-dropdown .dropdown-title,
  .site-header .nav-dropdown .dropdown-grid,
  .site-header .nav-dropdown .dropdown-item,
  .site-header .nav-dropdown .dropdown-item-head,
  .site-header .nav-dropdown .dropdown-category,
  .site-header .nav-dropdown .dropdown-submenu,
  .site-header .nav-dropdown .dropdown-product,
  .site-header .nav-dropdown .dropdown-submenu.empty {
    text-align: left !important;
  }

  .site-header .nav-dropdown .dropdown-item-head {
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
  }

  .site-header .nav-dropdown .dropdown-category {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
  }

  .site-header .nav-dropdown .dropdown-submenu {
    min-width: 0;
    width: 100%;
  }

  .site-header .nav-dropdown .dropdown-product {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
  }
}

/* mobile: category-only dropdown (no plus/no product submenu) */
@media (max-width: 860px) {
  .site-header .nav-dropdown .dropdown-expand {
    display: none !important;
  }

  .site-header .nav-dropdown .dropdown-submenu,
  .site-header .nav-dropdown .dropdown-submenu.empty {
    display: none !important;
  }

  .site-header .nav-dropdown .dropdown-item {
    padding: 4px 0;
    border: 0;
    background: transparent;
  }

  .site-header .nav-dropdown .dropdown-item-head {
    justify-content: flex-start;
    align-items: center;
  }

  .site-header .nav-dropdown .dropdown-category {
    width: 100%;
    padding: 10px 8px;
  }
}


/* mobile: ensure enough page height for hamburger panel (no internal scroll) */
@media (max-width: 860px) {
  html,
  body {
    min-height: 130vh;
    min-height: 130dvh;
  }

  .site-header.nav-open ~ main,
  .admin-header.nav-open ~ main {
    min-height: 78vh;
    min-height: 78dvh;
  }

  .site-header.nav-open .nav,
  .admin-header.nav-open .nav {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* mobile: frosted glass hamburger panel */
@media (max-width: 860px) {
  .site-header .nav,
  .admin-header .nav {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1)),
      linear-gradient(120deg, var(--header-grad-1), var(--header-grad-2));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(2, 10, 28, 0.26);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}

/* mobile: homepage hot product images fill height as much as possible */
@media (max-width: 860px) {
  .home-product-image-box {
    padding: 0;
  }

  .home-product-image-box .fit-image {
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* mobile: reduce image box height to better match product image proportions */
@media (max-width: 860px) {
  .cards .product-image,
  .cards .home-product-image-box {
    height: clamp(145px, 38vw, 180px) !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
  }

  .cards .product-image .fit-image,
  .cards .home-product-image-box .fit-image {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}
