@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

:root {
  color-scheme: light;
  --color-bg: #fff9fb;
  --color-surface: #ffffff;
  --color-surface-strong: #f7eef5;
  --color-text: #241a22;
  --color-heading: #130d12;
  --color-muted: #6f5d68;
  --color-border: rgba(60, 29, 48, 0.14);
  --color-primary: #9f285f;
  --color-primary-strong: #7d1748;
  --color-primary-text: #ffffff;
  --color-secondary: #1d7469;
  --color-secondary-strong: #14564f;
  --color-accent: #d99732;
  --color-success: #167653;
  --color-warning: #9a5c08;
  --color-danger: #ba1f44;
  --shadow-soft: 0 18px 44px rgba(65, 30, 52, 0.12);
  --shadow-strong: 0 30px 80px rgba(65, 30, 52, 0.18);
  --skin-page-bg: linear-gradient(180deg, var(--color-bg), var(--color-surface));
  --skin-nav-bg: color-mix(in srgb, var(--color-surface) 88%, transparent);
  --skin-menu-bg:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 98%, transparent), color-mix(in srgb, var(--color-bg) 96%, transparent)),
    var(--color-surface);
  --skin-popover-bg: var(--color-surface);
  --skin-card-bg: var(--color-surface);
  --skin-brand-gradient:
    linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-secondary) 72%, var(--color-primary))),
    var(--color-primary);
  --skin-primary-gradient: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  --skin-control-bg:
    linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 9%, var(--color-surface)), var(--color-surface)),
    var(--color-surface);
  --skin-hero-overlay:
    linear-gradient(90deg, rgba(17, 10, 15, 0.76), rgba(17, 10, 15, 0.36) 52%, rgba(17, 10, 15, 0.14)),
    linear-gradient(0deg, rgba(19, 13, 18, 0.46), transparent 44%);
  --skin-panel-gradient:
    linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 14%, var(--color-surface)), var(--color-surface));
  --skin-ribbon-gradient: linear-gradient(90deg, transparent, rgba(217, 151, 50, 0.2), transparent);
  --radius: 8px;
  --max-width: 1180px;
  --header-height: 78px;
  --font-body: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--skin-page-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  object-fit: cover;
}

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

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

[hidden] {
  display: none !important;
}

html:not([data-wig-admin="true"]) [data-admin-only] {
  display: none !important;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
}

h1,
h2,
h3,
p {
  margin-block: 0;
}

h1,
h2,
h3 {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.06rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn,
.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  color: var(--color-text);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.text-button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-accent) 62%, transparent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--skin-primary-gradient);
  color: var(--color-primary-text);
  border-color: var(--color-primary);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-strong), var(--color-primary));
  border-color: var(--color-primary-strong);
}

.btn-secondary,
.btn-ghost,
.btn-provider {
  background: var(--color-surface);
  color: var(--color-heading);
  border-color: var(--color-border);
}

.btn-secondary:hover,
.btn-provider:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary-strong);
}

.btn-ghost {
  background: transparent;
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: #241a22;
}

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

.btn-wide {
  width: 100%;
}

.text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
}

.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-heading);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--color-primary) 42%, var(--color-border));
  color: var(--color-primary);
}

.icon-button svg,
.mobile-search-button svg,
.hot-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-cart-button {
  background: var(--skin-control-bg);
}

.cart-count-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
}

.icon-button .cart-count-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  border: 2px solid var(--color-surface);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--skin-nav-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(18px);
}

.site-nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  min-width: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--skin-brand-gradient);
  color: var(--color-primary-text);
}

.brand-logo {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
}

.brand[data-has-logo="true"] .brand-logo {
  display: block;
}

.brand[data-has-logo="true"] .brand-mark {
  display: none;
}

.brand-name {
  display: block;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  overflow-wrap: anywhere;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-actions {
  flex: 0 0 auto;
}

.nav-links a,
.nav-dropdown summary {
  border-radius: var(--radius);
  padding: 10px 9px;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  background: var(--color-surface-strong);
  color: var(--color-heading);
}

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-dropdown[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  min-width: 190px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--skin-popover-bg);
  box-shadow: var(--shadow-strong);
  padding: 8px;
}

.nav-admin-dropdown .nav-dropdown-menu {
  left: auto;
  right: 0;
}

.nav-dropdown-menu a,
.nav-dropdown-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-muted);
  padding: 9px 10px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu button:hover {
  background: var(--color-surface-strong);
  color: var(--color-heading);
}

.skin-mode-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--skin-control-bg);
  color: var(--color-heading);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.skin-mode-toggle:hover {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  background: var(--color-surface-strong);
  color: var(--color-heading);
}

.skin-mode-icon-button {
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0;
}

.skin-mode-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-hot-link {
  position: relative;
  color: var(--color-heading) !important;
}

.nav-hot-link .hot-icon {
  position: absolute;
  top: -7px;
  right: -3px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: var(--color-primary);
  pointer-events: none;
}

.nav-hot-link .hot-icon svg {
  width: 15px;
  height: 15px;
  fill: color-mix(in srgb, var(--color-primary) 18%, transparent);
  stroke-width: 2.4;
}

.mobile-menu .nav-hot-link .hot-icon {
  top: 6px;
  right: 12px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-heading);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-nav-cart-button {
  display: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  height: calc(100dvh - var(--header-height));
  align-content: start;
  overscroll-behavior: contain;
  z-index: 60;
  max-height: calc(100dvh - var(--header-height));
  overflow: auto;
  gap: 6px;
  border-width: 0 0 1px;
  border-style: solid;
  border-color: var(--color-border);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--color-surface);
  box-shadow: 0 26px 70px rgba(65, 30, 52, 0.18);
  padding: 20px max(18px, calc((100vw - 640px) / 2)) max(24px, env(safe-area-inset-bottom));
  backdrop-filter: blur(18px);
}

.mobile-menu a,
.mobile-menu button,
.mobile-nav-group summary {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--color-surface-strong);
  color: var(--color-heading);
  padding: 10px 12px;
  font-weight: 800;
  text-align: left;
}

.mobile-menu a:hover,
.mobile-menu button:hover,
.mobile-nav-group summary:hover,
.mobile-nav-group[open] summary {
  border-color: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  background: var(--color-surface-strong);
}

.mobile-nav-group {
  width: 100%;
  grid-column: 1 / -1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 4px;
}

.mobile-nav-group summary {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  cursor: pointer;
  list-style: none;
}

.mobile-nav-group summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.mobile-nav-group[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.mobile-nav-group a,
.mobile-nav-group button {
  min-height: 44px;
  border: 0;
  background: transparent;
  padding-left: 40px;
  color: var(--color-muted);
}

.mobile-mode-button.skin-mode-toggle {
  grid-column: 1 / -1;
  min-height: 40px;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--skin-control-bg);
  padding: 10px 12px;
  color: var(--color-heading);
}

body.nav-open .mobile-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.nav-open .site-header {
  background: var(--color-surface);
}

body.nav-open .mobile-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .mobile-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .mobile-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu-heading {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
  padding: 0 4px 10px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-menu-caption {
  color: var(--color-muted);
  font: 500 0.85rem/1.5 var(--font-body);
}

.mobile-menu .mobile-search-button {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  border-color: var(--color-border);
  background: var(--color-bg);
  color: var(--color-muted);
  font-weight: 600;
}

.mobile-menu .mobile-mode-button,
.mobile-menu > [data-sign-out] {
  grid-column: 1 / -1;
  background: var(--color-surface);
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  margin-top: 6px;
}

.mobile-menu :is(a, button, summary):focus-visible,
.mobile-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -3px;
}

.mobile-menu a[aria-current="page"] {
  background: var(--color-primary);
  color: var(--color-primary-text);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-toggle span { transition: none; }
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 9, 14, 0.42);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(430px, 100vw);
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-strong) 45%, var(--color-surface)), var(--color-surface) 36%),
    var(--skin-card-bg);
  box-shadow: -24px 0 80px rgba(24, 13, 21, 0.2);
  transform: translateX(0);
}

.cart-drawer[aria-hidden="true"] {
  transform: translateX(100%);
}

.cart-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--color-border);
  padding: 24px;
}

.cart-drawer-head h2 {
  margin-top: 6px;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.cart-items {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px 18px 8px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 10px;
}

.cart-item img {
  width: 76px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--color-surface-strong);
}

.cart-item h3 {
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.cart-item p {
  margin-top: 3px;
  color: var(--color-heading);
  font-size: 0.9rem;
  font-weight: 800;
}

.cart-item-info { min-width:0; }
.cart-item-price { color:var(--color-muted) !important; }
.cart-item-total { font-size:1rem !important; }
.cart-item-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:14px; }
.cart-quantity-control { display:flex; align-items:center; gap:14px; }
.cart-quantity-control button { width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--color-border); border-radius:8px; background:var(--color-surface); color:var(--color-heading); font-size:1.2rem; line-height:1; cursor:pointer; }
.cart-quantity-control button:disabled { opacity:.45; cursor:default; }
.btn:disabled { cursor:not-allowed; opacity:.45; transform:none; }
.cart-quantity-control output { min-width:18px; text-align:center; color:var(--color-heading); font-weight:900; }
.cart-remove-button { align-self:center; }

.cart-empty {
  grid-row: 2;
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 28px;
  text-align: center;
}

.cart-empty p {
  max-width: 280px;
  margin: 8px auto 18px;
  color: var(--color-muted);
}

.cart-summary {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 18px;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cart-summary span {
  color: var(--color-muted);
  font-weight: 850;
}

.cart-summary strong {
  color: var(--color-heading);
  font-size: 1.3rem;
}

.cart-tax-note { margin:0 0 18px; color:var(--color-muted); font-size:.88rem; }
.cart-continue-button { margin-top:10px; }

body.cart-open {
  overflow: hidden;
}

.support-launcher.frontbacked-support-launcher,
.support-launcher {
  --frontbacked-support-launcher-bg: var(--color-primary);
  --frontbacked-support-launcher-bg-2: color-mix(in srgb, var(--color-secondary) 62%, var(--color-primary));
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 116;
}

.support-launcher.frontbacked-support-launcher .frontbacked-support-launcher-button {
  width: 62px;
  height: 62px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-secondary) 62%, var(--color-primary)));
  box-shadow:
    0 20px 48px rgba(65, 30, 52, 0.28),
    0 0 0 1px color-mix(in srgb, white 18%, transparent);
}

