:root {
  color-scheme: light;
  --bg: #f4efe1;
  --surface: rgba(255, 250, 240, 0.88);
  --surface-strong: #fffdf7;
  --surface-2: rgba(24, 18, 7, 0.06);
  --surface-inverse: #090805;
  --ink: #17120a;
  --muted: #685d4a;
  --accent: #dcb128;
  --accent-strong: #8d6500;
  --gold: #f5d56d;
  --border: rgba(130, 97, 12, 0.18);
  --danger: #b42318;
  --success: #1f7a4d;
  --shadow: 0 26px 60px rgba(19, 14, 6, 0.12);
  --shadow-strong: 0 32px 90px rgba(17, 13, 6, 0.2);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070603;
  --surface: rgba(18, 14, 7, 0.88);
  --surface-strong: #11100b;
  --surface-2: rgba(255, 226, 119, 0.08);
  --surface-inverse: #fff6cb;
  --ink: #fff4cb;
  --muted: #c7b98a;
  --accent: #f1c84b;
  --accent-strong: #ffea99;
  --gold: #ffe57d;
  --border: rgba(255, 215, 111, 0.14);
  --danger: #ff9789;
  --success: #83d9a8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 34px 110px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(241, 200, 75, 0.22), transparent 360px),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 280px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 420px),
    var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

html[lang^="ar"] body {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

body.drawer-open {
  overflow: hidden;
}

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

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

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

button,
input,
select,
textarea {
  border: 0;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 58%, transparent);
  outline-offset: 3px;
}

.surface-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(10, 9, 5, 0.52);
  backdrop-filter: blur(6px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px);
}

.site-nav,
.site-footer,
.page-shell {
  width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
}

.site-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
}

