:root {
  --primary: #5d3891;
  --primary-dark: #432668;
  --primary-deep: #241433;
  --primary-soft: #f2edf9;
  --secondary: #50c878;
  --secondary-dark: #28764a;
  --secondary-soft: #e9f8ee;
  --accent: #9370db;
  --ink: #201827;
  --muted: #6d6574;
  --subtle: #938a99;
  --surface: #ffffff;
  --surface-soft: #f7f6f9;
  --surface-purple: #faf8fd;
  --line: #e7e2eb;
  --line-strong: #d5ccdc;
  --danger: #b42318;
  --warning: #9a6500;
  --success: #21633b;
  --shadow-sm: 0 6px 20px rgba(45, 25, 65, 0.07);
  --shadow: 0 20px 55px rgba(45, 25, 65, 0.12);
  --shadow-lg: 0 35px 90px rgba(28, 15, 44, 0.2);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shell: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(80, 200, 120, 0.7); outline-offset: 3px; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { letter-spacing: -0.025em; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--secondary);
  color: #102818;
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(93, 56, 145, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.18; }
.brand strong { font-size: 1.04rem; font-weight: 850; letter-spacing: -0.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.04em; }
.brand-mark {
  position: relative;
  isolation: isolate;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  box-shadow: 0 9px 22px rgba(93, 56, 145, 0.26);
}
.brand-mark::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; z-index: -1; background: var(--secondary); }
.brand-mark.large { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 18px; font-size: 1.15rem; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a, .admin-header nav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.site-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.site-nav a.active { background: var(--primary-soft); color: var(--primary); }
.site-nav .nav-cta {
  margin-left: 9px;
  padding-inline: 17px;
  background: var(--primary);
  color: white;
  box-shadow: 0 9px 22px rgba(93, 56, 145, 0.2);
}
.site-nav .nav-cta:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-weight: 750;
}

/* Buttons and common type */
.eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: var(--secondary-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(93, 56, 145, 0.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(93,56,145,.24); }
.button.secondary { border-color: rgba(255,255,255,.35); background: white; color: var(--primary); box-shadow: none; }
.button.secondary:hover { border-color: var(--primary); background: var(--primary-soft); }
.button.light { background: white; color: var(--primary); }
.button.light:hover { background: var(--secondary-soft); color: var(--primary-dark); }
.button.ghost { border-color: rgba(255,255,255,.35); background: transparent; color: white; box-shadow: none; }
.button.ghost:hover { border-color: white; background: rgba(255,255,255,.1); }
.button.danger { background: var(--danger); }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 0.82rem; }
.button.full { width: 100%; }