.support-launcher.frontbacked-support-launcher .frontbacked-support-launcher-button::before,
.support-launcher.frontbacked-support-launcher .frontbacked-support-launcher-button::after {
  background: color-mix(in srgb, var(--color-primary) 24%, transparent);
}

.support-launcher.frontbacked-support-launcher .frontbacked-support-launcher-panel,
.support-launcher.frontbacked-support-launcher .frontbacked-support-launcher-native-host .frontbacked-support-panel {
  border-color: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  box-shadow: var(--shadow-strong);
}

.support-launcher.frontbacked-support-launcher .frontbacked-support-launcher-header,
.support-launcher.frontbacked-support-launcher .frontbacked-support-header {
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--color-accent) 36%, transparent), transparent 34%),
    linear-gradient(135deg, var(--color-heading), color-mix(in srgb, var(--color-primary) 46%, var(--color-heading)));
}

.support-launcher.frontbacked-support-launcher .frontbacked-support-channel[data-channel="native"] .frontbacked-support-channel-icon,
.support-launcher.frontbacked-support-launcher .frontbacked-support-channel-submit,
.support-launcher.frontbacked-support-launcher .frontbacked-support-send,
.support-launcher.frontbacked-support-launcher .frontbacked-support-primary {
  background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-secondary) 58%, var(--color-primary)));
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.page-loader-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  animation: loaderSweep 1s ease-in-out infinite;
}

@keyframes loaderSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-store {
  position: relative;
  min-height: min(650px, calc(100svh - 96px));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-carousel,
.hero-slide,
.hero-slide img {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  z-index: -2;
}

.hero-slide {
  margin: 0;
  opacity: 0;
  overflow: hidden;
  animation: heroCarouselFadeThree 18s infinite;
}

.hero-slide:first-child {
  opacity: 1;
}

.hero-slide:nth-child(n + 4) {
  display: none;
}

.hero-slide:only-child {
  animation: none;
  opacity: 1;
}

.hero-slide:first-child:nth-last-child(2),
.hero-slide:first-child:nth-last-child(2) ~ .hero-slide {
  animation-duration: 12s;
  animation-name: heroCarouselFadeTwo;
}

.hero-slide:first-child:nth-last-child(2) ~ .hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:first-child:nth-last-child(3) ~ .hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:first-child:nth-last-child(3) ~ .hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroImageDrift 18s ease-in-out infinite;
}

.hero-slide:nth-child(2) img {
  object-position: center 38%;
}

.hero-slide:nth-child(3) img {
  object-position: center 42%;
}

@keyframes heroCarouselFadeThree {
  0%, 28% { opacity: 1; }
  34%, 94% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroCarouselFadeTwo {
  0%, 43% { opacity: 1; }
  51%, 92% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroImageDrift {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  50% { transform: scale(1.08) translate3d(-1.2%, .8%, 0); }
  100% { transform: scale(1.04) translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide img {
    animation: none;
  }

  .hero-slide {
    opacity: 0;
  }

  .hero-slide:first-child {
    opacity: 1;
  }

  .hero-slide img {
    transform: scale(1.04);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--skin-hero-overlay);
}

.hero-content {
  width: min(100% - 32px, 860px);
  margin-inline: auto;
  padding: clamp(60px, 10vw, 108px) 0 clamp(42px, 7vw, 72px);
  color: #ffffff;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content p {
  color: #ffffff;
}

.hero-content p {
  max-width: 650px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
}

.hero-proof div {
  min-width: 138px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-proof dt {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

.hero-proof dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.care-grid,
.detail-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.care-grid p,
.detail-copy-grid p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

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

.section-top.tight {
  margin-top: 34px;
}

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

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

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--skin-card-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.product-card.is-featured {
  border-color: color-mix(in srgb, var(--color-accent) 56%, var(--color-border));
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface-strong);
}

.product-media img {
  width: 100%;
  height: 100%;
  transition: transform 240ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  max-width: calc(100% - 24px);
  align-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: #241a22;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.product-badge.inline {
  position: static;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}

.product-body {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.product-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--color-secondary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-body h3 {
  margin-top: 7px;
}

.product-body h3 a {
  overflow-wrap: anywhere;
}

.product-body p:not(.product-kicker) {
  color: var(--color-muted);
  font-size: 0.94rem;
}

.product-specs,
.detail-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.product-specs div,
.detail-specs div {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--color-surface-strong);
  padding: 10px;
}

.product-specs dt,
.detail-specs dt {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-specs dd,
.detail-specs dd {
  margin: 3px 0 0;
  color: var(--color-heading);
  font-size: 0.86rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.product-footer,
.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-footer strong,
.detail-price-row strong {
  color: var(--color-heading);
  font-size: 1.12rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-actions .btn {
  min-width: 0;
}

.product-link {
  grid-column: 1 / -1;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--color-primary);
  font-weight: 900;
}

.product-link:hover {
  background: var(--color-surface-strong);
  color: var(--color-primary-strong);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-secondary) 12%, var(--color-surface));
  color: var(--color-secondary-strong);
  border: 1px solid color-mix(in srgb, var(--color-secondary) 26%, var(--color-border));
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.status.sold-out,
.status.failed,
.status.cancelled,
.status.draft {
  background: color-mix(in srgb, var(--color-danger) 11%, var(--color-surface));
  color: var(--color-danger);
  border-color: color-mix(in srgb, var(--color-danger) 28%, var(--color-border));
}

.status.low-stock,
.status.preorder,
.status.pending,
.status.pending-review {
  background: color-mix(in srgb, var(--color-warning) 13%, var(--color-surface));
  color: var(--color-warning);
  border-color: color-mix(in srgb, var(--color-warning) 32%, var(--color-border));
}

.status.published,
.status.successful,
.status.settled,
.status.confirmed,
.status.available {
  background: color-mix(in srgb, var(--color-success) 12%, var(--color-surface));
  color: var(--color-success);
  border-color: color-mix(in srgb, var(--color-success) 30%, var(--color-border));
}

.empty-state {
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-surface) 88%, var(--color-surface-strong));
  padding: clamp(24px, 4vw, 38px);
  text-align: center;
}

.empty-state p {
  max-width: 560px;
  margin: 10px auto 18px;
  color: var(--color-muted);
}

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

.collection-tile {
  position: relative;
  display: block;
  min-height: 260px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface-strong);
}

.collection-tile img {
  width: 100%;
  height: 100%;
  transition: transform 240ms ease;
}

.collection-tile:hover img {
  transform: scale(1.04);
}

.collection-tile span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: var(--radius);
  background: rgba(19, 13, 18, 0.76);
  color: #ffffff;
  padding: 10px 12px;
  font-weight: 900;
  text-align: center;
}

.care-section {
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-surface));
  border-block: 1px solid var(--color-border);
}

.care-list {
  display: grid;
  gap: 14px;
}

.care-list article,
.detail-copy article {
  border-left: 4px solid var(--color-secondary);
  background: var(--color-surface);
  padding: 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.care-list strong {
  color: var(--color-heading);
}

.care-list p {
  margin-top: 6px;
  font-size: 0.96rem;
}

.care-guide-hero {
  padding: clamp(38px, 7vw, 76px) 0 44px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 7%, var(--color-surface)) 0%, var(--color-surface) 58%),
    var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.care-guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.care-guide-copy p {
  max-width: 620px;
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.care-hero-media {
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.care-hero-media img {
  width: 100%;
  height: 100%;
}

.care-routine-grid,
.care-step-list,
.care-detail-grid,
.care-texture-grid {
  display: grid;
  gap: 18px;
}

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

.care-routine-grid article,
.care-step-list article,
.care-detail-panel,
.care-texture-grid article {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.care-routine-grid article {
  padding: 22px;
}

.care-routine-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-secondary) 15%, var(--color-surface));
  color: var(--color-secondary-strong);
  font-weight: 950;
}

.care-routine-grid h3,
.care-step-list strong,
.care-texture-grid h3 {
  color: var(--color-heading);
}

.care-routine-grid p,
.care-step-list p,
.care-detail-panel p,
.care-texture-grid p,
.care-note-band p {
  color: var(--color-muted);
}

.care-routine-grid p,
.care-texture-grid p {
  margin-top: 8px;
}

.care-guide-band {
  background: color-mix(in srgb, var(--color-secondary) 7%, var(--color-surface));
  border-block: 1px solid var(--color-border);
}

.care-guide-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}

.care-guide-split > div:first-child p {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 1.04rem;
}

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

.care-step-list article {
  padding: 18px;
  border-left: 4px solid var(--color-secondary);
}

.care-step-list p {
  margin-top: 6px;
}

.care-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.care-detail-panel {
  padding: clamp(22px, 4vw, 34px);
}

.care-detail-panel.accent {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)), var(--color-surface));
}

.care-checklist {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.care-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--color-muted);
}

.care-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--color-secondary);
  border-bottom: 3px solid var(--color-secondary);
  transform: rotate(-45deg);
}

.care-texture-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.care-texture-grid article {
  overflow: hidden;
}

.care-texture-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.care-texture-grid div {
  padding: 16px;
}

.care-note-section {
  padding-top: 0;
}

.care-note-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--color-surface), color-mix(in srgb, var(--color-primary) 7%, var(--color-surface-strong)));
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-soft);
}

.page-hero {
  padding: 62px 0 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--color-primary);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.page-hero p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--color-muted);
}

.hero-mini {
  min-width: 158px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero-mini strong {
  display: block;
  color: var(--color-primary);
  font-size: 2rem;
}

.hero-mini span {
  color: var(--color-muted);
  font-weight: 800;
}

.catalog-shell {
  padding-top: 18px;
}

.catalog-layout {
  display: block;
}

.shop-control-band {
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 48%),
    color-mix(in srgb, var(--color-surface) 92%, transparent);
  padding: clamp(26px, 4vw, 44px) 0 18px;
}

.shop-control-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.shop-search-form {
  width: min(860px, 100%);
  justify-self: center;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  border-radius: 999px;
  background: var(--skin-card-bg);
  padding: 7px 8px 7px 18px;
  box-shadow: 0 18px 46px rgba(65, 30, 52, 0.11);
}

.shop-search-form svg,
.filter-search-large svg,
.filter-trigger svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-search-form svg {
  color: var(--color-primary);
}

.shop-search-form input {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 1rem;
  font-weight: 750;
  outline: 0;
}

.shop-search-form button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--skin-primary-gradient);
  color: var(--color-primary-text);
  padding: 0 18px;
  font-weight: 950;
  cursor: pointer;
}

