:root {
  --bg: #f2ede7;
  --surface: #fffaf5;
  --surface-soft: #f8f1ea;
  --ink: #23180f;
  --muted: #776656;
  --line: #dccdbe;
  --accent: #cf6d36;
  --accent-dark: #cf6d36;
  --sale: #d14d25;
  --shadow: 0 18px 38px rgba(92, 67, 45, 0.08);
  --bg-wash: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  --dashboard-wash: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  --dashboard-radial: radial-gradient(circle at top left, rgba(179, 141, 105, 0.18), transparent 30%);
  --sidebar-surface: linear-gradient(180deg, #fffaf4, #f5eadf);
  --surface-strong: #ffffff;
  --surface-tint: #f8efe5;
  --surface-alt: #fffaf4;
  --hero-dot: rgba(255, 255, 255, 0.56);
  --hero-dot-active: #ffffff;
  --theme-toggle-shadow: 0 12px 28px rgba(92, 67, 45, 0.12);
  --input-bg: var(--surface);
  --appbar-bg: rgba(255, 248, 241, 0.88);
  --appbar-ink: var(--ink);
  --appbar-radius: 28px;
  --appbar-pad-y: 18px;
  --appbar-pad-x: 22px;
  --appbar-logo-size: 84px;
  --appbar-brand-gap: 18px;
  --appbar-brand-shell-bg: color-mix(in srgb, var(--surface) 88%, transparent);
  --appbar-actions-shell-bg: color-mix(in srgb, var(--surface) 72%, transparent);
  --appbar-border: color-mix(in srgb, var(--line) 76%, transparent);
  --appbar-shadow: 0 24px 48px rgba(75, 53, 36, 0.14);
  --brand-logo-radius: 24px;
  --brand-logo-fit: contain;
  --brand-logo-image-padding: 12px;
  --storefront-shell-width: min(1320px, calc(100% - 36px));
  --storefront-dashboard-width: min(1360px, calc(100% - 36px));
  --storefront-surface-radius: 24px;
  --storefront-card-radius: 18px;
  --storefront-button-radius: 2px;
  --storefront-hero-radius: 24px;
  --storefront-hero-min-height: 420px;
  --storefront-hero-overlay-max: 760px;
  --storefront-hero-title-max: 12ch;
  --storefront-hero-overlay-pad: 56px 46px 62px;
  --storefront-hero-overlay-bg: transparent;
  --storefront-hero-overlay-border: transparent;
  --storefront-hero-overlay-shadow: none;
  --storefront-hero-overlay-radius: 0px;
  --storefront-hero-overlay-offset-x: 0px;
  --storefront-hero-overlay-offset-y: 0px;
  --storefront-hero-text-align: left;
  --storefront-hero-pill-justify: flex-start;
  --storefront-body-overlay: none;
  --storefront-body-overlay-size: auto;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #120f0d;
  --surface: #1a1512;
  --surface-soft: #221c18;
  --ink: #f4eadf;
  --muted: #ccb7a1;
  --line: #645140;
  --accent: #d1a06e;
  --accent-dark: #f0cda7;
  --sale: #ff916f;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  --bg-wash: radial-gradient(circle at top, rgba(209, 160, 110, 0.14), transparent 30%), linear-gradient(180deg, rgba(10, 9, 8, 0.74), rgba(10, 9, 8, 0.08));
  --dashboard-wash: radial-gradient(circle at top right, rgba(209, 160, 110, 0.1), transparent 24%), linear-gradient(180deg, rgba(10, 9, 8, 0.72), rgba(10, 9, 8, 0.1));
  --dashboard-radial: radial-gradient(circle at top left, rgba(209, 160, 110, 0.18), transparent 34%);
  --sidebar-surface: linear-gradient(180deg, #1f1915, #13100d);
  --surface-strong: #261f1a;
  --surface-tint: #2b231d;
  --surface-alt: #171310;
  --hero-dot: rgba(255, 255, 255, 0.28);
  --hero-dot-active: #fff8f0;
  --theme-toggle-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
  --input-bg: #221c17;
  --appbar-bg: rgba(22, 18, 15, 0.92);
  --appbar-brand-shell-bg: color-mix(in srgb, white 8%, rgba(34, 28, 24, 0.9));
  --appbar-actions-shell-bg: color-mix(in srgb, white 5%, rgba(19, 16, 13, 0.94));
  --appbar-border: rgba(120, 95, 72, 0.72);
  --appbar-shadow: 0 28px 56px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  color: var(--ink);
  background:
    var(--storefront-body-overlay),
    var(--bg-wash),
    var(--bg);
  background-size:
    var(--storefront-body-overlay-size),
    auto,
    auto;
}

body.sidebar-open {
  overflow: hidden;
}

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

input,
textarea,
select {
  color: var(--ink);
  background: var(--input-bg);
  border-color: var(--line);
}

option {
  color: #2d2217;
  background: #ffffff;
}

:root[data-theme="dark"] select {
  color-scheme: dark;
}

:root[data-theme="dark"] option,
:root[data-theme="dark"] optgroup {
  color: var(--ink);
  background: #221c17;
}

input::placeholder,
textarea::placeholder {
  color: #9a8a7a;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #b39b85;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

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

.site-frame {
  width: var(--storefront-shell-width);
  margin: 0 auto;
  padding: 26px 0 54px;
  transition: padding-right 0.22s ease;
}

body.storefront-editing .site-frame {
  padding-right: min(460px, 42vw);
}

.dashboard-shell {
  width: var(--storefront-dashboard-width);
  margin: 0 auto;
  padding: 26px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  grid-template-areas:
    "title actions"
    "nav nav"
    "main main";
  align-items: start;
  gap: 10px 20px;
}

.utility-header,
.utility-actions,
.header-branding,
.brand-lockup,
.hero-pills,
.dialog-header,
.quantity-row,
.product-price-row,
.product-heading,
.product-flags,
.inventory-card,
.order-card,
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.utility-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 30px;
  padding: 0;
  border: 1px solid var(--appbar-border);
  border-radius: var(--appbar-radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--appbar-bg) 94%, white) 0%, var(--appbar-bg) 100%);
  box-shadow: var(--appbar-shadow);
  color: var(--appbar-ink);
  backdrop-filter: blur(16px);
}

body.storefront-sticky-appbar .utility-header {
  position: sticky;
  top: 12px;
  z-index: 40;
}

:root[data-storefront-appbar-style="solid"] body.storefront-sticky-appbar .utility-header {
  background: var(--appbar-bg);
  backdrop-filter: none;
}

:root[data-storefront-appbar-style="contrast"] body.storefront-sticky-appbar .utility-header {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 86%, #1f120a) 0%, var(--accent) 100%);
  color: var(--appbar-ink);
  border-bottom-color: transparent;
}

:root[data-storefront-appbar-style="contrast"] {
  --appbar-brand-shell-bg: color-mix(in srgb, white 16%, transparent);
  --appbar-actions-shell-bg: color-mix(in srgb, black 14%, transparent);
  --appbar-border: transparent;
}

:root[data-storefront-appbar-shape="square"] {
  --appbar-radius: 12px;
}

:root[data-storefront-appbar-shape="pill"] {
  --appbar-radius: 999px;
}

:root[data-storefront-content-width="compact"] {
  --storefront-shell-width: min(1160px, calc(100% - 36px));
  --storefront-dashboard-width: min(1200px, calc(100% - 36px));
}

:root[data-storefront-content-width="wide"] {
  --storefront-shell-width: min(1480px, calc(100% - 36px));
  --storefront-dashboard-width: min(1520px, calc(100% - 36px));
}

:root[data-storefront-hero-height="compact"] {
  --storefront-hero-min-height: 360px;
}

:root[data-storefront-hero-height="tall"] {
  --storefront-hero-min-height: 540px;
}

:root[data-storefront-button-shape="rounded"] {
  --storefront-button-radius: 16px;
}

:root[data-storefront-button-shape="pill"] {
  --storefront-button-radius: 999px;
}

:root[data-storefront-background-texture="grid"] {
  --storefront-body-overlay:
    linear-gradient(color-mix(in srgb, var(--muted) 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--muted) 14%, transparent) 1px, transparent 1px);
  --storefront-body-overlay-size: 26px 26px, 26px 26px;
}

:root[data-storefront-background-texture="dots"] {
  --storefront-body-overlay: radial-gradient(circle, color-mix(in srgb, var(--muted) 24%, transparent) 1px, transparent 1.6px);
  --storefront-body-overlay-size: 24px 24px;
}

:root[data-storefront-background-texture="spotlight"] {
  --storefront-body-overlay:
    radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 24%),
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--ink) 8%, transparent), transparent 20%),
    radial-gradient(circle at 78% 78%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 26%);
  --storefront-body-overlay-size: auto, auto, auto;
}

:root[data-storefront-background-texture="diagonal"] {
  --storefront-body-overlay:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--muted) 10%, transparent) 0 1px,
      transparent 1px 18px
    );
  --storefront-body-overlay-size: 24px 24px;
}

:root[data-storefront-background-texture="linen"] {
  --storefront-body-overlay:
    repeating-linear-gradient(
      0deg,
      color-mix(in srgb, var(--muted) 8%, transparent) 0 1px,
      transparent 1px 16px
    ),
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--muted) 7%, transparent) 0 1px,
      transparent 1px 22px
    );
  --storefront-body-overlay-size: 18px 18px, 22px 22px;
}

:root[data-storefront-background-texture="paper"] {
  --storefront-body-overlay:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--ink) 4%, transparent), transparent 18%),
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--muted) 8%, transparent), transparent 22%),
    radial-gradient(circle at 32% 74%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 24%),
    radial-gradient(circle at 86% 82%, color-mix(in srgb, var(--ink) 3%, transparent), transparent 20%);
  --storefront-body-overlay-size: auto, auto, auto, auto;
}

:root[data-storefront-background-texture="mesh"] {
  --storefront-body-overlay:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--muted) 12%, transparent) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 7%, transparent) 0 1px, transparent 1px 100%);
  --storefront-body-overlay-size: 30px 30px, 30px 30px;
}

:root[data-storefront-background-texture="waves"] {
  --storefront-body-overlay:
    radial-gradient(circle at 0 100%, transparent 20px, color-mix(in srgb, var(--muted) 10%, transparent) 20px 22px, transparent 22px),
    radial-gradient(circle at 50px 100%, transparent 20px, color-mix(in srgb, var(--accent) 8%, transparent) 20px 22px, transparent 22px);
  --storefront-body-overlay-size: 100px 42px, 100px 42px;
}

:root[data-storefront-visual-preset="editorial"] {
  --storefront-surface-radius: 30px;
  --storefront-card-radius: 22px;
  --storefront-hero-radius: 32px;
}

:root[data-storefront-visual-preset="boutique"] {
  --storefront-surface-radius: 32px;
  --storefront-card-radius: 24px;
  --storefront-hero-radius: 34px;
  --storefront-button-radius: 18px;
}

:root[data-storefront-visual-preset="minimal"] {
  --shadow: 0 10px 24px rgba(92, 67, 45, 0.05);
  --storefront-surface-radius: 18px;
  --storefront-card-radius: 14px;
  --storefront-hero-radius: 18px;
}

:root[data-storefront-appbar-size="compact"] {
  --appbar-pad-y: 12px;
  --appbar-pad-x: 16px;
  --appbar-logo-size: 64px;
  --appbar-brand-gap: 14px;
}

:root[data-storefront-appbar-size="large"] {
  --appbar-pad-y: 24px;
  --appbar-pad-x: 26px;
  --appbar-logo-size: 104px;
  --appbar-brand-gap: 22px;
}

:root[data-storefront-logo-fit="cover"] {
  --brand-logo-fit: cover;
  --brand-logo-image-padding: 0px;
}

:root[data-storefront-logo-shape="circle"] {
  --brand-logo-radius: 999px;
}

:root[data-storefront-logo-shape="square"] {
  --brand-logo-radius: 8px;
}

body.sidebar-open .utility-header {
  z-index: 20;
}

.utility-top-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: calc(var(--appbar-radius) - 1px) calc(var(--appbar-radius) - 1px) 0 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #7a3113) 0%, color-mix(in srgb, var(--accent-dark) 36%, var(--accent)) 100%);
  color: #fff8f0;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.utility-header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: var(--appbar-pad-y) var(--appbar-pad-x);
}

:root[data-storefront-appbar-layout="commerce"] .utility-header-main {
  grid-template-columns: auto minmax(280px, 1.2fr) auto;
  align-items: stretch;
}

:root[data-storefront-appbar-layout="legacy"] .utility-top-strip,
:root[data-storefront-appbar-layout="legacy"] .header-search-shell,
:root[data-storefront-appbar-layout="legacy"] .utility-meta-panel {
  display: none !important;
}

:root[data-storefront-appbar-layout="legacy"] .utility-header {
  gap: 0;
  padding: 12px 14px;
  border-color: color-mix(in srgb, var(--line) 58%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--appbar-bg) 96%, white), color-mix(in srgb, var(--appbar-bg) 92%, #f6ede3));
  box-shadow: 0 14px 34px rgba(92, 67, 45, 0.08);
  backdrop-filter: none;
}

:root[data-storefront-appbar-layout="legacy"] .utility-header-main {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 6px 4px;
  align-items: center;
}

.header-branding {
  min-width: 0;
  flex: 1 1 auto;
  gap: 14px;
}

.header-search-shell {
  min-width: 260px;
  margin: 0;
}

:root[data-storefront-appbar-layout="commerce"] .header-search-shell {
  align-self: center;
}

.brand-home-link,
.brand-home-link:link,
.brand-home-link:visited,
.brand-home-link:hover,
.brand-home-link:active {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--appbar-brand-gap);
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border-radius: calc(var(--appbar-radius) - 8px);
  background: var(--appbar-brand-shell-bg);
  border: 1px solid color-mix(in srgb, var(--appbar-border) 70%, transparent);
}

.brand-lockup-compact {
  min-width: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-logo {
  position: relative;
  width: var(--appbar-logo-size);
  height: var(--appbar-logo-size);
  min-width: var(--appbar-logo-size);
  min-height: var(--appbar-logo-size);
  flex: 0 0 var(--appbar-logo-size);
  aspect-ratio: 1 / 1;
  border-radius: var(--brand-logo-radius);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 62%, white) 0%, color-mix(in srgb, var(--accent) 80%, #573521) 100%);
  color: #fff8f0;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, white 42%, transparent);
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--brand-logo-radius);
  background: var(--brand-logo-image, none) center/var(--brand-logo-fit) no-repeat;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.brand-logo-text {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

:root[data-branding-has-logo="true"] .brand-logo[data-brand-logo]::before {
  opacity: 1;
}

:root[data-branding-has-logo="true"] .brand-logo[data-brand-logo] .brand-logo-text {
  opacity: 0;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--brand-logo-radius);
  object-fit: var(--brand-logo-fit);
  padding: var(--brand-logo-image-padding);
}

.brand-logo.has-image {
  background: var(--surface-strong);
}

.brand-logo-editable {
  cursor: pointer;
}

.brand-logo-edit-button {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(59, 42, 30, 0.82);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.brand-logo-edit-button svg {
  width: 15px;
  height: 15px;
}

.brand-logo-editable:hover .brand-logo-edit-button,
.brand-logo-editable:focus-within .brand-logo-edit-button {
  opacity: 1;
  transform: translateY(0);
}

.brand-logo-editable:hover .brand-logo-edit-button {
  background: rgba(59, 42, 30, 0.92);
}

body.storefront-can-inline-edit .storefront-edit-surface {
  position: relative;
}

body.storefront-can-inline-edit .storefront-edit-surface:hover,
body.storefront-can-inline-edit .storefront-edit-surface:focus-within {
  outline: 2px dashed color-mix(in srgb, var(--accent) 58%, transparent);
  outline-offset: 6px;
}

body.storefront-can-inline-edit .storefront-edit-surface.is-inline-preview-active {
  outline: 3px solid color-mix(in srgb, var(--accent) 78%, white 8%);
  outline-offset: 6px;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent);
}

body.storefront-can-inline-edit .storefront-edit-surface.is-inline-preview-active::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  pointer-events: none;
  animation: inline-preview-pulse 1.1s ease;
}

.is-inline-preview-focus {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 78%, white 6%), 0 18px 36px rgba(59, 42, 30, 0.14);
  border-radius: 18px;
}

#utility-top-strip.is-inline-preview-focus,
#header-search-form.is-inline-preview-focus,
#utility-meta-panel.is-inline-preview-focus,
#hero-kicker.is-inline-preview-focus,
#hero-title.is-inline-preview-focus,
#hero-message.is-inline-preview-focus,
#utility-meta-category.is-inline-preview-focus,
#utility-meta-location.is-inline-preview-focus,
#utility-meta-hours.is-inline-preview-focus,
.hero-pills.is-inline-preview-focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 82%, white 8%);
}

.storefront-inline-hotspot {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, rgba(255, 255, 255, 0.18));
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(59, 42, 30, 0.14);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.storefront-inline-hotspot svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.storefront-inline-hotspot-text {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.storefront-can-inline-edit .storefront-edit-surface:hover .storefront-inline-hotspot,
body.storefront-can-inline-edit .storefront-edit-surface:focus-within .storefront-inline-hotspot,
body.storefront-editing .storefront-inline-hotspot {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.storefront-inline-hotspot:hover,
.storefront-inline-hotspot:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f0;
}

.utility-header.storefront-edit-surface {
  overflow: visible;
}

.utility-header .storefront-inline-hotspot {
  top: -18px;
  right: 18px;
}

.utility-header .storefront-inline-actions-bar {
  top: 42px;
  right: 18px;
}

@keyframes inline-preview-pulse {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.35;
    transform: scale(1.01);
  }
}

.storefront-inline-actions-bar {
  position: absolute;
  top: 64px;
  right: 16px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, rgba(255, 255, 255, 0.18));
  box-shadow: 0 18px 32px rgba(59, 42, 30, 0.14);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.storefront-edit-surface.is-actions-open .storefront-inline-actions-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.storefront-inline-action-chip {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.storefront-inline-action-chip:hover,
.storefront-inline-action-chip:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f0;
}

.customer-collection-shell .storefront-inline-hotspot,
.catalog-shell .storefront-inline-hotspot {
  top: auto;
  bottom: 16px;
}

.customer-collection-shell .storefront-inline-actions-bar,
.catalog-shell .storefront-inline-actions-bar {
  top: auto;
  right: 16px;
  bottom: 64px;
}

.brand-caption,
.section-tag,
.promo-label,
.hero-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
}

#store-name {
  font-size: clamp(1.85rem, 2vw, 2.4rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.search-shell {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-shell input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px;
  height: 56px;
  padding: 0 66px 0 20px;
}

.search-shell input::placeholder {
  color: #9a8a7a;
}

.search-icon {
  position: absolute;
  inset: 0 0 0 auto;
  width: 54px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 1.5rem;
  border-radius: 0 4px 4px 0;
}

.search-icon svg {
  width: 22px;
  height: 22px;
}

.utility-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: calc(var(--appbar-radius) - 10px);
  background: var(--appbar-actions-shell-bg);
  border: 1px solid color-mix(in srgb, var(--appbar-border) 72%, transparent);
}

:root[data-storefront-appbar-layout="commerce"] .utility-actions {
  gap: 12px;
  padding: 10px;
}

:root[data-storefront-appbar-layout="legacy"] .brand-lockup,
:root[data-storefront-appbar-layout="legacy"] .utility-actions {
  background: transparent;
  border: 0;
  box-shadow: none;
}

:root[data-storefront-appbar-layout="legacy"] .brand-lockup {
  padding: 0;
  border-radius: 0;
  gap: 20px;
}