.nav-leading,
.nav-actions,
.hero-actions,
.filter-actions,
.row-actions,
.form-actions,
.checkout-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-leading {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #050505;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.image-mark img,
.drawer-brand-visual img,
.cart-item-visual img,
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small,
.site-footer strong,
.site-footer span {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-actions {
  justify-self: end;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-link:hover {
  color: var(--ink);
}

.menu-toggle,
.cart-toggle,
.icon-button,
.primary-button,
.ghost-button,
.drawer-link,
.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 12px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.menu-toggle,
.cart-toggle,
.icon-button,
.ghost-button,
.drawer-link,
.category-chip {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  color: var(--ink);
}

.menu-toggle,
.cart-toggle,
.text-button {
  width: auto;
  padding-inline: 14px;
}

.language-button {
  min-width: 68px;
}

.menu-toggle-bars {
  display: inline-grid;
  gap: 4px;
}

.menu-toggle-bars span,
.cart-toggle-icon::before,
.cart-toggle-icon::after {
  display: block;
  content: "";
}

.menu-toggle-bars span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.cart-toggle {
  position: relative;
  padding-inline-end: 16px;
}

.cart-toggle-icon {
  position: relative;
  width: 18px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px 3px 6px 6px;
}

.cart-toggle-icon::before {
  position: absolute;
  inset-inline: 3px;
  top: -6px;
  height: 6px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.cart-toggle-count {
  min-width: 24px;
  min-height: 24px;
  padding-inline: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-strong);
  font-size: 0.82rem;
  line-height: 24px;
  text-align: center;
}

.cart-toggle-count.has-items {
  background: var(--accent);
  color: #111;
}

.icon-button {
  width: 42px;
}

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

.theme-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.theme-icon svg circle {
  fill: currentColor;
  stroke: none;
}

.primary-button {
  padding: 0 18px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #fff));
  color: #16120a;
  box-shadow: 0 14px 26px rgba(220, 177, 40, 0.24);
}

.ghost-button {
  padding: 0 16px;
}

.compact {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.9rem;
}

.full-width {
  width: 100%;
}

.menu-toggle:hover,
.cart-toggle:hover,
.icon-button:hover,
.primary-button:hover,
.ghost-button:hover,
.drawer-link:hover,
.category-chip:hover {
  transform: translateY(-1px);
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 32;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(380px, calc(100vw - 24px));
  padding: 22px;
  border-inline: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.drawer-menu {
  inset-inline-start: 0;
}

.drawer-cart {
  right: 0;
  width: min(430px, calc(100vw - 24px));
}

.drawer:not(.is-open) {
  display: none;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.drawer-header h2,
.section-heading h2,
.admin-header h1,
.table-heading h2,
.auth-panel h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  line-height: 1.14;
}

.drawer-body {
  overflow-y: auto;
  padding-inline-end: 4px;
}

.drawer-brand-card,
.cart-summary-card,
.catalog-section,
.admin-table-shell,
.editor-form,
.auth-panel,
.hero-spotlight,
.filters-panel,
.product-card,
.toggle-row,
.current-image img {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--shadow);
}

.drawer-brand-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.drawer-brand-visual {
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.drawer-brand-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.drawer-copy,
.drawer-brand-card p,
.cart-empty-state p,
.section-heading > p,
.section-heading-meta p,
.product-body p,
.product-meta,
.cart-item-meta,
.cart-item-notes,
.drawer-note,
.admin-header p,
.auth-panel > p,
.hint,
small {
  color: var(--muted);
  line-height: 1.65;
}

.drawer-section,
.section-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.drawer-link {
  justify-content: flex-start;
  width: 100%;
  padding: 0 14px;
}

.drawer-link.is-active,
.category-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-strong));
  color: var(--ink);
}

.page-shell {
  padding-block: 26px 54px;
}

.store-shell {
  width: min(1380px, calc(100% - 32px));
}

.store-page-shell {
  min-width: 0;
}

.store-page-shell.is-loading {
  opacity: 0.84;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.store-page {
  display: grid;
  gap: 28px;
}

.store-hero {
  display: block;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 36px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
}

.hero-copy > p:not(.eyebrow) {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

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

.hero-metrics span {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.hero-metrics strong {
  font-size: 1.6rem;
}

.hero-metrics small {
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--shadow-strong);
}

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

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-slide {
  margin: 0;
  opacity: 0;
  transition: opacity 480ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-visual-full {
  min-height: 520px;
}

.hero-visual-full img {
  min-height: 520px;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 6, 0.78) 0%, rgba(12, 10, 6, 0.54) 38%, rgba(12, 10, 6, 0.18) 72%, rgba(12, 10, 6, 0.08) 100%),
    linear-gradient(180deg, rgba(12, 10, 6, 0.12) 0%, rgba(12, 10, 6, 0.52) 100%);
}

.hero-content-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 30px 32px;
}

.hero-slider-dots {
  position: absolute;
  inset-inline-start: 32px;
  bottom: 30px;
  z-index: 1;
  display: flex;
  gap: 8px;
}

.hero-slider-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 208, 0.46);
  transition:
    transform 180ms ease,
    background 180ms ease,
    width 180ms ease;
}

.hero-slider-dot.is-active {
  width: 28px;
  background: var(--gold);
}

.hero-copy-overlay {
  width: min(760px, 64%);
  align-content: start;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy-overlay h1 {
  max-width: 760px;
  color: #fffdf7;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero-copy-overlay > p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 247, 222, 0.94);
}

.hero-statement {
  font-weight: 700;
}

.hero-copy-overlay .ghost-button {
  border-color: rgba(255, 241, 189, 0.24);
  background: rgba(255, 249, 232, 0.1);
  color: #fff7d0;
  backdrop-filter: blur(14px);
}

.hero-footer {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.hero-inline-note {
  display: grid;
  gap: 6px;
  min-width: 220px;
  max-width: 320px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 240, 186, 0.2);
  border-radius: 18px;
  background: rgba(12, 10, 6, 0.34);
  color: #fff7d0;
  backdrop-filter: blur(16px);
}

.hero-inline-note span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-inline-note strong {
  font-size: 1.02rem;
}

.hero-footer .hero-metrics span {
  min-height: 88px;
  background: rgba(255, 250, 239, 0.12);
  backdrop-filter: blur(14px);
}

.hero-footer .hero-metrics strong {
  color: #fffdf7;
}

.hero-footer .hero-metrics small {
  color: rgba(255, 246, 214, 0.86);
}

.hero-spotlight {
  position: absolute;
  inset-inline-end: 20px;
  bottom: 20px;
  display: grid;
  gap: 6px;
  max-width: 250px;
  padding: 16px;
  backdrop-filter: blur(18px);
}

.hero-spotlight p,
.cart-summary-card p {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-spotlight strong,
.cart-summary-card strong {
  font-size: 1.05rem;
}

.hero-spotlight span,
.cart-summary-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.catalog-section,
.admin-table-shell,
.editor-form,
.auth-panel {
  padding: 26px;
}

.section-heading,
.admin-header,
.table-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-heading-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: end;
}

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

.catalog-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 36px;
  padding-inline: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.feedback-section {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--shadow);
}