.shop-control-actions {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.filter-trigger {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
  border-radius: 999px;
  background: var(--skin-control-bg);
  color: var(--color-heading);
  padding: 0 16px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(65, 30, 52, 0.08);
}

.filter-trigger:hover,
.shop-search-form button:hover {
  transform: translateY(-1px);
}

.sort-control {
  min-width: 184px;
}

.sort-control select {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 850;
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 4%, var(--color-surface)) 0%, var(--color-surface) 30%),
    var(--skin-card-bg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.filter-dock {
  position: sticky;
  z-index: 8;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  align-items: end;
}

.filter-dock .filter-top,
.filter-dock .filter-prices {
  grid-column: 1 / -1;
}

.filter-top,
.catalog-toolbar,
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-top {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--color-border);
}

.filter-top h2 {
  font-size: 1.35rem;
}

.filter-top a,
.admin-toolbar a,
.back-link,
.auth-switch a {
  color: var(--color-primary);
  font-weight: 900;
}

.filter-group {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--color-border);
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-group h3 {
  color: var(--color-heading);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.filter-group.search-group {
  background: color-mix(in srgb, var(--color-secondary) 6%, var(--color-surface));
}

.filter-panel label,
.auth-form label,
.product-form label {
  display: grid;
  gap: 7px;
  color: var(--color-heading);
  font-weight: 800;
}

.filter-panel label span,
.auth-form label span,
.product-form label span {
  font-size: 0.84rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-heading);
  padding: 0.76rem 0.82rem;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

select {
  min-height: 46px;
}

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

.catalog-results {
  min-width: 0;
}

.catalog-toolbar {
  min-height: 46px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  padding: 0 0 12px;
}

.catalog-toolbar p {
  color: var(--color-muted);
  font-weight: 800;
  margin-top: 2px;
}

.catalog-toolbar label {
  min-width: 190px;
}

.catalog-grid {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: 0;
}

.shop-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 118;
  background: rgba(18, 10, 16, 0.5);
  backdrop-filter: blur(6px);
}

.shop-filter-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 119;
  width: min(820px, calc(100vw - 30px));
  max-height: min(660px, calc(100svh - 30px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 7%, var(--color-surface)), var(--color-surface) 34%),
    var(--skin-card-bg);
  box-shadow: 0 34px 90px rgba(28, 13, 23, 0.3);
}

.shop-filter-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px 0;
}

.shop-filter-form {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
}

.shop-filter-scroll {
  min-height: 0;
  display: grid;
  gap: 13px;
  overflow: auto;
  padding: 6px clamp(16px, 2.4vw, 22px) clamp(14px, 2vw, 18px);
}

.filter-search-large {
  width: min(640px, 100%);
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  justify-self: center;
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, var(--color-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  padding: 0 16px;
  box-shadow: 0 16px 44px rgba(65, 30, 52, 0.1);
}

.filter-search-large svg {
  color: var(--color-primary);
}

.filter-search-large input {
  min-height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 800;
  outline: 0;
}

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

.filter-card {
  min-inline-size: 0;
  min-width: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 92%, transparent), color-mix(in srgb, var(--color-bg) 78%, transparent)),
    var(--skin-card-bg);
  padding: 14px;
}

.filter-card legend {
  color: var(--color-heading);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.filter-card label {
  display: grid;
  gap: 6px;
  color: var(--color-heading);
  font-weight: 850;
}

.filter-card label span {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.filter-card input,
.filter-card select {
  min-height: 42px;
  padding: 0.64rem 0.72rem;
}

.filter-price-card {
  grid-column: 1 / -1;
}

.price-range-control {
  --price-min-pos: 0%;
  --price-max-pos: 100%;
  position: relative;
  height: 34px;
}

.price-range-control::before,
.price-range-control::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 7px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.price-range-control::before {
  background: color-mix(in srgb, var(--color-heading) 18%, var(--color-border));
}

.price-range-control::after {
  left: var(--price-min-pos);
  right: calc(100% - var(--price-max-pos));
  background: var(--color-heading);
}

.price-range-control input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.price-range-control input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--color-heading);
  box-shadow: 0 4px 12px rgba(18, 10, 16, 0.24);
  cursor: pointer;
  pointer-events: auto;
}

.price-range-control input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--color-heading);
  box-shadow: 0 4px 12px rgba(18, 10, 16, 0.24);
  cursor: pointer;
  pointer-events: auto;
}

.price-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.price-inputs > span {
  color: var(--color-muted);
  font-size: 1.3rem;
  font-weight: 800;
}

.price-inputs input {
  min-height: 46px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 850;
}

.shop-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 86%, transparent), var(--color-surface)),
    var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 12px clamp(16px, 2.4vw, 22px);
  box-shadow: 0 -10px 28px rgba(65, 30, 52, 0.08);
}

.browse-section {
  padding-top: 24px;
}

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

.browse-tile {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #171016;
  box-shadow: var(--shadow-soft);
}

.browse-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(17, 10, 15, 0.76));
  pointer-events: none;
}

.browse-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 240ms ease;
}

.browse-tile:hover img {
  transform: scale(1.04);
}

.browse-tile span,
.browse-tile strong {
  position: relative;
  z-index: 1;
  margin-inline: 16px;
  color: #ffffff;
}

.browse-tile span {
  margin-bottom: 4px;
  font-size: 1.12rem;
  font-weight: 950;
}

.browse-tile strong {
  width: fit-content;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 9px;
  font-size: 0.82rem;
}

.browse-tile.featured {
  grid-column: span 2;
}

.product-detail {
  padding-top: 42px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.product-gallery {
  min-width: 0;
}

.product-hero-image {
  width: 100%;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-strong);
}

.product-thumbs,
.media-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-thumbs img,
.media-strip img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
}

.product-summary {
  min-width: 0;
  padding-top: 10px;
}

.product-summary h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.product-summary > p {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.detail-price-row {
  margin-top: 24px;
  padding: 18px 0;
  border-block: 1px solid var(--color-border);
}

.detail-price-row strong {
  font-size: 1.55rem;
}

.detail-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.checkout-panel {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.checkout-panel p {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.detail-copy {
  background: var(--color-surface-strong);
  border-block: 1px solid var(--color-border);
}

.auth-shell {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding: clamp(38px, 7vw, 76px) 16px;
}

.auth-panel {
  width: min(100%, 480px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: clamp(24px, 5vw, 38px);
  box-shadow: var(--shadow-strong);
}

.auth-panel h1 {
  margin-top: 8px;
  font-size: clamp(2rem, 8vw, 3.2rem);
}

.auth-panel > p {
  margin-top: 12px;
  color: var(--color-muted);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.btn-provider {
  margin-top: 18px;
}

.auth-switch {
  margin-top: 18px;
  color: var(--color-muted);
}

.checkbox-label {
  display: flex !important;
  grid-column: auto;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--color-primary);
}

.layout-app {
  --dashboard-sidebar-width: 252px;
  --dashboard-sidebar-collapsed-width: 78px;
}

.app-shell {
  width: 100%;
  display: block;
  min-height: calc(100dvh - var(--header-height));
  margin: 0;
  padding: 28px clamp(18px, 3vw, 38px) 76px calc(var(--dashboard-sidebar-width) + clamp(22px, 3vw, 40px));
}

body.dashboard-sidebar-collapsed .app-shell {
  padding-left: calc(var(--dashboard-sidebar-collapsed-width) + clamp(22px, 3vw, 40px));
}

.layout-app .site-footer {
  margin-left: var(--dashboard-sidebar-width);
}

.layout-app.dashboard-sidebar-collapsed .site-footer {
  margin-left: var(--dashboard-sidebar-collapsed-width);
}

.account-sidebar {
  position: fixed;
  inset: var(--header-height) auto 0 0;
  z-index: 42;
  width: var(--dashboard-sidebar-width);
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
  background: var(--skin-menu-bg);
  box-shadow: 18px 0 48px rgba(65, 30, 52, 0.08);
}

body.dashboard-sidebar-collapsed .account-sidebar {
  width: var(--dashboard-sidebar-collapsed-width);
}

.dashboard-sidebar-panel {
  height: 100%;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 5%, transparent), transparent 42%),
    transparent;
  box-shadow: none;
}

.dashboard-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 70px;
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent 62%),
    color-mix(in srgb, var(--color-surface) 92%, transparent);
  padding: 14px;
}

.dashboard-sidebar-kicker,
.dashboard-nav-section {
  display: block;
  color: var(--color-secondary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-sidebar-title {
  display: block;
  margin-top: 2px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.05;
}

.dashboard-sidebar-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-heading);
  cursor: pointer;
}

.dashboard-sidebar-toggle:hover {
  background: var(--color-surface-strong);
  color: var(--color-primary);
}

.dashboard-sidebar-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

body.dashboard-sidebar-collapsed .dashboard-sidebar-toggle svg {
  transform: rotate(180deg);
}

.dashboard-sidebar-body {
  padding: 10px;
}

.dashboard-nav {
  display: grid;
  gap: 5px;
}

.dashboard-nav a,
.dashboard-nav button {
  position: relative;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-muted);
  padding: 10px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.dashboard-nav a:hover,
.dashboard-nav button:hover,
.page-account .nav-account,
.page-orders .nav-orders,
.page-admin-products .nav-admin-products,
.page-admin-edit .nav-admin-products,
.page-admin-new .nav-admin-new,
.page-admin-categories .nav-admin-categories,
.page-admin-category-new .nav-admin-categories,
.page-admin-category-edit .nav-admin-categories,
.page-admin-collections .nav-admin-collections,
.page-admin-collection-new .nav-admin-collections,
.page-admin-collection-edit .nav-admin-collections {
  background: var(--color-surface-strong);
  color: var(--color-heading);
}

.page-account .nav-account::before,
.page-orders .nav-orders::before,
.page-admin-products .nav-admin-products::before,
.page-admin-edit .nav-admin-products::before,
.page-admin-new .nav-admin-new::before,
.page-admin-categories .nav-admin-categories::before,
.page-admin-category-new .nav-admin-categories::before,
.page-admin-category-edit .nav-admin-categories::before,
.page-admin-collections .nav-admin-collections::before,
.page-admin-collection-new .nav-admin-collections::before,
.page-admin-collection-edit .nav-admin-collections::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--color-primary);
}

.dashboard-nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.dashboard-nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-nav-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-nav .cart-count-badge {
  margin-left: auto;
}