/* Home */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 15%, rgba(147,112,219,.48), transparent 30%),
    radial-gradient(circle at 15% 105%, rgba(80,200,120,.19), transparent 32%),
    linear-gradient(125deg, #241433 0%, #4b2c72 48%, #65409a 100%);
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.13;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, transparent, black 55%);
}
.hero-grid { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: 74px; padding-block: 78px; }
.hero-content { position: relative; z-index: 2; }
.hero .eyebrow { color: #aaf0c1; }
.hero h1, .page-hero h1 {
  max-width: 780px;
  margin: 10px 0 24px;
  font-size: clamp(3.1rem, 6.2vw, 6rem);
  font-weight: 880;
  line-height: .98;
  letter-spacing: -0.06em;
}
.hero-copy { max-width: 650px; margin: 0; color: rgba(255,255,255,.8); font-size: 1.16rem; }
.hero .button { background: var(--secondary); color: #12301b; box-shadow: 0 12px 28px rgba(35, 124, 67, .28); }
.hero .button:hover { background: #6bd88e; color: #0f2517; }
.hero .button.secondary { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: white; backdrop-filter: blur(8px); }
.hero .button.secondary:hover { border-color: white; background: rgba(255,255,255,.15); }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-proof span { display: grid; gap: 2px; }
.hero-proof strong { font-size: .86rem; }
.hero-proof small { color: rgba(255,255,255,.58); font-size: .7rem; }
.hero-showcase { position: relative; min-height: 500px; display: grid; place-items: center; }
.hero-image-frame {
  position: relative;
  z-index: 2;
  width: min(440px, 88%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 10px solid rgba(255,255,255,.94);
  border-radius: 30px;
  background: #eae5f0;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}
.hero-image-frame img, .hero-image-frame .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute;
  z-index: 3;
  left: -8px;
  bottom: 42px;
  max-width: 290px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hero-float-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; background: var(--secondary-soft); color: var(--secondary-dark); font-size: 1.25rem; }
.hero-float-card small, .hero-float-card strong { display: block; }
.hero-float-card small { color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-float-card strong { margin-top: 2px; font-size: .88rem; line-height: 1.25; }
.hero-orbit { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.hero-orbit-one { width: 440px; height: 440px; }
.hero-orbit-two { width: 540px; height: 540px; border-color: rgba(80,200,120,.24); }
.value-strip { background: white; border-bottom: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-grid article { display: flex; gap: 16px; padding: 28px 30px; border-right: 1px solid var(--line); }
.value-grid article:first-child { padding-left: 0; }
.value-grid article:last-child { padding-right: 0; border-right: 0; }
.value-grid article > span { color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.value-grid strong, .value-grid p { display: block; }
.value-grid strong { font-size: .9rem; }
.value-grid p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }

/* Sections and cards */
.section { padding-block: 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.section-heading h2, .accent-section h2, .prose h2, .contact-card h2, .contact-checklist h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.section-heading p:not(.eyebrow) { max-width: 620px; margin: 10px 0 0; color: var(--muted); }
.section-link { padding-bottom: 4px; border-bottom: 2px solid var(--secondary); color: var(--primary); font-weight: 800; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-5px); border-color: rgba(93,56,145,.24); box-shadow: var(--shadow); }
.product-card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #eee9f2; }
.product-card-image img, .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-card-image img { transition: transform .4s ease; }
.product-card:hover .product-card-image img { transform: scale(1.035); }
.badge { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px; background: var(--secondary); color: #102818; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 7px 18px rgba(27,84,45,.2); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.product-card h3 { margin: 4px 0 7px; font-size: 1.32rem; font-weight: 820; line-height: 1.18; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--primary); }
.product-card .muted { margin: 0; font-size: .82rem; }
.card-description { display: -webkit-box; overflow: hidden; margin: 12px 0 0; color: var(--muted); font-size: .84rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-foot { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 24px; }
.card-foot > div { display: grid; gap: 1px; }
.card-foot strong { font-size: 1.25rem; letter-spacing: -.025em; }
.card-foot > div span { color: var(--secondary-dark); font-size: .7rem; font-weight: 700; }
.card-link { color: var(--primary); font-size: .78rem; font-weight: 850; white-space: nowrap; }
.card-link span { display: inline-block; transition: transform .18s ease; }
.card-link:hover span { transform: translateX(3px); }
.image-placeholder { min-height: 240px; display: grid; place-content: center; gap: 9px; text-align: center; background: linear-gradient(145deg, #eee8f6, #faf8fd); }
.image-placeholder span { width: 62px; height: 62px; display: grid; place-items: center; margin: auto; border-radius: 18px; background: linear-gradient(145deg,var(--primary),var(--accent)); color: white; font-weight: 900; box-shadow: var(--shadow-sm); }
.image-placeholder small { color: var(--muted); }
.accent-section { position: relative; overflow: hidden; padding: 72px 0; background: linear-gradient(120deg, var(--primary-deep), var(--primary) 65%, #7148a8); color: white; }
.accent-section::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -140px; border: 60px solid rgba(80,200,120,.17); border-radius: 50%; }
.accent-section .shell { position: relative; z-index: 1; }
.accent-section .eyebrow { color: #aaf0c1; }
.accent-section p { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.72); }
.split { display: flex; align-items: center; justify-content: space-between; gap: 54px; }
.split > div:first-child { max-width: 760px; }

/* Page headers and shop */
.page-hero { position: relative; overflow: hidden; padding: 82px 0 66px; background: linear-gradient(125deg, #29183c 0%, var(--primary) 72%, #7048a5 100%); color: white; }
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: 4vw; top: -220px; border: 70px solid rgba(80,200,120,.2); border-radius: 50%; }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #aaf0c1; }
.page-hero h1 { max-width: 900px; margin-bottom: 18px; font-size: clamp(2.8rem, 5vw, 4.9rem); }
.page-hero p:not(.eyebrow) { max-width: 740px; margin: 0; color: rgba(255,255,255,.75); font-size: 1.08rem; }
.compact-hero { padding-block: 54px 44px; }
.compact-hero h1 { font-size: clamp(2.5rem,5vw,4.4rem); }
.shop-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: 98px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.filters h2 { margin: 0 0 20px; font-size: 1.1rem; }
.filters label, .gate-card label, .form-grid label { display: grid; gap: 7px; margin-bottom: 16px; color: var(--ink); font-size: .78rem; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  box-shadow: inset 0 1px 1px rgba(35,21,49,.025);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(93,56,145,.12); }
textarea { min-height: 120px; resize: vertical; }
.filters .centered { display: block; margin-top: 14px; text-align: center; font-size: .8rem; font-weight: 700; }
.results-head { margin-bottom: 18px; color: var(--muted); }
.empty { padding: 58px 28px; border: 1px dashed #cabfd1; border-radius: var(--radius); background: rgba(255,255,255,.74); text-align: center; }
.inline-filters { display: grid; grid-template-columns: minmax(250px,1fr) 260px auto auto; align-items: end; gap: 12px; margin-bottom: 30px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.inline-filters label { display: grid; gap: 6px; font-size: .78rem; font-weight: 800; }
.inline-filters a { padding: 0 4px 12px; font-size: .82rem; font-weight: 750; }

/* Product detail and colors */
.product-detail { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(340px,.94fr); gap: 64px; align-items: start; }
.gallery { position: sticky; top: 100px; }
.gallery-main { overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #eee9f2; box-shadow: var(--shadow); }
.gallery-main .image-placeholder { height: 100%; }
.thumbs { display: flex; gap: 10px; margin-top: 13px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { width: 76px; height: 76px; flex: 0 0 76px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 11px; background: none; cursor: pointer; }
.thumbs button:hover { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { padding-top: 10px; }
.product-copy h1 { margin: 8px 0 12px; font-size: clamp(2.45rem, 5vw, 4.5rem); font-weight: 870; line-height: .98; letter-spacing: -.055em; }
.variant { margin: 0 0 14px; color: var(--muted); font-size: 1.03rem; }
.price { margin: 14px 0 7px; font-size: 1.95rem; font-weight: 900; letter-spacing: -.035em; }
.stock-pill { display: inline-block; margin: 0; padding: 7px 12px; border-radius: 999px; background: var(--secondary-soft); color: var(--secondary-dark); font-size: .78rem; font-weight: 800; }
.lede { margin-top: 24px; color: #4c4252; font-size: 1.08rem; }
.product-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 25px 0; }
.product-facts div { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.product-facts span, .product-facts strong { display: block; }
.product-facts span { margin-bottom: 2px; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.rich-copy { margin: 26px 0; color: #4c4451; }
.callout { margin: 25px 0; padding: 19px 20px; border: 1px solid #dbd0e7; border-left: 5px solid var(--secondary); border-radius: 12px; background: var(--surface-purple); }
.callout p { margin: 5px 0 0; color: var(--muted); }
.tier-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.tier-list span { padding: 8px 11px; border: 1px solid #dfd5e9; border-radius: 9px; background: var(--primary-soft); color: var(--primary-dark); font-size: .8rem; font-weight: 700; }
.soft-section { padding: 72px 0; border-top: 1px solid var(--line); background: #f0edf4; }
.color-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.color-grid.mini { grid-template-columns: repeat(5,minmax(0,1fr)); }
.color-card { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 3px 12px rgba(45,25,65,.04); }
.color-card.large { min-height: 96px; }
.color-card img, .swatch { width: 60px; height: 60px; flex: 0 0 60px; border: 3px solid white; border-radius: 50%; background: var(--swatch,#808080); object-fit: cover; box-shadow: 0 0 0 1px #cfc7d3, 0 5px 12px rgba(30,20,38,.1); }
.color-card > div { min-width: 0; }
.color-card strong, .color-card small { display: block; overflow: hidden; text-overflow: ellipsis; }
.color-card strong { white-space: nowrap; }
.color-card small { color: var(--muted); font-size: .7rem; }

/* About, contact, footer */
.prose { color: #4e4653; font-size: 1.05rem; }
.prose h2 { color: var(--ink); }
.prose p { margin: 18px 0; }
.about-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr); align-items: start; gap: 72px; }
.about-values { display: grid; gap: 12px; }
.about-values article { display: flex; gap: 18px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.about-values article > span { color: var(--accent); font-size: .72rem; font-weight: 900; }
.about-values strong { display: block; margin-bottom: 3px; }
.about-values p { margin: 0; color: var(--muted); font-size: .84rem; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.75fr); gap: 26px; }
.contact-card, .contact-checklist { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); }
.contact-card p { color: var(--muted); }
.contact-card .button { margin-top: 12px; }
.contact-checklist { background: linear-gradient(145deg,var(--primary-deep),var(--primary)); color: white; }
.contact-checklist .eyebrow { color: #aaf0c1; }
.contact-checklist h2 { margin-bottom: 24px; }
.contact-checklist ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contact-checklist li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.78); }
.contact-checklist li span { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(80,200,120,.16); color: #baf2cc; font-size: .72rem; font-weight: 900; }
.site-footer { padding: 62px 0 26px; background: #17111e; color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr .8fr 1.2fr; gap: 54px; }
.footer-grid > div { display: grid; align-content: start; gap: 9px; }
.footer-brand { display: flex !important; grid-template-columns: auto 1fr; align-items: start; gap: 16px !important; }
.footer-grid p { margin: 0; color: #aba2b1; }
.footer-grid a { width: fit-content; color: #cfc2dc; }
.footer-grid a:hover { color: white; }
.footer-cta { margin-top: 6px; color: #8ee9ab !important; font-weight: 800; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid #392e42; color: #8f8596; font-size: .75rem; }

/* Notices and preview gate */
.flash { margin-top: 15px; padding: 13px 16px; border: 1px solid #bfe6ca; border-radius: 10px; background: var(--secondary-soft); color: var(--success); }
.flash.error { border-color: #f1c6c1; background: #ffebe8; color: #8b231c; }
.gate-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 80% 20%,rgba(80,200,120,.2),transparent 35%),linear-gradient(135deg,#27153a,var(--primary)); }
.gate-card { width: min(440px,100%); padding: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 26px; background: white; box-shadow: var(--shadow-lg); }
.gate-card h1 { margin: 6px 0; font-size: 2.35rem; line-height: 1.05; }
.gate-card form { margin-top: 25px; }

/* Admin */
.admin-body { background: #f3f1f5; }
.admin-header { min-height: 72px; padding: 10px max(20px,calc((100vw - var(--shell))/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #201628; color: white; }
.admin-header .brand { color: white; }
.admin-header nav { display: flex; flex-wrap: wrap; gap: 2px; }
.admin-header nav a { color: #e9e0f0; }
.admin-header nav a:hover { background: rgba(255,255,255,.08); }
.admin-main { width: min(var(--shell),calc(100% - 40px)); margin: 36px auto 80px; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.admin-title h1 { margin: 0; font-size: 2.45rem; line-height: 1.05; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 14px; margin-bottom: 30px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.stat span, .stat strong { display: block; }
.stat span { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.stat strong { font-size: 2rem; }
.admin-card { margin-bottom: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.admin-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { background: #faf9fb; color: var(--muted); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-thumb { width: 58px; height: 58px; border-radius: 9px; background: #eee; object-fit: cover; }
.status { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: .7rem; font-weight: 850; }
.status.published, .status.accepted { background: var(--secondary-soft); color: var(--success); }
.status.draft, .status.quoted { background: #eee8f8; color: var(--primary); }
.status.archived, .status.declined, .status.closed { background: #f3e7e5; color: #8b231c; }
.status.new { background: #fff0cf; color: #7b5300; }
.status.reviewing { background: #e7eefb; color: #315a93; }
.row-actions { display: flex; gap: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-grid label { margin: 0; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input[type=checkbox] { width: auto; min-height: 0; }
.check-row { display: flex !important; align-items: center; gap: 9px; }
.check-row input { width: auto; }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; margin: 25px -24px -24px; padding: 16px 24px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.color-picker-grid { max-height: 430px; overflow: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.color-option { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; font-size: .8rem; }
.color-option input { width: auto; min-height: 0; }
.color-option .swatch { width: 28px; height: 28px; flex-basis: 28px; border-width: 2px; }
.filter-colors { margin-bottom: 10px; }
.image-list { display: flex; flex-wrap: wrap; gap: 12px; }
.image-admin { width: 150px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.image-admin img { width: 100%; aspect-ratio: 1; margin-bottom: 7px; border-radius: 7px; object-fit: cover; }
.danger-zone { border-color: #e4b6b1; }
.admin-login { max-width: 440px; margin: 9vh auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Product configurator */
.configurator-hint { margin: 10px 4px 0; color: var(--muted); font-size: .8rem; }
.configurator { padding-top: 48px; }
.configurator-stage { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); gap: 34px; align-items: start; }
.configurator-visual { position: sticky; top: 96px; }
.paint-canvas { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 25px; background: #eee9f2; box-shadow: var(--shadow); }
.paint-canvas > .paint-image, .paint-canvas > .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.paint-marker { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: max(48px,var(--size)); height: max(48px,var(--size)); padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform: translate(-50%,-50%); }
.paint-marker span { position: absolute; inset: 4px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; background: var(--selected,var(--primary)); color: white; font-weight: 900; box-shadow: 0 5px 18px rgba(0,0,0,.34); }
.paint-marker small { position: absolute; left: 50%; top: calc(100% + 5px); width: max-content; max-width: 160px; padding: 5px 8px; border-radius: 7px; background: rgba(32,24,39,.92); color: white; font-size: .67rem; font-weight: 750; pointer-events: none; transform: translateX(-50%); }
.paint-marker.active span { outline: 4px solid rgba(80,200,120,.85); outline-offset: 3px; }
.paint-marker.chosen span { color: white; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.paint-marker.special span, .part-summary-row.special .selection-dot { background: linear-gradient(135deg,var(--primary),var(--secondary),#ff8d73); }
.canvas-help { margin: 11px 4px; color: var(--muted); font-size: .78rem; }
.part-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.part-summary-row { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.part-summary-row.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(93,56,145,.12); }
.part-summary-row > span:last-child { min-width: 0; }
.part-summary-row strong, .part-summary-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.part-summary-row strong { font-size: .74rem; }
.part-summary-row small { color: var(--muted); font-size: .65rem; }
.selection-dot { width: 24px; height: 24px; flex: 0 0 24px; border: 2px solid white; border-radius: 50%; background: var(--choice,#ddd6e2); box-shadow: 0 0 0 1px #cbc2d1; }
.configurator-panel { padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.configurator-panel h2 { margin: 0 0 20px; font-size: 2rem; line-height: 1.08; }
.palette-filters { display: grid; grid-template-columns: 1fr 170px; gap: 10px; }
.palette-filters label, .special-fields label, .quote-fields label, .quote-calculator label { display: grid; gap: 6px; margin-bottom: 10px; font-size: .77rem; font-weight: 800; }
.paint-palette { max-height: 450px; overflow: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; }
.paint-color { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.paint-color:hover, .paint-color.selected { border-color: var(--primary); background: var(--primary-soft); }
.paint-color img, .paint-color .swatch { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; object-fit: cover; }
.paint-color > span:last-child { min-width: 0; }
.paint-color strong, .paint-color small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paint-color strong { font-size: .76rem; }
.paint-color small { color: var(--muted); font-size: .63rem; }
.special-filament { margin-top: 18px; padding: 17px; border: 1px dashed #bba9ce; border-radius: 13px; background: var(--surface-purple); }
.special-filament p { margin: 4px 0 14px; color: var(--muted); font-size: .77rem; }
.special-fields[hidden] { display: none; }
.quote-request-card { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; margin-top: 35px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.quote-request-card h2 { margin: 0; font-size: 2.1rem; line-height: 1.08; }
.quote-fields { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.quote-fields .wide { grid-column: 1 / -1; }
.quote-fields textarea { min-height: 90px; }
.estimate-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 14px; background: linear-gradient(120deg,var(--primary-deep),var(--primary)); color: white; }
.estimate-bar > div:first-child { margin-right: auto; }
.estimate-bar span, .estimate-bar strong, .estimate-bar small { display: block; }
.estimate-bar span { color: #cec3d5; font-size: .68rem; text-transform: uppercase; }
.estimate-bar strong { font-size: 1.7rem; }
.estimate-bar small { color: #cec3d5; }
.special-pending { padding: 7px 10px; border-radius: 8px; background: rgba(80,200,120,.17); color: #b9f3cb; font-size: .75rem; font-weight: 750; }
.quote-success { padding: 45px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); text-align: center; }
.quote-success h1 { margin: 5px 0; font-size: 3rem; }
.quote-success .button-row { justify-content: center; }
.success-check { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--secondary-soft); color: var(--secondary-dark); font-size: 2rem; font-weight: 900; }
.paint-canvas.render-mode { isolation: isolate; aspect-ratio: 1128 / 1394; }
.paint-canvas.render-mode > .paint-image { position: relative; z-index: 0; object-fit: contain; }
.paint-render-layer { position: absolute; inset: 0; z-index: 1; background: var(--render-color,transparent); -webkit-mask-image: var(--render-mask); mask-image: var(--render-mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; pointer-events: none; }
.render-config .part-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
.material-lock { min-height: 68px; display: grid; align-content: center; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: #f6fbf7; }
.material-lock span, .material-lock strong, .material-lock small { display: block; }
.material-lock span { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.material-lock strong { color: var(--secondary-dark); }
.material-lock small { color: var(--muted); font-size: .65rem; }
.render-mask-note { display: inline-block; margin: -3px 0 9px; padding: 4px 7px; border-radius: 6px; background: var(--secondary-soft); color: var(--success); font-size: .67rem; font-weight: 750; }

/* Configurator and quote administration */
.parts-editor-layout { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(420px,1.2fr); gap: 22px; align-items: start; }
.hotspot-preview { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 15px; background: #eee9f2; cursor: crosshair; }
.hotspot-preview > img, .hotspot-preview > .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.admin-marker { position: absolute; left: var(--x); top: var(--y); width: max(34px,var(--size)); height: max(34px,var(--size)); display: grid; place-items: center; border: 3px solid white; border-radius: 50%; background: var(--primary); color: white; font-weight: 900; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.3); transform: translate(-50%,-50%); }
.admin-marker.active { outline: 4px solid var(--secondary); outline-offset: 2px; }
.part-rows { max-height: 620px; overflow: auto; display: grid; gap: 10px; padding-right: 4px; }
.part-row { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.part-row.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(93,56,145,.1); }
.part-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.part-row label { display: grid; gap: 5px; margin-bottom: 9px; font-size: .75rem; font-weight: 750; }
.part-coordinate-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.quote-alert { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 5px solid var(--secondary); }
.quote-alert p { margin: 3px 0; color: var(--muted); }
.quote-admin-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); gap: 20px; align-items: start; }
.quote-calculator { position: sticky; top: 20px; }
.detail-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 0; }
.detail-list div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.detail-list .wide { grid-column: 1 / -1; }
.detail-list dt { color: var(--muted); font-size: .67rem; text-transform: uppercase; }
.detail-list dd { margin: 3px 0 0; }
.quote-choice-list { display: grid; gap: 10px; }
.quote-choice { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.quote-choice-heading { display: flex; align-items: center; gap: 12px; }
.quote-choice .swatch { width: 42px; height: 42px; flex-basis: 42px; }
.quote-choice p { margin: 2px 0; }
.quote-choice small { color: var(--muted); }
.special-link-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--secondary)); color: white; font-weight: 900; }
.direct-link { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 750; }
.callout.compact { margin: 12px 0; }
.callout.compact p { font-size: .78rem; }
.quote-totals { display: grid; gap: 7px; margin: 18px 0; }
.quote-totals > div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.quote-totals .grand { border-bottom: 0; font-size: 1.15rem; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(320px,.8fr); gap: 36px; }
  .hero h1 { font-size: clamp(3rem,6vw,4.8rem); }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .color-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .color-grid.mini { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.5fr .8fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .site-nav { position: absolute; left: 20px; right: 20px; top: 66px; display: none; flex-direction: column; align-items: stretch; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: center; }
  .site-nav .nav-cta { margin: 4px 0 0; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 46px; padding-block: 70px; }
  .hero-content { max-width: 760px; }
  .hero-showcase { min-height: 460px; }
  .hero-image-frame { max-width: 420px; }
  .hero-float-card { left: calc(50% - 260px); }
  .value-grid { grid-template-columns: 1fr; padding-block: 8px; }
  .value-grid article, .value-grid article:first-child, .value-grid article:last-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .value-grid article:last-child { border-bottom: 0; }
  .shop-layout, .product-detail, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
  .filters h2 { grid-column: 1 / -1; }
  .filters label { margin: 0; }
  .gallery { position: static; }
  .color-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .color-grid.mini { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.4fr .8fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .color-picker-grid { grid-template-columns: repeat(2,1fr); }
  .configurator-stage, .quote-request-card, .parts-editor-layout, .quote-admin-layout { grid-template-columns: 1fr; }
  .configurator-visual, .quote-calculator { position: static; }
  .paint-canvas { max-height: 74vh; }
  .quote-fields { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .shell, .admin-main { width: min(100% - 28px,var(--shell)); }
  .section { padding-block: 62px; }
  .page-hero { padding-block: 62px 48px; }
  .hero-grid { padding-block: 58px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.55rem,12vw,3.55rem); }
  .hero-proof { grid-template-columns: 1fr; gap: 13px; }
  .hero-proof span { grid-template-columns: 130px 1fr; align-items: baseline; }
  .hero-showcase { min-height: 400px; }
  .hero-image-frame { width: min(340px,88%); border-width: 7px; border-radius: 22px; }
  .hero-orbit-one { width: 340px; height: 340px; }
  .hero-orbit-two { width: 420px; height: 420px; }
  .hero-float-card { left: 0; bottom: 20px; max-width: 260px; }
  .product-grid, .product-grid.compact, .color-grid, .color-grid.mini { grid-template-columns: 1fr; }
  .section-heading, .split { align-items: flex-start; flex-direction: column; }
  .section-heading { gap: 18px; }
  .accent-section .button-row { margin-top: 2px; }
  .filters { display: block; }
  .filters label { margin-bottom: 14px; }
  .inline-filters { grid-template-columns: 1fr; }
  .inline-filters a { padding-bottom: 4px; }
  .product-facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-brand { flex-direction: column; }
  .stat-grid, .form-grid, .two-col { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .color-picker-grid { grid-template-columns: 1fr; }
  .admin-title { align-items: flex-start; flex-direction: column; }
  .admin-header nav { width: 100%; display: grid; grid-template-columns: repeat(2,1fr); }
  .admin-header nav a { text-align: center; }
  .gate-card { padding: 28px; }
  .form-actions { position: sticky; bottom: 0; flex-wrap: wrap; }
  .card-foot { align-items: flex-start; }
  .product-card-image { aspect-ratio: 16 / 11; }
  .configurator-panel { padding: 18px; }
  .paint-palette, .palette-filters, .quote-fields, .part-coordinate-grid, .detail-list { grid-template-columns: 1fr; }
  .quote-fields .wide, .detail-list .wide { grid-column: auto; }
  .part-summary, .render-config .part-summary { grid-template-columns: 1fr; }
  .part-summary-row strong, .part-summary-row small { white-space: normal; }
  .estimate-bar { align-items: stretch; flex-direction: column; }
  .estimate-bar > div:first-child { margin-right: 0; }
  .estimate-bar .button { width: 100%; }
  .quote-success { padding: 28px 20px; }
  .quote-success h1 { font-size: 2.35rem; }
  .quote-alert { align-items: flex-start; flex-direction: column; }
  .quote-alert .button { width: 100%; }
  .contact-card, .contact-checklist { padding: 27px; }
}

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