:root {
  color-scheme: dark;
  --bg: #0f141a;
  --bg-soft: rgba(21, 28, 36, 0.82);
  --panel: #141c24;
  --panel-strong: #18222b;
  --text: #edf2f6;
  --muted: #a4b0b9;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #ea544a;
  --primary-deep: #ff756c;
  --secondary: #1e6551;
  --secondary-soft: rgba(30, 101, 81, 0.12);
  --highlight: rgba(255, 255, 255, 0.08);
  --danger: #b63a3a;
  --surface-soft: rgba(24, 34, 43, 0.88);
  --surface-muted: rgba(20, 28, 36, 0.92);
  --surface-pill: rgba(28, 39, 49, 0.96);
  --surface-input: rgba(17, 24, 31, 0.98);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 18px 38px rgba(0, 0, 0, 0.2);
  --shadow-lift: 0 28px 60px rgba(0, 0, 0, 0.3);
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1180px, calc(100vw - 32px));
  --bg-gradient-top-left: rgba(234, 84, 74, 0.12);
  --bg-gradient-top-right: rgba(234, 84, 74, 0.06);
  --bg-gradient-base-start: #10161d;
  --bg-gradient-base-end: #0b1016;
  --card-image-bg:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.025), transparent 36%),
    linear-gradient(180deg, rgba(32, 40, 51, 0.74) 0%, rgba(20, 28, 36, 0.9) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #0b1016;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background-color: var(--bg-gradient-base-end);
  background:
    radial-gradient(circle at top left, var(--bg-gradient-top-left), transparent 28%),
    radial-gradient(circle at top right, var(--bg-gradient-top-right), transparent 24%),
    linear-gradient(180deg, var(--bg-gradient-base-start) 0%, var(--bg-gradient-base-end) 100%);
  transition: background 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.site-body {
  min-height: 100vh;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, var(--bg-gradient-top-left), transparent 28%),
    radial-gradient(circle at top right, var(--bg-gradient-top-right), transparent 24%),
    linear-gradient(180deg, var(--bg-gradient-base-start) 0%, var(--bg-gradient-base-end) 100%);
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}

.page-shell::before {
  top: -100px;
  left: -80px;
  background: rgba(214, 59, 51, 0.1);
}

.page-shell::after {
  right: -110px;
  bottom: -120px;
  background: rgba(214, 59, 51, 0.08);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin: 18px auto 22px;
  position: sticky;
  top: 14px;
  z-index: 30;
  background: rgba(20, 28, 36, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-right: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.brand small {
  color: var(--muted);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 16px 28px rgba(214, 59, 51, 0.28);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topnav a,
.nav-button {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.topnav a:hover,
.nav-button:hover {
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-soft));
  border-color: var(--line);
}

.topnav .is-active {
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-soft));
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.nav-cta {
  background: linear-gradient(180deg, rgba(24, 34, 43, 0.96), rgba(24, 34, 43, 0.82));
  color: white !important;
  box-shadow: var(--shadow-soft);
}

.nav-cta:hover {
  background: #283542 !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  padding: 24px 0 40px;
}

.hero-shell {
  padding: 28px;
  margin-bottom: 28px;
  background:
    radial-gradient(circle at top right, rgba(214, 59, 51, 0.1), transparent 28%),
    linear-gradient(180deg, var(--bg-soft), var(--panel));
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow-lift);
}

.hero-copy,
.hero-spotlight {
  min-height: 100%;
}

.hero-copy {
  padding: 8px 0;
  display: grid;
  gap: 22px;
}

.hero-intro {
  display: grid;
  gap: 14px;
}

.hero-kicker {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-highlight {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-soft));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.hero-highlight strong {
  font-size: 0.98rem;
}

.hero-highlight span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(24, 95, 74, 0.92), rgba(13, 62, 49, 0.98));
  border: 1px solid rgba(100, 221, 182, 0.24);
  color: #9ef1d2;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(6, 39, 31, 0.24);
}