body.dashboard-sidebar-collapsed .dashboard-sidebar-panel {
  width: var(--dashboard-sidebar-collapsed-width);
}

body.dashboard-sidebar-collapsed .dashboard-sidebar-top {
  justify-content: center;
  padding-inline: 10px;
}

body.dashboard-sidebar-collapsed .dashboard-sidebar-top > div,
body.dashboard-sidebar-collapsed .dashboard-nav-text {
  display: none;
}

body.dashboard-sidebar-collapsed .dashboard-nav a,
body.dashboard-sidebar-collapsed .dashboard-nav button {
  justify-content: center;
  padding-inline: 8px;
}

body.dashboard-sidebar-collapsed .dashboard-nav .cart-count-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  margin-left: 0;
}

.app-main {
  min-width: 0;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.page-admin-products .app-main,
.page-admin-categories .app-main,
.page-admin-collections .app-main {
  max-width: 1240px;
}

.dashboard-hero {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 14%, var(--color-surface)), var(--color-surface)),
    var(--color-surface);
  padding: clamp(24px, 5vw, 42px);
}

.dashboard-hero.account-hero,
.manager-hero {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  background: var(--skin-panel-gradient);
  box-shadow: var(--shadow-soft);
}

.dashboard-hero.account-hero::after,
.manager-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -46% 52%;
  height: 180px;
  background: var(--skin-ribbon-gradient);
  transform: rotate(-8deg);
  pointer-events: none;
}

.page-section-top {
  align-items: start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--shadow-soft);
}

.page-section-top p {
  max-width: 660px;
  margin-top: 10px;
  color: var(--color-muted);
}

.manager-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
}

.manager-hero h1 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.manager-hero p {
  max-width: 630px;
  margin-top: 12px;
  color: var(--color-muted);
}

.dashboard-hero h1 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.dashboard-hero p {
  max-width: 660px;
  margin-top: 12px;
  color: var(--color-muted);
}

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

.metric-card {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 18px;
}

.metric-card span {
  display: block;
  color: var(--color-muted);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--color-heading);
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.account-metric-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 500px;
}

.account-order-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 24px;
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}

.account-order-metric p {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: .9rem;
}

.account-order-metric strong {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.account-order-metric .text-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.account-order-list {
  gap: 10px;
}

.account-order-row {
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, auto) auto auto;
  gap: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--color-text) 4%, transparent);
}

.account-order-info .order-caption {
  margin-bottom: 7px;
}

.account-order-info h3 {
  margin: 0;
  color: var(--color-heading);
}

.account-order-info p {
  margin-top: 4px;
}

.order-list,
.admin-product-list,
.taxonomy-list {
  display: grid;
  gap: 12px;
}

.order-row,
.admin-product-row,
.taxonomy-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 14px;
}

.order-row {
  grid-template-columns: minmax(0, 1.4fr) auto auto auto;
}

.order-list.large .order-row {
  grid-template-columns: minmax(0, 1.3fr) auto auto auto auto;
}

.order-row h3,
.admin-product-row h2 {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.order-row p,
.admin-product-row p:not(.product-kicker) {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.admin-toolbar {
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 14px 16px;
}

.admin-toolbar p {
  color: var(--color-muted);
}

.manager-toolbar {
  display: grid;
  grid-template-columns: minmax(130px, auto) minmax(220px, 1fr) minmax(160px, 220px) minmax(150px, 200px) auto;
  align-items: end;
  margin-top: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

.taxonomy-toolbar {
  display: grid;
  grid-template-columns: minmax(130px, auto) minmax(220px, 1fr) minmax(150px, 220px) auto;
  align-items: end;
  margin-top: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

.manager-toolbar p {
  align-self: center;
  font-weight: 850;
}

.manager-toolbar label {
  display: grid;
  gap: 6px;
}

.manager-toolbar label span {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-product-row {
  grid-template-columns: 92px minmax(0, 1fr) auto auto auto auto;
  min-height: 118px;
  box-shadow: 0 10px 34px rgba(65, 30, 52, 0.07);
}

.taxonomy-row {
  grid-template-columns: 98px minmax(0, 1fr) auto auto;
  min-height: 120px;
  box-shadow: 0 10px 34px rgba(65, 30, 52, 0.07);
}

.taxonomy-row.compact-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 92px;
}

.admin-product-row img,
.taxonomy-row img {
  width: 92px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--color-surface-strong);
}

.taxonomy-row img {
  width: 98px;
}

.admin-product-row small,
.taxonomy-row small {
  display: inline-block;
  margin-top: 8px;
  color: var(--color-muted);
  font-weight: 800;
}

.admin-product-row > strong,
.taxonomy-row > strong {
  white-space: nowrap;
}

.hot-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--color-primary) 32%, var(--color-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
  color: var(--color-heading);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.product-form {
  display: grid;
  gap: 18px;
}

.form-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: clamp(18px, 4vw, 28px);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-heading p {
  color: var(--color-muted);
}

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

.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.field-meta {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.required-star {
  color: var(--color-danger);
  font-weight: 950;
}

.advanced-options {
  display: grid;
}

.advanced-options summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.advanced-options summary::-webkit-details-marker {
  display: none;
}

.advanced-options summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--color-muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.advanced-options[open] summary {
  margin-bottom: 20px;
}

.advanced-options[open] summary::after {
  transform: rotate(225deg);
}

.advanced-options summary strong {
  display: block;
  margin-top: 4px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.04;
}

.advanced-options summary small {
  max-width: 420px;
  color: var(--color-muted);
  font-weight: 800;
}

.relation-field {
  min-width: 0;
  display: grid;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 5%, var(--color-surface)), var(--color-surface)),
    var(--color-surface);
  padding: 12px;
}

.relation-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-heading);
  font-weight: 900;
}

.relation-title small {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.relation-menu {
  max-height: 248px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 2px;
}

.relation-option-list {
  display: grid;
  gap: 8px;
}

.relation-option {
  width: 100%;
  display: grid;
  gap: 2px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  color: var(--color-heading);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.relation-option:hover,
.relation-option.is-selected {
  border-color: color-mix(in srgb, var(--color-primary) 48%, var(--color-border));
  background: color-mix(in srgb, var(--color-primary) 9%, var(--color-surface));
}

.relation-option span {
  font-weight: 900;
}

.relation-option small {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.muted-option {
  color: var(--color-muted);
}

.relation-sticky {
  position: sticky;
  bottom: 0;
  margin-top: 2px;
  border-top: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, transparent, var(--color-surface) 22%),
    var(--color-surface);
  padding-top: 10px;
}

.subcategory-control {
  margin-top: 2px;
}

.inline-add {
  justify-self: start;
  margin-top: 2px;
}

.span-2 {
  grid-column: 1 / -1;
}

.tag-token-field {
  align-content: start;
}

.tag-token-control {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 7px;
}

.tag-token-control:focus-within {
  outline: 3px solid color-mix(in srgb, var(--color-accent) 62%, transparent);
  outline-offset: 3px;
}

.tag-token-list {
  display: contents;
}

.tag-token {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--color-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  color: var(--color-heading);
  padding: 4px 5px 4px 10px;
  font-size: 0.8rem;
  font-weight: 850;
}

.tag-token button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-heading) 8%, transparent);
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1;
}

.tag-token button:hover {
  background: color-mix(in srgb, var(--color-danger) 12%, var(--color-surface));
  color: var(--color-danger);
}

.tag-token-control input {
  min-width: min(220px, 100%);
  flex: 1 1 180px;
  min-height: 32px;
  border: 0;
  background: transparent;
  padding: 4px;
  outline: 0;
}

.color-picker-field {
  display: grid;
  gap: 7px;
}

.color-picker-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  width: min(100%, 360px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 5%, var(--color-surface)), var(--color-surface)),
    var(--color-surface);
  color: var(--color-heading);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(65, 30, 52, 0.06);
}

.color-picker-button:hover {
  border-color: color-mix(in srgb, var(--color-primary) 44%, var(--color-border));
  transform: translateY(-1px);
}

.color-picker-button strong {
  display: block;
  font-weight: 950;
}

.color-picker-button small {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.color-picker-swatch,
.color-swatch {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid color-mix(in srgb, var(--color-heading) 18%, var(--color-border));
  border-radius: 999px;
  background: var(--hair-color, var(--color-surface-strong));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.color-picker-swatch.is-empty,
.color-swatch.is-empty {
  background:
    linear-gradient(135deg, transparent 47%, color-mix(in srgb, var(--color-danger) 72%, transparent) 48% 52%, transparent 53%),
    var(--color-surface);
}

.thumbnail-field {
  display: grid;
  max-width: 260px;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--color-heading);
  font-weight: 800;
}

.image-input-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.file-drop {
  position: relative;
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px dashed color-mix(in srgb, var(--color-primary) 38%, var(--color-border));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 5%, var(--color-surface)), var(--color-surface)),
    var(--color-surface);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.file-drop:hover,
.file-drop.has-file {
  border-style: solid;
  border-color: color-mix(in srgb, var(--color-primary) 52%, var(--color-border));
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  transform: translateY(-1px);
}

.file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
  color: var(--color-primary);
}

.file-drop-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-drop-copy {
  display: grid;
  gap: 3px;
}

.file-drop-copy strong {
  color: var(--color-heading);
  font-size: 0.88rem;
  font-weight: 950;
}

.file-drop-copy small {
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.file-drop-preview {
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
  background: var(--color-surface-strong);
}

.file-drop-remove {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--color-danger);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  cursor: pointer;
}

.taxonomy-file-drop {
  min-height: 150px;
  max-width: 420px;
}

.current-media {
  margin-bottom: 16px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
}

.current-media p {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.current-media.single img {
  width: min(260px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.form-actions .btn-danger {
  margin-left: auto;
}

.form-actions.flush {
  margin-top: 4px;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.taxonomy-backdrop,
.color-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 118;
  background: rgba(18, 10, 16, 0.48);
  backdrop-filter: blur(5px);
}

.taxonomy-modal,
.color-picker-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 119;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)), var(--color-surface) 34%),
    var(--color-surface);
  padding: 20px;
  box-shadow: var(--shadow-strong);
}

.color-picker-modal {
  width: min(760px, calc(100vw - 28px));
}

.taxonomy-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.taxonomy-modal h2 {
  margin-top: 5px;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
}

.taxonomy-form.compact {
  display: grid;
  gap: 14px;
}