.feedback-section-compact {
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 94%, transparent), color-mix(in srgb, var(--surface) 90%, transparent)),
    color-mix(in srgb, var(--surface-strong) 92%, transparent);
}

.feedback-slider {
  display: grid;
  gap: 16px;
}

.feedback-slider-compact {
  gap: 12px;
}

.feedback-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 28%);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.feedback-slider-track::-webkit-scrollbar {
  display: none;
}

.feedback-slide {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  aspect-ratio: 9 / 16;
}

.feedback-slide-compact {
  border-radius: 18px;
  aspect-ratio: 10 / 16;
}

.feedback-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feedback-slider-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
}

.feedback-slider-dot.is-active {
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 74%, var(--border));
}

.section-heading-compact {
  margin-bottom: 4px;
}

.section-heading-compact h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.filters-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
}

.filters-mobile-toolbar,
.filters-sheet-header {
  display: none;
}

.filters-mobile-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filters-mobile-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.filters-mobile-summary strong,
.filters-sheet-header strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.filters-mobile-summary span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.filters-mobile-toggle {
  flex: 0 0 auto;
}

.filters-mobile-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.filters-panel-body {
  display: grid;
  gap: 16px;
}

.filters-head,
.filters-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sidebar-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.category-chip {
  justify-content: flex-start;
  padding-inline: 14px;
  color: var(--muted);
  text-align: start;
}

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--chip-color);
}

.filters-bar {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  color: var(--ink);
}

input[type="file"] {
  padding: 9px;
}

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

.empty-state {
  padding: 40px 28px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 10px;
}

.empty-state p {
  margin: 0;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.pager-summary {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.pager-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding-inline: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.pager-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--border));
}

.pager-link.is-active {
  border-color: color-mix(in srgb, var(--brand) 52%, transparent);
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-2) 84%, white 16%));
  color: #1b160b;
}

.pager-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

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

.product-card {
  overflow: hidden;
}

.product-visual {
  position: relative;
  height: 188px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
    var(--surface-2);
}

.product-badge {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  min-height: 30px;
  padding-inline: 10px;
  border-radius: 999px;
  background: rgba(9, 8, 5, 0.68);
  color: #fff7d0;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 30px;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-kicker,
.product-footer,
.cart-item-head,
.cart-item-actions,
.note-row,
.table-heading span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-kicker,
.product-footer span,
.table-heading span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.28;
}