:root[data-storefront-appbar-layout="legacy"] .utility-actions {
  padding: 0;
  gap: 18px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  border-radius: 0;
}

:root[data-storefront-appbar-layout="legacy"] .theme-toggle.secondary-button,
:root[data-storefront-appbar-layout="legacy"] .user-access-button,
:root[data-storefront-appbar-layout="legacy"] .cart-button,
:root[data-storefront-appbar-layout="legacy"] .notification-button,
:root[data-storefront-appbar-layout="legacy"] .favorites-shortcut-button {
  box-shadow: none;
}

:root[data-storefront-appbar-layout="legacy"] .brand-logo {
  background: #ffffff;
  color: var(--appbar-ink);
  border: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
  box-shadow: 0 12px 28px rgba(92, 67, 45, 0.1);
}

:root[data-storefront-appbar-layout="legacy"] .hamburger-button {
  width: 52px;
  height: 52px;
}

:root[data-storefront-appbar-layout="legacy"] .hamburger-button-icon {
  width: 28px;
  height: 28px;
}

:root[data-storefront-appbar-layout="legacy"] .theme-toggle.secondary-button {
  min-height: 68px;
  padding: 0 26px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, white 88%, var(--appbar-bg));
  color: var(--appbar-ink);
}

:root[data-storefront-appbar-layout="legacy"] .user-access-button {
  min-width: 170px;
  padding: 6px 0 6px 20px;
  border-left: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}

:root[data-storefront-appbar-layout="legacy"] .user-access-icon,
:root[data-storefront-appbar-layout="legacy"] .cart-button-icon,
:root[data-storefront-appbar-layout="legacy"] .notification-button,
:root[data-storefront-appbar-layout="legacy"] .favorites-shortcut-button {
  background: color-mix(in srgb, white 84%, var(--appbar-bg));
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

:root[data-storefront-appbar-layout="legacy"] .cart-button {
  padding: 6px 0 6px 18px;
  border-left: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}

:root[data-storefront-appbar-layout="legacy"] .brand-caption {
  color: color-mix(in srgb, var(--appbar-ink) 74%, white 8%);
}

:root[data-storefront-appbar-layout="legacy"] #store-name {
  letter-spacing: 0.01em;
}

.storefront-inline-launch {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--surface-soft)), color-mix(in srgb, white 72%, var(--surface-soft)));
  color: color-mix(in srgb, var(--accent-dark) 72%, var(--ink));
  box-shadow: 0 10px 24px rgba(92, 67, 45, 0.08);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.storefront-inline-launch:hover,
.storefront-inline-launch:focus-visible {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, var(--surface-soft)), color-mix(in srgb, white 60%, var(--surface-soft)));
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
}

.storefront-inline-launch::before {
  content: "✎";
  font-size: 0.96rem;
  line-height: 1;
}

.storefront-inline-launch::before {
  content: "\270E";
}

.hamburger-button,
.icon-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.notification-button {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.favorites-shortcut-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.favorites-shortcut-button:hover,
.favorites-shortcut-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.78);
}

.favorites-shortcut-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.favorites-shortcut-icon svg {
  width: 100%;
  height: 100%;
}

.notification-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
}

.notification-button-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.notification-button-icon svg {
  width: 100%;
  height: 100%;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(83, 53, 27, 0.2);
}

.hamburger-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  gap: 0;
}

.hamburger-button-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
}

.hamburger-button-icon svg {
  width: 100%;
  height: 100%;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-alt);
}

.icon-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.icon-button span:first-child {
  transform: rotate(45deg) translateY(4px);
}

.icon-button span:last-child {
  transform: rotate(-45deg) translateY(-4px);
}

.storefront-mode-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(59, 42, 30, 0.18);
  z-index: 42;
}

.floating-cart-toggle,
.floating-whatsapp-link {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(59, 42, 30, 0.18);
  z-index: 38;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

.floating-cart-toggle.is-visible,
.floating-whatsapp-link.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-whatsapp-link {
  bottom: 92px;
  color: #ffffff;
  background: linear-gradient(180deg, #25d366, #1ba851);
  border-color: rgba(255, 255, 255, 0.18);
}

.floating-cart-toggle.is-offset {
  bottom: 92px;
}

.floating-whatsapp-link.is-offset {
  bottom: 162px;
}

.floating-cart-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.floating-cart-icon svg {
  width: 100%;
  height: 100%;
}

.floating-whatsapp-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.floating-whatsapp-icon svg {
  width: 100%;
  height: 100%;
}

.floating-cart-count {
  position: absolute;
  top: -4px;
  right: -2px;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(59, 42, 30, 0.2);
}

.floating-cart-toggle:hover,
.floating-whatsapp-link:hover {
  transform: translateY(-1px);
}

.floating-cart-toggle.is-visible.is-offset:hover,
.floating-whatsapp-link.is-visible.is-offset:hover {
  transform: translateY(-1px);
}

.floating-cart-toggle.is-visible:hover,
.floating-whatsapp-link.is-visible:hover {
  opacity: 0.94;
}

.storefront-editing .floating-cart-toggle,
.storefront-editing .floating-whatsapp-link {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
}

.storefront-mode-toggle.is-editing {
  background: var(--accent);
  color: #fff;
}

.storefront-mode-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.storefront-mode-icon svg {
  width: 100%;
  height: 100%;
}

.storefront-inline-editor {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 42vw);
  height: 100vh;
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--sidebar-surface);
  border-left: 1px solid var(--line);
  box-shadow: -22px 0 38px rgba(59, 42, 30, 0.14);
  z-index: 41;
  overflow-y: auto;
}

.storefront-inline-head,
.storefront-inline-head-actions,
.storefront-inline-form,
.storefront-inline-footer {
  display: grid;
  gap: 14px;
}

.storefront-inline-form {
  padding-bottom: 124px;
}

.storefront-inline-head {
  padding-bottom: 6px;
}

.storefront-inline-head h3 {
  margin: 0;
}

.storefront-inline-context {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, rgba(255, 255, 255, 0.2));
  box-shadow: 0 12px 24px rgba(59, 42, 30, 0.08);
}

.storefront-inline-context strong {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storefront-inline-context span {
  color: var(--muted);
  line-height: 1.5;
}

.storefront-inline-head .muted-text,
.storefront-inline-feedback {
  margin: 0;
}

.form-feedback {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-feedback-info {
  color: var(--muted);
}

.form-feedback-success {
  color: #4fa66d;
}

.form-feedback-error {
  color: #d85c5c;
  font-weight: 700;
}

.inline-group-target {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.inline-theme-mode-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, rgba(255, 255, 255, 0.14));
}

.inline-appbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-appbar-actions .secondary-button {
  min-width: 0;
}

.storefront-inline-head-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storefront-inline-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: 4px;
  margin-inline: -22px;
  margin-bottom: -22px;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sidebar-surface) 0%, transparent), color-mix(in srgb, var(--surface) 92%, white) 16%),
    var(--surface);
  box-shadow: 0 -18px 34px rgba(59, 42, 30, 0.08);
  backdrop-filter: blur(14px);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(59, 42, 30, 0.34);
  z-index: 41;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(340px, calc(100% - 42px));
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  z-index: 42;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.site-sidebar.is-open {
  transform: translateX(0);
}

.sidebar-panel {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
  padding: 24px 20px;
  background: var(--sidebar-surface);
  border-right: 1px solid var(--line);
  box-shadow: 22px 0 40px rgba(59, 42, 30, 0.12);
  overflow: visible;
}

.sidebar-head,
.dashboard-header,
.dashboard-titlebar,
.dashboard-header-actions,
.dashboard-user-chip,
.inventory-row,
.inventory-row-main,
.inventory-row-meta,
.sidebar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-head {
  justify-content: space-between;
  align-items: start;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(132, 84, 43, 0.28) transparent;
  scrollbar-gutter: stable;
}

.dashboard-nav-groups {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dashboard-nav-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-nav-group-title {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.dashboard-nav-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.dashboard-nav-groups-sidebar .dashboard-nav-group-links {
  display: grid;
}

.dashboard-nav-groups-sidebar .dashboard-nav-group-title {
  font-size: 0.94rem;
  letter-spacing: 0.14em;
}

.dashboard-nav-group-title-static {
  cursor: default;
}

.dashboard-nav-groups-header {
  flex: 1 1 720px;
}

.dashboard-nav-groups-header .dashboard-nav-group {
  padding: 8px 12px 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent);
}

.dashboard-nav-group.is-collapsed .dashboard-nav-group-links {
  display: none;
}

.dashboard-header-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.dashboard-header-nav {
  min-width: 0;
}

.dashboard-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-nav-groups-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 14px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(132, 84, 43, 0.24);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.sidebar-nav:hover::-webkit-scrollbar-thumb {
  background: rgba(132, 84, 43, 0.4);
  border: 2px solid transparent;
  background-clip: padding-box;
}

:root[data-theme="dark"] .sidebar-nav {
  scrollbar-color: rgba(235, 196, 157, 0.3) transparent;
}

:root[data-theme="dark"] .sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(235, 196, 157, 0.24);
  border: 2px solid transparent;
  background-clip: padding-box;
}

:root[data-theme="dark"] .sidebar-nav:hover::-webkit-scrollbar-thumb {
  background: rgba(235, 196, 157, 0.38);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.sidebar-backoffice-links {
  display: grid;
  gap: 10px;
}

.sidebar-backoffice-section {
  display: grid;
  gap: 10px;
}

.sidebar-backoffice-title {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sidebar-link,
.secondary-link,
.button-link,
.sidebar-button-link {
  text-decoration: none;
  transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-link:hover,
.secondary-link:hover,
.button-link:hover,
.sidebar-button-link:hover {
  opacity: 0.74;
}

.sidebar-link-active:hover,
.sidebar-link-current:hover,
.secondary-link-current:hover {
  opacity: 1;
}

.secondary-link-current {
  opacity: 1;
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

body.admin-static-nav .sidebar-nav .sidebar-link.hidden,
body.admin-static-nav .dashboard-header-actions .secondary-link.hidden {
  visibility: visible !important;
  opacity: 1 !important;
}

body.admin-static-nav .sidebar-nav .sidebar-link.hidden {
  display: block !important;
}

body.admin-static-nav .dashboard-header-actions .secondary-link.hidden {
  display: inline-flex !important;
  align-items: center;
}

.sidebar-link {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-link-active,
.sidebar-link-current {
  background: rgba(181, 145, 104, 0.18);
  border-color: #d8b998;
}

.sidebar-account {
  display: grid;
  gap: 14px;
  align-content: start;
}

.sidebar-user-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.sidebar-note {
  margin: 0;
  color: var(--muted);
}

.sidebar-user-card span {
  color: var(--muted);
  font-weight: 700;
}

.sidebar-order-glance {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sidebar-actions {
  flex-direction: column;
  align-items: stretch;
}

.button-link,
.sidebar-button-link {
  display: grid;
  place-items: center;
  min-height: 44px;
}

.action-button {
  width: auto;
  min-width: 180px;
  padding: 0 18px;
}

.secondary-link {
  color: var(--accent-dark);
  font-weight: 800;
}

.dashboard-header-actions .secondary-link {
  white-space: nowrap;
}

.user-access-button,
.topbar-link,
.cart-button,
.primary-button,
.secondary-button,
.google-btn,
.link-button {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
  background: transparent;
}

.user-access-button {
  min-width: 150px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  padding: 6px 0 6px 18px;
  border-left: 1px solid var(--line);
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-access-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  background: var(--surface-soft);
}

.user-access-icon svg {
  width: 22px;
  height: 22px;
}

.user-access-copy {
  display: grid;
  gap: 2px;
}

.user-access-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.user-access-button strong {
  font-size: 1.1rem;
}

.topbar-link {
  color: var(--accent-dark);
  font-weight: 800;
  padding: 8px 0;
}

.theme-toggle {
  width: auto;
  min-width: 0;
  padding: 0 14px;
  gap: 10px;
  justify-content: center;
  box-shadow: var(--theme-toggle-shadow);
}

.theme-toggle[data-theme-toggle-style="switch"] {
  min-width: 136px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  justify-content: flex-start;
}

.theme-toggle[data-theme-toggle-style="switch"] .theme-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  flex: 0 0 32px;
}

.theme-toggle[data-theme-toggle-style="minimal"] {
  width: 48px;
  min-width: 48px;
  padding: 0;
}

.theme-toggle[data-theme-toggle-style="minimal"] .theme-toggle-label {
  display: none;
}

.theme-toggle[data-theme-toggle-style="pill"] {
  min-width: 150px;
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  justify-content: flex-start;
}

.theme-toggle[data-theme-toggle-style="pill"] .theme-toggle-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  color: var(--accent-dark);
  flex: 0 0 30px;
}

.theme-toggle[data-theme-toggle-style="pill"] .theme-toggle-label {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.theme-toggle[data-theme-toggle-style="text"] {
  min-width: 118px;
  padding: 0 12px;
  gap: 0;
}

.theme-toggle[data-theme-toggle-style="text"] .theme-toggle-icon {
  display: none;
}

.theme-toggle[data-theme-toggle-style="text"] .theme-toggle-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}

.theme-toggle-icon svg {
  width: 100%;
  height: 100%;
}

.theme-toggle-label {
  white-space: nowrap;
}

.cart-button {
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  padding: 6px 0 6px 10px;
  font-size: 1.12rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-button-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}

.cart-button-icon svg {
  width: 22px;
  height: 22px;
}

.cart-button-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
}

.hero-banner,
.promo-card,
.side-card,
.product-card,
.cart-dialog {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-banner {
  position: relative;
  min-height: var(--storefront-hero-min-height);
  border-radius: var(--storefront-hero-radius);
  overflow: hidden;
  margin-bottom: 28px;
  background:
    linear-gradient(120deg, rgba(23, 16, 10, 0.68), rgba(23, 16, 10, 0.18)),
    url("https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hero-nav-hit {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 86px;
  border: 0;
  background: linear-gradient(90deg, rgba(47, 36, 27, 0.18), transparent);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.hero-nav-hit::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  border-top: 3px solid #fffaf4;
  border-left: 3px solid #fffaf4;
}

.hero-banner:hover .hero-nav-hit:not(:disabled),
.hero-banner:focus-within .hero-nav-hit:not(:disabled) {
  opacity: 0.72;
  pointer-events: auto;
}

.hero-nav-hit:hover,
.hero-nav-hit:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scaleX(1.06);
}

.hero-nav-hit:disabled {
  opacity: 0;
  pointer-events: none;
}

.hero-nav-hit-left {
  left: 0;
}

.hero-nav-hit-left::before {
  transform: translate(-30%, -50%) rotate(-45deg);
}

.hero-nav-hit-right {
  right: 0;
  background: linear-gradient(270deg, rgba(47, 36, 27, 0.18), transparent);
}

.hero-nav-hit-right::before {
  transform: translate(-70%, -50%) rotate(135deg);
}

@media (hover: none) {
  .hero-nav-hit:not(:disabled) {
    opacity: 0.72;
    pointer-events: auto;
  }
}

.icon-only-control {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 10px;
}

.button-trash-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: var(--storefront-hero-overlay-max);
  padding: var(--storefront-hero-overlay-pad);
  color: #fff9f3;
  text-align: var(--storefront-hero-text-align);
  background: var(--storefront-hero-overlay-bg);
  border: 1px solid var(--storefront-hero-overlay-border);
  border-radius: var(--storefront-hero-overlay-radius);
  box-shadow: var(--storefront-hero-overlay-shadow);
  transform: translate(var(--storefront-hero-overlay-offset-x), var(--storefront-hero-overlay-offset-y));
  transition: transform 0.18s ease;
}

.hero-overlay h2 {
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  max-width: var(--storefront-hero-title-max);
  margin-bottom: 16px;
}

.hero-overlay-drag-handle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(10, 8, 7, 0.24);
  color: #fff9f3;
  display: none;
  place-items: center;
  cursor: grab;
  backdrop-filter: blur(10px);
}

.hero-overlay-drag-handle span {
  font-size: 1rem;
  line-height: 1;
  transform: rotate(45deg);
}

body.storefront-editing .hero-overlay-drag-handle {
  display: inline-grid;
}

body.hero-overlay-dragging .hero-overlay-drag-handle {
  cursor: grabbing;
}

.hero-text {
  margin: 0 0 22px;
  max-width: 56ch;
  line-height: 1.55;
  color: rgba(255, 249, 243, 0.92);
}

.hero-pills {
  flex-wrap: wrap;
  justify-content: var(--storefront-hero-pill-justify);
}

.hero-pills span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--hero-dot);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--hero-dot-active);
}

:root[data-storefront-hero-layout="centered"] .hero-banner {
  display: grid;
  place-items: center;
}

:root[data-storefront-hero-layout="centered"] .hero-overlay {
  max-width: min(920px, calc(100% - 42px));
  text-align: center;
}

:root[data-storefront-hero-layout="centered"] .hero-overlay h2,
:root[data-storefront-hero-layout="centered"] .hero-text {
  max-width: none;
}

:root[data-storefront-hero-layout="centered"] .hero-pills {
  justify-content: center;
}

:root[data-storefront-hero-layout="boxed"] .hero-banner {
  display: grid;
  align-items: end;
}

:root[data-storefront-hero-layout="boxed"] .hero-overlay {
  margin: 34px;
  max-width: min(560px, calc(100% - 68px));
}

:root[data-storefront-hero-overlay-style="soft"] .hero-overlay {
  background: rgba(28, 20, 14, 0.32);
  border-color: rgba(255, 249, 243, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

:root[data-storefront-hero-overlay-style="glass"] .hero-overlay {
  background: rgba(23, 16, 10, 0.52);
  border-color: rgba(255, 249, 243, 0.16);
  border-radius: 28px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

:root[data-storefront-hero-overlay-style="solid"] .hero-overlay {
  background: color-mix(in srgb, var(--surface) 92%, rgba(26, 18, 12, 0.9));
  color: var(--ink);
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 30px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.16);
}

:root[data-storefront-hero-overlay-style="solid"] .hero-overlay .hero-kicker,
:root[data-storefront-hero-overlay-style="solid"] .hero-overlay .hero-text {
  color: color-mix(in srgb, var(--muted) 94%, transparent);
}

:root[data-storefront-hero-overlay-style="solid"] .hero-overlay h2 {
  color: var(--ink);
}

:root[data-storefront-hero-overlay-style="outline"] .hero-overlay {
  background: transparent;
  border-color: rgba(255, 249, 243, 0.44);
  border-radius: 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(3px);
}

:root[data-storefront-hero-pill-shape="rounded"] .hero-pills span {
  border-radius: 16px;
}

:root[data-storefront-hero-pill-shape="square"] .hero-pills span {
  border-radius: 6px;
}

:root[data-storefront-hero-pill-shape="cut"] .hero-pills span {
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

:root[data-storefront-hero-pill-shape="ticket"] .hero-pills span {
  border-radius: 16px;
  clip-path: polygon(
    0 0,
    calc(100% - 12px) 0,
    100% 50%,
    calc(100% - 12px) 100%,
    0 100%,
    12px 50%
  );
}

:root[data-storefront-hero-pill-shape="hex"] .hero-pills span {
  border-radius: 0;
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}

:root[data-storefront-card-style="outlined"] .storefront-showcase,
:root[data-storefront-card-style="outlined"] .storefront-discovery,
:root[data-storefront-card-style="outlined"] .promo-card,
:root[data-storefront-card-style="outlined"] .storefront-showcase-card,
:root[data-storefront-card-style="outlined"] .side-card,
:root[data-storefront-card-style="outlined"] .product-card,
:root[data-storefront-card-style="outlined"] .customer-collection-shell {
  box-shadow: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, white), var(--surface));
  border-width: 1.5px;
}

:root[data-storefront-card-style="glass"] .storefront-showcase,
:root[data-storefront-card-style="glass"] .storefront-discovery,
:root[data-storefront-card-style="glass"] .promo-card,
:root[data-storefront-card-style="glass"] .storefront-showcase-card,
:root[data-storefront-card-style="glass"] .side-card,
:root[data-storefront-card-style="glass"] .product-card,
:root[data-storefront-card-style="glass"] .customer-collection-shell {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--ink) 9%, transparent);
}