.section-pill-title {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(24, 95, 74, 0.92), rgba(13, 62, 49, 0.98));
  border: 1px solid rgba(100, 221, 182, 0.24);
  color: #9ef1d2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(6, 39, 31, 0.26);
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  line-height: 1.1;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.98;
}

h1 span {
  color: var(--primary-deep);
}

.hero-copy p,
.section-heading p,
.info-card p,
.product-card p,
.product-panel p,
.helper-text,
.nested-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.admin-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  box-shadow: 0 18px 32px rgba(214, 59, 51, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button-secondary {
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-soft));
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.button-ghost {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(182, 58, 58, 0.18);
}

.button-small {
  padding: 10px 14px;
  font-size: 0.95rem;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(24, 34, 43, 0.08);
}

.card,
.info-card {
  background: var(--bg-soft);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card::before,
.info-card::before,
.preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gloss);
  opacity: 0.7;
  pointer-events: none;
}

.metric-card::before,
.list-card::before,
.inventory-item::before,
.spec-row::before,
.dynamic-item::before,
.nested-section::before,
.info-note::before,
.alert::before,
.empty-state::before {
  content: none;
}

.card:hover,
.info-card:hover,
.preview-card:hover,
.metric-card:hover,
.list-card:hover,
.inventory-item:hover {
  box-shadow: var(--shadow-lift);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-pill {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-soft));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.stat-pill strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.stat-pill span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-spotlight {
  padding: 22px;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  box-shadow: var(--shadow-lift);
}

.hero-spotlight .spotlight-head {
  justify-content: flex-start;
}

.spotlight-head,
.spotlight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spotlight-note,
.spotlight-line {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.featured-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  margin: 18px 0;
  padding: 18px;
  background: var(--card-image-bg);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.featured-media::after,
.preview-media::after,
.product-image::after,
.panel-main-image::after,
.detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at center, transparent 54%, rgba(15, 20, 26, 0.14) 100%);
  pointer-events: none;
}

.featured-media img,
.panel-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  background:
    linear-gradient(180deg, rgba(20, 86, 68, 0.96), rgba(10, 51, 40, 0.98));
  color: #8ee8c6;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(87, 194, 164, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(6, 39, 34, 0.22);
}

.featured-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.hero-spotlight .featured-meta .chip,
.hero-spotlight .featured-meta .chip-link {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 112, 101, 0.98), rgba(214, 59, 51, 0.98));
  color: #fff7f6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px rgba(125, 22, 18, 0.2),
    0 14px 24px rgba(138, 31, 25, 0.34);
}

.collection-block .card-meta {
  margin: 0 0 10px;
}

.collection-block .reviewed-meta {
  margin-top: 14px;
  align-items: center;
}

.collection-block .card-meta .chip,
.collection-block .reviewed-meta .chip {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 112, 101, 0.98), rgba(214, 59, 51, 0.98));
  color: #fff7f6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px rgba(125, 22, 18, 0.2),
    0 14px 24px rgba(138, 31, 25, 0.34);
}

.collection-block .reviewed-meta .chip strong,
.collection-block .reviewed-meta .score-badge strong {
  font-weight: 800;
}

.collection-block .reviewed-meta .score-badge {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-soft));
  color: var(--muted);
  font-size: 0.92rem;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.home-collections {
  display: grid;
  gap: 18px;
  padding: 0 0 40px;
}

.home-collections > .section-heading h2 {
  margin-top: 0;
}

.collection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.collection-block {
  display: grid;
  gap: 18px;
  padding: 20px;
  min-width: 0;
}