.product-body p {
  display: -webkit-box;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  min-height: 44px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.product-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.product-meta strong {
  font-size: 0.92rem;
}

.product-footer {
  align-items: flex-end;
}

.product-footer strong {
  display: block;
  color: var(--accent-strong);
  font-size: 1.12rem;
}

.product-card {
  display: grid;
  gap: 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-visual-link {
  display: block;
}

.product-visual {
  height: 284px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
    var(--surface-2);
  box-shadow: var(--shadow);
}

.product-visual-focus {
  position: relative;
}

.product-visual-focus img {
  transition: transform 220ms ease;
}

.product-visual-link:hover .product-visual-focus img {
  transform: scale(1.03);
}

.product-badge-row {
  position: absolute;
  inset-inline: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-badge-row .product-badge {
  position: static;
  min-height: 28px;
  padding-inline: 10px;
  border-radius: 999px;
  background: rgba(8, 7, 4, 0.74);
  color: #fff7d0;
  font-size: 0.72rem;
  line-height: 28px;
}

.product-badge-row .product-badge.subtle {
  background: rgba(255, 250, 235, 0.86);
  color: #3b2f15;
}

html[data-theme="dark"] .product-badge-row .product-badge.subtle {
  background: rgba(255, 243, 190, 0.18);
  color: #fff0b3;
}

.product-visual-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(7, 6, 3, 0.82) 78%);
}

.product-visual-copy {
  min-width: 0;
}

.product-visual-copy strong,
.product-visual-copy span {
  display: block;
}

.product-visual-copy strong {
  color: #fffdf7;
  font-size: 1rem;
  line-height: 1.2;
}

.product-visual-copy span {
  margin-top: 4px;
  color: rgba(255, 247, 208, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
}

.product-visual-link-pill {
  flex: 0 0 auto;
  min-height: 34px;
  padding-inline: 12px;
  border: 1px solid rgba(255, 242, 194, 0.24);
  border-radius: 999px;
  background: rgba(255, 249, 231, 0.1);
  color: #fff7d0;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 34px;
  backdrop-filter: blur(14px);
}

.product-card-cta {
  display: grid;
  gap: 10px;
}

.product-card-cta [data-product-cart-control],
.product-detail-actions [data-detail-cart-control] {
  min-width: 0;
}

.product-card-cta .ghost-button {
  display: none;
}

.product-card-cta .primary-button,
.product-card-cta .quantity-stepper-inline {
  width: 100%;
}

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

.current-image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.feedback-admin-preview {
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.hero-admin-preview,
img.current-hero-image {
  width: min(280px, 100%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.size-pricing-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--shadow);
}

.size-pricing-panel.is-disabled {
  opacity: 0.72;
}

.size-pricing-header strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.size-price-grid,
.size-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.size-chip {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  color: var(--ink);
  text-align: start;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.size-chip strong,
.size-chip span {
  display: block;
}

.size-chip strong {
  font-size: 0.96rem;
}

.size-chip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.size-chip:hover {
  transform: translateY(-1px);
}

.size-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-strong));
}

.drawer-size-picker {
  right: 0;
  width: min(420px, calc(100vw - 24px));
}

.size-picker-body {
  display: grid;
  gap: 18px;
}

.size-picker-product strong {
  display: block;
  margin-bottom: 6px;
}

.size-picker-summary {
  align-items: center;
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 24px;
}

.product-detail-gallery,
.product-detail-head,
.product-detail-card,
.compact-section {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--shadow);
}

.product-detail-gallery {
  padding: 18px;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.gallery-track {
  position: relative;
  min-height: 520px;
}

.gallery-slide {
  display: none;
  height: 100%;
}

.gallery-slide.is-active {
  display: block;
}

.gallery-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 244, 204, 0.22);
  border-radius: 999px;
  background: rgba(13, 11, 7, 0.58);
  color: #fff9de;
  transform: translateY(-50%);
  backdrop-filter: blur(16px);
}

.gallery-nav.prev {
  inset-inline-start: 14px;
}

.gallery-nav.next {
  inset-inline-end: 14px;
}

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

.gallery-thumb {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.gallery-thumb.is-active {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--border));
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

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

.product-detail-head,
.product-detail-card {
  padding: 24px;
}

.product-detail-head {
  display: grid;
  gap: 16px;
}

.product-detail-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.product-detail-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.product-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-detail-badges .product-badge {
  position: static;
}

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

.product-detail-price-row strong {
  display: block;
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 1.5rem;
}

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

.compact-section {
  padding: 18px;
}