:root[data-storefront-button-shape] .notification-button,
:root[data-storefront-button-shape] .theme-toggle.secondary-button,
:root[data-storefront-button-shape] .favorites-shortcut-button,
:root[data-storefront-button-shape] .user-access-icon,
:root[data-storefront-button-shape] .cart-button-icon,
:root[data-storefront-button-shape] .storefront-mode-toggle,
:root[data-storefront-button-shape] .floating-cart-toggle,
:root[data-storefront-button-shape] .floating-whatsapp-link,
:root[data-storefront-button-shape] .icon-button,
:root[data-storefront-button-shape] .brand-logo-edit-button {
  border-radius: var(--storefront-button-radius);
}

:root[data-storefront-visual-preset="editorial"] .section-tag,
:root[data-storefront-visual-preset="editorial"] .promo-label,
:root[data-storefront-visual-preset="editorial"] .hero-kicker {
  letter-spacing: 0.18em;
}

:root[data-storefront-visual-preset="editorial"] .hero-overlay h2,
:root[data-storefront-visual-preset="editorial"] .storefront-showcase-copy h3 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

:root[data-storefront-visual-preset="editorial"] .promo-card strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.48rem;
  text-transform: uppercase;
}

:root[data-storefront-visual-preset="boutique"] .hero-pills span,
:root[data-storefront-visual-preset="boutique"] .quick-filter-chip {
  border-radius: 999px;
}

:root[data-storefront-visual-preset="boutique"] .promo-card.accent,
:root[data-storefront-visual-preset="boutique"] .storefront-showcase-card.accent {
  box-shadow: 0 20px 36px color-mix(in srgb, var(--accent) 28%, transparent);
}

:root[data-storefront-visual-preset="minimal"] .utility-header,
:root[data-storefront-visual-preset="minimal"] .storefront-showcase,
:root[data-storefront-visual-preset="minimal"] .storefront-discovery,
:root[data-storefront-visual-preset="minimal"] .promo-card,
:root[data-storefront-visual-preset="minimal"] .side-card,
:root[data-storefront-visual-preset="minimal"] .product-card {
  box-shadow: none;
}

:root[data-storefront-visual-preset="minimal"] .section-tag,
:root[data-storefront-visual-preset="minimal"] .promo-label,
:root[data-storefront-visual-preset="minimal"] .hero-kicker {
  letter-spacing: 0.08em;
}

.promo-strip,
.catalog-shell,
.admin-summary,
.admin-grid,
.admin-products,
.admin-users,
.admin-orders,
.orders-list,
.cart-items,
.stack-form {
  display: grid;
  gap: 18px;
}

.promo-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 34px;
}

.storefront-showcase,
.storefront-discovery {
  margin-bottom: 34px;
}

.storefront-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--storefront-surface-radius);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, white), var(--surface));
  box-shadow: var(--shadow);
}

.storefront-showcase-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.storefront-showcase-copy h3 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.96;
}

.storefront-showcase-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.storefront-showcase-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--storefront-card-radius);
  background: color-mix(in srgb, var(--surface) 90%, white);
}

.storefront-showcase-card strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.storefront-showcase-card span {
  color: var(--muted);
}

.storefront-showcase-card.accent {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 86%, white), var(--accent));
  border-color: transparent;
  color: #fffaf5;
}

.storefront-showcase-card.accent span,
.storefront-showcase-card.accent .promo-label {
  color: rgba(255, 250, 245, 0.84);
}

.storefront-discovery {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--storefront-surface-radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, white), var(--surface)),
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28%);
  box-shadow: var(--shadow);
}

.quick-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, white);
  color: var(--ink);
  cursor: pointer;
}

.quick-filter-chip.is-active {
  background: var(--accent);
  border-color: transparent;
  color: #fffaf5;
}

.customer-picks-grid {
  --catalog-card-min: 220px;
  --catalog-image-height: 230px;
}

.promo-strip[data-cards="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.promo-strip[data-cards="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-promo-rail {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.catalog-promo-banner {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.catalog-promo-banner:hover,
.catalog-promo-banner:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 20px 32px rgba(92, 67, 45, 0.12);
}

.catalog-promo-banner-media {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface-alt));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.catalog-promo-banner-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.catalog-promo-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-promo-banner-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.catalog-promo-description {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.catalog-promo-banner-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .catalog-promo-banner {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 12px;
  }

  .catalog-promo-banner-media {
    width: 72px;
    height: 72px;
  }

  .catalog-promo-banner-title {
    font-size: 1.18rem;
  }

  .catalog-promo-banner-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .checkout-inline-fields {
    grid-template-columns: 1fr;
  }

  .order-tracking-card {
    flex-direction: column;
  }
}

.promo-card {
  border: 1px solid var(--line);
  padding: 18px 20px;
  min-height: 126px;
  border-radius: var(--storefront-card-radius);
}

.promo-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.promo-card-link[href] {
  cursor: pointer;
}

.promo-card-link[href]:hover,
.promo-card-link[href]:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(156, 118, 83, 0.72);
  box-shadow: 0 14px 28px rgba(59, 42, 30, 0.1);
}

.promo-card-link.is-disabled {
  cursor: default;
}

.promo-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.promo-card span {
  color: var(--muted);
}

.promo-card.accent {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 86%, white), var(--accent));
  border-color: transparent;
  color: #fff9f3;
}

.promo-card.accent .promo-label,
.promo-card.accent span {
  color: rgba(255, 249, 243, 0.82);
}

.contact-cards-editor {
  display: grid;
  gap: 14px;
}

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

.theme-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.theme-preset-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  color: var(--ink);
  text-align: left;
}

.theme-preset-card strong {
  font-size: 1rem;
}

.theme-preset-card small {
  color: var(--muted);
  line-height: 1.4;
}

.theme-preset-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(59, 42, 30, 0.12);
}

.theme-preset-swatches {
  display: flex;
  gap: 8px;
}

.theme-preset-swatches span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--preset-swatch);
}

.icon-style-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: -4px;
}

.icon-style-option {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  color: var(--ink);
  text-align: center;
}

.icon-style-option strong {
  font-size: 0.88rem;
}

.icon-style-option-preview {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}

.icon-style-option-preview svg {
  width: 22px;
  height: 22px;
}

.icon-style-option.is-active {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(59, 42, 30, 0.12);
}

.theme-color-grid input[type="color"] {
  width: 100%;
  min-height: 48px;
  padding: 4px;
}

.color-swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.color-swatch-button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 3px;
  display: inline-grid;
  place-items: center;
}

.color-swatch-button.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.color-swatch-dot {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--swatch-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 760px) {
  .theme-presets-grid {
    grid-template-columns: 1fr;
  }
}

.home-sections-editor {
  display: grid;
  gap: 12px;
}

.home-section-builder-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  cursor: grab;
}

.home-section-builder-item.is-dragging {
  opacity: 0.6;
}

.home-section-builder-handle {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-section-builder-copy {
  display: grid;
  gap: 4px;
}

.contact-card-editor {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.contact-card-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.catalog-shell {
  grid-template-columns: minmax(0, 1.65fr) 320px;
  align-items: start;
}

.catalog-shell-full {
  grid-template-columns: 1fr;
}

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

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.customer-collection-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.customer-collection-shell {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(197, 128, 55, 0.18);
  background:
    radial-gradient(circle at top right, rgba(197, 128, 55, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 40px rgba(181, 139, 96, 0.08);
  overflow: hidden;
}

.customer-collection-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  opacity: 0.9;
}

.customer-collection-shell-favorites {
  border-color: rgba(197, 128, 55, 0.24);
  background:
    radial-gradient(circle at top right, rgba(214, 151, 79, 0.14), transparent 38%),
    radial-gradient(circle at bottom left, rgba(124, 89, 48, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(255, 247, 238, 0.96), rgba(255, 252, 248, 0.99));
  box-shadow: 0 22px 44px rgba(181, 139, 96, 0.12);
}

.customer-collection-shell-favorites::before {
  width: 7px;
  background: linear-gradient(180deg, #d79a52, #9f6230);
}

.customer-collection-shell-favorites .section-tag {
  color: #9f6230;
}

.customer-collection-shell-favorites .customer-collection-summary {
  max-width: 56ch;
}

.customer-collection-shell-favorites .secondary-link {
  color: #9f6230;
}

.customer-collection-shell-favorites .secondary-link:hover,
.customer-collection-shell-favorites .secondary-link:focus-visible,
.customer-collection-shell-favorites .customer-collection-toggle:hover,
.customer-collection-shell-favorites .customer-collection-toggle:focus-visible {
  color: #d79a52;
}

.customer-collection-shell-recent {
  border-color: rgba(123, 102, 80, 0.18);
  background:
    linear-gradient(180deg, rgba(251, 249, 246, 0.97), rgba(255, 255, 255, 0.99));
  box-shadow: 0 14px 32px rgba(91, 73, 54, 0.07);
}

.customer-collection-shell-recent::before {
  width: 4px;
  background: linear-gradient(180deg, rgba(112, 90, 68, 0.8), rgba(156, 129, 101, 0.8));
  opacity: 0.75;
}

.customer-collection-shell-recent .section-tag {
  color: rgba(112, 90, 68, 0.9);
}

.customer-collection-shell-recent .secondary-link,
.customer-collection-shell-recent .customer-collection-toggle {
  color: rgba(112, 90, 68, 0.95);
}

.customer-collection-shell-recent .secondary-link:hover,
.customer-collection-shell-recent .secondary-link:focus-visible,
.customer-collection-shell-recent .customer-collection-toggle:hover,
.customer-collection-shell-recent .customer-collection-toggle:focus-visible {
  color: var(--accent-dark);
}

.customer-collection-shell-recent .customer-collection-summary {
  max-width: 52ch;
}

.customer-collection-heading {
  align-items: start;
  margin-bottom: 0;
}

.customer-collection-heading h3 {
  margin-bottom: 6px;
}

.customer-collection-toggle {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.customer-collection-toggle:hover,
.customer-collection-toggle:focus-visible {
  color: var(--accent);
}

.customer-collection-body {
  display: grid;
  gap: 16px;
}

.customer-collection-grid {
  --catalog-card-min: 220px;
  --catalog-image-height: 248px;
  --catalog-card-padding: 16px;
  --catalog-card-gap: 14px;
}

.customer-collection-shell[data-collection-template="gallery"] .customer-collection-heading,
.customer-collection-shell[data-collection-template="timeline"] .customer-collection-heading {
  align-items: end;
}

.customer-collection-shell[data-collection-template="gallery"] .customer-collection-grid[data-view="feature"] .product-card:first-child {
  box-shadow: 0 20px 40px rgba(59, 42, 30, 0.12);
}

.customer-collection-shell[data-collection-template="compact"] .customer-collection-grid,
.customer-collection-shell[data-collection-template="cards"] .customer-collection-grid {
  --catalog-card-gap: 12px;
}

.customer-collection-shell[data-collection-template="compact"] {
  padding: 20px;
}

.customer-collection-shell[data-collection-template="compact"] .customer-collection-summary {
  max-width: 48ch;
}

.customer-collection-shell[data-collection-template="timeline"] .customer-collection-grid[data-view="list"] .product-card {
  border-left-width: 5px;
}

.customer-collection-shell-favorites[data-collection-template="compact"] .customer-collection-grid .product-heading h4,
.customer-collection-shell-recent[data-collection-template="compact"] .customer-collection-grid .product-heading h4 {
  font-size: 1.24rem;
}

.section-heading h3,
.side-card h4 {
  font-size: 2rem;
}

.section-heading.tight {
  margin-bottom: 16px;
}

.link-button {
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
}

.products-grid {
  --catalog-card-min: 235px;
  --catalog-image-height: 276px;
  --catalog-card-padding: 18px;
  --catalog-card-gap: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--catalog-card-min), 1fr));
  gap: var(--catalog-card-gap);
  border: 0;
  background: transparent;
}

.products-grid[data-density="compact"] {
  --catalog-card-min: 176px;
  --catalog-image-height: 226px;
  --catalog-card-padding: 14px;
  --catalog-card-gap: 12px;
}

.products-grid[data-density="mini"] {
  --catalog-card-min: 138px;
  --catalog-image-height: 188px;
  --catalog-card-padding: 10px;
  --catalog-card-gap: 10px;
}

.products-grid[data-view="list"] {
  display: grid;
  grid-template-columns: 1fr;
}

.products-grid[data-view="list"] .product-card {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
  align-items: stretch;
}

.products-grid[data-view="list"] .product-badge {
  z-index: 2;
}

.products-grid[data-view="list"] .product-image-wrap {
  height: 100%;
  min-height: 180px;
  padding: 28px 16px 16px;
  border-right: 1px solid var(--line);
}

.products-grid[data-view="list"] .product-content {
  display: grid;
  align-content: center;
  padding: 20px;
}

.products-grid[data-view="list"] .product-heading h4 {
  max-width: none;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.products-grid[data-view="list"] .product-description {
  min-height: 0;
  max-width: 76ch;
}

.products-grid[data-view="list"] .product-actions {
  grid-template-columns: repeat(2, minmax(150px, 220px));
  justify-content: start;
}

.products-grid[data-view="feature"] {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.products-grid[data-view="feature"] .product-card {
  grid-column: span 4;
}

.products-grid[data-view="feature"] .product-card:first-child {
  grid-column: span 7;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 0.95fr);
  align-items: stretch;
}

.products-grid[data-view="feature"] .product-card:first-child .product-image-wrap {
  height: 100%;
  min-height: 100%;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.products-grid[data-view="feature"] .product-card:first-child .product-content {
  align-content: center;
  padding: 26px;
}

.products-grid[data-view="feature"] .product-card:first-child .product-heading h4 {
  max-width: none;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.products-grid[data-view="feature"] .product-card:first-child .product-description {
  max-width: 48ch;
  min-height: 0;
}

.products-grid[data-view="feature"] .product-card:nth-child(2) {
  grid-column: span 5;
}

.products-grid[data-view="feature"] .product-card:nth-child(2) .product-heading h4 {
  font-size: 1.82rem;
}

.products-grid[data-view="feature"] .product-card:nth-child(n+3) {
  grid-column: span 4;
}

.products-grid[data-view="feature"][data-density="compact"] .product-card:first-child {
  grid-column: span 6;
}

.products-grid[data-view="feature"][data-density="compact"] .product-card:nth-child(2) {
  grid-column: span 6;
}

.products-grid[data-view="feature"][data-density="mini"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-grid[data-view="feature"][data-density="mini"] .product-card,
.products-grid[data-view="feature"][data-density="mini"] .product-card:first-child,
.products-grid[data-view="feature"][data-density="mini"] .product-card:nth-child(2),
.products-grid[data-view="feature"][data-density="mini"] .product-card:nth-child(n+3) {
  grid-column: span 1;
}

.products-grid[data-view="feature"][data-density="mini"] .product-card:first-child {
  grid-template-columns: 1fr;
}

.products-grid[data-view="feature"][data-density="mini"] .product-card:first-child .product-image-wrap {
  border-right: 0;
}

@media (max-width: 1024px) {
  .products-grid[data-view="feature"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid[data-view="feature"] .product-card,
  .products-grid[data-view="feature"] .product-card:first-child,
  .products-grid[data-view="feature"] .product-card:nth-child(2),
  .products-grid[data-view="feature"] .product-card:nth-child(n+3) {
    grid-column: span 1;
  }

  .products-grid[data-view="feature"] .product-card:first-child {
    grid-template-columns: 1fr;
  }

  .products-grid[data-view="feature"] .product-card:first-child .product-image-wrap {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .products-grid[data-view="feature"] {
    grid-template-columns: 1fr;
  }
}

.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--storefront-card-radius);
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-card-hidden {
  border-style: dashed;
  border-color: rgba(122, 101, 83, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(246, 241, 235, 0.82)),
    repeating-linear-gradient(-45deg, rgba(122, 101, 83, 0.06) 0 8px, transparent 8px 16px);
}

.product-card-hidden .product-image-wrap img,
.product-card-hidden .product-content {
  opacity: 0.52;
}

.product-card-hidden:hover .product-image-wrap img,
.product-card-hidden:focus-within .product-image-wrap img,
.product-card-hidden:hover .product-content,
.product-card-hidden:focus-within .product-content {
  opacity: 0.78;
}

.product-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--sale);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.94rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-image-wrap {
  position: relative;
  height: var(--catalog-image-height);
  display: grid;
  place-items: center;
  padding: 26px 18px 8px;
  overflow: hidden;
}

.product-badge-hidden {
  background: #3e342b;
  color: #fff;
}

.product-badge-promo {
  background: linear-gradient(135deg, #da5630, #bf3f1d);
  color: #fff;
}

.product-image-wrap > a {
  display: grid;
  width: 100%;
  height: auto;
  min-height: 0;
  align-self: stretch;
}

.product-card-gallery-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

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

.product-card-gallery-surface {
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  min-height: 0;
  align-self: stretch;
  place-items: center;
}

.product-card-gallery-surface img {
  display: block;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  max-height: 100%;
}

.product-card-gallery-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}

.product-card-gallery-arrow {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(90, 67, 48, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
  pointer-events: auto;
}

.product-card:hover .product-card-gallery-arrow,
.product-card:focus-within .product-card-gallery-arrow {
  opacity: 1;
  transform: translateY(0);
}

.product-card-gallery-dots {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  z-index: 1;
}

.product-card-gallery-dot {
  width: 8px;
  min-width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(90, 67, 48, 0.26);
}

.product-card-gallery-dot.is-active {
  background: var(--accent);
}

.product-quick-edit {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  background: rgba(59, 42, 30, 0.88);
  color: #fff;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.product-quick-edit svg {
  width: 18px;
  height: 18px;
}

.product-card:hover .product-quick-edit,
.product-card:focus-within .product-quick-edit,
.detail-media:hover .product-quick-edit,
.detail-media:focus-within .product-quick-edit {
  opacity: 1;
  transform: translateY(0);
}

.product-quick-edit:hover {
  background: rgba(59, 42, 30, 0.98);
}

.product-favorite-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(90, 67, 48, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(90, 67, 48, 0.76);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(92, 67, 45, 0.12);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.product-favorite-toggle svg {
  width: 19px;
  height: 19px;
}

.product-favorite-toggle:hover,
.product-favorite-toggle:focus-visible {
  transform: translateY(-1px);
  background: #fff7f0;
  color: #b85639;
}

.product-favorite-toggle.is-active {
  background: #fff1eb;
  border-color: rgba(184, 86, 57, 0.28);
  color: #c04b2b;
}

.product-content {
  padding: 0 var(--catalog-card-padding) var(--catalog-card-padding);
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto auto auto auto 1fr auto;
}

.products-grid[data-density="compact"] .product-actions,
.products-grid[data-density="mini"] .product-actions {
  grid-template-columns: 1fr;
}

.products-grid[data-density="compact"] .product-description,
.products-grid[data-density="mini"] .product-description,
.products-grid[data-density="mini"] .product-flags span,
.products-grid[data-density="mini"] .product-sku {
  font-size: 0.84rem;
}

.products-grid[data-density="mini"] .product-heading h4 {
  font-size: 1.02rem;
}

.product-sku {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-price-row {
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.price {
  font-size: 2rem;
  color: var(--sale);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1.05rem;
}

.product-heading {
  align-items: start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-heading h4 {
  font-size: 1.7rem;
  line-height: 1;
  max-width: 12ch;
}

.product-description {
  margin: 0 0 14px;
  line-height: 1.45;
  min-height: 68px;
}

.product-description-shell {
  display: grid;
  align-content: start;
}

.product-description-toggle {
  width: auto;
  justify-self: start;
  padding: 0;
  font-size: 0.9rem;
  text-transform: none;
}

.product-hidden-note {
  margin: -6px 0 10px;
  color: #7a4b1f;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-flags {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.product-flags span {
  background: var(--surface-soft);
  border: 1px solid #eaded2;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.primary-button,
.secondary-button {
  width: 100%;
  height: 44px;
  border-radius: var(--storefront-button-radius);
  font-weight: 800;
  text-transform: uppercase;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.secondary-button {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.secondary-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.product-flags .product-hidden-flag {
  background: #3e342b;
  border-color: #3e342b;
  color: #fff;
}

.theme-toggle.secondary-button {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  gap: 10px;
  box-shadow: var(--theme-toggle-shadow);
  white-space: nowrap;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: var(--storefront-surface-radius);
  padding: 22px;
  background: var(--surface-strong);
}

.products-toolbar-card {
  padding: 18px 22px;
}

.products-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(160px, 0.8fr));
  gap: 14px;
  align-items: end;
}

.sales-history-toolbar {
  grid-template-columns: minmax(240px, 1.4fr) repeat(5, minmax(130px, 0.72fr)) minmax(180px, 0.9fr);
}

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

.admin-products-toolbar {
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, 0.75fr)) minmax(128px, 0.45fr);
}

.storefront-toolbar-paged {
  grid-template-columns: minmax(220px, 1.45fr) minmax(150px, 0.75fr) minmax(156px, 0.58fr) minmax(170px, 0.82fr);
}

.catalog-view-field {
  min-width: 156px;
}

.catalog-view-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.catalog-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-view-button + .catalog-view-button {
  border-left: 1px solid var(--line);
}

.catalog-view-button svg {
  width: 19px;
  height: 19px;
}

.catalog-view-button.is-active {
  background: var(--accent);
  color: #fff;
}

.sales-toolbar-paged {
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.75fr));
}

.toolbar-field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.toolbar-field-summary {
  align-content: end;
}

.toolbar-field-summary p {
  margin: 0;
}

.toolbar-field span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.product-editor-card {
  display: grid;
  gap: 22px;
  align-items: start;
  align-content: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-editor-card.is-editing {
  border-color: #c58037;
  background: linear-gradient(180deg, var(--surface-alt), var(--surface-tint));
  box-shadow: 0 18px 38px rgba(197, 128, 55, 0.12);
}

.discount-config-shell {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface-alt));
}

.discount-config-note {
  margin: 0;
}

.editor-mode-shell {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  grid-column: 1 / -1;
}

.editor-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3e4d1;
  color: #84542b;
  border: 1px solid #d5b08a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editor-preview-shell {
  display: grid;
  gap: 14px;
  align-content: start;
}

.editor-preview-shell-side {
  position: static;
}

.products-read-shell,
.products-table-content {
  display: grid;
  gap: 18px;
}

.products-read-shell {
  position: sticky;
  top: 18px;
  align-self: start;
}

.products-table-page-shell {
  display: grid;
  gap: 18px;
}

.bulk-edit-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.orders-bulk-toolbar {
  margin-top: 14px;
  grid-template-columns: auto minmax(180px, 1fr) minmax(170px, 0.9fr) auto auto;
}

.products-read-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.editor-preview-shell-side .preview-card {
  max-width: 460px;
}

.preview-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  padding: 16px;
}

.preview-card-wide {
  max-width: 520px;
}

.product-editor-card .stack-form {
  align-content: start;
  gap: 16px;
}

.preview-image-wrap {
  height: 220px;
  background: var(--surface-tint);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.preview-content {
  display: grid;
  gap: 12px;
}

.preview-category {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-content h5 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.preview-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: 3px;
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

:root[data-theme="dark"] .toolbar-field select,
:root[data-theme="dark"] .toolbar-field input,
:root[data-theme="dark"] .toolbar-field textarea {
  background: var(--surface-strong);
  color: var(--ink);
  border-color: var(--line);
}

.inline-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.empty-state,
.muted-text {
  color: var(--muted);
}

.order-card,
.inventory-card {
  justify-content: space-between;
  align-items: start;
  border: 1px solid var(--line);
  padding: 14px 16px;
  background: var(--surface-soft);
}

.inventory-card {
  flex-wrap: wrap;
}

.inventory-actions,
.order-card-side,
.admin-order-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.order-select-wrap {
  display: grid;
  place-items: start;
  width: 34px;
  min-width: 34px;
}

.order-select-wrap input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.inventory-card .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inventory-card .actions .secondary-button {
  width: auto;
  min-width: 104px;
  padding: 0 12px;
}

.orders-status-settings-list {
  display: grid;
  gap: 14px;
}

.settings-collapsible-shell {
  display: grid;
  gap: 16px;
}

.settings-collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.settings-collapsible-toggle strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.settings-collapsible-chevron {
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.settings-collapsible-toggle.is-open .settings-collapsible-chevron {
  transform: rotate(180deg);
}

.settings-collapsible-content {
  display: grid;
  gap: 16px;
}

.order-status-editor-row {
  display: grid;
  grid-template-columns: 180px 220px minmax(0, 1fr) 160px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.order-status-editor-message {
  min-width: 0;
}

.order-status-editor-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.products-table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.admin-view-field {
  min-width: 128px;
}

.admin-products-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.admin-product-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  padding: 16px;
  min-height: 100%;
}

.admin-product-card.is-hidden-product {
  opacity: 0.72;
  border-style: dashed;
}

.admin-product-card-top {
  display: grid;
  grid-template-columns: auto 82px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-card-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.admin-product-card-media {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  overflow: hidden;
}

.admin-product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-product-card-media span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--muted);
}

.admin-product-card-title {
  min-width: 0;
}

.admin-product-card-title h4 {
  margin: 4px 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.75rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.admin-product-card-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-product-card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}

.admin-product-card-meta span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px;
}

.admin-product-card-meta small {
  color: var(--muted);
}

.admin-product-card-actions .small-button {
  flex: 1 1 92px;
}

.admin-product-card-empty {
  grid-column: 1 / -1;
}

.products-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--surface);
}

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

.products-table th {
  background: var(--surface-tint);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.products-table tbody tr.is-editing {
  background: var(--surface-soft);
}

.debt-board {
  display: grid;
  gap: 14px;
}

.debt-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  padding: 18px;
}

.debt-card h4 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.debt-card p {
  margin: 0 0 8px;
}

.debt-card-side {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.debt-card-side strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.15rem;
  line-height: 1;
}

.debt-payment-history {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.debt-payment-history strong {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.debt-payment-history p {
  color: var(--muted);
}

.agenda-toolbar {
  align-items: end;
}

.todo-column-list,
.todo-column-category {
  grid-column: 1 / -1;
}

.agenda-list-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.agenda-list-rail {
  position: sticky;
  top: 0;
}

.agenda-list-rail-items {
  display: grid;
  gap: 10px;
}

.agenda-list-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.agenda-list-pill-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.agenda-list-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 1rem;
}

.agenda-list-pill:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: 0 10px 22px rgba(59, 42, 30, 0.08);
}

.agenda-list-pill.is-active {
  border-color: rgba(196, 154, 107, 0.8);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface-alt));
}

.agenda-list-pill-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.agenda-list-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
}

.agenda-list-stage .agenda-task-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.todo-column-category .agenda-task-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.agenda-todo-grid {
  align-items: start;
}

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

.agenda-quick-add {
  display: grid;
  gap: 12px;
}

.agenda-quick-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agenda-quick-add-actions > * {
  flex: 1 1 180px;
}

.agenda-advanced-fields {
  display: grid;
  gap: 18px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.agenda-task-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.todo-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.todo-column {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(168, 134, 99, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.todo-column-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.todo-column h3,
.agenda-task-card h4 {
  margin: 0;
  font-size: 1.55rem;
}

.todo-column-head .muted-text,
.todo-empty-state p,
.agenda-task-card p {
  margin: 0;
}

.todo-empty-state {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--surface-alt) 86%, transparent);
}

.agenda-task-list {
  display: grid;
  gap: 12px;
}

.agenda-task-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(59, 42, 30, 0.06);
  cursor: grab;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.agenda-card-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agenda-collapse-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent);
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.agenda-task-body {
  display: grid;
  gap: 10px;
}

.agenda-task-card.is-collapsed .agenda-task-body {
  display: none;
}

.agenda-task-card.is-selected {
  border-color: rgba(196, 154, 107, 0.92);
  box-shadow: 0 0 0 3px rgba(196, 154, 107, 0.14), 0 18px 30px rgba(59, 42, 30, 0.12);
}

.agenda-task-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(59, 42, 30, 0.1);
}

.agenda-task-card:active {
  cursor: grabbing;
}

.agenda-task-card.is-dragging {
  opacity: 0.98;
  transform: rotate(0.6deg) scale(0.992);
  border-color: rgba(196, 154, 107, 0.92);
  box-shadow: 0 0 0 3px rgba(196, 154, 107, 0.14), 0 18px 30px rgba(59, 42, 30, 0.12);
}

.todo-column {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.todo-column-drop-active {
  border-color: rgba(196, 154, 107, 0.86);
  box-shadow: 0 0 0 3px rgba(196, 154, 107, 0.14);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface-alt));
}