.color-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.color-choice {
  min-width: 0;
  min-height: 68px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-heading);
  padding: 9px 8px;
  text-align: center;
  cursor: pointer;
  font-weight: 850;
}

.color-choice:hover,
.color-choice.is-selected {
  border-color: color-mix(in srgb, var(--color-primary) 52%, var(--color-border));
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
}

.color-choice span:last-child {
  font-size: 0.72rem;
}

.inline-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-secondary) 5%, var(--color-surface));
  padding: 14px;
}

.compact-empty {
  padding: 26px;
}

.frontbacked-pagination {
  --frontbacked-pagination-border: var(--color-border);
  --frontbacked-pagination-color: var(--color-heading);
  --frontbacked-pagination-active-bg: var(--color-primary);
  --frontbacked-pagination-active-border: var(--color-primary);
  --frontbacked-pagination-active-color: var(--color-primary-text);
  margin-top: 20px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-heading) 4%, var(--color-surface));
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.55fr) minmax(240px, 0.9fr);
  gap: 28px;
}

.footer-brand p {
  max-width: 430px;
  margin-top: 14px;
  color: var(--color-muted);
}

.site-footer h3 {
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.site-footer a,
.site-footer button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  padding: 3px 0;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--color-primary);
}

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

.site-footer .social-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 84%, white);
  color: var(--color-heading);
  padding: 0;
  box-shadow: 0 10px 24px rgba(65, 30, 52, 0.07);
}

.site-footer .social-icon:hover {
  border-color: color-mix(in srgb, var(--color-primary) 48%, var(--color-border));
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  color: var(--color-primary);
  transform: translateY(-1px);
}

.footer-socials i,
.footer-socials svg,
.footer-contact-list svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.footer-socials i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.04rem;
  line-height: 1;
}

.footer-socials svg,
.footer-contact-list svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-list {
  display: grid;
  gap: 8px;
}

.footer-contact-list a,
.footer-address {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--color-muted);
  font-weight: 750;
  line-height: 1.45;
}

.footer-contact-list a {
  width: 100%;
}