.add-to-cart-button.is-in-cart {
  background: color-mix(in srgb, var(--accent) 15%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  box-shadow: none;
}

.cart-drawer-body {
  display: grid;
  gap: 16px;
}

.cart-summary-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.cart-summary-card strong {
  display: block;
  margin-top: 6px;
}

.cart-empty-state {
  box-shadow: none;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.cart-item-visual {
  overflow: hidden;
  height: 84px;
  border-radius: 14px;
  background: var(--surface-2);
}

.cart-item-body {
  display: grid;
  gap: 8px;
}

.cart-item-head strong {
  font-size: 0.98rem;
}

.cart-item-head span {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.cart-item-meta,
.cart-item-notes {
  margin: 0;
  font-size: 0.88rem;
}

.cart-item-notes {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
}

.quantity-stepper-inline {
  justify-content: space-between;
  width: 100%;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 242, 194, 0.04);
}

.quantity-stepper button,
.cart-remove {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 900;
}

.quantity-stepper span {
  min-width: 20px;
  text-align: center;
  font-weight: 800;
}

.quantity-stepper-inline span {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
}

.product-detail-actions .quantity-stepper-inline {
  min-width: min(180px, 100%);
}

.cart-remove {
  color: var(--danger);
}

.checkout-form.is-disabled {
  opacity: 0.68;
}

.drawer-note {
  margin: 0;
  font-size: 0.88rem;
}

.admin-header {
  padding-block: 10px;
}

.status-message,
.validation-summary {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--success) 34%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--success) 12%, var(--surface));
}

.responsive-table {
  overflow-x: auto;
}

.admin-table-toolbar {
  align-items: end;
}

.admin-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-search-form input {
  width: min(360px, 100%);
}

.admin-product-preview {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

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

th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--border);
  text-align: start;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
}

td strong,
td span {
  display: block;
}

td span {
  margin-top: 4px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

.status-pill.active {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 14%, transparent);
}

.status-pill.hidden {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 14%, transparent);
}

.danger-button {
  color: var(--danger);
}

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

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

.current-image {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.current-image img {
  width: min(260px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.subcategory-selector {
  display: grid;
  gap: 10px;
}

.checkbox-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.category-chip.selectable {
  position: relative;
}

.checkbox-chip:hover,
.checkbox-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-strong));
  color: var(--ink);
  transform: translateY(-1px);
}

.checkbox-chip input,
.category-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.toggle-row input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--accent);
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.auth-shell {
  display: grid;
  min-height: 620px;
  place-items: center;
}

.auth-panel {
  width: min(480px, 100%);
}