.agenda-task-card-high {
  border-left: 4px solid #b87d2f;
}

.agenda-task-card-normal {
  border-left: 4px solid #607aa6;
}

.agenda-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.utility-meta-panel {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 0 var(--appbar-pad-x) var(--appbar-pad-y);
}

.utility-meta-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.utility-meta-logo {
  --appbar-logo-size: 96px;
}

.utility-meta-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.utility-meta-copy h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.94;
}

.utility-meta-details {
  display: grid;
  gap: 10px;
  align-content: center;
}

.utility-meta-detail {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--appbar-ink) 72%, transparent);
}

:root[data-storefront-appbar-layout="commerce"] .utility-header.has-meta-panel {
  gap: 0;
}

.agenda-task-chip-row,
.agenda-detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.agenda-category-chip,
.agenda-task-subtasks-badge,
.agenda-detail-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent);
  font-size: 0.94rem;
}

.agenda-tone-gold {
  color: #9e6a29;
  border-color: rgba(158, 106, 41, 0.3);
}

.agenda-tone-green {
  color: #2f7a57;
  border-color: rgba(47, 122, 87, 0.32);
}

.agenda-tone-red {
  color: #a65656;
  border-color: rgba(166, 86, 86, 0.3);
}

.agenda-tone-violet {
  color: #7360a8;
  border-color: rgba(115, 96, 168, 0.32);
}

.agenda-tone-blue {
  color: #5770a9;
  border-color: rgba(87, 112, 169, 0.3);
}

.agenda-tone-neutral {
  color: var(--ink);
}

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

.agenda-detail-shell,
.agenda-detail-empty {
  display: grid;
  gap: 14px;
}

.agenda-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.agenda-detail-title h3,
.agenda-subtasks-head h4 {
  margin: 0;
  font-size: 1.7rem;
}

.agenda-detail-copy p {
  margin: 0;
}

.agenda-detail-meta {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 88%, transparent);
}

.agenda-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.agenda-inline-form label {
  display: grid;
  gap: 8px;
}

.agenda-inline-form label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agenda-subtasks-panel {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.agenda-subtasks-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.agenda-detail-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
}

.agenda-subtask-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

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

.agenda-subtask-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.agenda-subtask-row.is-done {
  opacity: 0.82;
}

.agenda-subtask-copy {
  display: grid;
  gap: 4px;
}

.agenda-subtask-copy small {
  color: var(--muted);
}

.agenda-subtask-row.is-done .agenda-subtask-copy strong {
  text-decoration: line-through;
}

.agenda-subtask-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 700;
}

.agenda-list {
  display: grid;
  gap: 16px;
}

.agenda-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.agenda-card-reviewed {
  opacity: 0.92;
  border-style: dashed;
}

.agenda-card h3 {
  font-size: 1.8rem;
}

.agenda-card p {
  margin: 0;
}

.agenda-inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

.agenda-inline-link:hover {
  opacity: 0.88;
}

.agenda-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agenda-inline-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 700;
}

.agenda-inline-chip:hover {
  background: var(--surface-alt);
}

.agenda-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.agenda-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agenda-urgency-danger {
  border-color: rgba(181, 76, 76, 0.44);
  color: #b54c4c;
}

.agenda-urgency-warning {
  border-color: rgba(184, 125, 47, 0.44);
  color: #b87d2f;
}

.agenda-urgency-info {
  border-color: rgba(96, 122, 166, 0.4);
  color: #607aa6;
}

:root[data-theme="dark"] .agenda-urgency-danger {
  color: #ff9c9c;
}

:root[data-theme="dark"] .agenda-urgency-warning {
  color: #f3c57f;
}

:root[data-theme="dark"] .agenda-urgency-info {
  color: #c2d3ff;
}

:root[data-theme="dark"] .agenda-inline-chip {
  background: #2a211b;
  border-color: #6a5542;
}

:root[data-theme="dark"] .agenda-inline-chip:hover {
  background: #33281f;
}

.todo-column .agenda-badge {
  min-width: 48px;
}

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