.collection-block-full {
  width: 100%;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.preview-card {
  padding: 14px;
  border-radius: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.collection-grid > .preview-card {
  width: 100%;
}

.collection-grid > .preview-card > .card-link-main {
  display: grid !important;
  grid-template-columns: minmax(132px, 164px) minmax(0, 1fr) !important;
  gap: 14px;
  align-items: center;
  width: 100%;
}

.preview-media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  padding: 12px;
  background: var(--card-image-bg);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.collection-grid > .preview-card .preview-media {
  width: 100%;
  max-width: 164px;
  min-height: 108px;
  margin: 0;
}

.preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-copy {
  min-width: 0;
  display: grid;
  align-content: center;
}

.preview-copy h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.reviewed-title {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.preview-copy p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-card {
  padding: 22px;
}

.info-card h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.catalog {
  padding-bottom: 56px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading.compact {
  align-items: center;
}

.collection-block .section-heading.compact {
  margin-bottom: 0;
}

.collection-block .section-heading.compact p {
  max-width: 220px;
  text-align: right;
}

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

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

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

.category-pill {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-soft));
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.category-pill.active {
  background: #edf2f6;
  color: #18222b;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.searchbox {
  display: grid;
  gap: 8px;
  min-width: min(100%, 320px);
}

.toolbar-form {
  align-items: flex-end;
}

.advanced-toolbar {
  display: grid;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.toolbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.searchbox span,
label span {
  font-size: 0.95rem;
  font-weight: 700;
}

.searchbox input,
label input,
label textarea,
label select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-input), var(--surface-soft));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

label select,
label select option {
  color: #18222b;
}

label select {
  color: var(--text);
}

label select option {
  background: #ffffff;
}

.searchbox input:focus,
label input:focus,
label textarea:focus,
label select:focus {
  outline: 2px solid rgba(232, 111, 47, 0.2);
  border-color: rgba(232, 111, 47, 0.45);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.product-card {
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.product-card.active {
  border: 1px solid rgba(232, 111, 47, 0.5);
}

.product-card-link {
  padding: 0;
  overflow: hidden;
}

.card-link-wrap {
  display: grid;
  padding: 18px;
  height: 100%;
}

.card-link-main {
  display: block;
  color: inherit;
}

.product-card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.compare-toggle {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.compare-toggle.active {
  background: var(--text);
  color: white;
}

.product-image {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 14px;
  padding: 18px;
  display: grid;
  place-items: center;
  background: var(--card-image-bg);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.product-card .card-meta .chip,
.product-card .featured-meta .chip {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 112, 101, 0.98), rgba(214, 59, 51, 0.98));
  color: #fff7f6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px rgba(125, 22, 18, 0.2),
    0 14px 24px rgba(138, 31, 25, 0.34);
}

.product-panel {
  position: sticky;
  top: 18px;
  padding: 20px;
}

.empty-panel {
  text-align: center;
  padding: 36px 18px;
}

.panel-main-image {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  padding: 18px;
  background: var(--card-image-bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.panel-heading small,
.panel-subtitle,
.muted {
  color: var(--muted);
}

.panel-price {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.metric-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-muted));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.metric-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
}

.panel-copy h4,
.panel-specs h4,
.panel-columns h4 {
  margin-bottom: 10px;
  font-size: 1rem;
}

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

.spec-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-muted));
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.spec-row span:first-child {
  color: var(--muted);
}

.panel-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 16px 0;
}

.gallery-thumb {
  width: 88px;
  min-width: 88px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
}

.panel-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.list-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-muted));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.list-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.chip-link {
  border: 0;
  color: var(--text);
}

.compare-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.compare-selected {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.compare-chip-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.compare-chip-card img,
.compare-product-head img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--card-image-bg);
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.compare-chip-card strong,
.compare-product-head strong {
  display: block;
  margin-bottom: 4px;
}

.compare-chip-card span,
.compare-product-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.compare-remove {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
}

.compare-table-wrap {
  padding: 18px;
}

.compare-scroll {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.compare-table th,
.compare-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
  min-width: 180px;
  font-weight: 800;
}

.compare-product-head {
  display: grid;
  gap: 8px;
}