.stacked-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field-validation-error,
.validation-summary-errors {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer strong {
  margin-bottom: 4px;
  color: var(--ink);
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    padding-block: 14px;
  }

  .nav-actions {
    justify-self: stretch;
  }

  .store-hero,
  .filters-bar,
  .form-grid,
  .product-detail-shell {
    grid-template-columns: 1fr;
  }

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

  .section-heading,
  .admin-header,
  .table-heading,
  .site-footer {
    flex-direction: column;
  }

  .section-heading-meta {
    justify-items: start;
    text-align: start;
  }

  .admin-search-form input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-nav,
  .site-footer,
  .page-shell {
    width: min(100%, calc(100% - 24px));
  }

  .site-nav {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .brand strong {
    font-size: 0.96rem;
  }

  .brand small {
    font-size: 0.74rem;
  }

  .nav-actions {
    justify-self: start;
  }

  .menu-toggle,
  .cart-toggle,
  .icon-button,
  .primary-button,
  .ghost-button,
  .drawer-link,
  .category-chip {
    min-height: 40px;
    border-radius: 11px;
  }

  .hero-copy,
  .feedback-section,
  .catalog-section,
  .admin-table-shell,
  .editor-form,
  .auth-panel,
  .drawer {
    padding: 18px;
  }

  .page-shell {
    padding-block: 18px 36px;
  }

  .store-page {
    gap: 18px;
  }

  .store-hero {
    min-height: 0;
  }

  .hero-visual,
  .hero-visual-full,
  .hero-slide,
  .hero-visual img,
  .hero-slide img {
    min-height: 360px;
  }

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

  .hero-copy {
    gap: 14px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .hero-content-shell {
    padding: 20px;
  }

  .hero-slider-dots {
    inset-inline-start: 20px;
    bottom: 20px;
  }

  .hero-copy-overlay {
    width: 100%;
    gap: 14px;
    padding: 0;
    border-radius: 0;
  }

  .hero-copy h1 {
    font-size: 1.95rem;
    line-height: 1.08;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics span {
    min-height: 0;
    padding: 14px;
    border-radius: 16px;
  }

  .hero-metrics strong {
    font-size: 1.35rem;
  }

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

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

  .hero-spotlight {
    inset-inline-end: 14px;
    bottom: 14px;
    max-width: 210px;
    padding: 12px;
  }

  .section-heading,
  .admin-header,
  .table-heading {
    gap: 12px;
    margin-bottom: 16px;
  }

  .drawer-header h2,
  .section-heading h2,
  .admin-header h1,
  .table-heading h2,
  .auth-panel h1 {
    font-size: 1.4rem;
  }

  .catalog-section,
  .feedback-section,
  .admin-table-shell,
  .editor-form,
  .auth-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .filters-panel {
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 16px;
  }

  .filters-mobile-toolbar {
    display: flex;
  }

  .filters-panel-body {
    display: none;
  }

  .filters-panel.is-mobile-open .filters-panel-body {
    position: fixed;
    inset-inline: 12px;
    bottom: 12px;
    z-index: 34;
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 92px);
    padding: 16px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
    box-shadow: var(--shadow-strong);
  }

  .filters-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .filters-sheet-header .eyebrow {
    margin-bottom: 6px;
  }

  .filters-head {
    display: grid;
    gap: 12px;
  }

  .filters-title-row {
    justify-content: flex-start;
  }

  .filters-bar {
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }

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

  .pager {
    align-items: stretch;
  }

  .pager-summary,
  .pager-links {
    width: 100%;
  }

  .pager-links {
    justify-content: center;
  }

  .feedback-slider-track {
    grid-auto-columns: minmax(220px, 58vw);
  }

  .product-visual {
    height: 208px;
  }

  .product-visual-overlay {
    padding: 12px;
  }

  .product-visual-copy strong {
    font-size: 0.92rem;
  }

  .product-visual-copy span,
  .product-visual-link-pill {
    font-size: 0.72rem;
  }

  .size-price-grid,
  .size-chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-track {
    min-height: 0;
  }

  .gallery-slide img {
    height: 360px;
  }

  .product-detail-head,
  .product-detail-card,
  .product-detail-gallery,
  .compact-section {
    padding: 18px;
    border-radius: 20px;
  }

  .product-card {
    border-radius: 15px;
  }

  .product-badge {
    inset-inline-start: 10px;
    top: 10px;
    min-height: 26px;
    padding-inline: 8px;
    font-size: 0.72rem;
    line-height: 26px;
  }

  .product-body {
    gap: 10px;
    padding: 12px;
  }

  .product-kicker,
  .product-footer span,
  .table-heading span {
    font-size: 0.74rem;
  }

  .product-body h3 {
    font-size: 0.96rem;
    line-height: 1.3;
  }

  .product-body p {
    min-height: 42px;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .product-meta {
    min-height: 0;
    padding-top: 10px;
    font-size: 0.82rem;
  }

  .product-meta span {
    margin-bottom: 4px;
    font-size: 0.72rem;
  }

  .product-meta strong {
    font-size: 0.84rem;
  }

  .product-footer {
    align-items: stretch;
    gap: 10px;
  }

  .product-footer strong {
    font-size: 1rem;
  }

  .product-footer .primary-button,
  .product-footer .ghost-button {
    width: 100%;
    padding-inline: 10px;
    font-size: 0.84rem;
  }

  .drawer,
  .drawer-cart {
    width: min(100vw, calc(100vw - 12px));
  }
}

@media (max-width: 420px) {
  .site-nav,
  .site-footer,
  .page-shell {
    width: min(100%, calc(100% - 18px));
  }

  .feedback-slider-track {
    grid-auto-columns: minmax(200px, 64vw);
  }

  .hero-copy h1 {
    font-size: 1.76rem;
  }

  .hero-content-shell {
    padding: 16px;
  }

  .hero-visual,
  .hero-visual-full,
  .hero-slide,
  .hero-visual img,
  .hero-slide img {
    min-height: 320px;
    height: 320px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-visual {
    height: 184px;
  }

  .gallery-slide img {
    height: 280px;
  }

  .current-image-grid,
  .size-price-grid,
  .size-chip-row {
    grid-template-columns: 1fr;
  }

  .product-body {
    padding: 10px;
  }

  .product-body h3 {
    font-size: 0.92rem;
  }
}