.footer-address {
  min-height: 30px;
  padding: 3px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-nav-cart-button {
    display: inline-grid;
    margin-left: auto;
  }

  .app-shell {
    width: min(100% - 32px, var(--max-width));
    min-height: auto;
    margin-inline: auto;
    padding: 22px 0 76px;
  }

  body.dashboard-sidebar-collapsed .app-shell {
    padding-left: 0;
  }

  .layout-app .site-footer,
  .layout-app.dashboard-sidebar-collapsed .site-footer {
    margin-left: 0;
  }

  .account-sidebar {
    position: static;
    width: 100%;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.dashboard-sidebar-collapsed .account-sidebar,
  body.dashboard-sidebar-collapsed .dashboard-sidebar-panel {
    width: auto;
  }

  body.dashboard-sidebar-collapsed .dashboard-sidebar-top > div,
  body.dashboard-sidebar-collapsed .dashboard-nav-text {
    display: block;
  }

  body.dashboard-sidebar-collapsed .dashboard-nav a,
  body.dashboard-sidebar-collapsed .dashboard-nav button {
    justify-content: flex-start;
    padding-inline: 10px;
  }

  body.dashboard-sidebar-collapsed .dashboard-nav .cart-count-badge {
    position: static;
    margin-left: auto;
  }

  .dashboard-sidebar-panel {
    height: auto;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
    border-radius: var(--radius);
    background: var(--skin-menu-bg);
    box-shadow: 0 16px 48px rgba(65, 30, 52, 0.12);
  }

  .dashboard-sidebar-top {
    min-height: 58px;
    padding: 12px;
  }

  .dashboard-sidebar-toggle svg {
    transform: rotate(-90deg);
  }

  .account-sidebar.is-open .dashboard-sidebar-toggle svg {
    transform: rotate(90deg);
  }

  .account-sidebar:not(.is-open) .dashboard-sidebar-body {
    display: none;
  }

  .product-grid,
  .product-grid.compact,
  .collection-grid,
  .browse-grid,
  .care-texture-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shop-control-shell {
    grid-template-columns: 1fr;
  }

  .shop-search-form,
  .shop-control-actions {
    grid-column: auto;
  }

  .shop-search-form {
    justify-self: stretch;
    width: 100%;
  }

  .shop-control-actions {
    justify-content: space-between;
  }

  .shop-filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-price-card {
    grid-column: auto;
  }

  .catalog-layout,
  .product-detail-grid,
  .care-guide-hero-grid,
  .care-guide-split,
  .care-detail-grid,
  .care-note-band {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .manager-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .manager-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .manager-toolbar p,
  .manager-toolbar .btn {
    grid-column: 1 / -1;
  }

  .taxonomy-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .taxonomy-toolbar p,
  .taxonomy-toolbar .btn {
    grid-column: 1 / -1;
  }

  .admin-product-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .taxonomy-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .admin-product-row strong,
  .admin-product-row .status,
  .taxonomy-row .status {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .admin-product-row .btn,
  .taxonomy-row .btn {
    grid-column: 3;
    grid-row: 1;
  }

  .taxonomy-row img {
    width: 76px;
  }

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

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

  .inline-create-form {
    grid-template-columns: 1fr 1fr;
  }

  .inline-create-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .section {
    padding: 46px 0;
  }

  .mobile-menu {
    padding-inline: 12px;
  }

  body.nav-open .mobile-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-store {
    min-height: min(620px, calc(100svh - 88px));
  }

  .hero-content {
    padding-block: 58px 42px;
  }

  .hero-actions,
  .section-top,
  .manager-hero,
  .filter-top,
  .catalog-toolbar,
  .admin-toolbar,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .section-top .btn,
  .catalog-toolbar label,
  .form-actions .btn {
    width: 100%;
  }

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

  .hero-proof div {
    min-width: 0;
    padding: 12px 10px;
  }

  .care-grid,
  .detail-copy-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-grid.compact,
  .collection-grid,
  .browse-grid,
  .care-routine-grid,
  .care-step-list,
  .care-texture-grid,
  .metric-grid,
  .form-grid,
  .detail-specs {
    grid-template-columns: 1fr;
  }

  .filter-dock {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    overflow: visible;
  }

  .care-hero-media {
    min-height: 300px;
  }

  .browse-tile,
  .browse-tile.featured {
    grid-column: auto;
    min-height: 300px;
  }

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

  .filter-prices,
  .product-actions,
  .manager-toolbar,
  .taxonomy-toolbar,
  .inline-create-form,
  .dashboard-nav {
    grid-template-columns: 1fr;
  }

  .support-launcher.frontbacked-support-launcher,
  .support-launcher {
    right: 14px;
    bottom: 14px;
  }

  .support-launcher.frontbacked-support-launcher .frontbacked-support-launcher-button {
    width: 56px;
    height: 56px;
  }

  .cart-drawer {
    width: 100vw;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .cart-item img {
    width: 64px;
  }

  .page-hero {
    padding-top: 42px;
  }

  .order-row,
  .order-list.large .order-row,
  .admin-product-row,
  .taxonomy-row {
    grid-template-columns: 1fr;
  }

  .taxonomy-row.compact-row {
    grid-template-columns: 1fr;
  }

  .admin-product-row img,
  .taxonomy-row img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .admin-product-row strong,
  .admin-product-row .status,
  .admin-product-row .btn,
  .taxonomy-row .status,
  .taxonomy-row .btn {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .order-row .btn,
  .admin-product-row .btn,
  .taxonomy-row .btn {
    width: 100%;
  }

  .product-thumbs,
  .media-strip,
  .image-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-control-band {
    padding-top: 18px;
  }

  .shop-search-form {
    min-height: 54px;
    border-radius: var(--radius);
    padding: 8px 10px;
  }

  .shop-search-form button,
  .filter-trigger,
  .sort-control,
  .shop-filter-actions .btn {
    width: 100%;
  }

  .shop-control-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .shop-filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .shop-filter-modal {
    inset: 0;
    width: 100vw;
    height: 100svh;
    max-height: 100svh;
    transform: none;
    border-width: 0;
    border-radius: 0;
  }

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

  .color-picker-button {
    width: 100%;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .form-actions .btn-danger {
    margin-left: 0;
  }

  .brand small {
    display: none;
  }
}

/* Product editing: five shared slots for existing and new photos. */
.gallery-editor { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-top:20px; }
.gallery-slot { min-width:0; border:1px dashed var(--color-border); border-radius:12px; overflow:hidden; background:var(--color-surface); position:relative; }
.gallery-slot[data-selected="true"]:has(.gallery-photo:not([style*="display: none"])) { border:2px solid var(--color-primary); }
.gallery-photo { padding:0; border:0; background:none; width:100%; aspect-ratio:1; display:block; cursor:pointer; position:relative; }
.gallery-photo img { width:100%; height:100%; object-fit:cover; }
.thumbnail-marker { position:absolute; bottom:8px; left:8px; right:8px; border-radius:6px; padding:4px; background:#702348; color:white; font-size:11px; font-weight:700; }
.gallery-upload { position:relative; display:grid; place-items:center; padding:12px 4px; font-size:12px; cursor:pointer; text-align:center; }
.gallery-upload:not([data-filled]), .gallery-upload[data-filled=""] { aspect-ratio:1; }
.gallery-upload input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.gallery-upload:focus-within { outline:2px solid var(--color-primary); outline-offset:-3px; }
.tag-token-control { cursor:text; }
/* Compact catalog cards with a keyboard-accessible preview target. */
.product-card { position:relative; }
.product-quick-trigger { position:absolute; inset:0; z-index:1; border:0; border-radius:inherit; background:transparent; cursor:pointer; }
.product-quick-trigger:focus-visible { outline:3px solid var(--color-primary); outline-offset:3px; }
.product-card .product-actions { position:relative; z-index:2; display:block; }
.product-card .product-actions .btn { width:100%; }
.product-card .product-body { gap:14px; padding:20px; }
.product-card .product-body h3 { font-size:1.2rem; line-height:1.3; margin:0 0 6px; }
.product-card .product-short-copy { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:.9rem; }
.product-card .product-inline-details { margin-top:8px; font-size:.8rem; color:var(--color-muted); }
.product-preview { padding:0; border:1px solid var(--color-border); border-radius:20px; max-width:900px; width:calc(100% - 32px); max-height:90dvh; color:var(--color-text); background:var(--color-surface); overflow:auto; }
.product-preview::backdrop { background:rgba(20,12,17,.65); }
.product-preview-grid { display:grid; grid-template-columns:1fr 1fr; }
.preview-image { width:100%; height:100%; min-height:400px; object-fit:cover; }
.preview-copy { padding:44px 28px 28px; display:flex; flex-direction:column; gap:18px; }
.preview-copy h2 { margin:0; }
.preview-price { font-size:1.4rem; }
.preview-close { position:absolute; top:12px; right:12px; z-index:2; background:var(--color-surface); font-size:24px; }
.preview-actions { display:flex; gap:10px; flex-wrap:wrap; }
.product-hero-stage { overflow:hidden; border-radius:18px; position:relative; cursor:zoom-in; aspect-ratio:4/5; touch-action:pan-y; }
.product-hero-stage .product-hero-image { width:100%; height:100%; object-fit:cover; border-radius:0; transform-origin:var(--zoom-origin,50% 50%); transition:transform .22s ease; }
.product-hero-stage.is-zoomed { cursor:zoom-out; }
.product-hero-stage.is-zoomed .product-hero-image { transform:scale(2.3); }
.zoom-hint { position:absolute; bottom:14px; left:14px; background:rgba(255,255,255,.94); color:#372832; padding:7px 12px; border-radius:20px; font-size:12px; pointer-events:none; }
.is-zoomed .zoom-hint { opacity:0; }
.gallery-dots { display:flex; justify-content:center; gap:4px; margin:10px 0; }
.gallery-dots button { display:grid; place-items:center; width:28px; height:28px; padding:0; border:0; background:transparent; cursor:pointer; }
.gallery-dots button::after { content:""; width:8px; height:8px; border-radius:50%; background:var(--color-muted); opacity:.4; }
.gallery-dots button[aria-checked="true"]::after { background:var(--color-primary); opacity:1; width:10px; height:10px; }
.product-thumbs {
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  max-width:100%;
  margin-top:12px;
  padding:4px 2px 10px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:var(--color-primary) transparent;
}
.product-thumbs::-webkit-scrollbar { height:6px; }
.product-thumbs::-webkit-scrollbar-track { background:transparent; }
.product-thumbs::-webkit-scrollbar-thumb { background:var(--color-primary); border-radius:999px; }
.product-thumbs button { flex:0 0 72px; width:72px; height:72px; padding:3px; border:2px solid transparent; border-radius:10px; background:none; cursor:pointer; scroll-snap-align:start; }
.product-thumbs button[aria-pressed="true"] { border-color:var(--color-primary); }
.product-thumbs button img { width:100%; height:100%; aspect-ratio:1; object-fit:cover; border-radius:6px; }
.purchase-row { display:flex; align-items:center; gap:12px; }
.quantity-control { display:flex; align-items:center; border:1px solid var(--color-border); border-radius:10px; overflow:hidden; flex-shrink:0; }
.quantity-control button { border:0; background:var(--color-surface); color:var(--color-text); padding:12px; cursor:pointer; font-size:20px; }
.quantity-control button:disabled { opacity:.5; cursor:default; }
.quantity-control input { width:48px; padding:10px 0; border:0; text-align:center; background:transparent; color:inherit; appearance:textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance:none; }
@media(max-width:700px) { .gallery-editor { grid-template-columns:repeat(3,minmax(0,1fr)); } .product-preview-grid { grid-template-columns:1fr; } .preview-image { min-height:0; max-height:36dvh; object-fit:contain; } .preview-copy { padding:24px; } .product-thumbs button { flex-basis:64px; width:64px; height:64px; } }
@media(prefers-reduced-motion:reduce) { .product-hero-stage .product-hero-image { transition:none; } }
.purchase-row { align-items:stretch; }
.purchase-row > .btn, .purchase-row .quantity-control { height:48px; min-height:48px; box-sizing:border-box; }
.purchase-row .quantity-control button, .purchase-row .quantity-control input { height:100%; min-height:0; box-sizing:border-box; padding-top:0; padding-bottom:0; }
.product-card .product-body { grid-template-rows:1fr auto auto; }

.product-information { margin-top:28px; border-top:1px solid var(--color-border); }
.product-information details { border-bottom:1px solid var(--color-border); }
.product-information summary { list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 0; cursor:pointer; font-weight:800; color:var(--color-heading); }
.product-information summary::-webkit-details-marker { display:none; }
.product-information summary span { font-size:22px; font-weight:400; transition:transform .18s; }
.product-information details[open] summary span { transform:rotate(45deg); }
.product-information-copy { padding:0 0 22px; line-height:1.8; white-space:pre-line; color:var(--color-muted); }

.product-admin-summary { display: grid; grid-template-columns: minmax(180px, 30%) 1fr; gap: 28px; align-items: start; }
.product-admin-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.product-admin-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-admin-facts dt { color: var(--color-muted); font-size: .85rem; }
.product-admin-facts dd { margin: 4px 0 0; font-weight: 600; }
.product-admin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.product-admin-metrics article, .product-sales-panel { background: var(--color-surface); border: 1px solid var(--color-border); padding: 24px; border-radius: 16px; }
.product-admin-metrics strong { display: block; margin-top: 10px; font-size: 1.6rem; }
.product-sales-panel { margin: 24px 0; }
.product-sales-chart { display: flex; align-items: end; gap: 16px; overflow-x: auto; padding: 12px 0 24px; }
.product-sales-chart:empty { display: none; }
.sales-chart-column { min-width: 76px; flex: 1; text-align: center; }
.sales-chart-track { height: 150px; display: flex; align-items: end; justify-content: center; margin: 8px 0; }
.sales-chart-bar { background: var(--color-primary); width: min(100%, 48px); border-radius: 6px 6px 0 0; }
.sales-chart-column small { white-space: nowrap; font-size: .72rem; }
.product-sales-table { overflow-x: auto; margin: 16px 0; }
.sales-table-heading, .sales-table-row { display: grid; grid-template-columns: 1fr 2fr .5fr 1fr; gap: 16px; min-width: 560px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.sales-table-heading { font-weight: 700; }
.sales-table-row span { overflow-wrap: anywhere; }
@media (max-width: 680px) {
 .product-admin-summary { grid-template-columns: 1fr; }
 .product-admin-photo { max-width: 280px; }
 .product-admin-metrics { grid-template-columns: 1fr; }
 .product-sales-panel { padding: 16px; }
}

/* Compact catalog rows keep product details and actions together at every size. */
.admin-product-row {
  grid-template-columns: 100px minmax(0, 1fr) minmax(240px, auto);
  grid-template-areas: "photo copy metrics" "photo copy actions";
  gap: 12px 20px;
  padding: 20px;
  align-items: center;
}
.admin-product-row > img { grid-area: photo; width: 100px; height: 120px; aspect-ratio: auto; object-fit: cover; }
.admin-product-copy { grid-area: copy; min-width: 0; }
.admin-product-row h2 { font-size: 1.1rem; line-height: 1.35; margin: 4px 0; }
.admin-product-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-product-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.admin-product-row .admin-product-meta small { margin: 0; font-weight: 500; font-size: .78rem; }
.admin-product-metrics { grid-area: metrics; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.admin-product-metrics > strong { font-size: 1.1rem; margin-right: auto; white-space: nowrap; }
.admin-product-row .admin-product-metrics .status,
.admin-product-row .admin-product-metrics .hot-score { width: auto; padding: 5px 9px; font-size: .75rem; white-space: nowrap; }
.admin-product-actions { grid-area: actions; display: flex; gap: 8px; align-items: center; }
.admin-product-row .admin-product-actions .btn { flex: 1; width: auto; min-width: 0; min-height: 42px; padding: 9px 14px; font-size: .85rem; white-space: nowrap; }
@media (max-width: 900px) {
  .admin-product-row {
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-areas: "photo copy" "metrics metrics" "actions actions";
    padding: 16px;
    gap: 16px;
  }
  .admin-product-row > img { width: 80px; height: 100px; align-self: start; }
  .admin-product-row h2 { font-size: 1rem; }
  .admin-product-row .product-kicker { font-size: .7rem; }
  .admin-product-metrics { justify-content: flex-start; padding-top: 14px; border-top: 1px solid var(--color-border); }
  .admin-product-actions { grid-column: 1 / -1; grid-row: auto; }
}

/* Checkout: editorial spacing, clear delivery choices, and a compact order summary. */
.checkout-shell { padding-block: 36px 90px; }
.checkout-back { color: var(--color-muted); font-size: .86rem; text-decoration: none; }
.checkout-heading { display:grid; gap:32px; margin:32px 0 40px; }
.checkout-heading h1 { font-size:clamp(2.4rem,5vw,4rem); margin:10px 0; letter-spacing:-.035em; }
.checkout-heading p,.checkout-section-title p { color:var(--color-muted); margin:8px 0 0; }
.checkout-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:min(100%,720px); margin:4px auto 0; padding:0; list-style:none; font-size:.82rem; color:var(--color-muted); }
.checkout-steps li { position:relative; display:grid; justify-items:center; gap:10px; text-align:center; }
.checkout-steps li:not(:last-child)::after { content:""; position:absolute; top:19px; left:50%; width:100%; height:2px; background:var(--color-border); }
.checkout-step-number { position:relative; z-index:1; display:grid; place-items:center; width:40px; height:40px; border:2px solid var(--color-border); border-radius:50%; background:var(--color-bg); font-size:.75rem; font-weight:700; }
.checkout-steps .is-complete .checkout-step-number { border-color:var(--color-primary); color:var(--color-primary); }
.checkout-steps li.is-complete::after { background:var(--color-primary); }
.checkout-steps [aria-current] { color:var(--color-primary); font-weight:800; }
.checkout-steps [aria-current] .checkout-step-number { background:var(--color-primary); border-color:var(--color-primary); color:var(--color-primary-text); box-shadow:0 0 0 5px color-mix(in srgb,var(--color-primary) 12%,transparent); }
.checkout-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(320px,.85fr); gap:30px; align-items:start; }
.checkout-panel { border:1px solid var(--color-border); background:var(--color-surface); border-radius:16px; padding:30px; }
.checkout-section-title { display:flex; align-items:flex-start; gap:14px; margin-bottom:26px; }
.checkout-section-title h2 { font-size:1.6rem; margin:0; }
.checkout-section-title p { font-size:.84rem; line-height:1.7; }
.checkout-number { display:grid; place-items:center; width:32px; height:32px; flex:none; border:1px solid var(--color-border); border-radius:50%; color:var(--color-secondary); font-size:.74rem; margin-top:2px; }
.address-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.address-option { display:flex; flex-direction:row; align-items:flex-start; gap:10px; padding:16px; border:1px solid var(--color-border); border-radius:10px; cursor:pointer; font-size:.82rem; }
.address-option input { width:17px; height:17px; min-height:0; margin:3px 0 0; flex:none; accent-color:var(--color-primary); }
.address-option > span { display:grid; gap:7px; min-width:0; overflow-wrap:anywhere; }
.address-option span span,.address-option small { color:var(--color-muted); line-height:1.6; }
.address-option em { font-style:normal; font-weight:800; color:var(--color-primary); font-size:.72rem; }
.address-option.is-selected { border-color:var(--color-primary); background:color-mix(in srgb,var(--color-primary) 5%,var(--color-surface)); }
.address-option:focus-within { outline:2px solid var(--color-primary); outline-offset:3px; }
.checkout-panel .address-add { display:flex; width:fit-content; max-width:100%; min-height:44px; margin:16px 0 0; padding:12px 16px; font-size:.84rem; }
.address-editor-heading { margin:28px 0 20px; }
.address-editor-heading h3 { margin:0; font-family:var(--font-body); font-size:1rem; }
.address-editor-heading p,.checkout-address-note { color:var(--color-muted); font-size:.76rem; line-height:1.6; margin:8px 0 0; }
.shipping-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.shipping-field { display:grid; gap:8px; min-width:0; font-size:.8rem; font-weight:700; }
.shipping-field-wide { grid-column:1/-1; }
.shipping-field input { width:100%; min-height:48px; border-radius:8px; padding:12px; border:1px solid var(--color-border); background:var(--color-bg); color:var(--color-text); }
.checkout-address-note { margin-top:20px; }
.checkout-order { position:sticky; top:100px; }
.checkout-item { display:flex; gap:16px; padding:20px 0; border-bottom:1px solid var(--color-border); }
.checkout-item:first-child { padding-top:0; }
.checkout-item img { width:82px; height:106px; object-fit:cover; border-radius:8px; background:var(--color-surface-strong); }
.checkout-item-info { min-width:0; flex:1; }
.checkout-item-info h3 { font-family:var(--font-body); font-size:.9rem; line-height:1.5; margin:0 0 6px; }
.checkout-item-info > span { color:var(--color-muted); font-size:.83rem; }
.checkout-quantity { display:flex; align-items:center; width:max-content; height:34px; border:1px solid var(--color-border); border-radius:6px; margin:12px 0 5px; overflow:hidden; }
.checkout-quantity button { width:34px; height:32px; min-height:0; border:0; border-radius:0; padding:0; background:var(--color-surface); color:var(--color-text); cursor:pointer; }
.checkout-quantity button:disabled { color:var(--color-muted); opacity:.6; cursor:default; }
.checkout-quantity output { min-width:30px; text-align:center; font-size:.8rem; }
.checkout-item-info .text-button { font-size:.73rem; color:var(--color-muted); }
.checkout-total { display:flex; justify-content:space-between; gap:20px; padding:26px 0; align-items:center; }
.checkout-total strong { font-size:1.5rem; }
.checkout-pay { min-height:52px; font-size:.9rem; }
.checkout-pay:disabled,
.checkout-pay[aria-busy="true"] {
  background:var(--color-surface-strong);
  border-color:var(--color-border);
  color:var(--color-muted);
  box-shadow:none;
  cursor:wait;
  opacity:1;
  transform:none;
}
.checkout-pay[aria-busy="true"]::before {
  content:"";
  width:16px;
  height:16px;
  border:2px solid color-mix(in srgb, var(--color-muted) 35%, transparent);
  border-top-color:var(--color-muted);
  border-radius:50%;
  animation:checkout-button-spin .7s linear infinite;
}
@keyframes checkout-button-spin { to { transform:rotate(360deg); } }
.checkout-assurance { display:flex; align-items:center; justify-content:center; gap:8px; font-size:.72rem; line-height:1.6; color:var(--color-muted); margin:16px 0 0; }
.checkout-assurance svg { width:15px; height:15px; flex:none; }
.checkout-error,.checkout-item-error { color:var(--color-danger); font-size:.82rem; line-height:1.6; }
.checkout-error { padding:12px; border:1px solid var(--color-danger); border-radius:8px; margin-bottom:16px; }
.checkout-empty { text-align:center; padding:60px 20px; }
.checkout-welcome { border:1px solid var(--color-border); border-left:3px solid var(--color-secondary); border-radius:8px; padding:18px 20px; margin:22px 0; background:var(--color-surface-strong); color:var(--color-text); }
.checkout-welcome strong { font-size:1rem; }
.checkout-welcome p { font-size:.87rem; color:var(--color-muted); line-height:1.75; margin:6px 0 0; }
@media(max-width:900px) { .checkout-layout { grid-template-columns:1fr; } .checkout-order { position:static; } }
@media(max-width:520px) { .checkout-shell { padding-block:24px 50px; } .checkout-panel { padding:22px 18px; } .checkout-heading { margin-block:24px 28px; } .address-grid { grid-template-columns:1fr; } .shipping-form-grid { gap:16px 12px; } .checkout-layout { gap:20px; } }

/* Account actions live in the menu; administration uses one shared drawer. */
.layout-app .app-shell {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
  padding: 28px 0 76px;
}
.layout-app .site-footer { margin-left: 0; }
.nav-links .nav-admin-trigger {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-muted);
  padding: 10px 9px;
  font-size: 0.88rem;
  font-weight: 800;
}
.nav-admin-trigger:hover { background: var(--color-surface-strong); color: var(--color-heading); }
.mobile-menu .nav-admin-trigger { grid-column: 1 / -1; }
.nav-admin-trigger:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -3px; }

/* Order summaries and purchase snapshots. */
.order-actions { display:flex; flex-wrap:wrap; gap:8px; }
.order-reference { overflow-wrap:anywhere; color:var(--color-muted); }
.order-thumbnail { width:80px; height:96px; object-fit:cover; border-radius:var(--radius); }
#orderItems .order-row { grid-template-columns:80px minmax(0,1fr) auto auto; }
#deliveryForm { margin-top:24px; scroll-margin-top:100px; }
#deliveryForm h2, #deliveryForm > p { grid-column:1 / -1; }
@media(max-width:640px) { #orderItems .order-row { grid-template-columns:80px minmax(0,1fr); } .order-actions { grid-column:1 / -1; } }

.order-thumbnail-slot { width:80px; min-height:96px; display:grid; place-items:center; background:var(--color-surface); color:var(--color-muted); border:1px solid var(--color-border); border-radius:var(--radius); font-size:.8rem; text-align:center; }

/* Order cards share a clear hierarchy with their detail view. */
.page-orders .app-main { min-width:0; }
.page-orders .section-top h1, .order-detail-heading h1 { font-size:clamp(2rem,4vw,3.1rem); line-height:1.15; margin:8px 0; }
#ordersList { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
#ordersList .order-card { display:flex; flex-direction:column; align-items:stretch; gap:0; padding:0; overflow:hidden; border-radius:16px; box-shadow:0 6px 24px color-mix(in srgb,var(--color-text) 4%,transparent); }
.order-card-top, .order-card-summary { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 24px; }
.order-card-top { border-bottom:1px solid var(--color-border); background:var(--color-surface-strong); }
.order-caption { display:block; font-size:.7rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--color-muted); margin-bottom:5px; }
.order-card time, .order-detail-heading time { font-size:.9rem; font-weight:600; }
.order-card-product { display:flex; gap:18px; align-items:center; padding:24px; flex:1; }
.order-card-product > div:last-child { min-width:0; }
.order-product-title { font-size:1.05rem; line-height:1.45; }
.order-card .order-reference { font-size:.72rem; margin-top:8px; }
.order-card-summary { padding-top:0; font-size:.85rem; }
.order-card-total { text-align:right; flex-shrink:0; }
.order-card-total strong { font-size:1.3rem; }
.order-card .order-actions { padding:18px 24px; border-top:1px solid var(--color-border); }
.order-card .btn { min-height:42px; padding:10px 16px; font-size:.82rem; }
.order-back { display:inline-flex; margin-bottom:24px; font-size:.9rem; font-weight:600; }
.order-detail-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:28px; }
.order-detail-heading .order-reference { font-size:.8rem; }
.order-status-strip { display:flex; flex-wrap:wrap; gap:32px; padding:20px 24px; background:var(--color-surface); border:1px solid var(--color-border); border-radius:14px; margin-bottom:24px; }
.order-detail-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:24px; align-items:start; }
.order-detail-main, .order-detail-aside { display:grid; gap:24px; min-width:0; }
.order-panel { padding:24px; background:var(--color-surface); border:1px solid var(--color-border); border-radius:16px; }
.order-panel h2, .order-panel #deliveryForm h2 { font-family:var(--font-body,inherit); font-size:1.1rem; font-weight:700; line-height:1.4; margin:0 0 20px; }
.order-panel p { font-size:.9rem; line-height:1.7; }
.order-panel > a[href^="tel:"] { display:inline-flex; margin-top:12px; font-weight:600; }
.customer-phone { display:inline-flex; margin-top:12px; font-weight:600; }
.order-panel .customer-contact-heading { margin:18px 0 8px; color:var(--color-heading); font-size:.9rem; font-weight:700; }
.customer-contact-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:8px; }
.customer-contact-action { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 14px; border:1px solid var(--color-border); border-radius:10px; background:var(--color-surface); color:var(--color-heading); font-size:.9rem; font-weight:600; line-height:1.25; text-decoration:none; transition:background 160ms ease,border-color 160ms ease; }
.customer-contact-action:hover { border-color:var(--color-primary); background:var(--color-surface-strong); color:var(--color-heading); }
.customer-contact-action:focus-visible { outline:2px solid var(--color-primary); outline-offset:2px; }
.customer-contact-action svg { flex:none; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.customer-contact-action.whatsapp svg { width:24px; height:24px; margin:-1px; stroke-width:2.45; }
.customer-contact-action.telegram svg { fill:currentColor; stroke:none; }
#orderItems { gap:0; }
#orderItems .order-row { grid-template-columns:64px minmax(0,1fr) auto; gap:14px; padding:20px 0; border:0; border-radius:0; border-bottom:1px solid var(--color-border); background:transparent; }
#orderItems .order-row:first-child { padding-top:0; }
#orderItems .order-row:last-child { border-bottom:0; padding-bottom:0; }
#orderItems .order-thumbnail-slot, #orderItems .order-thumbnail { width:64px; min-height:80px; height:80px; }
#orderItems .order-row > span:first-of-type { grid-column:2; font-size:.8rem; color:var(--color-muted); }
#orderItems .order-row > span:last-of-type { grid-column:3; grid-row:1 / 3; font-weight:700; }
#orderItems .order-row > div:nth-child(2) { min-width:0; }
#orderItems .order-row strong { font-size:.9rem; }
#orderItems .order-row p { font-size:.78rem; margin-top:4px; }
.order-total-line { display:flex; justify-content:space-between; gap:16px; padding-bottom:20px; margin-bottom:20px; border-bottom:1px solid var(--color-border); }
.order-total-line strong { font-size:1.3rem; }
.order-panel .btn { width:auto; max-width:100%; margin-top:8px; }
.order-next-step .btn { min-width:min(100%,220px); }
.order-tabs { display:flex; gap:4px; overflow-x:auto; border-bottom:1px solid var(--color-border); margin-top:28px; padding-inline:12px; }
.order-tabs button { display:inline-flex; align-items:center; gap:8px; flex:none; min-height:48px; padding:10px 17px; border:1px solid transparent; border-bottom:0; border-radius:10px 10px 0 0; background:transparent; color:var(--color-muted); font-weight:800; cursor:pointer; }
.order-tabs button[aria-selected="true"] { position:relative; margin-bottom:-1px; border-color:var(--color-border); background:var(--color-surface); color:var(--color-heading); }
.order-tabs button:hover { color:var(--color-heading); background:var(--color-surface-strong); }
.order-tabs button:focus-visible { outline:3px solid var(--color-accent); outline-offset:-3px; }
.order-tab-count { display:inline-grid; place-items:center; min-width:25px; height:25px; padding:0 6px; border-radius:99px; background:var(--color-surface-strong); color:var(--color-heading); font-size:.75rem; }
.order-tab-panel { padding-top:24px; }
.account-settings-link { margin:4px 0 28px; }
.settings-main { max-width:1040px; }
.settings-heading { margin-top:24px; }
.settings-heading h1 { margin:10px 0; }
.settings-heading p,.settings-panel > p { color:var(--color-muted); line-height:1.6; }
.settings-panel { max-width:820px; }
.settings-panel h2 { margin:0 0 8px; }
.settings-form { display:grid; gap:18px; margin-top:24px; max-width:650px; }
.settings-form h3 { margin:6px 0 0; }
.settings-form .shipping-field input[readonly] { background:var(--color-surface-strong); color:var(--color-muted); cursor:default; }
.settings-help { color:var(--color-muted); font-size:.85rem; line-height:1.55; margin:0; }
.settings-error { color:var(--color-destructive,var(--color-error,#9f2444)); font-size:.86rem; font-weight:700; line-height:1.5; margin:0; }
.settings-actions { display:flex; justify-content:flex-start; margin-top:6px; }
.settings-actions .btn { width:auto; min-width:160px; max-width:100%; }
.settings-address-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:24px; }
.settings-address-card { display:flex; flex-direction:column; justify-content:space-between; gap:20px; min-width:0; padding:20px; border:1px solid var(--color-border); border-radius:14px; background:var(--color-surface); }
.settings-address-card strong { color:var(--color-heading); }
.settings-address-card p { color:var(--color-muted); line-height:1.5; margin:10px 0 4px; overflow-wrap:anywhere; }
.settings-address-card small { color:var(--color-muted); }
.settings-default { display:inline-flex; margin-left:10px; padding:4px 8px; border-radius:99px; background:color-mix(in srgb,var(--color-primary) 12%,var(--color-surface)); color:var(--color-primary); font-size:.72rem; font-weight:800; }
.settings-address-actions { display:flex; flex-wrap:wrap; gap:8px; }
.settings-address-actions .btn { width:auto; min-height:38px; padding:7px 11px; font-size:.8rem; }
.settings-add-address { width:auto; max-width:100%; margin-top:18px; }
@media(max-width:700px) { .settings-address-list { grid-template-columns:1fr; } }
@media(max-width:520px) { .settings-tabs { padding-inline:0; } .settings-tabs button { padding-inline:10px; font-size:.78rem; } .settings-actions .btn { width:100%; } }
.order-tab-intro { margin-bottom:20px; color:var(--color-muted); }
.order-panel #deliveryForm { display:grid; grid-template-columns:1fr; gap:16px; margin-top:20px; }
.order-panel #deliveryForm p, .order-panel #deliveryForm h2 { margin:0; }
.order-note { border-left:3px solid var(--color-primary); padding:12px 16px; margin-bottom:24px; }
.page-orders nav[aria-label="Order pages"] { display:flex; gap:12px; margin-top:24px; }
@media(max-width:800px) { #ordersList,.order-detail-grid { grid-template-columns:1fr; } .order-detail-heading { align-items:flex-start; flex-direction:column; gap:12px; } }
@media(max-width:480px) { .order-panel { padding:18px; } .order-card-product,.order-card-top,.order-card-summary { padding:18px; } .order-card .order-actions { padding:16px 18px; } .order-status-strip { padding:18px; gap:20px; } #orderItems .order-row { gap:10px; grid-template-columns:52px minmax(0,1fr) auto; } #orderItems .order-thumbnail-slot,#orderItems .order-thumbnail { width:52px; height:68px; min-height:68px; } }

.order-collage { display:grid; grid-template-columns:repeat(2,1fr); width:104px; height:104px; flex-shrink:0; gap:3px; border-radius:12px; overflow:hidden; background:var(--color-surface-strong); }
.order-collage > div { position:relative; min-height:0; }
.order-collage > div:only-child { grid-column:1 / -1; grid-row:1 / 3; }
.order-collage img { width:100%; height:100%; object-fit:cover; }
.order-collage span { position:absolute; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.6); color:white; font-weight:700; }
.order-shipment-summary { margin:0 24px 16px; }
.shipment-list { display:grid; gap:24px; margin:24px 0; }
.shipment-card header { display:flex; justify-content:space-between; gap:20px; }
.shipment-code-name { margin:12px 0 0; color:var(--color-heading); font-size:1.15rem; font-weight:800; }
.shipment-delivery-window { margin:8px 0 0; color:var(--color-muted); font-weight:600; }
.shipment-card-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.order-panel .shipment-card-actions .btn { min-width:0; width:auto; margin-top:0; }
.shipment-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0; }
.shipment-item { display:flex; align-items:center; gap:14px; }
.shipment-item img,.shipment-choice img { width:60px; height:76px; border-radius:8px; object-fit:cover; }
.shipment-choice { display:grid; grid-template-columns:24px 60px minmax(0,1fr) 100px; align-items:center; gap:16px; padding:20px 0; border-bottom:1px solid var(--color-border); }
.shipment-choice input[type=checkbox] { width:20px; height:20px; accent-color:var(--color-primary); }
#shipmentForm { display:grid; gap:24px; margin-top:24px; }
.delivery-window-fields { min-width:0; margin:18px 0; padding:0; border:0; }
.delivery-window-fields legend { color:var(--color-heading); font-weight:800; }
.delivery-window-fields p { margin:4px 0 12px; color:var(--color-muted); font-size:.9rem; }
.delivery-window-fields > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.delivery-window-fields label { display:block; min-width:0; }
.delivery-window-fields input { width:100%; }
@media(max-width:600px){ .delivery-window-fields > div { grid-template-columns:1fr; } }
@media(max-width:600px){ .shipment-items { grid-template-columns:1fr; } .shipment-choice { grid-template-columns:24px 50px minmax(0,1fr); gap:12px; } .shipment-choice label { grid-column:3; } .shipment-card header { flex-direction:column; } .order-collage { width:80px; height:80px; } }
@media(max-width:600px){ .order-panel .btn { width:100%; } .order-tabs { padding-inline:0; } .order-tabs button { padding-inline:12px; font-size:.86rem; } }

.confirmation-dialog { width:min(100% - 24px,680px); height:min(90dvh,800px); max-height:90dvh; padding:0; border:1px solid var(--color-border); border-radius:18px; background:var(--color-surface); box-shadow:var(--shadow-strong); overflow:hidden; }
.confirmation-dialog::backdrop { background:rgba(20,11,17,.68); }
.confirmation-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 18px; border-bottom:1px solid var(--color-border); }
.confirmation-dialog-heading h2 { margin:0; font:800 1rem var(--font-body); }
.confirmation-dialog-close { display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:8px; background:var(--color-surface-strong); color:var(--color-heading); font-size:1.55rem; line-height:1; cursor:pointer; }
.confirmation-dialog-close:hover { background:var(--color-border); }
.confirmation-dialog-close:focus-visible { outline:3px solid var(--color-accent); }
.confirmation-dialog iframe { display:block; width:100%; height:calc(100% - 61px); border:0; background:#f4f6f5; }

.order-detail > h1 { font-size:clamp(2rem,4vw,3.1rem); margin:8px 0 12px; line-height:1.15; }
.order-detail > .order-back { display:flex; width:fit-content; }
#shipmentForm .order-actions .btn { width:auto; margin:0; }
#remainingItems { display:grid; gap:16px; }
.order-collage { grid-template-rows:repeat(2,minmax(0,1fr)); }
.order-collage[data-count="1"] > div:first-child { grid-column:1 / -1; grid-row:1 / -1; }
.order-collage[data-count="2"] > div:not([hidden]) { grid-row:1 / -1; }
.order-collage[data-count="3"] > div:first-child { grid-row:1 / -1; }

.order-filters { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.25rem 0; }
.order-filters label { display: grid; gap: .4rem; flex: 1 1 12rem; }
.order-filters select, .order-filters input { width: 100%; padding: .7rem; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: .5rem; }
@media print {
  .site-header, footer, .site-footer, .admin-navigation-drawer, .page-loader, .order-back, .order-detail button, .order-detail .btn, [data-shop-filter-modal], [data-shop-filter-backdrop] { display: none !important; }
  .order-detail, .order-detail-grid, .app-shell { display: block !important; width: 100% !important; max-width: none !important; }
  .order-panel { break-inside: avoid; color: #111 !important; background: white !important; box-shadow: none !important; }
}

.gallery-slot > .text-button { display:block; width:100%; padding:9px 6px; font-size:12px; text-align:center; }