:root[data-theme="dark"] .todo-column {
  background:
    linear-gradient(180deg, rgba(196, 154, 107, 0.14), rgba(32, 25, 20, 0)),
    linear-gradient(180deg, #2a211b, #201914);
  border-color: #6a5542;
}

:root[data-theme="dark"] .agenda-task-card {
  background: linear-gradient(180deg, #2a211b, #201914);
  border-color: #6a5542;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .agenda-list-pill {
  background: linear-gradient(180deg, #2a211b, #201914);
  border-color: #6a5542;
}

:root[data-theme="dark"] .agenda-list-pill.is-active {
  background: linear-gradient(180deg, rgba(196, 154, 107, 0.18), #201914);
  border-color: rgba(196, 154, 107, 0.9);
}

:root[data-theme="dark"] .agenda-detail-meta,
:root[data-theme="dark"] .agenda-subtask-row,
:root[data-theme="dark"] .agenda-subtask-toggle {
  background: linear-gradient(180deg, #2a211b, #201914);
  border-color: #6a5542;
}

:root[data-theme="dark"] .agenda-task-card.is-selected {
  box-shadow: 0 0 0 3px rgba(196, 154, 107, 0.14), 0 18px 30px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .todo-empty-state {
  background: color-mix(in srgb, var(--surface-alt) 78%, transparent);
  border-color: #6a5542;
}

.cash-dashboard-grid {
  align-items: start;
}

.table-checkbox-col {
  width: 58px;
  min-width: 58px;
  text-align: center;
}

.table-checkbox-col input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.table-product-cell,
.table-status-stack {
  display: grid;
  gap: 8px;
}

.table-product-cell small {
  color: var(--muted);
  line-height: 1.45;
}

.table-status-stack {
  justify-items: start;
}

.table-featured-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e2c48a;
  background: #fff1cd;
  color: #8c611a;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-button {
  width: auto;
  min-width: 92px;
  padding: 0 14px;
}

.danger-button {
  border-color: #f0c5b9;
  color: #b34b30;
}

.table-empty {
  text-align: center;
  color: var(--muted);
}

:root[data-theme="dark"] .products-table-shell {
  background: #1c1713;
}

:root[data-theme="dark"] .products-table {
  background: #1c1713;
}

:root[data-theme="dark"] .products-table th {
  background: #2a211b;
  color: var(--accent-dark);
}

:root[data-theme="dark"] .products-table td {
  background: #1c1713;
  color: var(--ink);
}

:root[data-theme="dark"] .products-table tbody tr:hover td {
  background: #221c17;
}

:root[data-theme="dark"] .products-table tbody tr.is-editing td {
  background: #2a211b;
}

:root[data-theme="dark"] .table-product-cell small,
:root[data-theme="dark"] .table-empty {
  color: var(--muted);
}

.table-toolbar,
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pagination-bar-compact {
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pagination-shell {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.pagination-numbers {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.pagination-status {
  text-align: center;
}

.pagination-arrow-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.pagination-arrow-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-arrow-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.pagination-number {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-number:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-number.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pagination-number[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.pagination-ellipsis {
  padding: 0 4px;
  color: var(--muted);
  font-weight: 800;
}

:root[data-theme="dark"] .pagination-number {
  background: var(--surface-strong);
  color: var(--ink);
}

:root[data-theme="dark"] .pagination-arrow-button {
  background: var(--surface-strong);
  color: var(--ink);
}

:root[data-theme="dark"] .pagination-arrow-button:hover {
  background: var(--surface-alt);
  color: var(--accent-dark);
}

:root[data-theme="dark"] .pagination-number:hover {
  background: var(--surface-alt);
  color: var(--accent-dark);
}

:root[data-theme="dark"] .pagination-number.is-active {
  background: var(--accent);
  color: #17120f;
}

.product-list-card {
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.product-list-card.is-editing {
  border-color: #c58037;
  background: #fff5e8;
}

.product-list-main {
  display: grid;
  gap: 6px;
  max-width: 55ch;
}

.product-list-main small {
  color: var(--muted);
  line-height: 1.5;
}

.admin-section {
  margin-top: 32px;
}

.admin-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.summary-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--line);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.summary-card-clickable {
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.summary-card-clickable:hover,
.summary-card-clickable:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow: 0 16px 34px rgba(59, 42, 30, 0.14);
}

.summary-card strong {
  display: block;
  margin: 10px 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
}

.summary-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}

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

:root[data-theme="dark"] .product-editor-card.is-editing {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .discount-config-shell,
:root[data-theme="dark"] .preview-card,
:root[data-theme="dark"] .settings-group,
:root[data-theme="dark"] .settings-brand-preview,
:root[data-theme="dark"] .settings-footer-preview,
:root[data-theme="dark"] .hero-slide-item,
:root[data-theme="dark"] .image-editor-canvas-wrap {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .editor-mode-badge {
  background: #3a2a1d;
  color: #f3d4ae;
  border-color: #8a6747;
}

:root[data-theme="dark"] .summary-card {
  background: linear-gradient(180deg, #2a211b, #201914);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .summary-card strong {
  color: var(--ink);
}

:root[data-theme="dark"] .summary-label {
  color: var(--accent-dark);
}

.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 18px;
}

.admin-grid-expanded {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.cart-dialog {
  width: min(580px, calc(100% - 24px));
  border: 1px solid var(--line);
  padding: 24px;
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: min(86vh, calc(100dvh - 32px));
  overflow: auto;
}

.shopping-cart-dialog {
  padding-top: 42px;
  padding-right: 86px;
}

.notifications-dialog {
  width: min(520px, calc(100% - 24px));
  padding-top: 46px;
}

.notifications-dialog .dialog-header-auth {
  position: sticky;
  top: -2px;
  z-index: 2;
  margin: -6px -4px 18px;
  padding: 8px 56px 14px 4px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 250, 243, 0.98));
  border-bottom: 1px solid rgba(191, 159, 126, 0.28);
}

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

.notifications-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.notification-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(255, 248, 239, 0.98));
  padding: 16px;
  display: grid;
  gap: 12px;
}

.notification-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.notification-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-dismiss-button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.notification-dismiss-button:hover {
  background: rgba(175, 135, 90, 0.08);
}

.notification-card-actions {
  display: flex;
  justify-content: flex-end;
}

:root[data-theme="dark"] .notifications-dialog {
  background: linear-gradient(180deg, #211a15, #17120f);
  border-color: #5f4b38;
}

:root[data-theme="dark"] .notifications-dialog .dialog-header-auth {
  background: linear-gradient(180deg, rgba(33, 26, 21, 0.98), rgba(23, 18, 15, 0.98));
  border-bottom-color: rgba(122, 98, 74, 0.48);
}

:root[data-theme="dark"] .notifications-dialog .section-tag {
  color: var(--accent-dark);
}

:root[data-theme="dark"] .notifications-list .empty-state,
:root[data-theme="dark"] .notifications-dialog .muted-text {
  color: #d5c0ab;
}

:root[data-theme="dark"] .notifications-dialog h3,
:root[data-theme="dark"] .notifications-dialog strong {
  color: #fff5ea;
}

:root[data-theme="dark"] .notifications-toolbar > .muted-text {
  color: #ead7c3;
}

:root[data-theme="dark"] .notifications-toolbar .secondary-button {
  background: #2a211b;
  border-color: #725b46;
  color: #f4eadf;
}

:root[data-theme="dark"] .notifications-toolbar .secondary-button:hover {
  background: #34281f;
  border-color: #8d6d4f;
}

:root[data-theme="dark"] .notification-card {
  background: linear-gradient(180deg, #2b221c, #201914);
  border-color: #66513f;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .notification-card strong,
:root[data-theme="dark"] .notification-card p,
:root[data-theme="dark"] .notification-card .muted-text {
  color: #f5e8da;
}

:root[data-theme="dark"] .notification-card-head .muted-text,
:root[data-theme="dark"] .notification-card > .muted-text {
  color: #d3bda7;
}

:root[data-theme="dark"] .notification-card .status-badge.status-pendiente {
  background: rgba(196, 154, 107, 0.14);
  border-color: rgba(235, 196, 157, 0.6);
  color: #f3d9b8;
}

:root[data-theme="dark"] .notification-card .status-badge.status-en-proceso-de-envio {
  background: rgba(102, 139, 184, 0.16);
  border-color: rgba(143, 181, 228, 0.42);
  color: #dbeafc;
}

:root[data-theme="dark"] .notification-card .status-badge.status-entregado {
  background: rgba(150, 120, 88, 0.22);
  border-color: rgba(213, 180, 140, 0.48);
  color: #f5dfc0;
}

:root[data-theme="dark"] .notification-card-actions .secondary-button {
  background: #2a211b;
  border-color: #725b46;
  color: #f4eadf;
}

:root[data-theme="dark"] .notification-card-actions .secondary-button:hover {
  background: #34281f;
  border-color: #8d6d4f;
}

:root[data-theme="dark"] .notification-dismiss-button {
  border-color: #725b46;
  color: #f4eadf;
}

:root[data-theme="dark"] .notification-dismiss-button:hover {
  background: #34281f;
}

:root[data-theme="dark"] .customer-collection-shell {
  border-color: rgba(223, 170, 107, 0.18);
  background:
    radial-gradient(circle at top right, rgba(223, 170, 107, 0.08), transparent 38%),
    linear-gradient(180deg, #2a211b, #201914);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .customer-collection-empty {
  border-color: rgba(223, 170, 107, 0.16);
  background: linear-gradient(180deg, #31261e, #241c16);
}

:root[data-theme="dark"] .order-tracking-step {
  background: linear-gradient(180deg, #2a211b, #201914);
  border-color: #6a5542;
}

:root[data-theme="dark"] .order-tracking-step.is-complete {
  border-color: #6b9a7b;
}

:root[data-theme="dark"] .order-tracking-step.is-complete .order-tracking-step-dot {
  border-color: #8fc4a0;
  background: #8fc4a0;
}

:root[data-theme="dark"] .order-tracking-step.is-current {
  border-color: #bd8c56;
}

:root[data-theme="dark"] .order-tracking-step.is-current .order-tracking-step-dot {
  border-color: #efb170;
  background: #efb170;
}

:root[data-theme="dark"] .checkout-trust-item,
:root[data-theme="dark"] .detail-share-shortcuts,
:root[data-theme="dark"] .order-tracking-overview {
  background: linear-gradient(180deg, #2a211b, #201914);
}

:root[data-theme="dark"] .checkout-trust-item-icon {
  border-color: rgba(223, 170, 107, 0.3);
  background: rgba(223, 170, 107, 0.12);
  color: #f1c48e;
}

:root[data-theme="dark"] .order-tracking-overview-head span {
  color: #f1c48e;
}

:root[data-theme="dark"] .order-tracking-step.is-cancelled {
  border-color: #a06a63;
}

:root[data-theme="dark"] .order-tracking-step.is-cancelled .order-tracking-step-dot {
  border-color: #f1a894;
  background: #f1a894;
}

:root[data-theme="dark"] .utility-header {
  background:
    linear-gradient(180deg, rgba(18, 15, 13, 0.94), rgba(18, 15, 13, 0.9)),
    radial-gradient(circle at top left, rgba(209, 160, 110, 0.08), transparent 36%);
  border-color: rgba(112, 91, 72, 0.54);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 244, 232, 0.04);
}

:root[data-theme="dark"][data-storefront-appbar-style="solid"] .utility-header {
  background: rgba(22, 18, 15, 0.96);
  backdrop-filter: none;
}

:root[data-theme="dark"][data-storefront-appbar-style="solid"] .brand-lockup,
:root[data-theme="dark"][data-storefront-appbar-style="solid"] .utility-actions {
  background: rgba(39, 31, 26, 0.92);
}

:root[data-theme="dark"][data-storefront-appbar-style="glass"] .utility-header {
  backdrop-filter: blur(16px);
}

:root[data-theme="dark"][data-storefront-appbar-style="contrast"] .utility-header {
  background: linear-gradient(135deg, rgba(88, 55, 29, 0.96) 0%, rgba(120, 72, 34, 0.96) 100%);
  border-color: rgba(181, 137, 93, 0.48);
}

:root[data-theme="dark"] .brand-lockup,
:root[data-theme="dark"] .utility-actions {
  background: rgba(31, 25, 21, 0.72);
  border-color: rgba(112, 91, 72, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 244, 232, 0.03);
}

:root[data-theme="dark"] .utility-top-strip {
  border-bottom-color: rgba(240, 205, 167, 0.18);
  box-shadow: inset 0 -1px 0 rgba(255, 244, 232, 0.06);
}

:root[data-theme="dark"] .brand-logo {
  background: linear-gradient(145deg, #d1a06e 0%, #8f5f36 100%);
  border-color: rgba(255, 240, 222, 0.16);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 244, 232, 0.18);
}

:root[data-theme="dark"] .brand-logo.has-image {
  background: linear-gradient(180deg, #2f261f, #211b16);
}

:root[data-theme="dark"] .brand-caption {
  color: #d8bd9f;
}

:root[data-theme="dark"] .notification-button,
:root[data-theme="dark"] .storefront-inline-launch,
:root[data-theme="dark"] .theme-toggle.secondary-button,
:root[data-theme="dark"] .favorites-shortcut-button,
:root[data-theme="dark"] .user-access-button,
:root[data-theme="dark"] .cart-button {
  background: rgba(32, 26, 22, 0.82);
  border-color: rgba(112, 91, 72, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 244, 232, 0.03);
}

:root[data-theme="dark"] .notification-button:hover,
:root[data-theme="dark"] .storefront-inline-launch:hover,
:root[data-theme="dark"] .theme-toggle.secondary-button:hover,
:root[data-theme="dark"] .favorites-shortcut-button:hover,
:root[data-theme="dark"] .user-access-button:hover,
:root[data-theme="dark"] .cart-button:hover {
  background: rgba(42, 34, 28, 0.9);
}

:root[data-theme="dark"] .user-access-icon,
:root[data-theme="dark"] .cart-button-icon {
  background: rgba(37, 30, 25, 0.88);
  border-color: rgba(112, 91, 72, 0.44);
  color: #f0cda7;
}

:root[data-theme="dark"] .theme-toggle-icon,
:root[data-theme="dark"] .notification-button-icon,
:root[data-theme="dark"] .favorites-shortcut-icon,
:root[data-theme="dark"] .cart-button-icon,
:root[data-theme="dark"] .user-access-icon {
  filter: drop-shadow(0 0 10px rgba(209, 160, 110, 0.12));
}

:root[data-theme="dark"] .utility-meta-detail {
  color: rgba(244, 234, 223, 0.74);
}

:root[data-theme="dark"] .storefront-inline-actions-bar {
  border-color: rgba(121, 94, 70, 0.78);
  background: rgba(27, 22, 18, 0.94);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .storefront-inline-action-chip {
  border-color: rgba(121, 94, 70, 0.78);
  background: rgba(46, 36, 29, 0.88);
  color: #f4eadf;
}

:root[data-theme="dark"] .hero-banner {
  border: 1px solid rgba(128, 100, 75, 0.48);
  background:
    linear-gradient(115deg, rgba(10, 9, 8, 0.78), rgba(10, 9, 8, 0.26)),
    radial-gradient(circle at top left, rgba(209, 160, 110, 0.14), transparent 34%),
    url("https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow:
    0 28px 52px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 244, 232, 0.04);
}

:root[data-theme="dark"] .hero-overlay h2 {
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

:root[data-theme="dark"] .hero-text {
  color: rgba(244, 234, 223, 0.86);
}

:root[data-theme="dark"] .hero-pills span {
  border-color: rgba(255, 240, 222, 0.18);
  background: rgba(22, 18, 15, 0.42);
  color: #f6ebdf;
}

:root[data-theme="dark"] .storefront-showcase,
:root[data-theme="dark"] .storefront-discovery,
:root[data-theme="dark"] .promo-card,
:root[data-theme="dark"] .customer-collection-shell,
:root[data-theme="dark"] .home-section-builder-item,
:root[data-theme="dark"] .contact-card-editor,
:root[data-theme="dark"] .storefront-inline-editor,
:root[data-theme="dark"] .sidebar-panel {
  border-color: rgba(128, 100, 75, 0.46);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 244, 232, 0.04);
}

:root[data-theme="dark"] .storefront-showcase {
  background:
    radial-gradient(circle at top right, rgba(209, 160, 110, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(35, 28, 23, 0.98), rgba(22, 18, 15, 0.98));
}

:root[data-theme="dark"] .storefront-showcase-card {
  background: linear-gradient(180deg, #2a221d, #1d1814);
  border-color: rgba(128, 100, 75, 0.42);
}

:root[data-theme="dark"] .storefront-showcase-card.accent {
  background: linear-gradient(160deg, #d1a06e 0%, #87552c 100%);
  color: #fff8f1;
}

:root[data-theme="dark"] .storefront-showcase-card.accent span,
:root[data-theme="dark"] .storefront-showcase-card.accent .promo-label {
  color: rgba(255, 248, 241, 0.82);
}

:root[data-theme="dark"] .storefront-discovery {
  background:
    linear-gradient(180deg, rgba(31, 25, 21, 0.98), rgba(20, 16, 13, 0.98)),
    radial-gradient(circle at top left, rgba(209, 160, 110, 0.1), transparent 28%);
}

:root[data-theme="dark"] .quick-filter-chip {
  background: linear-gradient(180deg, #2c231d, #1e1814);
  border-color: rgba(128, 100, 75, 0.48);
  color: #f4eadf;
}

:root[data-theme="dark"] .quick-filter-chip.is-active {
  background: linear-gradient(160deg, #d1a06e 0%, #8b5c34 100%);
  color: #fff8f0;
}

:root[data-theme="dark"] .promo-card {
  background:
    linear-gradient(180deg, rgba(35, 28, 23, 0.98), rgba(22, 18, 15, 0.98)),
    radial-gradient(circle at top right, rgba(209, 160, 110, 0.08), transparent 30%);
}

:root[data-theme="dark"] .promo-card.accent {
  background: linear-gradient(160deg, #d1a06e 0%, #87552c 100%);
  color: #fff8f1;
}

:root[data-theme="dark"] .promo-card.accent .promo-label,
:root[data-theme="dark"] .promo-card.accent span {
  color: rgba(255, 248, 241, 0.82);
}

:root[data-theme="dark"] .storefront-inline-editor,
:root[data-theme="dark"] .sidebar-panel {
  background:
    linear-gradient(180deg, rgba(29, 24, 20, 0.98), rgba(16, 13, 11, 0.98)),
    radial-gradient(circle at top right, rgba(209, 160, 110, 0.08), transparent 22%);
}

:root[data-theme="dark"] .storefront-inline-footer {
  border-top-color: rgba(128, 100, 75, 0.46);
  background:
    linear-gradient(180deg, rgba(18, 14, 12, 0), rgba(26, 21, 18, 0.94) 16%),
    linear-gradient(180deg, rgba(29, 24, 20, 0.98), rgba(16, 13, 11, 0.98));
  box-shadow: 0 -18px 34px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .theme-preset-card,
:root[data-theme="dark"] .home-section-builder-item,
:root[data-theme="dark"] .contact-card-editor,
:root[data-theme="dark"] .settings-group,
:root[data-theme="dark"] .settings-brand-preview,
:root[data-theme="dark"] .settings-footer-preview {
  background: linear-gradient(180deg, #2a221d, #1c1713);
}

:root[data-theme="dark"] .theme-preset-card.is-active,
:root[data-theme="dark"] .color-swatch-button.is-active {
  box-shadow: 0 0 0 2px rgba(209, 160, 110, 0.18);
}

:root[data-theme="dark"] .theme-preset-swatches span,
:root[data-theme="dark"] .color-swatch-dot {
  border-color: rgba(255, 244, 232, 0.12);
}

:root[data-theme="dark"] .home-section-builder-handle,
:root[data-theme="dark"] .section-tag,
:root[data-theme="dark"] .promo-label,
:root[data-theme="dark"] .hero-kicker {
  color: #d8bd9f;
}

.checkout-form-grid {
  gap: 14px;
}

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

.checkout-delivery-helper {
  margin: -8px 0 2px;
}

.checkout-saved-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 2px;
}

.checkout-trust-block {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.checkout-trust-header {
  display: grid;
  gap: 6px;
}

.checkout-trust-header strong {
  font-size: 1rem;
}

.checkout-trust-header span {
  color: var(--muted);
  line-height: 1.5;
}

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

.checkout-trust-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.checkout-trust-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(197, 128, 55, 0.24);
  background: rgba(197, 128, 55, 0.1);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.checkout-trust-item-copy {
  display: grid;
  gap: 6px;
}

.checkout-trust-item strong {
  font-size: 0.98rem;
}

.checkout-trust-item span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.auth-dialog {
  position: relative;
  width: min(520px, calc(100% - 24px));
  padding-top: 28px;
  padding-right: 88px;
}

.orders-dialog {
  width: min(720px, calc(100% - 24px));
  padding-top: 28px;
  padding-right: 88px;
}

.order-tracking-card {
  display: flex;
  gap: 18px;
}

.order-tracking-spotlight {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  margin: 14px 0 12px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.order-tracking-spotlight strong {
  font-size: 1rem;
}

.order-tracking-spotlight span {
  color: var(--muted);
  line-height: 1.5;
}

.order-tracking-overview {
  display: grid;
  gap: 8px;
  margin: 14px 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
}

.order-tracking-overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.order-tracking-overview-head strong {
  font-size: 0.98rem;
}

.order-tracking-overview-head span {
  color: var(--accent-dark);
  font-weight: 800;
}

.order-tracking-overview-eta {
  color: var(--muted);
  line-height: 1.5;
}

.order-tracking-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-soft) 85%, var(--line));
}

.order-tracking-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.order-card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.order-tracking-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.order-tracking-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.order-tracking-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 12px;
  border: 2px solid #c8b4a3;
  background: transparent;
}

.order-tracking-step-label {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.order-tracking-step.is-complete {
  border-color: #7fa58c;
}

.order-tracking-step.is-complete .order-tracking-step-dot {
  border-color: #5f8b6d;
  background: #5f8b6d;
}

.order-tracking-step.is-current {
  border-color: #d39b5f;
  box-shadow: 0 8px 18px rgba(179, 128, 77, 0.14);
}

.order-tracking-step.is-current .order-tracking-step-dot {
  border-color: #d07d3d;
  background: #d07d3d;
}

.order-tracking-step.is-cancelled {
  border-color: #b57c73;
}

.order-tracking-step.is-cancelled .order-tracking-step-dot {
  border-color: #a5492f;
  background: #a5492f;
}

.order-tracking-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
  margin: 14px 0;
}

.order-tracking-items {
  display: grid;
  gap: 8px;
}

.order-internal-note-shell {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.order-internal-note-field textarea {
  min-height: 84px;
  resize: vertical;
}

.order-tracking-item-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.order-tracking-empty {
  padding: 18px;
}

.customer-collection-summary {
  margin: 6px 0 0;
  max-width: 66ch;
}

.customer-collection-empty {
  gap: 10px;
  align-items: start;
  max-width: 320px;
  padding: 20px;
  border-color: rgba(197, 128, 55, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 245, 237, 0.98));
}

.dashboard-section.is-collapsed .section-heading {
  margin-bottom: 8px;
}

.dashboard-section.is-collapsed .customer-collection-summary {
  margin-bottom: 0;
}

.cart-dialog::backdrop {
  background: rgba(59, 42, 30, 0.5);
}

.dialog-header-auth {
  justify-content: flex-start;
  align-items: start;
  margin-bottom: 18px;
}

.dialog-icon-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.dialog-icon-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.dialog-icon-close span:first-child {
  transform: rotate(45deg);
}

.dialog-icon-close span:last-child {
  transform: rotate(-45deg);
}

.cart-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 8px;
}

.cart-item:last-child {
  border-bottom: 0;
}

.quantity-row {
  flex-wrap: wrap;
  margin-top: 10px;
}

.quantity-row .secondary-button {
  width: auto;
  min-width: 42px;
  padding: 0 14px;
}

.account-summary {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 16px;
}

.account-summary p {
  margin: 0 0 10px;
}

.account-summary p:last-child {
  margin-bottom: 0;
}

.status-badge,
.stock-pill,
.profit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pendiente {
  background: #fff4dd;
  color: #9a6400;
  border-color: #eed79e;
}

.status-pagado {
  background: #e8f6ea;
  color: #2d7a3d;
  border-color: #b7ddbf;
}

.status-anulado {
  background: #fde9e5;
  color: #a5492f;
  border-color: #efc0b4;
}

.status-enviado {
  background: #e7f1fb;
  color: #1f5d93;
  border-color: #b9d2eb;
}

.status-en-preparacion {
  background: #fff0e3;
  color: #a85c14;
  border-color: #f1c89f;
}

.status-en-proceso-de-envio {
  background: #e7f1fb;
  color: #1f5d93;
  border-color: #b9d2eb;
}

.status-entregado {
  background: #ece8fb;
  color: #5a3ea3;
  border-color: #cec2f2;
}

.status-cancelado {
  background: #fdeaea;
  color: #a43838;
  border-color: #efc0c0;
}

.stock-ok {
  background: #edf7ed;
  color: #2d7a3d;
  border-color: #bfdcc2;
}

.profit-pill-profit {
  background: #edf7ed;
  color: #2d7a3d;
  border-color: #bfdcc2;
}

.profit-pill-low {
  background: #fff3df;
  color: #9b6400;
  border-color: #ead3a0;
}

.profit-pill-loss {
  background: #fde9e5;
  color: #b34b30;
  border-color: #f0c5b9;
}

.profit-pill-neutral {
  background: #f4efe8;
  color: var(--muted);
  border-color: var(--line);
}

.stock-low {
  background: #fff3df;
  color: #9b6400;
  border-color: #ead3a0;
}

.stock-empty {
  background: #fde9e5;
  color: #b34b30;
  border-color: #f0c5b9;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.google-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #f0c5b9;
  background: #fde9e5;
  color: #b34b30;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.google-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

:root[data-theme="dark"] .google-btn {
  background: #f8f4ef;
  color: #221a14;
  border-color: #f8f4ef;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .google-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

:root[data-theme="dark"] .google-btn img {
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 50%;
  background: #ffffff;
}

.auth-section-head {
  display: grid;
  gap: 6px;
}

.auth-section-head-register {
  margin-top: 18px;
}

.auth-form-title {
  font-size: 1.8rem;
}

.auth-divider {
  margin: 28px 0 34px;
  border: 0;
  border-top: 1px solid var(--line);
}

.empty-products {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px 22px;
  width: 100%;
  grid-column: 1 / -1;
  border-radius: var(--storefront-surface-radius);
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.products-grid[data-view="feature"] > .empty-products,
.products-grid[data-view="list"] > .empty-products,
.products-grid[data-view="grid"] > .empty-products {
  grid-column: 1 / -1;
  max-width: none;
}

.user-card,
.admin-order-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 16px;
}

.inventory-row {
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 16px;
}

.inventory-cluster {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  padding: 18px;
}

.inventory-cluster-priority {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, var(--danger-soft) 18%), var(--surface-soft));
}

.inventory-cluster-stable {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--success-soft) 12%), var(--surface-soft));
}

.inventory-cluster-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.inventory-cluster-header h4 {
  margin: 4px 0 6px;
  font-size: 1.28rem;
}

.inventory-cluster-copy {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.inventory-cluster-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 800;
  color: var(--ink);
}

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

.compact-empty-state {
  margin: 0;
  border: 1px dashed var(--line);
  padding: 18px;
  background: var(--surface);
}

.inventory-row-main,
.inventory-row-meta {
  flex-wrap: wrap;
}

.inventory-row-main span {
  color: var(--muted);
  font-weight: 700;
}

.inventory-row-meta {
  justify-content: flex-end;
}

.inventory-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

.inventory-row-critical {
  border-left: 4px solid #d9644a;
}

.inventory-row-low {
  border-left: 4px solid #d0a35a;
}

.inventory-row-stable {
  border-left: 4px solid #5fa06a;
}

.inventory-row-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(360px, 1.2fr);
  gap: 18px;
  width: 100%;
}

.inventory-row-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.inventory-row-heading strong {
  font-size: 1.12rem;
}

.inventory-row-category {
  font-size: 0.72rem;
}

.inventory-row-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.inventory-row-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.inventory-chip-group-inline {
  margin-top: 4px;
}

.inventory-stock-caption {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.inventory-price-readout {
  display: grid;
  gap: 6px;
}

.inventory-toolbar {
  align-items: start;
  flex-wrap: wrap;
}

.inventory-mode-note {
  max-width: 46ch;
}

.inventory-toolbar-actions {
  gap: 14px;
}

.inventory-select-wrap {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
}

.inventory-select-wrap input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.dashboard-grid.inventory-sales-grid {
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 0.78fr);
}

.inventory-stock-form {
  display: grid;
  gap: 14px;
  flex: 1 1 520px;
  width: 100%;
}

.inventory-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.inventory-chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.preview-cost-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.sales-catalog-grid,
.sales-cart-list,
.sales-history-list,
.sales-ranking-list {
  display: grid;
  gap: 16px;
}

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

.sale-product-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.sale-product-card.is-selected {
  border-color: #c58037;
  box-shadow: 0 12px 28px rgba(197, 128, 55, 0.12);
}

.sale-product-card:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sale-product-card:disabled:hover {
  transform: none;
}

.sale-product-media {
  position: relative;
  display: grid;
  align-items: end;
  height: 168px;
  overflow: hidden;
  background: var(--surface-tint);
}

.sale-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sale-product-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 18px rgba(59, 42, 30, 0.12);
  pointer-events: none;
  z-index: 1;
}

.sale-product-gallery-dot {
  width: 8px;
  min-width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(90, 67, 48, 0.26);
}

.sale-product-gallery-dot.is-active {
  background: var(--accent);
}

.sale-product-body,
.sale-product-topline,
.sale-product-actions,
.sale-line,
.sale-line-copy,
.sale-line-actions,
.sale-edit-item,
.sale-edit-item-copy,
.sales-total-card,
.sale-history-total {
  display: grid;
  gap: 10px;
}

.sale-product-topline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.sale-product-topline small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sale-product-actions {
  align-items: center;
}

.sale-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 16px;
}

.sale-product-selected {
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.sale-product-selected-muted {
  color: var(--muted);
  font-weight: 700;
}

.sales-cart-card {
  align-content: start;
  position: sticky;
  top: 18px;
  max-width: 380px;
  justify-self: end;
  width: 100%;
}

.sale-line {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 14px;
}

.sale-edit-dialog {
  width: min(1100px, calc(100% - 24px));
  max-height: min(92vh, 940px);
  padding-top: 28px;
  padding-right: 88px;
}

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

.sale-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.sale-edit-main,
.sale-edit-aside,
.sale-edit-summary {
  display: grid;
  gap: 16px;
}

.sale-edit-section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  padding: 18px;
}

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

.sale-edit-grid-compact .toolbar-field {
  min-width: 0;
}

.sale-edit-field-wide {
  grid-column: 1 / -1;
}

.sale-edit-items {
  display: grid;
  gap: 14px;
}

.sale-edit-item {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 14px;
}

.sale-edit-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sale-edit-item-copy span,
.sale-edit-item-copy small {
  color: var(--muted);
}

.sale-edit-item-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sale-edit-summary-card {
  position: sticky;
  top: 18px;
}

.sale-edit-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.sale-edit-summary-line span:last-child {
  text-align: right;
}

.sale-edit-summary-line.is-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
}

.sale-edit-summary-block {
  display: grid;
  gap: 10px;
}

.sale-edit-status-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.5;
}

.sale-edit-history {
  display: grid;
  gap: 12px;
}

.sale-edit-history-entry {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.sale-edit-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.sale-edit-history-head span,
.sale-edit-history-reason {
  color: var(--muted);
}

.sale-edit-history-reason {
  margin: 0;
}

.sale-edit-line-summary {
  color: var(--muted);
  font-weight: 700;
}

.sale-edit-actions {
  justify-content: end;
}

@media (max-width: 920px) {
  .sale-edit-layout {
    grid-template-columns: 1fr;
  }

  .sale-edit-summary-card {
    position: static;
  }

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

@media (max-width: 640px) {
  .sale-edit-dialog {
    width: min(100%, calc(100% - 12px));
    max-height: 96vh;
    padding-right: 22px;
  }

  .sale-edit-grid,
  .sale-edit-item-grid {
    grid-template-columns: 1fr;
  }

  .sale-edit-item-head {
    flex-direction: column;
    align-items: stretch;
  }

  .sale-edit-actions {
    justify-content: stretch;
  }

  .sale-edit-actions .primary-button,
  .sale-edit-actions .secondary-button {
    width: 100%;
  }
}

.sale-line-copy span,
.sale-line-copy small {
  color: var(--muted);
}

.sale-line-copy > small:not(.sale-line-summary) {
  display: none;
}

.sale-line-summary {
  color: var(--ink);
  font-weight: 700;
}

.sale-line-editor {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.sale-inline-field-wide {
  grid-column: 1 / -1;
}

.sale-customer-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-tint));
}

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

.sale-customer-field-wide {
  grid-column: 1 / -1;
}

.invoice-actions {
  justify-content: stretch;
}

.sale-line-editor.has-financial-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sale-inline-field {
  display: grid;
  gap: 6px;
}

.sale-inline-field span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sale-money-input {
  width: 100%;
  min-width: 0;
  text-align: left;
  font-weight: 800;
}

.sale-line-actions {
  grid-template-columns: repeat(4, auto);
  align-items: center;
  justify-content: start;
}

.sale-quantity-input {
  width: 76px;
  min-width: 76px;
  text-align: center;
  font-weight: 800;
  padding-inline: 10px;
}

.sales-total-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-tint));
  padding: 16px;
}

.sales-total-card strong {
  font-size: 2rem;
  line-height: 1;
}

.sale-history-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.sale-history-total {
  justify-items: end;
}

.executive-sale-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.executive-sale-detail {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.executive-sale-detail-block {
  display: grid;
  gap: 8px;
}

.executive-sale-detail-block > strong {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-sale-detail-list {
  display: grid;
  gap: 6px;
}

.executive-sale-detail-list span {
  color: var(--ink);
  line-height: 1.5;
}

.cash-close-card,
.sales-ranking-item,
.sales-ranking-copy {
  display: grid;
  gap: 12px;
}

.frequent-customer-card p {
  margin: 0;
}

.cash-close-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-tint));
  padding: 16px;
}

.cash-close-card strong {
  font-size: 2rem;
  line-height: 1;
}

.order-template-actions {
  display: grid;
  gap: 8px;
  width: 100%;
}

.order-template-actions .small-button {
  width: 100%;
}

.sales-ranking-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 14px;
}

.sales-ranking-copy {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.sales-ranking-copy small {
  color: var(--muted);
}

.sales-ranking-index {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font-weight: 800;
  color: var(--accent-dark);
}

.inventory-row-readonly .inventory-row-meta-static {
  flex-direction: column;
  align-items: end;
  justify-content: space-between;
}

.dashboard-body {
  background:
    var(--dashboard-radial),
    var(--dashboard-wash),
    var(--bg);
}

.dashboard-header {
  display: contents;
}

.dashboard-body .dashboard-titlebar,
.dashboard-body .dashboard-header-meta {
  position: sticky;
  top: 0;
  z-index: 24;
  padding-top: 14px;
  padding-bottom: 12px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 251, 245, 0.94));
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 28px rgba(53, 37, 25, 0.08);
}

:root[data-theme="dark"] .dashboard-body .dashboard-titlebar,
:root[data-theme="dark"] .dashboard-body .dashboard-header-meta {
  background:
    linear-gradient(180deg, rgba(28, 22, 18, 0.98), rgba(28, 22, 18, 0.94));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.dashboard-titlebar {
  min-width: 0;
  grid-area: title;
  align-self: center;
}

.dashboard-header-actions {
  grid-area: nav;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding-bottom: 0;
}

.dashboard-header-meta {
  grid-area: actions;
}

.dashboard-main {
  grid-area: main;
  min-width: 0;
}

.quick-jump-shell {
  position: sticky;
  top: 88px;
  z-index: 18;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(197, 128, 55, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 251, 245, 0.94));
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(53, 37, 25, 0.08);
  transition:
    padding 0.18s ease,
    gap 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

:root[data-theme="dark"] .quick-jump-shell {
  background:
    linear-gradient(180deg, rgba(28, 22, 18, 0.98), rgba(28, 22, 18, 0.94));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.quick-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.quick-jump-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 68%, white);
  color: inherit;
  flex: 0 0 auto;
}

.quick-jump-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.9;
}

.quick-jump-label {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.01em;
}

.quick-jump-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(53, 37, 25, 0.08);
}

.quick-jump-link-current {
  border-color: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, var(--accent) 8%, var(--surface-alt)));
  color: var(--accent-dark);
}

.quick-jump-link-current .quick-jump-icon {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  background: color-mix(in srgb, var(--accent) 20%, var(--surface));
  color: var(--accent-dark);
}

.quick-jump-shell.is-condensed {
  gap: 8px;
  padding: 9px 10px;
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 252, 248, 0.96));
  box-shadow: 0 10px 18px rgba(53, 37, 25, 0.1);
}