.detail-page {
  padding-bottom: 56px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 26px;
  margin-bottom: 22px;
  background:
    radial-gradient(circle at top right, rgba(214, 59, 51, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-soft), var(--panel));
  box-shadow: var(--shadow-lift);
}

.detail-viewer {
  display: grid;
  gap: 14px;
}

.detail-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  min-height: 320px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--card-image-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.featured-media,
.preview-media,
.product-image,
.panel-main-image,
.detail-media,
.compare-chip-card img,
.compare-product-head img,
.gallery-large {
  border-color: rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -24px 32px rgba(0, 0, 0, 0.08);
}

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

.detail-image-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-thumb-button {
  width: 88px;
  height: 72px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: var(--card-image-bg);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -16px 24px rgba(0, 0, 0, 0.08);
}

.detail-thumb-button.is-active {
  border-color: rgba(255, 112, 101, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 20px rgba(138, 31, 25, 0.16);
}

.detail-thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-copy {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 8px 4px;
}

.detail-copy .featured-meta {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(31, 40, 50, 0.96), rgba(18, 25, 33, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -10px 20px rgba(0, 0, 0, 0.22),
    0 16px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.detail-copy .featured-meta::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 48%);
  opacity: 0.9;
  pointer-events: none;
}

.detail-copy .chip,
.detail-copy .score-badge {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.detail-copy .chip {
  background:
    linear-gradient(180deg, rgba(34, 45, 57, 0.94), rgba(20, 28, 36, 0.96));
  color: #d7e0e7;
}

.detail-copy .featured-meta:last-of-type .chip:first-child {
  background:
    linear-gradient(180deg, rgba(255, 112, 101, 0.98), rgba(214, 59, 51, 0.98));
  color: #fff7f6;
  border-color: rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px rgba(125, 22, 18, 0.2),
    0 14px 24px rgba(138, 31, 25, 0.34);
}

.detail-copy .score-badge {
  background:
    linear-gradient(180deg, rgba(18, 71, 60, 0.98), rgba(11, 51, 43, 0.98));
  color: #9be0cb;
  border-color: rgba(87, 194, 164, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -8px 14px rgba(0, 0, 0, 0.16),
    0 12px 22px rgba(6, 39, 34, 0.28);
}

.detail-copy h1 {
  margin-top: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-main,
.side-card {
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.detail-side .side-card {
  background:
    radial-gradient(circle at top right, rgba(234, 84, 74, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(31, 40, 50, 0.94), rgba(19, 26, 34, 0.98));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 36px rgba(0, 0, 0, 0.24);
}

.detail-side .side-card h3 {
  margin-bottom: 14px;
}

.detail-side .spec-grid {
  gap: 12px;
}

.detail-side .spec-row {
  padding: 15px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(29, 39, 50, 0.96), rgba(18, 26, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18),
    0 12px 22px rgba(0, 0, 0, 0.16);
}

.detail-side .spec-row span:first-child {
  color: #aeb9c2;
}

.detail-side .spec-row strong {
  color: #f2f5f7;
}

.detail-paragraph {
  line-height: 1.9;
}

.detail-metrics {
  margin-top: 24px;
}

.detail-gallery-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
}

.detail-gallery::-webkit-scrollbar {
  display: none;
}

.detail-gallery-top {
  margin-top: 0;
  margin-bottom: 24px;
}

.detail-gallery-nav {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(17, 24, 31, 0.9);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-trigger {
  flex: 0 0 calc(33.333% - 8px);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-large {
  width: 100%;
  height: 180px;
  border: 1px solid var(--line);
  background: var(--card-image-bg);
  padding: 10px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7, 10, 14, 0.84);
  backdrop-filter: blur(20px);
}

.lightbox-image {
  max-width: min(92vw, 1600px);
  max-height: 86vh;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(31, 40, 50, 0.9), rgba(17, 24, 31, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 31, 0.88);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(17, 24, 31, 0.88);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.detail-columns {
  margin-top: 18px;
}

.large-empty {
  padding: 48px 24px;
}

.setup-card {
  padding: 28px;
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(214, 59, 51, 0.08), transparent 26%),
    linear-gradient(180deg, var(--bg-soft), var(--panel));
  box-shadow: var(--shadow-lift);
}

.password-card {
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.password-form {
  align-items: end;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-note {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.info-note p {
  margin-bottom: 0;
}

.admin-main {
  padding-bottom: 56px;
  display: grid;
  gap: 18px;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(214, 59, 51, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-soft), var(--panel));
  box-shadow: var(--shadow-lift);
}

.stack-form,
.product-form,
.dynamic-item,
label {
  display: grid;
  gap: 8px;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-intro {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.admin-form-card,
.inventory-card {
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.field-grid {
  display: grid;
  gap: 14px;
}

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

.field-grid.three {
  grid-template-columns: 1fr 1fr auto;
}

.field-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-text-grid textarea {
  min-height: 110px;
}

.inline-check {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-input), var(--surface-soft));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.inline-check input {
  width: 20px;
  height: 20px;
}

.nested-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px;
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-soft));
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

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

.nested-heading h3 {
  font-size: 1.05rem;
}

.dynamic-list {
  display: grid;
  gap: 10px;
}

.dynamic-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-input), var(--surface-soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.dynamic-item.gallery {
  grid-template-columns: minmax(0, 1fr) auto;
}

.score-preview {
  text-align: right;
}

.score-preview strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
}

.inventory-list {
  display: grid;
  gap: 12px;
  max-height: 980px;
  overflow-y: auto;
}

.inventory-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-input), var(--surface-soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.inventory-top,
.inventory-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.inventory-top h3 {
  font-size: 1.05rem;
}

.inventory-actions {
  justify-content: flex-start;
}

.inventory-actions form {
  margin: 0;
}

.form-message {
  min-height: 24px;
  color: var(--secondary);
  font-weight: 700;
}

.form-message.error,
.alert.error {
  color: var(--danger);
}

.alert {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-soft));
  border: 1px solid var(--line);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.alert.success {
  color: var(--secondary);
}

.helper-text {
  margin: 0;
}

.empty-state {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-pill), var(--surface-soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1080px) {
  .hero,
  .collection-layout,
  .catalog-layout,
  .admin-grid,
  .admin-login,
  .detail-grid,
  .detail-hero,
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .product-panel {
    position: static;
  }

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

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

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

@media (max-width: 760px) {
.topbar,
.section-heading,
.panel-top,
.nested-heading,
.admin-intro {
  align-items: flex-start;
  flex-direction: column;
}

  .topbar {
    border-radius: 28px;
  }

  .hero-stats,
  .hero-highlights,
  .product-grid,
  .wide-grid,
  .panel-columns,
  .field-grid.two,
  .field-grid.three,
  .field-grid.five,
  .dynamic-item,
  .dynamic-item.gallery,
  .detail-gallery {
    overflow-x: auto;
  }

  .gallery-lightbox-trigger {
    flex-basis: calc(50% - 6px);
  }

  .toolbar {
    align-items: stretch;
  }

  .searchbox {
    min-width: 100%;
  }

  .mode-switcher,
  .toolbar-actions {
    width: 100%;
  }

  .hero-shell {
    padding: 20px;
  }

  .spotlight-head,
  .spotlight-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-block .section-heading.compact p {
    max-width: none;
    text-align: left;
  }

  .collection-grid > .preview-card > .card-link-main {
    grid-template-columns: 1fr !important;
  }

  .collection-grid > .preview-card .preview-media {
    max-width: 100%;
    min-height: 0;
  }

  .detail-thumb-strip {
    justify-content: center;
  }

  .filter-grid,
  .compare-selected {
    grid-template-columns: 1fr;
  }
}