.quick-jump-shell.is-condensed .quick-jump-link {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.quick-jump-shell.is-condensed .quick-jump-link:not(.quick-jump-link-current) {
  gap: 0;
  padding-inline: 8px;
}

.quick-jump-shell.is-condensed .quick-jump-icon {
  width: 24px;
  height: 24px;
}

.quick-jump-shell.is-condensed .quick-jump-icon svg {
  width: 13px;
  height: 13px;
}

.quick-jump-shell.is-condensed .quick-jump-label {
  letter-spacing: 0;
}

.quick-jump-shell.is-condensed .quick-jump-link:not(.quick-jump-link-current) .quick-jump-label {
  width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}

.quick-jump-shell.is-condensed .quick-jump-link-current {
  padding-inline: 14px;
}

:root[data-theme="dark"] .quick-jump-shell.is-condensed {
  background:
    linear-gradient(180deg, rgba(28, 22, 18, 0.98), rgba(28, 22, 18, 0.96));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.dashboard-header-actions .secondary-link,
.dashboard-header-actions .dashboard-user-chip {
  flex: 0 0 auto;
}

.dashboard-header-actions .dashboard-user-chip {
  margin-left: 0;
}

.dashboard-header-actions .dashboard-header-nav {
  grid-column: 1 / -1;
}

.dashboard-titlebar h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.94;
}

.dashboard-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.dashboard-user-chip strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-main,
.dashboard-section,
.dashboard-grid {
  display: grid;
  gap: 22px;
}

.dashboard-grid {
  align-items: start;
}

.dashboard-hero {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-alt));
  box-shadow: var(--shadow);
}

.dashboard-copy {
  margin: 12px 0 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.6;
}

.product-page-main {
  display: grid;
  gap: 26px;
}

.detail-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.detail-breadcrumbs a {
  color: var(--accent-dark);
  text-decoration: none;
}

.product-detail-shell {
  display: grid;
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.detail-media {
  position: relative;
  min-height: 420px;
  background: linear-gradient(180deg, var(--surface-alt), var(--surface-tint));
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-media img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  cursor: default;
}

.detail-gallery-thumbs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.detail-thumb {
  height: 78px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.detail-thumb.is-active {
  border-color: #c58037;
  box-shadow: 0 10px 20px rgba(197, 128, 55, 0.12);
}

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

.detail-variants {
  display: grid;
  gap: 12px;
}

.detail-variant-summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.detail-variant-summary span {
  color: var(--muted);
  font-weight: 600;
}

.detail-variant-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.detail-variant-pill {
  display: grid;
  gap: 6px;
  align-items: start;
  justify-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.detail-variant-pill.is-active {
  border-color: #c58037;
  background: rgba(197, 128, 55, 0.12);
}

.detail-variant-pill span {
  color: var(--muted);
  font-weight: 700;
}

.detail-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.detail-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.detail-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 58ch;
}

.detail-price-row,
.detail-flags,
.detail-purchase-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-price-row,
.detail-flags {
  flex-wrap: wrap;
}

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

.button-inline-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.button-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.button-inline-icon svg {
  width: 18px;
  height: 18px;
}

.button-inline-label {
  min-width: 0;
}

.detail-share-shortcuts {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

.detail-share-shortcuts-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-share-shortcuts-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.detail-quick-actions .secondary-button,
.detail-share-shortcuts-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 16px;
}

.detail-share-shortcuts-actions .secondary-button {
  width: 100%;
}

.detail-quick-actions .secondary-button.is-active {
  border-color: rgba(184, 86, 57, 0.34);
  color: #b85639;
  background: rgba(255, 241, 235, 0.62);
}

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

.detail-highlight-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.detail-highlight-card strong {
  font-size: 1.2rem;
}

.detail-highlight-card span {
  color: var(--muted);
  line-height: 1.5;
}

.detail-purchase-row {
  align-items: end;
}

.detail-quantity-field {
  min-width: 160px;
}

.gallery-editor-shell,
.gallery-editor-list,
.gallery-editor-item,
.gallery-editor-fields {
  display: grid;
  gap: 14px;
}

.gallery-editor-shell {
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-tint));
}

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

.gallery-editor-item {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.gallery-editor-item.is-dragging {
  opacity: 0.58;
  transform: scale(0.995);
}

.gallery-editor-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.gallery-editor-item-head > div:first-child {
  min-width: 0;
}

.gallery-editor-item-head strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.gallery-editor-item-head .muted-text {
  margin: 8px 0 0;
}

.gallery-editor-item-body {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.gallery-editor-item-controls,
.gallery-editor-action-row {
  display: grid;
  gap: 8px;
  align-items: stretch;
}

.gallery-editor-item-controls {
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  width: 100%;
}

.gallery-editor-item-controls .secondary-button,
.gallery-editor-action-row .secondary-button {
  min-width: 0;
  width: 100%;
}

.gallery-editor-handle {
  cursor: grab;
  letter-spacing: 0.08em;
}

.gallery-editor-handle:active {
  cursor: grabbing;
}

.gallery-editor-fields {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.gallery-editor-grid > label {
  min-width: 0;
}

.gallery-editor-thumb {
  width: 100%;
  min-height: 160px;
  max-width: none;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.gallery-editor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-editor-fields input[type="file"] {
  width: 100%;
  min-width: 0;
}

.gallery-editor-field-wide {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .order-status-editor-row {
    grid-template-columns: 1fr 1fr;
  }

  .order-status-editor-message,
  .order-status-editor-actions {
    grid-column: 1 / -1;
  }

  .gallery-editor-grid {
    grid-template-columns: 1fr;
  }

  .gallery-editor-item-head {
    grid-template-columns: 1fr;
  }

  .gallery-editor-item-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-editor-item-body {
    grid-template-columns: 1fr;
  }

  .gallery-editor-thumb {
    min-height: 180px;
  }
}

.site-footer {
  margin-top: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 239, 229, 0.96));
  box-shadow: var(--shadow);
  padding: 24px;
}

:root[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, rgba(34, 27, 22, 0.96), rgba(23, 18, 15, 0.98));
}

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

.footer-line {
  margin: 0 0 12px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 800;
}

:root[data-theme="dark"] .site-footer .section-tag,
:root[data-theme="dark"] .site-footer .muted-text,
:root[data-theme="dark"] .site-footer .footer-line,
:root[data-theme="dark"] .site-footer strong,
:root[data-theme="dark"] .site-footer span {
  color: var(--ink);
}

:root[data-theme="dark"] .site-footer .section-tag,
:root[data-theme="dark"] .site-footer .footer-links a {
  color: var(--accent-dark);
}

.dashboard-grid {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.settings-grid {
  grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
}

.settings-editor-card,
.settings-preview-card,
.settings-footer-preview,
.settings-brand-preview {
  display: grid;
  gap: 18px;
}

.settings-editor-card {
  align-content: start;
  max-height: none;
  overflow: visible;
}

.settings-preview-card {
  align-content: start;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(132, 84, 43, 0.42) transparent;
}

.settings-preview-card::-webkit-scrollbar {
  width: 9px;
}

.settings-preview-card::-webkit-scrollbar-thumb {
  background: rgba(132, 84, 43, 0.34);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.billing-preview-sheet {
  display: grid;
  gap: 18px;
}

.billing-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-tint));
}

.billing-preview-head h5 {
  margin: 6px 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.billing-preview-meta {
  display: grid;
  gap: 8px;
  min-width: min(280px, 100%);
}

.billing-preview-meta p,
.billing-preview-grid p,
.billing-preview-totals p {
  margin: 0;
}

.billing-preview-block {
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.billing-preview-grid,
.billing-preview-totals {
  display: grid;
  gap: 10px;
}

.billing-preview-totals strong {
  font-size: 1rem;
  color: var(--ink);
}

.settings-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-tint));
  scroll-margin-top: 18px;
}

.settings-group.is-inline-preview-group {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), 0 14px 28px rgba(59, 42, 30, 0.08);
}

.settings-group-head {
  display: grid;
  gap: 6px;
}

.settings-group.is-inline-preview-group .settings-group-head h5,
.settings-group.is-inline-preview-group .inline-group-target {
  color: var(--accent);
}

.settings-group label.is-disabled,
.settings-group .inline-check.is-disabled {
  opacity: 0.72;
}

.settings-group-head h5,
.settings-brand-preview h5,
.settings-footer-preview h5,
.settings-hero-preview h5 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.85rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.settings-brand-preview {
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-tint));
}

.settings-brand-preview .brand-caption {
  margin-bottom: 8px;
}

.settings-hero-preview {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(58, 36, 15, 0.42), rgba(58, 36, 15, 0.06)),
    url("https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff9f3;
  overflow: hidden;
}

.settings-preview-slider-button {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 82px;
  border: 0;
  cursor: pointer;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(20, 15, 10, 0.42), rgba(20, 15, 10, 0));
  opacity: 0.74;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.settings-preview-slider-button::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  border-top: 3px solid #fffaf4;
  border-left: 3px solid #fffaf4;
}

.settings-preview-slider-prev {
  left: 0;
}

.settings-preview-slider-prev::before {
  transform: translate(-30%, -50%) rotate(-45deg);
}

.settings-preview-slider-next {
  right: 0;
  background: linear-gradient(270deg, rgba(20, 15, 10, 0.42), rgba(20, 15, 10, 0));
}

.settings-preview-slider-next::before {
  transform: translate(-70%, -50%) rotate(135deg);
}

.settings-preview-slider-button:hover,
.settings-preview-slider-button:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scaleX(1.06);
}

.settings-hero-overlay {
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
}

.settings-hero-overlay .hero-text {
  margin: 0;
  max-width: 54ch;
}

.settings-preview-pills {
  gap: 10px;
}

.settings-preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 14px;
}

.settings-preview-strip .promo-card {
  min-height: 0;
}

.settings-preview-dots {
  left: 24px;
  right: auto;
  bottom: 18px;
  transform: none;
}

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

.hero-slide-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.hero-slide-item.is-active {
  border-color: #c58037;
  box-shadow: 0 12px 28px rgba(197, 128, 55, 0.12);
}

.hero-slide-thumb {
  min-height: 110px;
  border-radius: 4px;
  background-color: var(--surface-tint);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid var(--line);
}

.hero-slide-fields {
  display: grid;
  gap: 12px;
}

.hero-slide-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-slide-actions .secondary-button {
  width: auto;
  min-width: 110px;
  padding: 0 16px;
}

.settings-footer-preview {
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-tint));
}

.settings-footer-copy {
  display: grid;
  gap: 10px;
}

.settings-footer-copy p {
  margin: 0;
}

.settings-preview-section {
  scroll-margin-top: 24px;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.settings-preview-section.is-active {
  border-color: rgba(197, 128, 55, 0.7);
  box-shadow: 0 16px 36px rgba(197, 128, 55, 0.16);
  transform: translateY(-2px);
}

.image-editor-dialog {
  width: min(920px, calc(100% - 32px));
}

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

.image-editor-canvas-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-tint));
  padding: 14px;
}

#product-image-canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  cursor: grab;
}

#product-image-canvas:active {
  cursor: grabbing;
}

#cancel-edit {
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

#product-form .form-actions {
  flex-wrap: wrap;
}

#product-form .form-actions > * {
  flex: 1 1 180px;
}

.image-editor-controls {
  display: grid;
  gap: 14px;
}

.image-editor-nudge {
  display: grid;
  gap: 10px;
}

.image-editor-nudge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 52px));
  grid-template-areas:
    ". up ."
    "left center right"
    ". down .";
  gap: 8px;
  justify-content: start;
}

#product-image-move-up {
  grid-area: up;
}

#product-image-move-left {
  grid-area: left;
}

#product-image-center {
  grid-area: center;
}

#product-image-move-right {
  grid-area: right;
}

#product-image-move-down {
  grid-area: down;
}

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

.returns-dashboard-grid,
.backup-dashboard-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.collection-card {
  display: grid;
  gap: 12px;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.collections-grid .account-empty-state {
  grid-column: 1 / -1;
}

.collection-card {
  align-content: start;
  padding: 22px;
}

.collection-card .account-item-head {
  align-items: start;
}

.collection-card .account-item-head > div {
  gap: 8px;
}

.collection-card .order-items-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-card .order-items-preview span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--surface));
  font-weight: 700;
}

.collection-settlement-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 14px;
}

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

.collection-card .form-actions > * {
  width: 100%;
  justify-content: center;
}

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

.returns-line-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.returns-line-card .account-item-head {
  align-items: start;
}

.returns-line-card .toolbar-field input,
.returns-line-card .toolbar-field select {
  min-width: 0;
}

.backup-summary-card,
.backup-restore-preview {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.backup-summary-card p,
.backup-restore-preview p {
  margin: 0;
}

.backup-restore-preview strong {
  color: var(--accent-dark);
}

.executive-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 0;
}

.stats-section-switcher-card {
  display: grid;
  gap: 16px;
}

.stats-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats-section-guide {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 10%, transparent), transparent 46%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 82%, var(--surface) 18%), var(--surface-alt));
}

.stats-section-guide-tag {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.stats-section-guide h5 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.stats-section-guide-body {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
}

.stats-section-tab {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  color: var(--text);
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.stats-section-tab:hover,
.stats-section-tab:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(39, 25, 18, 0.12);
}

.stats-section-tab.is-active {
  border-color: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface-alt));
  color: var(--accent-dark);
}

.stats-section-panel {
  display: grid;
  gap: 20px;
}

.stats-themed .dashboard-hero {
  background:
    radial-gradient(circle at top right, rgba(196, 154, 107, 0.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(110, 160, 120, 0.18), transparent 30%),
    linear-gradient(180deg, var(--surface-strong), var(--surface-alt));
}

.stats-game-shell {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(196, 154, 107, 0.18), transparent 28%),
    linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.stats-game-board {
  display: grid;
  gap: 18px;
}

.stats-level-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(196, 154, 107, 0.12), rgba(255, 255, 255, 0));
}

.stats-level-bronze {
  box-shadow: 0 14px 30px rgba(115, 77, 41, 0.14);
}

.stats-level-silver {
  box-shadow: 0 14px 30px rgba(111, 125, 141, 0.14);
}

.stats-level-gold,
.stats-level-platinum,
.stats-level-master {
  box-shadow: 0 18px 34px rgba(110, 160, 120, 0.12);
}

.stats-level-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.stats-level-head p,
.stats-level-progress small {
  margin: 0;
  color: var(--muted);
}

.stats-level-head strong {
  display: block;
  margin-top: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.3rem;
}

.stats-level-score {
  display: grid;
  gap: 4px;
  min-width: 110px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  text-align: center;
}

.stats-level-score span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats-level-score strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
}

.stats-level-progress {
  display: grid;
  gap: 8px;
}

.stats-level-progress-track {
  overflow: hidden;
  height: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 999px;
}

.stats-level-progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b98c56, #d5b07a 55%, #7ab27d);
}

.stats-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.stats-badge-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.stats-badge-card strong {
  font-size: 1rem;
}

.stats-badge-card small {
  color: var(--muted);
  line-height: 1.45;
}

.stats-badge-success {
  border-color: rgba(104, 168, 121, 0.42);
  background: linear-gradient(180deg, rgba(104, 168, 121, 0.12), rgba(255, 255, 255, 0));
}

.stats-badge-warning {
  border-color: rgba(196, 154, 107, 0.42);
  background: linear-gradient(180deg, rgba(196, 154, 107, 0.12), rgba(255, 255, 255, 0));
}

.stats-badge-neutral {
  border-color: var(--line);
}

.executive-alert-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.executive-alert-card:hover,
.executive-alert-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(39, 25, 18, 0.12);
}

.executive-alert-card strong {
  font-size: 1.02rem;
}

.executive-alert-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.executive-alert-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.executive-alert-action::after {
  content: "›";
  font-size: 1rem;
  line-height: 1;
}

.executive-alert-warning {
  border-color: rgba(184, 125, 47, 0.38);
}

.executive-alert-danger {
  border-color: rgba(181, 76, 76, 0.4);
}

.executive-alert-info {
  border-color: rgba(96, 122, 166, 0.36);
}

.executive-activity-grid {
  align-items: stretch;
}

.stats-comparison-grid {
  align-items: stretch;
}

.comparison-card {
  border-top: 4px solid var(--line);
}

.comparison-card strong {
  line-height: 1;
}

.comparison-card small {
  line-height: 1.5;
}

.comparison-card-positive {
  border-top-color: #4fa66d;
  background: linear-gradient(180deg, rgba(79, 166, 109, 0.08), rgba(255, 255, 255, 0)), linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.comparison-card-negative {
  border-top-color: #d85c5c;
  background: linear-gradient(180deg, rgba(216, 92, 92, 0.08), rgba(255, 255, 255, 0)), linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.comparison-card-neutral,
.cash-pulse-card {
  border-top-color: var(--accent);
}

.executive-activity-card p {
  margin: 0;
}

.stats-visual-grid {
  align-items: stretch;
}

.stats-chart-shell,
.stats-chart-list {
  display: grid;
  gap: 14px;
}

.stats-trend-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 240px;
}

.stats-trend-bar-card {
  display: grid;
  gap: 10px;
  align-items: end;
  text-align: center;
}

.stats-trend-bar-wrap {
  height: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
  display: flex;
  align-items: end;
  justify-content: center;
}

.stats-trend-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--accent-dark), var(--accent));
}

.stats-chart-row {
  display: grid;
  gap: 8px;
}

.stats-chart-meta {
  display: grid;
  gap: 2px;
}

.stats-chart-meta small {
  color: var(--muted);
}

.stats-chart-fill-track {
  height: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 85%, var(--line));
  overflow: hidden;
}

.stats-chart-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.stats-chart-fill-profit {
  background: linear-gradient(90deg, #3e8f62, #70b889);
}

.permission-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.permission-check {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.permission-check input {
  accent-color: var(--accent);
}

.roles-card-list,
.stats-detail-list {
  display: grid;
  gap: 14px;
}

:root[data-theme="dark"] .comparison-card-positive {
  background: linear-gradient(180deg, rgba(79, 166, 109, 0.16), rgba(32, 25, 20, 0)), linear-gradient(180deg, #2a211b, #201914);
}

:root[data-theme="dark"] .comparison-card-negative {
  background: linear-gradient(180deg, rgba(216, 92, 92, 0.16), rgba(32, 25, 20, 0)), linear-gradient(180deg, #2a211b, #201914);
}

:root[data-theme="dark"] .comparison-card-neutral,
:root[data-theme="dark"] .cash-pulse-card {
  background: linear-gradient(180deg, rgba(196, 154, 107, 0.15), rgba(32, 25, 20, 0)), linear-gradient(180deg, #2a211b, #201914);
}

:root[data-theme="dark"] .stats-section-tab {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.08));
}

:root[data-theme="dark"] .stats-section-tab.is-active {
  background: linear-gradient(180deg, rgba(196, 154, 107, 0.15), rgba(0, 0, 0, 0.08));
  color: var(--text-strong);
}

:root[data-theme="dark"] .stats-section-guide {
  background:
    radial-gradient(circle at top right, rgba(196, 154, 107, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.12));
}

:root[data-theme="dark"] .stats-themed .dashboard-hero,
:root[data-theme="dark"] .stats-game-shell {
  background:
    radial-gradient(circle at top right, rgba(196, 154, 107, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(110, 160, 120, 0.12), transparent 26%),
    linear-gradient(180deg, #261f19, #1d1712);
}

:root[data-theme="dark"] .stats-level-card,
:root[data-theme="dark"] .stats-badge-card,
:root[data-theme="dark"] .stats-level-score {
  background: linear-gradient(180deg, #2a211b, #201914);
}

.wholesale-tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.wholesale-tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.catalog-quantity-field {
  display: grid;
  gap: 6px;
}

.catalog-quantity-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-quantity-field input {
  min-width: 96px;
  height: 44px;
  text-align: center;
}

.wholesale-hero {
  align-items: center;
}

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

.wholesale-dashboard-grid {
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 1.08fr);
}

.wholesale-settings-card,
.wholesale-access-card,
.wholesale-products-list,
.wholesale-product-card,
.wholesale-product-body,
.wholesale-tier-editor {
  display: grid;
  gap: 16px;
}

.wholesale-products-list {
  gap: 18px;
}

.wholesale-product-card {
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  box-shadow: var(--shadow);
}

.wholesale-product-card.is-enabled {
  border-color: rgba(168, 134, 99, 0.72);
}

.wholesale-product-media {
  height: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

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

.wholesale-product-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.wholesale-price-row,
.wholesale-product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wholesale-price-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.92rem;
}

.wholesale-tiers-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface-alt));
}

.wholesale-tier-editor {
  gap: 10px;
}

.wholesale-tier-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(140px, 190px) auto;
  gap: 10px;
  align-items: end;
}

.wholesale-tier-row label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.wholesale-tier-row label span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .wholesale-product-card {
  background: linear-gradient(180deg, #241d18, #1f1914);
}

@media (max-width: 980px) {
  .wholesale-dashboard-grid,
  .returns-dashboard-grid,
  .backup-dashboard-grid,
  .wholesale-product-card {
    grid-template-columns: 1fr;
  }

  .wholesale-product-media {
    height: 220px;
  }

  .collections-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wholesale-tier-row {
    grid-template-columns: 1fr;
  }

  .catalog-quantity-field {
    grid-column: 1 / -1;
  }

  .agenda-card-head,
  .account-item-head {
    flex-direction: column;
  }

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

  .stats-trend-bars {
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    min-height: 200px;
  }

  .stats-trend-bar-wrap {
    height: 150px;
  }

  .stats-section-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-section-guide {
    padding: 16px;
  }

  .stats-section-guide h5 {
    font-size: 1.35rem;
  }

  .stats-level-head {
    grid-template-columns: 1fr;
  }

  .collection-settlement-grid,
  .collection-card .form-actions {
    grid-template-columns: 1fr;
  }
}

.account-item-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.account-item-card p {
  margin: 0;
}

.account-item-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.account-item-head div {
  display: grid;
  gap: 6px;
}

.account-item-head > div span {
  color: var(--muted);
}

.history-product-ticket-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.history-product-ticket-list {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.history-product-ticket-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface-alt));
}

.sale-history-card-focus {
  outline: 2px solid rgba(196, 154, 107, 0.95);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(196, 154, 107, 0.18);
  transition: box-shadow 0.2s ease, outline-color 0.2s ease;
}

.account-empty-state {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.account-empty-state p {
  margin: 0;
  color: var(--muted);
}

.customer-record-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.customers-entry-grid,
.customers-dashboard-grid,
.customer-insights-grid,
.customer-metrics-grid {
  align-items: start;
}

.customers-dashboard-grid {
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.25fr);
}

.customers-list-panel,
.customer-profile-panel,
.customer-profile-shell,
.customer-sales-list,
.customer-recommendation-list {
  display: grid;
  gap: 16px;
}

.customers-highlight-panel,
.customer-chip-list {
  display: grid;
  gap: 12px;
}

.customer-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}

.customer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font-weight: 700;
}

.customer-recommendation-card,
.customer-sale-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.customer-recommendation-card {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
}

.customer-recommendation-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.customer-recommendation-card p,
.customer-recommendation-card small {
  margin: 0;
}

.role-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.role-card-system {
  background: linear-gradient(180deg, var(--surface-soft), var(--surface-alt));
}

.role-permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.stats-commission-toolbar {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

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

.stats-commission-toolbar .toolbar-field-summary {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.stats-employee-toolbar .toolbar-field-summary {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.auth-helper-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-page-card {
  width: min(620px, 100%);
  padding: 28px;
}

.auth-page-brand {
  margin-bottom: 18px;
}

.auth-page-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.confirm-dialog-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.compact-dialog {
  width: min(420px, calc(100% - 24px));
}

.logo-dialog {
  width: min(520px, calc(100% - 24px));
}

.logo-preview-shell {
  display: grid;
  gap: 14px;
  align-items: start;
}

.brand-logo-preview {
  width: 96px;
  height: 96px;
}

.logo-dialog .form-actions {
  flex-wrap: wrap;
}

.logo-dialog .form-actions .primary-button,
.logo-dialog .form-actions .secondary-button {
  width: auto;
  min-width: 140px;
  padding: 0 18px;
}

.confirm-dialog .form-actions {
  flex-wrap: wrap;
}

.confirm-dialog .form-actions .primary-button,
.confirm-dialog .form-actions .secondary-button {
  width: auto;
  min-width: 140px;
  padding: 0 18px;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 60;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #edf7ed;
  border-color: #bfdcc2;
  color: #2d7a3d;
}

.toast-error {
  background: #fde9e5;
  border-color: #f0c5b9;
  color: #b34b30;
}

.toast-info {
  background: #e7f1fb;
  border-color: #b9d2eb;
  color: #1f5d93;
}

.current-user {
  outline: 2px solid rgba(168, 134, 99, 0.22);
}

.inline-form {
  display: grid;
  gap: 10px;
}

.user-card {
  display: grid;
  gap: 14px;
}

.admin-order-card {
  display: grid;
  gap: 14px;
}

.admin-order-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.order-items-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-items-preview span {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

:root[data-theme="dark"] .order-items-preview span {
  background: linear-gradient(180deg, #2a211b, #201914);
  color: var(--ink);
  border-color: #6a5542;
}

.history-change-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-change-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  font-size: 0.86rem;
  font-weight: 700;
}

.dashboard-hero-audit {
  background:
    linear-gradient(180deg, rgba(111, 90, 68, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dashboard-hero-kardex {
  background:
    linear-gradient(180deg, rgba(71, 114, 83, 0.11), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.summary-card-audit {
  border-top: 4px solid #8f7157;
}

.summary-card-kardex {
  border-top: 4px solid #5f8b6d;
}

.audit-history-card {
  border-left: 4px solid #8f7157;
  background:
    linear-gradient(180deg, rgba(143, 113, 87, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.audit-history-head {
  align-items: start;
}

.audit-history-meta {
  justify-items: end;
  text-align: right;
  gap: 8px;
}

.audit-history-changes span {
  border-style: dashed;
}

.kardex-product-focus {
  margin-bottom: 18px;
}

.kardex-product-focus-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(95, 139, 109, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.kardex-product-focus-card h3 {
  margin: 4px 0 8px;
}

.kardex-product-focus-metrics {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.kardex-entry-card {
  display: grid;
  gap: 14px;
  border-left: 4px solid #5f8b6d;
  background:
    linear-gradient(180deg, rgba(95, 139, 109, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.kardex-entry-head,
.kardex-entry-side,
.kardex-entry-grid {
  display: grid;
  gap: 10px;
}

.kardex-entry-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.kardex-entry-side {
  justify-items: end;
  text-align: right;
}

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

.kardex-entry-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kardex-quantity {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  line-height: 0.95;
}

.kardex-quantity-in {
  color: #2d7a3d;
}

.kardex-quantity-out {
  color: #a5492f;
}

.kardex-quantity-adjustment-positive {
  color: #1f5d93;
}

.kardex-quantity-adjustment-negative {
  color: #9a6400;
}

:root[data-theme="dark"] .kardex-product-focus-card {
  background:
    linear-gradient(180deg, rgba(91, 134, 105, 0.2), rgba(32, 25, 20, 0)),
    linear-gradient(180deg, #2a211b, #201914);
  border-color: #6a5542;
}

:root[data-theme="dark"] .dashboard-hero-audit,
:root[data-theme="dark"] .audit-history-card {
  background:
    linear-gradient(180deg, rgba(159, 124, 94, 0.18), rgba(32, 25, 20, 0)),
    linear-gradient(180deg, #2a211b, #201914);
  border-color: #6a5542;
}

:root[data-theme="dark"] .dashboard-hero-kardex,
:root[data-theme="dark"] .kardex-entry-card {
  background:
    linear-gradient(180deg, rgba(91, 134, 105, 0.18), rgba(32, 25, 20, 0)),
    linear-gradient(180deg, #2a211b, #201914);
  border-color: #6a5542;
}

:root[data-theme="dark"] .summary-card-audit {
  border-top-color: #c89d75;
}

:root[data-theme="dark"] .summary-card-kardex {
  border-top-color: #88c29a;
}

:root[data-theme="dark"] .audit-history-card {
  border-left-color: #c89d75;
}

:root[data-theme="dark"] .kardex-entry-card {
  border-left-color: #88c29a;
}

:root[data-theme="dark"] .kardex-quantity-in {
  color: #95d6a4;
}

:root[data-theme="dark"] .kardex-quantity-out {
  color: #f1a894;
}

:root[data-theme="dark"] .kardex-quantity-adjustment-positive {
  color: #acd2ff;
}

:root[data-theme="dark"] .kardex-quantity-adjustment-negative {
  color: #f0d094;
}

.user-access-button:hover,
.topbar-link:hover,
.cart-button:hover,
.floating-cart-toggle:hover,
.floating-whatsapp-link:hover,
.primary-button:hover,
.secondary-button:hover,
.link-button:hover {
  transform: translateY(-1px);
}

.hamburger-button:hover,
.icon-button:hover,
.dialog-icon-close:hover {
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1120px) {
  .storefront-showcase {
    grid-template-columns: 1fr;
  }

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

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

  .product-editor-card {
    grid-template-columns: 1fr;
  }

  .editor-preview-shell,
  .editor-preview-shell-side {
    position: static;
  }

  .products-read-split {
    grid-template-columns: 1fr;
  }

  .products-read-shell {
    position: static;
  }

  .storefront-toolbar,
  .product-detail-card,
  .detail-highlights {
    grid-template-columns: 1fr;
  }

  .admin-grid-expanded {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid,
  .roles-dashboard-grid,
  .stats-dashboard-grid,
  .settings-preview-strip {
    grid-template-columns: 1fr;
  }

  .gallery-editor-grid,
  .sale-customer-grid,
  .detail-variant-list {
    grid-template-columns: 1fr;
  }

  .customer-record-toolbar,
  .customer-recommendation-card {
    grid-template-columns: 1fr;
  }

  .hero-slide-item {
    grid-template-columns: 1fr;
  }

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

  .dashboard-grid.inventory-sales-grid {
    grid-template-columns: 1fr;
  }

  .sales-insights-grid {
    grid-template-columns: 1fr;
  }

  .quick-jump-shell {
    top: 74px;
    padding: 12px;
  }

  .quick-jump-link {
    flex: 1 1 180px;
    justify-content: flex-start;
  }

  .quick-jump-shell.is-condensed {
    padding: 8px;
  }

  .quick-jump-shell.is-condensed .quick-jump-link {
    flex: 1 1 140px;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .quick-jump-shell.is-condensed .quick-jump-link:not(.quick-jump-link-current) {
    flex: 0 0 auto;
    padding-inline: 7px;
  }

  .quick-jump-shell.is-condensed .quick-jump-icon {
    width: 22px;
    height: 22px;
  }

  .todo-board {
    grid-template-columns: 1fr;
  }

  .agenda-task-workspace {
    grid-template-columns: 1fr;
  }

  .agenda-list-layout {
    grid-template-columns: 1fr;
  }

  .agenda-list-rail {
    position: static;
  }

  .agenda-detail-panel {
    position: static;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-card:nth-child(4n) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 840px) {
  body.storefront-editing {
    overflow-x: hidden;
  }

  .site-frame {
    width: min(100%, calc(100% - 20px));
    padding-top: 18px;
  }

  body.storefront-editing .site-frame {
    padding-right: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .dashboard-shell {
    width: min(100%, calc(100% - 24px));
    padding-top: 18px;
  }

  .promo-strip,
  .right-column {
    grid-template-columns: 1fr;
  }

  .storefront-showcase-cards,
  .theme-color-grid {
    grid-template-columns: 1fr 1fr;
  }

  .utility-header {
    --appbar-pad-y: 14px;
    --appbar-pad-x: 16px;
    --appbar-logo-size: 70px;
    --appbar-brand-gap: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
  }

  .header-branding {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .brand-home-link {
    min-width: 0;
    flex: 1;
  }

  .brand-lockup {
    min-width: 0;
    gap: 12px;
  }

  .brand-lockup > div:last-child {
    min-width: 0;
  }

  #store-name {
    overflow-wrap: anywhere;
  }

  .utility-actions {
    width: 100%;
    justify-content: stretch;
    gap: 10px;
    flex-wrap: wrap;
  }

  .storefront-inline-launch {
    flex: 1 1 100%;
    justify-content: center;
  }

  .utility-header-main,
  :root[data-storefront-appbar-layout="commerce"] .utility-header-main {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  :root[data-storefront-appbar-layout="legacy"] .utility-header-main {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  :root[data-storefront-appbar-layout="legacy"] .utility-actions {
    gap: 10px;
  }

  .header-search-shell {
    min-width: 0;
    width: 100%;
  }

  .utility-meta-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "actions"
      "nav"
      "main";
    gap: 14px;
  }

  .dashboard-titlebar {
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-titlebar h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 0.96;
  }

  .user-access-button {
    border-left: 0;
    padding-left: 0;
    min-width: 0;
  }

  .theme-toggle-label {
    display: none;
  }

  :root[data-storefront-appbar-layout="legacy"] .utility-actions .theme-toggle-label {
    display: inline;
  }

  .theme-toggle[data-theme-toggle-style="text"] .theme-toggle-label {
    display: inline;
  }

  .theme-toggle.secondary-button {
    padding-inline: 12px;
  }

  .dashboard-header-actions {
    grid-area: nav;
    grid-template-columns: 1fr;
  }

  .dashboard-header-meta {
    grid-area: actions;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
    gap: 12px;
    width: 100%;
  }

  .dashboard-nav-groups-header {
    grid-template-columns: 1fr;
  }

  .dashboard-nav-groups-header .dashboard-nav-group {
    gap: 10px;
    padding: 12px 14px 14px;
  }

  .dashboard-nav-groups-header .dashboard-nav-group-title {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
  }

  .dashboard-nav-groups-header .dashboard-nav-group-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-nav-groups-header .dashboard-nav-group-links:has(> :only-child) {
    grid-template-columns: 1fr;
  }

  .dashboard-nav-groups-header .dashboard-nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 86%, var(--surface-alt));
    white-space: normal;
    line-height: 1.25;
    text-decoration: none;
  }

  .dashboard-nav-groups-header .secondary-link-current {
    background: rgba(181, 145, 104, 0.16);
    border-color: #d8b998;
    text-decoration: none;
  }

  .dashboard-header-meta .theme-toggle {
    min-height: 52px;
  }

  .dashboard-header-meta .dashboard-user-chip {
    min-width: 0;
    width: 100%;
  }

  .action-button {
    width: 100%;
  }

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

  .table-toolbar,
  .pagination-bar {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

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

  .sale-line-actions {
    grid-template-columns: repeat(2, auto);
  }

  .sale-line-editor.has-financial-fields {
    grid-template-columns: 1fr;
  }

  .sale-line-editor {
    grid-template-columns: 1fr;
  }

  .sales-cart-card {
    position: static;
  }

  .settings-editor-card,
  .settings-preview-card {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .storefront-inline-editor {
    width: 100vw;
    padding: 18px 14px 22px;
  }

  .storefront-inline-footer {
    margin-inline: -14px;
    margin-bottom: -22px;
    padding-inline: 14px;
  }

  .floating-cart-toggle,
  .floating-whatsapp-link,
  .storefront-mode-toggle {
    right: 14px;
    bottom: 14px;
  }

  .floating-cart-toggle.is-offset {
    bottom: 82px;
  }

  .floating-whatsapp-link {
    bottom: 82px;
  }

  .floating-whatsapp-link.is-offset {
    bottom: 150px;
  }

  .detail-purchase-row {
    flex-direction: column;
    align-items: stretch;
  }

  .toast-region {
    left: 12px;
    right: 12px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }

  .hero-overlay {
    padding: 28px 22px 56px;
  }

  .promo-strip {
    display: grid;
  }

  .settings-group {
    padding: 16px;
  }

  .products-grid {
    --catalog-card-min: 156px;
    --catalog-image-height: 236px;
  }

  .products-grid[data-density="compact"] {
    --catalog-card-min: 144px;
    --catalog-image-height: 196px;
    --catalog-card-padding: 12px;
  }

  .products-grid[data-density="mini"] {
    --catalog-card-min: 118px;
    --catalog-image-height: 158px;
    --catalog-card-padding: 8px;
    --catalog-card-gap: 8px;
  }

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

  .products-toolbar .toolbar-field-search,
  .products-toolbar .toolbar-field-summary {
    grid-column: 1 / -1;
  }

  .catalog-view-field {
    grid-column: 1 / -1;
  }

  .inventory-pricing-grid {
    grid-template-columns: 1fr;
  }

  .inventory-row-layout {
    grid-template-columns: 1fr;
  }

  .gallery-editor-item-body {
    grid-template-columns: 1fr;
  }

  .gallery-editor-item-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-editor-action-row .secondary-button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  body.storefront-editing .storefront-edit-surface,
  body.storefront-editing .customer-collection-shell,
  body.storefront-editing .catalog-shell,
  body.storefront-editing .utility-header,
  body.storefront-editing .storefront-showcase,
  body.storefront-editing .storefront-discovery {
    overflow-x: clip;
  }

  .storefront-showcase,
  .storefront-discovery {
    padding: 18px;
    border-radius: 18px;
  }

  .storefront-showcase-cards,
  .theme-color-grid {
    grid-template-columns: 1fr;
  }

  .home-section-builder-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gallery-editor-item {
    overflow: hidden;
  }

  .gallery-editor-item-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .storefront-inline-hotspot {
    top: 12px;
    right: 12px;
    left: auto !important;
    bottom: auto !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
  }

  .storefront-inline-hotspot svg {
    width: 18px;
    height: 18px;
  }

  .utility-header .storefront-inline-hotspot,
  .customer-collection-shell .storefront-inline-hotspot,
  .catalog-shell .storefront-inline-hotspot {
    top: 12px;
    right: 12px;
    bottom: auto;
    left: auto;
  }

  .utility-header .storefront-inline-actions-bar,
  .customer-collection-shell .storefront-inline-actions-bar,
  .catalog-shell .storefront-inline-actions-bar {
    top: 64px;
    right: 12px;
    left: 12px;
    bottom: auto;
  }

  .gallery-editor-item-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-editor-item-body {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .gallery-editor-thumb {
    width: 100%;
    max-width: 100%;
    min-height: 220px;
  }

  .gallery-editor-fields,
  .gallery-editor-grid,
  .gallery-editor-grid > label {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .gallery-editor-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .gallery-editor-grid input,
  .gallery-editor-grid select,
  .gallery-editor-grid textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .gallery-editor-field-wide {
    grid-column: auto;
  }

  .gallery-editor-action-row {
    grid-template-columns: 1fr;
  }

  .dashboard-nav-groups-header .dashboard-nav-group {
    padding: 12px;
  }

  .dashboard-nav-groups-header .dashboard-nav-group-title {
    font-size: 0.92rem;
  }

  .dashboard-nav-groups-header .dashboard-nav-group-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-nav-groups-header .dashboard-nav-link {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 0.94rem;
    letter-spacing: 0.03em;
    text-transform: none;
  }

  .sale-product-topline {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sale-product-topline .stock-pill {
    justify-self: start;
  }

  .site-frame {
    width: min(100%, calc(100% - 16px));
    padding-top: 14px;
  }

  .gallery-editor-shell {
    padding: 14px;
  }

  .gallery-editor-item {
    padding: 12px;
  }

  .utility-header {
    --appbar-radius: 22px;
    --appbar-pad-y: 10px;
    --appbar-pad-x: 10px;
    --appbar-logo-size: 54px;
    --appbar-brand-gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
  }

  .utility-top-strip {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.84rem;
  }

  .header-branding {
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 8px;
  }

  .brand-home-link {
    flex: 1 1 auto;
    width: 100%;
  }

  .brand-lockup {
    min-width: 0;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
  }

  .brand-logo-text {
    font-size: 1.24rem;
  }

  #store-name {
    font-size: clamp(1.2rem, 6.6vw, 1.62rem);
    line-height: 0.96;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }

  .brand-caption {
    font-size: 0.6rem;
    margin-bottom: 3px;
  }

  .product-page-main {
    padding-top: 10px;
  }

  .product-detail-body .header-branding {
    min-width: 0;
    flex: 1 1 auto;
  }

  .product-detail-body .brand-home-link {
    max-width: 100%;
  }

  .product-detail-body .brand-lockup {
    width: 100%;
  }

  .product-detail-body .brand-lockup > div:last-child {
    min-width: 0;
    max-width: clamp(112px, 36vw, 168px);
  }

  .product-detail-body #store-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.02em;
  }

  .product-detail-body .utility-actions .topbar-link {
    display: none;
  }

  .utility-actions {
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  :root[data-storefront-appbar-layout="legacy"] .utility-actions {
    display: flex;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  :root[data-storefront-appbar-layout="legacy"] .theme-toggle.secondary-button,
  :root[data-storefront-appbar-layout="legacy"] .user-access-button,
  :root[data-storefront-appbar-layout="legacy"] .cart-button,
  :root[data-storefront-appbar-layout="legacy"] .notification-button,
  :root[data-storefront-appbar-layout="legacy"] .favorites-shortcut-button {
    flex: 0 0 auto;
    min-width: 0;
  }

  .storefront-inline-launch {
    display: none !important;
  }

  .utility-meta-brand {
    align-items: flex-start;
  }

  .utility-meta-logo {
    --appbar-logo-size: 70px;
  }

  .utility-meta-copy h2 {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }

  .utility-meta-detail {
    font-size: 0.95rem;
  }

  .utility-actions #logout-button {
    display: none !important;
  }

  .notification-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
  }

  .favorites-shortcut-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .user-access-button {
    width: auto;
    min-width: min(220px, 100%);
    height: 46px;
    padding: 0 12px 0 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    gap: 10px;
    justify-content: flex-start;
  }

  .theme-toggle.secondary-button,
  .user-access-button,
  .cart-button {
    width: auto;
    min-width: 46px;
    flex: 0 0 auto;
  }

  .theme-toggle.secondary-button {
    width: auto;
    min-width: 142px;
    height: 46px;
    padding: 0 14px;
    gap: 8px;
    border-radius: 14px;
  }

  .theme-toggle.secondary-button[data-theme-toggle-style="text"] {
    padding-inline: 12px;
  }

  .user-access-kicker {
    display: block;
    font-size: 0.66rem;
  }

  .user-access-copy {
    display: grid;
    min-width: 0;
  }

  .user-access-button strong {
    font-size: 0.94rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-access-icon,
  .cart-button-icon {
    width: 42px;
    height: 42px;
  }

  .cart-button {
    padding: 0;
    gap: 0;
    width: 46px;
    min-height: 46px;
    justify-content: center;
    display: none;
  }

  .notification-button,
  .favorites-shortcut-button,
  .user-access-button,
  .theme-toggle.secondary-button,
  .cart-button {
    box-shadow: none;
  }

  .cart-button-count {
    display: none;
  }

  .storefront-inline-hotspot {
    top: 12px;
    right: 12px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border-radius: 14px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .storefront-inline-hotspot-text {
    display: none;
  }

  .utility-header .storefront-inline-hotspot {
    top: -12px;
    right: 10px;
  }

  .utility-header .storefront-inline-actions-bar {
    top: 52px;
    right: 12px;
    left: 12px;
  }

  .customer-collection-shell .storefront-inline-hotspot,
  .catalog-shell .storefront-inline-hotspot {
    bottom: 12px;
  }

  .storefront-inline-actions-bar {
    top: 60px;
    right: 12px;
    left: 12px;
    max-width: none;
    justify-content: flex-start;
  }

  .customer-collection-shell .storefront-inline-actions-bar,
  .catalog-shell .storefront-inline-actions-bar {
    right: 12px;
    left: 12px;
    bottom: 60px;
  }

  .storefront-inline-action-chip {
    flex: 1 1 120px;
    justify-content: center;
  }

  .hero-overlay h2 {
    max-width: none;
  }

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

  .section-actions {
    width: 100%;
    justify-content: stretch;
  }

  .section-actions .button-link,
  .section-actions .secondary-button {
    flex: 1 1 180px;
  }

  .dashboard-user-chip {
    min-width: 100%;
  }

  .dashboard-header-meta {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: stretch;
  }

  .dashboard-header-meta .theme-toggle {
    width: 52px;
    min-width: 52px;
    padding-inline: 0;
  }

  .dashboard-titlebar h1 {
    font-size: clamp(1.78rem, 10vw, 2.6rem);
  }

  .admin-order-head {
    flex-direction: column;
  }

  .inventory-actions,
  .order-card-side,
  .admin-order-side,
  .inventory-row-meta {
    justify-items: start;
  }

  .inventory-row,
  .inventory-row-main,
  .inventory-row-meta,
  .dashboard-user-chip {
    align-items: start;
    flex-direction: column;
  }

  .inventory-cluster-header {
    align-items: start;
  }

  .inventory-cluster-count {
    min-width: 0;
  }

  .product-quick-edit {
    opacity: 1;
    transform: translateY(0);
  }

  .product-card-gallery-arrow {
    opacity: 1;
    transform: translateY(0);
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .products-toolbar-card {
    padding: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --catalog-image-height: 172px;
    --catalog-card-padding: 10px;
    --catalog-card-gap: 12px;
  }

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

  .products-toolbar .toolbar-field-search,
  .products-toolbar .toolbar-field-summary {
    grid-column: 1 / -1;
  }

  .debt-card {
    grid-template-columns: 1fr;
  }

  .product-image-wrap {
    padding: 20px 10px 10px;
  }

  .products-grid[data-view="list"] .product-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .products-grid[data-view="list"] .product-image-wrap {
    min-height: 148px;
    padding: 24px 8px 10px;
  }

  .products-grid[data-view="list"] .product-content {
    padding: 14px;
  }

  .products-grid[data-view="list"] .product-actions {
    grid-template-columns: 1fr;
  }

  .product-heading h4 {
    font-size: 0.98rem;
    line-height: 1.02;
  }

  .product-sku,
  .product-description {
    display: none;
  }

  .product-price-row {
    margin-bottom: 8px;
  }

  .price {
    font-size: 1.32rem;
  }

  .product-flags {
    gap: 6px;
  }

  .product-flags span {
    font-size: 0.74rem;
    padding: 5px 7px;
  }

  .product-actions {
    gap: 8px;
  }

  .product-actions .secondary-button,
  .product-actions .primary-button {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.84rem;
  }

  .right-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .dashboard-nav-groups-header .dashboard-nav-group-links {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 430px) and (max-width: 560px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --catalog-image-height: 142px;
    --catalog-card-gap: 10px;
  }

  .product-content {
    padding: 0 8px 8px;
  }

  .price {
    font-size: 1.08rem;
  }

  .product-heading h4 {
    font-size: 0.88rem;
  }

  .product-flags span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 720px) {
  .customer-collection-shell {
    padding: 18px;
  }

  .customer-collection-grid {
    --catalog-card-min: 178px;
    --catalog-image-height: 214px;
  }

  .customer-collection-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .checkout-inline-fields {
    grid-template-columns: 1fr;
  }

  .checkout-saved-tools {
    flex-direction: column;
  }

  .checkout-trust-grid {
    grid-template-columns: 1fr;
  }

  .order-tracking-card {
    flex-direction: column;
  }

  .order-card-side {
    width: 100%;
  }

  .order-tracking-progress {
    grid-template-columns: 1fr;
  }

  .detail-share-shortcuts-actions {
    grid-template-columns: 1fr;
  }

  .agenda-todo-summary-grid {
    grid-template-columns: 1fr;
  }
}
