:root {
  --white: #fffdf9;
  --paper: #f6f1e8;
  --paper-2: #eee5d7;
  --ink: #14100f;
  --ink-soft: #5e5651;
  --black: #110d0d;
  --burgundy: #6d0d24;
  --burgundy-2: #8d1732;
  --burgundy-deep: #3d0715;
  --gold: #d9ad52;
  --gold-bright: #ffd978;
  --gold-dark: #9a6d1d;
  --line: rgba(20, 16, 15, 0.13);
  --card: #fffdf9;
  --shadow: 0 24px 70px rgba(48, 19, 20, 0.12);
  --font-ar: "Noto Naskh Arabic", "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
  --origo-font-body: var(--font-ar);
  --origo-font-heading: var(--font-display);
  --origo-base-font-size: 16px;
  --origo-body-font-weight: 500;
  --origo-heading-scale: 1;
  --origo-icon-scale: 1;
  --origo-image-scale: 1;
  --origo-image-radius: 12px;
  --origo-card-radius: 16px;
  --origo-card-border-width: 1px;
  --origo-card-shadow: 0 10px 30px rgba(61, 14, 25, .08);
  --origo-card-padding: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Readable, balanced fragrance-notes administration */
.notes-admin-panel {
  width: min(1680px, calc(100vw - 32px));
  padding: clamp(24px, 2.2vw, 38px);
}

.notes-admin-panel .admin-head {
  align-items: flex-start;
  gap: 24px;
}

.notes-admin-panel .admin-head .eyebrow {
  font-size: 11px;
  letter-spacing: .15em;
}

.notes-admin-panel .admin-head h2 {
  margin: 7px 0 8px;
  font-size: clamp(32px, 2.4vw, 44px);
  line-height: 1.14;
}

.notes-admin-panel .admin-head p {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.75;
}

.notes-admin-panel .admin-head-actions button,
.notes-admin-panel .compact-button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.notes-admin-stats {
  margin: 22px 0;
  gap: 14px;
}

.notes-admin-stats article {
  min-height: 86px;
  padding: 18px 20px;
  gap: 15px;
}

.notes-admin-stats article > span { font-size: 28px; }
.notes-admin-stats b { font-size: 28px; }
.notes-admin-stats small { margin-top: 5px; font-size: 13px; }

.notes-admin-grid {
  grid-template-columns: minmax(350px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.notes-admin-browser { padding: 16px; }
.notes-admin-search { height: 56px; padding-inline: 16px; }
.notes-admin-search input { font-size: 16px; }

.notes-admin-list {
  max-height: min(720px, calc(100vh - 350px));
  margin-top: 12px;
  gap: 7px;
}

.notes-admin-list button {
  min-height: 72px;
  padding: 8px 10px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
}

.notes-admin-list img {
  width: 58px;
  height: 58px;
  padding: 3px;
  object-fit: contain;
  background: #fff;
}

.notes-admin-list b { font-size: 15px; line-height: 1.45; }
.notes-admin-list small { margin-top: 3px; font-size: 12px; line-height: 1.4; }
.notes-admin-list button > i { font-size: 17px; }

.notes-admin-tabs { margin-bottom: 16px; gap: 8px; flex-wrap: wrap; }
.notes-admin-tabs button { min-height: 44px; padding: 10px 18px; font-size: 14px; }

.notes-editor-form { padding: clamp(22px, 2.4vw, 34px); }
.notes-editor-heading { margin-bottom: 24px; }
.notes-editor-heading small { font-size: 11px; }
.notes-editor-heading h3 { margin-top: 5px; font-size: clamp(24px, 2vw, 32px); }

.notes-editor-form .review-grid { gap: 16px; }
.notes-editor-form .review-grid label {
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.notes-editor-form .review-grid input,
.notes-editor-form .review-grid select,
.notes-editor-form .review-grid textarea {
  height: 50px;
  padding: 11px 13px;
  font-size: 15px;
  line-height: 1.5;
}

.notes-editor-form .review-grid textarea { height: 150px; }

.note-image-editor {
  margin: 24px 0;
  padding: 18px;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.note-image-editor > img {
  width: 180px;
  height: 180px;
  padding: 8px;
  object-fit: contain;
  background: #fff;
}

.note-image-editor > div { align-content: start; gap: 12px; }
.note-image-editor label { gap: 7px; font-size: 14px; }
.note-image-editor input { min-height: 48px; padding: 10px 12px; font-size: 14px; }
.note-image-editor .gallery-upload { min-height: 76px; padding: 12px 14px; }
.note-image-editor .gallery-upload b { font-size: 14px; }
.note-image-editor .gallery-upload small { font-size: 11px; line-height: 1.5; }

.note-image-status {
  min-height: 22px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.note-merge-row { margin: 22px 0; padding: 18px; gap: 9px; }
.note-merge-row label { font-size: 14px; }
.note-merge-row select { min-height: 48px; padding-inline: 12px; font-size: 14px; }
.note-merge-row small { font-size: 12px; line-height: 1.6; }
.notes-editor-form > .button[type="submit"] { min-height: 50px; padding: 12px 22px; font-size: 15px; }

.unclassified-notes-list b { font-size: 15px; }
.unclassified-notes-list small { font-size: 12px; }
.unclassified-notes-list button { min-height: 40px; padding: 8px 12px; font-size: 13px; }

@media (max-width: 1260px) {
  .notes-admin-grid { grid-template-columns: 320px minmax(0, 1fr); }
  .notes-editor-form .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .notes-admin-panel { width: 100%; }
  .notes-admin-grid { grid-template-columns: 1fr; }
  .notes-admin-list { max-height: 340px; }
}

@media (max-width: 580px) {
  .notes-editor-form .review-grid,
  .notes-editor-form .description-grid { grid-template-columns: 1fr; }
  .note-image-editor { grid-template-columns: 1fr; }
  .note-image-editor > img { width: 100%; height: 220px; }
}

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

.table-action.danger {
  color: #9d2439;
}

.admin-order-detail {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(109, 22, 40, .18);
  background: var(--surface, #fff);
  box-shadow: 0 18px 50px rgba(30, 19, 15, .08);
}

.admin-order-detail > header,
.admin-order-detail > footer,
.admin-order-detail > header > div,
.admin-order-items span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-order-detail textarea {
  width: 100%;
  resize: vertical;
}

.admin-order-items,
.admin-order-timeline {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(109, 22, 40, .04);
}

.admin-order-timeline span {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
}

.admin-order-timeline i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7a2639;
}

@media (max-width: 700px) {
  .admin-order-detail > header,
  .admin-order-detail > footer {
    align-items: stretch;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--origo-font-body);
  font-size: var(--origo-base-font-size);
  font-weight: var(--origo-body-font-weight);
  line-height: 1.7;
  width: 100%;
  max-width: 100%;
  transition: background 0.35s ease, color 0.35s ease;
}

body.dark {
  --white: #171313;
  --paper: #1e1918;
  --paper-2: #28201e;
  --ink: #fffaf1;
  --ink-soft: #c0b4ac;
  --line: rgba(255, 255, 255, 0.12);
  --card: #201a19;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

body.locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

::selection {
  color: #fff;
  background: var(--burgundy);
}

.announcement {
  min-height: 38px;
  padding: 6px clamp(18px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #fff9ed;
  background: var(--burgundy);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.announcement p {
  margin: 0;
}

.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  color: inherit;
  background: none;
  font-size: 12px;
  cursor: pointer;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 86px;
  padding: 12px clamp(20px, 5vw, 82px);
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) 2fr minmax(220px, 0.8fr);
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 91%, transparent);
  backdrop-filter: blur(20px);
}

.brand {
  width: max-content;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  line-height: 1;
}

.brand-mark {
  grid-row: 1 / 3;
  width: 28px;
  height: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  transform: rotate(-10deg);
}

.brand-mark i {
  display: block;
  width: 7px;
  border: 1px solid var(--gold);
  border-radius: 100% 0;
  background: color-mix(in srgb, var(--gold) 35%, transparent);
}

.brand-mark i:nth-child(1) { height: 19px; }
.brand-mark i:nth-child(2) { height: 31px; }
.brand-mark i:nth-child(3) { height: 23px; }

.brand-word {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.14em;
}

.brand small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 38px);
}

.desktop-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -14px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: 0.3s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 0;
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.cart-button,
.lang-button,
.mode-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: 0.25s ease;
}

.icon-button:hover,
.cart-button:hover,
.lang-button:hover,
.mode-toggle:hover {
  color: var(--gold-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.icon-button svg,
.cart-button svg {
  width: 19px;
}

.lang-button {
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.mode-toggle {
  width: 58px;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 24px;
  color: var(--ink-soft);
  background: var(--paper);
}

.mode-toggle span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
}

.mode-toggle .sun {
  color: #402c09;
  background: var(--gold-bright);
}

.dark .mode-toggle .moon {
  color: #fff;
  background: var(--burgundy);
}

.dark .mode-toggle .sun {
  color: var(--ink-soft);
  background: transparent;
}

.action-count {
  position: absolute;
  top: -3px;
  left: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--burgundy);
  font-size: 9px;
  font-style: normal;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 124px));
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fffaf1;
  background: #100a0b;
}

.hero-image,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  background-image: url("assets/origo-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
  transition: transform 1.2s var(--ease);
}

.hero:hover .hero-image {
  transform: scale(1.035);
}

.hero-vignette {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(14, 7, 8, 0.05) 0%, rgba(16, 7, 9, 0.45) 44%, rgba(10, 5, 6, 0.93) 100%),
    linear-gradient(0deg, rgba(8, 4, 5, 0.72), transparent 42%);
}

.hero-content {
  width: min(620px, 48vw);
  margin-inline-start: 51%;
  padding: 70px 0 105px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: var(--gold-bright);
}

.hero h1,
.story-copy h2,
.notes-header h2,
.alternative-copy h2,
.newsletter h2 {
  margin: 20px 0;
  font-size: clamp(48px, 5.1vw, 82px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

h1 em,
h2 em {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

.hero-content > p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 250, 241, 0.7);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2;
}

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

.button {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s var(--ease);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.gold-button {
  position: relative;
  overflow: hidden;
  color: #241704;
  background: linear-gradient(120deg, #a97724, #ffe492 48%, #bd8a30);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 12px 28px rgba(185, 130, 36, 0.22);
}

.gold-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 22%;
  height: 200%;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(24deg);
  transition: left 0.65s var(--ease);
}

.gold-button:hover::before {
  left: 120%;
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

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

.play {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
}

.hero-proof {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-proof p {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 11px;
}

.hero-proof b {
  display: block;
  color: #fff;
  font-size: 13px;
}

.avatar-stack {
  display: flex;
  direction: ltr;
}

.avatar-stack span {
  width: 30px;
  height: 30px;
  margin-inline-start: -8px;
  display: grid;
  place-items: center;
  border: 2px solid #1a0e10;
  border-radius: 50%;
  color: #2b1714;
  background: linear-gradient(145deg, #e7c182, #9d5f43);
  font-size: 10px;
}

.hero-index {
  position: absolute;
  left: 4.5vw;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
}

.hero-index i {
  width: 90px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(255,255,255,.18));
}

.scroll-cue {
  position: absolute;
  right: 4.5vw;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  letter-spacing: .1em;
}

.scroll-cue i {
  width: 28px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 20px;
}

.scroll-cue i::after {
  content: "";
  width: 3px;
  height: 7px;
  margin: 7px auto;
  display: block;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollCue 1.8s infinite;
}

@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

.service-strip {
  min-height: 112px;
  padding: 20px clamp(22px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.service-strip article {
  padding: 12px clamp(12px, 2vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-inline-start: 1px solid var(--line);
}

.service-strip article:first-child {
  border-inline-start: 0;
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--gold) 65%, transparent);
  border-radius: 50%;
  color: var(--gold-dark);
  font-size: 17px;
}

.service-strip b,
.service-strip small {
  display: block;
}

.service-strip b {
  font-size: 12px;
}

.service-strip small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
}

.section {
  padding: clamp(80px, 9vw, 140px) clamp(22px, 6vw, 100px);
}

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

.section-heading h2,
.discover-intro h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.section-description {
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.heading-actions,
.filter-chips,
.carousel-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.heading-actions {
  gap: 24px;
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: #fff;
  border-color: var(--burgundy);
  background: var(--burgundy);
}

.carousel-arrows button,
.product-bottom button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

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

.product-card {
  min-width: 0;
  transition: opacity .35s ease, transform .45s var(--ease);
}

.product-card.filtered-out {
  display: none;
}

.product-image {
  position: relative;
  aspect-ratio: .82;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.96), rgba(231,221,205,.75) 48%, rgba(198,179,153,.34)),
    var(--paper);
}

.dark .product-image {
  background: radial-gradient(circle at 50% 40%, #332b27, #1b1615 68%);
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.22);
  pointer-events: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform .75s var(--ease);
}

.dark .product-image img {
  mix-blend-mode: normal;
}

.product-card:hover .product-image img {
  transform: scale(1.055);
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  color: #fff;
  background: var(--burgundy);
  font-size: 8px;
  letter-spacing: .06em;
}

.product-badge:empty {
  display: none;
}

.heart-button {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #2c2320;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 21px;
}

.heart-button.active {
  color: var(--burgundy);
  background: #fff;
}

.quick-view {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  left: 14px;
  height: 46px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  color: #fff;
  background: color-mix(in srgb, var(--burgundy) 92%, transparent);
  transform: translateY(65px);
  transition: transform .35s var(--ease);
  cursor: pointer;
  font-size: 11px;
}

.product-card:hover .quick-view {
  transform: translateY(0);
}

.product-info {
  padding: 18px 4px 0;
}

.product-brand {
  color: var(--burgundy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.product-info h3 {
  margin: 2px 0 5px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: .03em;
}

.product-notes {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.product-bottom {
  margin-top: 16px;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.product-bottom b {
  font-size: 13px;
}

.product-bottom del {
  margin-inline-start: 7px;
  color: var(--ink-soft);
  font-size: 10px;
}

.product-bottom button {
  width: 34px;
  height: 34px;
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
  transition: .25s ease;
}

.product-bottom button:hover {
  border-color: var(--gold-dark);
  background: var(--gold-dark);
  transform: rotate(90deg);
}

.collection-story {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  color: #fff7ec;
  background: #130d0e;
}

.story-visual {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10,5,6,.25), rgba(10,5,6,.8)),
    url("assets/origo-hero.png") center / cover;
}

.story-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.1);
}

.story-number {
  position: absolute;
  right: 6%;
  bottom: -5%;
  color: rgba(255,255,255,.055);
  font-family: var(--font-display);
  font-size: 280px;
  line-height: 1;
}

.floating-note {
  position: absolute;
  min-width: 115px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(34,16,19,.66);
  backdrop-filter: blur(12px);
  font-size: 11px;
}

.floating-note i {
  color: var(--gold);
  font-size: 7px;
  font-style: normal;
}

.note-one { top: 20%; right: 12%; }
.note-two { bottom: 18%; left: 8%; }

.story-copy {
  padding: clamp(70px, 9vw, 140px) clamp(30px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(109,13,36,.35), transparent 38%),
    #140d0e;
}

.story-copy h2,
.notes-header h2,
.alternative-copy h2,
.newsletter h2 {
  font-size: clamp(42px, 4.4vw, 68px);
}

.story-copy > p,
.notes-header > p,
.alternative-copy > p {
  max-width: 580px;
  margin: 0;
  color: rgba(255,255,255,.61);
  font-size: 13px;
  line-height: 2;
}

.note-ribbon {
  margin: 38px 0 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid rgba(255,255,255,.12);
}

.note-ribbon span {
  position: relative;
  padding: 22px 14px;
  border-inline-start: 1px solid rgba(255,255,255,.12);
}

.note-ribbon span:first-child {
  border-inline-start: 0;
}

.note-ribbon i,
.note-ribbon b,
.note-ribbon small {
  display: block;
}

.note-ribbon i {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 11px;
  font-style: normal;
}

.note-ribbon b {
  margin-top: 8px;
  font-size: 11px;
}

.note-ribbon small {
  color: rgba(255,255,255,.42);
  font-size: 8px;
}

.text-link {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 600;
}

.text-link.light {
  color: var(--gold-bright);
}

.discover-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  background: var(--paper);
}

.discover-intro p {
  max-width: 460px;
  color: var(--ink-soft);
  font-size: 13px;
}

.finder-stat {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.finder-stat strong {
  font-family: var(--font-display);
  color: var(--burgundy);
  font-size: 45px;
  font-weight: 400;
}

.finder-stat span {
  max-width: 100px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.note-selector {
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.note-selector-head {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note-selector-head p {
  margin: 0;
  font-size: 12px;
}

.note-selector-head b {
  margin-inline-start: 5px;
  color: var(--burgundy);
}

.dark-text {
  color: var(--ink-soft);
}

.note-bubbles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.note-bubble {
  min-height: 130px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: .3s var(--ease);
}

.note-bubble:hover,
.note-bubble.selected {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, var(--card));
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(58,37,17,.08);
}

.note-bubble.selected {
  box-shadow: inset 0 0 0 1px var(--gold);
}

.note-art {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 27px;
  filter: saturate(.82);
  background: var(--paper);
}

.note-bubble b,
.note-bubble small {
  display: block;
}

.note-bubble b {
  font-size: 10px;
}

.note-bubble small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 6px;
  letter-spacing: .13em;
}

.finder-button {
  width: 100%;
  margin-top: 18px;
}

.notes-library {
  min-height: 760px;
  padding: clamp(80px, 9vw, 135px) clamp(22px, 6vw, 100px);
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(50px, 8vw, 125px);
  align-items: center;
  color: #fff8ef;
  background:
    radial-gradient(circle at 0 100%, rgba(109,13,36,.34), transparent 34%),
    #120d0d;
}

.notes-header h2 {
  margin-bottom: 25px;
}

.notes-header .text-link {
  margin-top: 30px;
}

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

.note-category {
  position: relative;
  min-height: 230px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.035);
  transition: .35s var(--ease);
}

.note-category:hover {
  transform: translateY(-7px);
  border-color: rgba(217,173,82,.65);
}

.note-category::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  transition: .35s ease;
}

.note-category:hover::before {
  opacity: .6;
}

.category-citrus::before { background: radial-gradient(circle at 15% 20%, #e6a427, transparent 38%); }
.category-floral::before { background: radial-gradient(circle at 18% 20%, #9d2445, transparent 38%); }
.category-woods::before { background: radial-gradient(circle at 18% 20%, #85572e, transparent 38%); }
.category-gourmand::before { background: radial-gradient(circle at 18% 20%, #9b7643, transparent 38%); }

.note-category > b {
  position: absolute;
  top: 20px;
  left: 22px;
  font-size: 64px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,.28));
  transform: rotate(-8deg);
}

.category-index {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
}

.note-category div {
  position: relative;
  z-index: 1;
}

.note-category small {
  color: var(--gold);
  font-size: 8px;
}

.note-category h3 {
  margin: 5px 0 2px;
  font-size: 18px;
}

.note-category p {
  margin: 0;
  color: rgba(255,255,255,.46);
  font-size: 9px;
}

.profile-section {
  background: var(--white);
}

.perfume-profile {
  display: grid;
  grid-template-columns: .85fr 1.25fr 1fr;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.perfume-profile > article {
  min-width: 0;
  padding: clamp(24px, 3vw, 43px);
  border-inline-start: 1px solid var(--line);
}

.perfume-profile > article:first-child {
  border-inline-start: 0;
}

.profile-product {
  position: relative;
  text-align: center;
  background: var(--paper);
}

.profile-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 9px;
  color: #fff;
  background: var(--burgundy);
  font-size: 7px;
}

.mini-bottle,
.tiny-bottle {
  position: relative;
  width: 120px;
  height: 150px;
  margin: 24px auto 20px;
  display: grid;
  place-items: center;
  border: 4px double rgba(154,109,29,.65);
  border-radius: 10px 10px 18px 18px;
  color: var(--gold-dark);
  background:
    linear-gradient(to top, rgba(109,13,36,.58), rgba(217,173,82,.2) 68%, transparent 68%),
    linear-gradient(135deg, rgba(255,255,255,.8), rgba(255,255,255,.1));
  box-shadow: inset 0 0 25px rgba(255,255,255,.45), 0 18px 25px rgba(60,38,17,.16);
}

.mini-bottle::before,
.tiny-bottle::before {
  content: "";
  position: absolute;
  top: -26px;
  width: 58px;
  height: 30px;
  border: 3px double rgba(154,109,29,.75);
  border-radius: 4px 4px 10px 10px;
  background: linear-gradient(135deg, #3b2111, #b6812c, #241208);
}

.mini-bottle i,
.tiny-bottle i {
  position: absolute;
  top: 20px;
  right: 15px;
  width: 12px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(to right, rgba(255,255,255,.56), transparent);
  transform: rotate(-6deg);
}

.mini-bottle b,
.tiny-bottle b {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 25px;
}

.profile-product > small {
  color: var(--burgundy);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .14em;
}

.profile-product h3 {
  margin: 3px 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}

.profile-rating {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
}

.profile-rating span {
  color: var(--gold-dark);
}

.profile-product p {
  color: var(--ink-soft);
  font-size: 9px;
}

.profile-product .button {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  justify-content: space-between;
  font-size: 10px;
}

.panel-title {
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-title h3 {
  margin: 3px 0 0;
  font-size: 21px;
}

.panel-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-dark);
}

.pyramid-row {
  display: grid;
  grid-template-columns: 90px repeat(3, 1fr);
  align-items: center;
  min-height: 104px;
  border-top: 1px solid var(--line);
}

.pyramid-label small,
.pyramid-label b {
  display: block;
}

.pyramid-label small {
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: .1em;
}

.pyramid-label b {
  margin-top: 4px;
  font-size: 9px;
}

.pyramid-row > div {
  text-align: center;
}

.pyramid-row > div i {
  width: 45px;
  height: 45px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-size: 22px;
  font-style: normal;
}

.pyramid-row > div b {
  font-size: 8px;
}

.accord-bars > div {
  margin: 15px 0;
  display: grid;
  grid-template-columns: 78px 1fr 35px;
  align-items: center;
  gap: 10px;
  font-size: 9px;
}

.accord-bars i {
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  background: var(--paper-2);
}

.accord-bars i span {
  width: var(--value);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color), color-mix(in srgb, var(--color) 55%, white));
  transform-origin: right;
  animation: growBar 1.4s var(--ease) both;
}

@keyframes growBar { from { transform: scaleX(0); } }

.accord-bars small {
  color: var(--ink-soft);
  text-align: left;
  font-size: 8px;
}

.scent-meta {
  margin-top: 28px;
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.scent-meta span {
  padding: 0 8px;
  border-inline-start: 1px solid var(--line);
}

.scent-meta span:first-child {
  border-inline-start: 0;
}

.scent-meta small,
.scent-meta b {
  display: block;
  font-size: 7px;
}

.scent-meta small {
  color: var(--ink-soft);
}

.scent-meta b {
  margin-top: 4px;
  font-size: 8px;
}

.performance-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.performance-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--card);
}

.metric-head {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 10px;
}

.metric-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--burgundy);
}

.metric-head small {
  display: block;
  color: var(--ink-soft);
  font-size: 7px;
}

.metric-head h3 {
  margin: 0;
  font-size: 14px;
}

.metric-head > b {
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
}

.metric-head > b small {
  display: inline;
}

.metric-scale {
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.metric-scale i {
  height: 5px;
  border-radius: 4px;
  background: var(--paper-2);
}

.metric-scale i.active {
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
}

.metric-labels {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 7px;
}

.performance-grid article > p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.alternative-section {
  min-height: 710px;
  padding: clamp(80px, 9vw, 135px) clamp(22px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1fr minmax(320px, .68fr);
  gap: clamp(50px, 10vw, 160px);
  align-items: center;
  color: #fff8ee;
  background:
    radial-gradient(circle at 20% 60%, rgba(109,13,36,.52), transparent 38%),
    linear-gradient(135deg, #0d0909, #1b0d10);
}

.alternative-copy h2 {
  margin-bottom: 24px;
}

.alternative-search {
  max-width: 620px;
  height: 62px;
  margin-top: 35px;
  display: flex;
  border: 1px solid rgba(255,255,255,.23);
  background: rgba(255,255,255,.05);
}

.alternative-search input {
  min-width: 0;
  flex: 1;
  padding: 0 20px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 12px;
}

.alternative-search input::placeholder {
  color: rgba(255,255,255,.37);
}

.alternative-search button {
  width: 120px;
  border: 0;
  color: #281704;
  background: linear-gradient(135deg, var(--gold-bright), #bd8430);
  cursor: pointer;
  font-weight: 700;
}

.search-hint {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.36);
  font-size: 8px;
}

.match-card {
  padding: clamp(28px, 4vw, 50px);
  color: var(--ink);
  background: #fbf6ec;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  transition: .5s var(--ease);
}

.match-card.pulse {
  animation: matchPulse .8s var(--ease);
}

@keyframes matchPulse {
  50% { transform: translateY(-10px) scale(1.02); }
}

.match-score {
  position: relative;
  width: 110px;
  margin: 0 auto;
}

.match-score svg {
  transform: rotate(-90deg);
}

.match-score circle {
  fill: none;
  stroke: #e1d7c8;
  stroke-width: 4;
}

.match-score .score-ring {
  stroke: var(--burgundy);
  stroke-dasharray: 327;
  stroke-dashoffset: 19;
}

.match-score > b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
}

.match-score small {
  font-size: 11px;
}

.match-label {
  width: max-content;
  margin: -4px auto 22px;
  padding: 4px 9px;
  display: block;
  color: #fff;
  background: var(--burgundy);
  font-size: 7px;
}

.match-product {
  display: grid;
  grid-template-columns: 95px 1fr;
  align-items: center;
  gap: 18px;
}

.tiny-bottle {
  width: 62px;
  height: 82px;
  margin: 17px auto 8px;
  border-width: 2px;
  border-radius: 5px 5px 9px 9px;
}

.tiny-bottle::before {
  top: -16px;
  width: 30px;
  height: 17px;
  border-width: 2px;
}

.tiny-bottle b {
  width: 25px;
  height: 25px;
  font-size: 13px;
}

.match-product small {
  color: var(--burgundy);
  font-size: 7px;
  letter-spacing: .14em;
}

.match-product h3 {
  margin: 2px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}

.match-product p {
  margin: 0;
  color: #746760;
  font-size: 8px;
}

.match-reason {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid #dfd3c2;
  background: #f0e8dc;
}

.match-reason b {
  color: var(--burgundy);
  font-size: 9px;
}

.match-reason p {
  margin: 4px 0 0;
  color: #695e57;
  font-size: 8px;
}

.full {
  width: 100%;
  justify-content: space-between;
}

.journal-section {
  background: var(--paper);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
}

.journal-card {
  border: 1px solid var(--line);
  background: var(--card);
}

.journal-art {
  height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255,255,255,.8);
  background: #1b0f11;
}

.journal-art span {
  font-family: var(--font-display);
  font-size: 110px;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,.4));
}

.art-layering {
  background: radial-gradient(circle, rgba(217,173,82,.9), transparent 8%), repeating-radial-gradient(circle, transparent 0 22px, rgba(217,173,82,.18) 23px 24px), #2a0c15;
}

.art-oud {
  background: radial-gradient(circle at 30% 20%, #8f5c2b, transparent 22%), linear-gradient(145deg, #1b1510, #5a321c);
}

.art-season {
  background: radial-gradient(circle, #efd07c 0 15%, transparent 16%), conic-gradient(from 45deg, #7c142f, #1b0f11, #d2a447, #7c142f);
}

.journal-card > div:last-child {
  padding: 23px;
}

.journal-card small {
  color: var(--burgundy);
  font-size: 8px;
  font-weight: 700;
}

.journal-card h3 {
  min-height: 54px;
  margin: 6px 0 14px;
  font-size: 15px;
  line-height: 1.8;
}

.journal-card a {
  border-bottom: 1px solid var(--ink);
  font-size: 9px;
}

.newsletter {
  padding: clamp(65px, 8vw, 110px) clamp(22px, 8vw, 130px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  color: #fff8ef;
  background:
    linear-gradient(110deg, rgba(109,13,36,.65), rgba(15,9,9,.1)),
    #160d0f;
}

.newsletter h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4vw, 60px);
}

.newsletter form > label {
  display: block;
  margin-bottom: 16px;
  color: rgba(255,255,255,.57);
  font-size: 11px;
}

.newsletter form > div {
  height: 58px;
  display: flex;
  border: 1px solid rgba(255,255,255,.25);
}

.newsletter input {
  min-width: 0;
  flex: 1;
  padding: 0 18px;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
  font-size: 11px;
}

.newsletter input::placeholder {
  color: rgba(255,255,255,.38);
}

.newsletter button {
  width: 115px;
  border: 0;
  color: #261602;
  background: var(--gold-bright);
  cursor: pointer;
  font-weight: 700;
}

.newsletter form > small {
  display: block;
  margin-top: 9px;
  color: rgba(255,255,255,.3);
  font-size: 7px;
}

footer {
  padding: 75px clamp(22px, 7vw, 110px) 25px;
  color: rgba(255,255,255,.66);
  background: #0e0a0a;
}

footer > div:first-child,
.footer-links {
  display: grid;
}

footer {
  grid-template-columns: 1fr 1.6fr;
}

.footer-brand {
  max-width: 330px;
}

.footer-logo {
  color: #fff;
}

.footer-logo small {
  color: rgba(255,255,255,.4);
}

.footer-brand p {
  margin-top: 25px;
  font-size: 10px;
}

.footer-links {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links b {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 10px;
}

.footer-links a,
.footer-admin {
  color: rgba(255,255,255,.52);
  font-size: 9px;
}

.footer-admin {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 60px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 7px;
  letter-spacing: .08em;
}

.mobile-nav {
  display: none;
}

.overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 28px;
  display: grid;
  place-items: start center;
  overflow: auto;
  color: var(--ink);
  background: rgba(12,7,8,.84);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-panel {
  position: relative;
  width: min(880px, 100%);
  min-height: 460px;
  margin-top: 7vh;
  padding: clamp(32px, 6vw, 75px);
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
  transform: translateY(-25px);
  transition: .4s var(--ease);
}

.overlay.open .search-panel,
.overlay.open .admin-panel,
.overlay.open .product-dialog,
.overlay.open .account-panel,
.overlay.open .checkout-panel,
.overlay.open .orders-panel {
  transform: translateY(0);
}

.close-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}

.search-panel > .close-button {
  position: absolute;
  top: 22px;
  left: 22px;
}

.search-panel h2 {
  margin: 8px 0 28px;
  font-size: clamp(30px, 4vw, 48px);
}

.global-search {
  height: 68px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--burgundy);
  background: var(--paper);
}

.global-search svg {
  width: 21px;
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.global-search kbd {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 8px;
}

.search-suggestions {
  margin-top: 12px;
  display: grid;
  gap: 5px;
}

.search-result {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  cursor: pointer;
}

.search-result:hover {
  border-color: var(--gold);
  background: var(--paper);
}

.search-result span {
  color: var(--ink-soft);
  font-size: 10px;
}

.popular-searches {
  margin-top: 25px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 9px;
}

.popular-searches button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.drawer {
  position: fixed;
  z-index: 110;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(440px, 100%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  box-shadow: -30px 0 80px rgba(0,0,0,.28);
  transform: translateX(105%);
  transition: .45s var(--ease);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.drawer-head h2 {
  margin: 2px 0;
  font-size: 32px;
}

.cart-items {
  margin: 25px 0;
  flex: 1;
  overflow: auto;
}

.cart-empty {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--ink-soft);
}

.cart-empty span {
  font-size: 50px;
}

.cart-empty h3 {
  margin-bottom: 0;
  color: var(--ink);
}

.cart-empty p {
  font-size: 10px;
}

.cart-item {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 74px;
  height: 88px;
  object-fit: cover;
  background: var(--paper);
}

.cart-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
}

.cart-item p {
  margin: 4px 0;
  color: var(--ink-soft);
  font-size: 8px;
}

.cart-item b {
  font-size: 10px;
}

.quantity-control {
  width: fit-content;
  margin: 7px 0;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}

.quantity-control button,
.quantity-control span {
  width: 27px;
  height: 25px;
  display: grid;
  place-items: center;
}

.quantity-control button {
  border: 0;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.quantity-control span {
  border-inline: 1px solid var(--line);
  font-size: 9px;
}

.remove-item {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
}

.drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cart-total {
  margin-bottom: 17px;
  display: flex;
  justify-content: space-between;
}

.drawer-footer small {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 7px;
}

.wishlist-drawer {
  right: auto;
  left: 0;
  box-shadow: 30px 0 80px rgba(0,0,0,.28);
  transform: translateX(-105%);
}

.wishlist-items {
  margin: 25px 0;
  flex: 1;
  overflow: auto;
}

.wishlist-item {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}

.wishlist-preview {
  width: 82px;
  height: 104px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--paper);
  cursor: pointer;
}

.wishlist-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}

.wishlist-preview:hover img {
  transform: scale(1.04);
}

.wishlist-item small {
  color: var(--gold-dark);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .1em;
}

.wishlist-item h3 {
  margin: 3px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
}

.wishlist-item p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 8px;
}

.wishlist-item b {
  font-size: 10px;
}

.wishlist-add {
  margin-top: 10px;
  display: block;
  border: 0;
  border-bottom: 1px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.wishlist-footer a {
  text-decoration: none;
}

.product-overlay {
  place-items: center;
}

.product-dialog {
  position: relative;
  width: min(980px, 100%);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 40px 100px rgba(0,0,0,.52);
  transform: translateY(-25px);
  transition: .4s var(--ease);
}

.product-dialog > .close-button {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
}

.product-dialog-grid {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) 1.08fr;
  min-height: 610px;
}

.product-dialog-image {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: var(--paper);
}

.product-dialog-image > span {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 24px;
  padding: 7px 10px;
  color: #fff;
  background: var(--burgundy);
  font-size: 7px;
  font-weight: 700;
}

.product-dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-dialog-copy {
  padding: clamp(42px, 6vw, 78px);
  align-self: center;
}

.product-dialog-copy > small {
  display: block;
  margin-top: 26px;
  color: var(--gold-dark);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
}

.product-dialog-copy h2 {
  margin: 6px 0 9px;
  font-family: var(--font-display);
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 400;
  line-height: .95;
}

.product-dialog-notes {
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 700;
}

.product-dialog-description {
  margin: 25px 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 2;
}

.product-dialog-meta {
  padding-block: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
}

.product-dialog-meta span {
  display: grid;
  gap: 4px;
}

.product-dialog-meta span + span {
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--line);
}

.product-dialog-meta small {
  color: var(--ink-soft);
  font-size: 7px;
}

.product-dialog-meta b {
  font-size: 10px;
}

.product-dialog-price {
  margin: 24px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-dialog-price b {
  font-size: 20px;
}

.product-dialog-price del {
  color: var(--ink-soft);
  font-size: 11px;
}

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

.dialog-wishlist {
  border: 1px solid var(--line);
  color: var(--burgundy);
  background: transparent;
  cursor: pointer;
  font-size: 23px;
}

.dialog-wishlist.active {
  color: #fff;
  border-color: var(--burgundy);
  background: var(--burgundy);
}

.admin-overlay {
  padding-block: 30px;
}

.admin-panel {
  width: min(1050px, 100%);
  min-height: 720px;
  padding: clamp(25px, 4vw, 55px);
  background: var(--white);
  box-shadow: 0 40px 100px rgba(0,0,0,.52);
  transform: translateY(-25px);
  transition: .4s var(--ease);
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.admin-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compact-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
}

.admin-head h2 {
  margin: 6px 0;
  font-size: clamp(27px, 3vw, 42px);
}

.admin-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.import-steps {
  margin: 36px 0 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.import-steps span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 9px;
}

.import-steps span::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16px;
  right: 32px;
  left: 0;
  height: 1px;
  background: var(--line);
}

.import-steps span:last-child::after {
  display: none;
}

.import-steps b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.import-steps .active {
  color: var(--burgundy);
  font-weight: 700;
}

.import-steps .active b {
  color: #fff;
  border-color: var(--burgundy);
  background: var(--burgundy);
}

.web-import-search {
  display: grid;
  grid-template-columns: 1fr 175px;
  gap: 10px;
}

.web-import-search > div {
  height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.web-import-search svg {
  width: 20px;
}

.web-import-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.source-note {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
}

.source-note span {
  color: #33805c;
}

.source-note p {
  margin: 0;
  min-width: min(520px, 100%);
  flex: 1;
  font-size: 7px;
}

.source-note .ai-source-badge {
  min-height: 25px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.source-note .ai-source-badge.connected {
  color: #24724f;
  border-color: rgba(36,114,79,.25);
  background: rgba(36,114,79,.08);
}

.source-note .ai-source-badge.needs-key {
  color: #8a5c0a;
  border-color: rgba(181,129,28,.28);
  background: rgba(181,129,28,.09);
}

.source-note .ai-source-badge.offline {
  color: #8c4452;
  border-color: rgba(140,68,82,.25);
  background: rgba(140,68,82,.08);
}

.source-note .ai-source-badge.checking {
  animation: aiBadgePulse 1.2s ease-in-out infinite alternate;
}

@keyframes aiBadgePulse {
  to { opacity: .55; }
}

.import-workspace {
  min-height: 370px;
  margin-top: 22px;
  border: 1px dashed var(--line);
  background: var(--paper);
}

.import-empty,
.import-loading {
  min-height: 370px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.import-empty > span {
  font-size: 50px;
  color: var(--gold-dark);
}

.import-empty h3 {
  margin-bottom: 0;
}

.import-empty p {
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 10px;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.web-results {
  padding: 20px;
}

.web-results h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.web-result {
  width: 100%;
  margin-bottom: 8px;
  padding: 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: right;
  background: var(--card);
  cursor: pointer;
}

.web-result:hover {
  border-color: var(--gold);
}

.web-result b {
  display: block;
  font-size: 11px;
}

.web-result p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 8px;
}

.web-result span {
  color: var(--burgundy);
  font-size: 18px;
}

.import-review {
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 25px;
}

.import-preview {
  min-height: 280px;
  padding: 15px;
  display: grid;
  place-items: center;
  background: #fff;
}

.import-preview img {
  max-height: 250px;
  object-fit: contain;
}

.import-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.import-fields label {
  color: var(--ink-soft);
  font-size: 8px;
}

.import-fields input,
.import-fields textarea,
.import-fields select {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  outline: none;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 10px;
}

.import-fields textarea {
  min-height: 80px;
  resize: vertical;
}

.import-fields .wide {
  grid-column: 1 / -1;
}

.import-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
}

.toast-region {
  position: fixed;
  z-index: 200;
  bottom: 30px;
  left: 30px;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 280px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: #171111;
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
  animation: toastIn .4s var(--ease);
  font-size: 10px;
}

.toast i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2c1b04;
  background: var(--gold-bright);
  font-style: normal;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(15px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

[dir="ltr"] body {
  font-family: "Alexandria", "Segoe UI", sans-serif;
}

[dir="ltr"] .hero-vignette {
  background:
    linear-gradient(270deg, rgba(14,7,8,.05), rgba(16,7,9,.45) 44%, rgba(10,5,6,.93)),
    linear-gradient(0deg, rgba(8,4,5,.72), transparent 42%);
}

[dir="ltr"] .hero-content {
  margin-inline-start: 7%;
}

[dir="ltr"] .hero-image {
  transform: scaleX(-1) scale(1.015);
}

[dir="ltr"] .hero:hover .hero-image {
  transform: scaleX(-1) scale(1.035);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding-inline: 30px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav a {
    font-size: 10px;
  }

  .header-actions .mode-toggle,
  .header-actions .icon-button:nth-of-type(2) {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .product-card {
    scroll-snap-align: start;
  }

  .perfume-profile {
    grid-template-columns: 1fr 1.4fr;
  }

  .accord-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-inline-start: 0 !important;
  }

  .accord-bars,
  .scent-meta {
    max-width: 800px;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 77px;
  }

  body {
    padding-bottom: 72px;
  }

  .announcement {
    min-height: 31px;
    font-size: 9px;
  }

  .announcement .text-button {
    display: none;
  }

  .site-header {
    min-height: 68px;
    padding: 8px 18px;
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions .search-trigger,
  .header-actions .mode-toggle,
  .header-actions .icon-button,
  .header-actions .cart-button {
    display: none;
  }

  .brand-word {
    font-size: 25px;
  }

  .brand small {
    font-size: 6px;
  }

  .hero {
    min-height: 740px;
    align-items: flex-end;
  }

  .hero-image {
    background-position: 32% center;
  }

  .hero-vignette {
    background:
      linear-gradient(0deg, rgba(9,4,5,.98) 10%, rgba(10,5,6,.73) 50%, rgba(10,5,6,.08) 100%),
      linear-gradient(90deg, transparent, rgba(8,4,5,.35));
  }

  .hero-content,
  [dir="ltr"] .hero-content {
    width: auto;
    margin: 0;
    padding: 260px 22px 115px;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 64px);
  }

  .hero-index {
    left: 22px;
    bottom: 34px;
  }

  .scroll-cue {
    display: none;
  }

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 12px;
  }

  .service-strip article {
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
  }

  .service-strip article:nth-child(odd) {
    border-inline-start: 0;
  }

  .section {
    padding: 75px 20px;
  }

  .section-heading,
  .heading-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-actions {
    width: 100%;
    gap: 14px;
  }

  .filter-chips {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .carousel-arrows {
    display: none;
  }

  .product-grid {
    margin-inline-end: -20px;
    grid-template-columns: repeat(4, 76vw);
    gap: 13px;
  }

  .product-image {
    aspect-ratio: .9;
  }

  .quick-view {
    transform: translateY(0);
  }

  .collection-story,
  .discover-section,
  .notes-library,
  .alternative-section,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .story-visual {
    min-height: 500px;
  }

  .story-copy {
    padding: 65px 22px;
  }

  .discover-section,
  .notes-library,
  .alternative-section {
    gap: 50px;
  }

  .note-bubbles {
    grid-template-columns: repeat(2, 1fr);
  }

  .notes-header {
    max-width: 600px;
  }

  .perfume-profile {
    grid-template-columns: 1fr;
  }

  .perfume-profile > article {
    border-top: 1px solid var(--line);
    border-inline-start: 0;
  }

  .perfume-profile > article:first-child {
    border-top: 0;
  }

  .accord-panel {
    grid-column: auto;
  }

  .performance-grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-art {
    height: 210px;
  }

  .newsletter {
    gap: 35px;
  }

  footer {
    padding-bottom: 50px;
  }

  footer,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    margin-bottom: 45px;
  }

  .footer-links {
    gap: 25px;
  }

  .footer-links div {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .mobile-nav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    height: 70px;
    padding: 7px 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(255,255,255,.1);
    color: #fff;
    background: rgba(17,12,12,.96);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a,
  .mobile-nav button {
    position: relative;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 2px;
    border: 0;
    color: rgba(255,255,255,.55);
    background: transparent;
    font-size: 18px;
  }

  .mobile-nav b {
    font-size: 7px;
  }

  .mobile-nav .active,
  .mobile-nav a:hover,
  .mobile-nav button:hover {
    color: var(--gold-bright);
  }

  .mobile-nav i {
    position: absolute;
    top: 2px;
    left: 20%;
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--burgundy);
    font-size: 7px;
    font-style: normal;
  }

  .search-panel {
    margin-top: 3vh;
    min-height: 420px;
  }

  .product-overlay {
    padding: 12px;
    place-items: start center;
  }

  .product-dialog {
    margin-block: 12px 82px;
  }

  .product-dialog-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-dialog-image {
    min-height: 360px;
    height: 46vh;
  }

  .product-dialog-copy {
    padding: 35px 24px;
  }

  .product-dialog-copy h2 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .product-dialog-copy > small {
    margin-top: 18px;
  }

  .admin-overlay {
    padding: 0;
  }

  .admin-panel {
    min-height: 100vh;
  }

  .web-import-search {
    grid-template-columns: 1fr;
  }

  .import-review {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    margin-top: 25px;
  }

  .service-strip article {
    padding-inline: 7px;
  }

  .service-icon {
    width: 33px;
    height: 33px;
  }

  .service-strip b {
    font-size: 9px;
  }

  .service-strip small {
    font-size: 7px;
  }

  .note-ribbon {
    grid-template-columns: 1fr;
  }

  .note-ribbon span {
    border-inline-start: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .note-category-grid {
    grid-template-columns: 1fr;
  }

  .pyramid-row {
    grid-template-columns: 1fr repeat(3, 1fr);
  }

  .pyramid-label b {
    font-size: 7px;
  }

  .alternative-search {
    height: auto;
    flex-direction: column;
    border: 0;
    background: transparent;
  }

  .alternative-search input {
    height: 56px;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.05);
  }

  .alternative-search button {
    width: 100%;
    height: 54px;
  }

  .newsletter form > div {
    height: auto;
    flex-direction: column;
    border: 0;
  }

  .newsletter input,
  .newsletter button {
    width: 100%;
    height: 55px;
    border: 1px solid rgba(255,255,255,.25);
  }

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

  .import-fields .wide {
    grid-column: auto;
  }

  .toast-region {
    right: 15px;
    bottom: 85px;
    left: 15px;
  }

  .toast {
    min-width: 0;
  }

  .product-dialog-image {
    min-height: 290px;
    height: 40vh;
  }

  .product-dialog-description {
    margin: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Premium commerce header */
.announcement {
  min-height: 34px;
  padding-block: 4px;
  justify-content: space-between;
}

.announcement-benefits {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.announcement-benefits span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.announcement-benefits i {
  color: var(--gold-bright);
  font-style: normal;
}

.announcement-benefits b {
  font-size: 8px;
  font-weight: 500;
}

.site-header {
  display: block;
  min-height: 0;
  padding: 0;
  background: color-mix(in srgb, var(--white) 95%, transparent);
  transition: box-shadow .3s ease;
}

.site-header.compact {
  box-shadow: 0 14px 42px rgba(25, 10, 12, .1);
}

.header-main {
  min-height: 76px;
  padding: 9px clamp(20px, 4.8vw, 76px);
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(310px, 1.5fr) minmax(330px, .9fr);
  align-items: center;
  gap: clamp(18px, 3vw, 45px);
  transition: min-height .35s var(--ease), padding .35s var(--ease);
}

.compact .header-main {
  min-height: 62px;
  padding-block: 5px;
}

.compact .brand-word {
  font-size: 26px;
}

.header-search {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  text-align: start;
  background: var(--paper);
  cursor: text;
  transition: .25s ease;
}

.header-search:hover {
  border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
  background: var(--white);
  box-shadow: 0 9px 30px rgba(86, 54, 24, .08);
}

.header-search svg {
  width: 20px;
  color: var(--burgundy);
}

.header-search > span {
  display: grid;
  line-height: 1.35;
}

.header-search b {
  color: var(--ink);
  font-size: 10px;
}

.header-search small {
  font-size: 7px;
}

.header-search kbd {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 7px;
}

.header-actions {
  gap: 7px;
}

.currency-selector,
.brands-nav {
  position: relative;
}

.currency-button {
  min-width: 66px;
  height: 42px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.currency-button i,
.brands-nav > button i {
  font-size: 10px;
  font-style: normal;
  transition: transform .25s ease;
}

.currency-selector.open .currency-button i,
.brands-nav.open > button i {
  transform: rotate(180deg);
}

.currency-dropdown,
.brands-dropdown {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: .25s var(--ease);
}

.currency-selector.open .currency-dropdown,
.brands-nav.open .brands-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.currency-dropdown button {
  width: 100%;
  padding: 9px;
  display: flex;
  justify-content: space-between;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.currency-dropdown button:hover {
  color: var(--burgundy);
  background: var(--paper);
}

.category-nav {
  min-height: 45px;
  padding-inline: clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 38px);
  border-top: 1px solid var(--line);
}

.category-nav > a,
.brands-nav > button {
  position: relative;
  padding: 14px 0 12px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.category-nav > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}

.category-nav > a:hover,
.category-nav > a.active,
.brands-nav > button:hover {
  color: var(--ink);
}

.category-nav > a:hover::after,
.category-nav > a.active::after {
  width: 100%;
}

.brands-nav > button {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brands-dropdown {
  right: 50%;
  width: 360px;
  padding: 17px;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  transform: translate(50%, -7px);
}

.brands-nav.open .brands-dropdown {
  display: grid;
  transform: translate(50%, 0);
}

.brands-dropdown > div {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  padding: 8px 5px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brands-dropdown small {
  color: var(--ink-soft);
  font-size: 7px;
}

.brands-dropdown b {
  color: var(--gold-dark);
  font-family: var(--font-display);
  letter-spacing: .12em;
}

.brands-dropdown button {
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  text-align: start;
}

.brands-dropdown button:hover {
  color: var(--burgundy);
  background: var(--paper);
}

.mobile-menu-button,
.mobile-menu-panel,
.mobile-menu-backdrop {
  display: none;
}

.product-search-result {
  grid-template-columns: 54px 1fr auto;
  text-align: start;
}

.product-search-result img {
  width: 54px;
  height: 62px;
  object-fit: cover;
  background: var(--paper);
}

.product-search-result > span {
  display: grid;
  justify-items: start;
}

.product-search-result small {
  color: var(--gold-dark);
  font-size: 6px;
  letter-spacing: .08em;
}

.product-search-result i {
  color: var(--ink-soft);
  font-size: 7px;
  font-style: normal;
}

.product-search-result strong {
  color: var(--burgundy);
  font-size: 9px;
}

.search-all-results {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  border: 0;
  color: #fff;
  background: var(--burgundy);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.search-all-results[hidden] {
  display: none;
}

.product-grid-empty {
  grid-column: 1 / -1;
  min-height: 390px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.product-grid-empty > span {
  color: var(--gold);
  font-size: 45px;
}

.product-grid-empty h3 {
  margin-bottom: 0;
}

.product-grid-empty p {
  color: var(--ink-soft);
  font-size: 9px;
}

.product-grid-empty button {
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
  cursor: pointer;
}

/* Catalog studio */
.admin-overlay {
  padding: 18px;
}

.admin-panel {
  width: min(1380px, 100%);
  min-height: min(900px, calc(100vh - 36px));
  padding: clamp(24px, 3vw, 42px);
}

.admin-head h2 {
  margin: 4px 0;
}

.admin-stats {
  margin: 25px 0 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.admin-stats article {
  min-height: 68px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.admin-stats article > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--burgundy);
  background: var(--white);
}

.admin-stats article div {
  display: grid;
}

.admin-stats b {
  font-size: 18px;
}

.admin-stats small {
  color: var(--ink-soft);
  font-size: 7px;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.admin-flow {
  min-width: 0;
}

.admin-panel .import-steps {
  margin: 10px 0 18px;
}

.admin-search-field {
  position: relative;
}

.admin-suggestions {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 360px;
  padding: 7px;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: .2s ease;
}

.admin-suggestions.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-suggestion {
  width: 100%;
  padding: 11px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
  background: transparent;
  cursor: pointer;
}

.admin-suggestion:hover {
  background: var(--paper);
}

.admin-suggestion > span:nth-child(2) {
  display: grid;
}

.admin-suggestion b {
  font-size: 10px;
}

.admin-suggestion small {
  color: var(--ink-soft);
  font-size: 7px;
}

.suggestion-source {
  width: fit-content;
  padding: 4px 6px;
  color: var(--burgundy);
  border: 1px solid color-mix(in srgb, var(--burgundy) 25%, transparent);
  font-size: 6px;
  font-weight: 700;
}

.admin-suggestion-message {
  padding: 15px;
  color: var(--ink-soft);
  font-size: 9px;
}

.admin-search-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid var(--line);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.admin-search-field.loading .admin-search-spinner {
  display: block;
}

.import-loading p {
  color: var(--ink-soft);
  font-size: 8px;
}

.catalog-sidebar {
  min-height: 590px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.catalog-sidebar-head {
  padding-bottom: 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.catalog-sidebar-head h3 {
  margin: 2px 0;
  font-size: 17px;
}

.catalog-sidebar-head > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--burgundy);
  cursor: pointer;
}

.catalog-list {
  max-height: 600px;
  overflow: auto;
}

.catalog-list-item {
  width: 100%;
  padding: 11px 0;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
  background: transparent;
  cursor: pointer;
}

.catalog-list-item img {
  width: 48px;
  height: 58px;
  object-fit: cover;
}

.catalog-list-item > span {
  min-width: 0;
  display: grid;
}

.catalog-list-item small {
  color: var(--gold-dark);
  font-size: 5px;
}

.catalog-list-item b {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-list-item i {
  width: fit-content;
  margin-top: 4px;
  padding: 2px 5px;
  border-radius: 10px;
  font-size: 5px;
  font-style: normal;
}

.catalog-list-item i.draft { color: #856315; background: #f4e6b4; }
.catalog-list-item i.published { color: #17603e; background: #d9f1e5; }
.catalog-list-item i.unavailable { color: #7b2936; background: #f3dfe3; }

.catalog-empty {
  min-height: 300px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--ink-soft);
  text-align: center;
  font-size: 9px;
}

.catalog-empty span {
  color: var(--gold);
  font-size: 34px;
}

.catalog-review {
  padding: clamp(14px, 2vw, 24px);
}

.review-summary {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.confidence-card,
.missing-card,
.duplicate-alert {
  min-height: 65px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--white);
}

.confidence-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.confidence-card.trusted > span { color: #1e7550; background: #dbf1e6; }
.confidence-card.review > span { color: #8a6616; background: #f5e8bd; }
.confidence-card.incomplete > span { color: #8b3040; background: #f3dfe3; }

.confidence-card div {
  display: grid;
}

.confidence-card small {
  color: var(--ink-soft);
  font-size: 6px;
}

.confidence-card b {
  font-size: 10px;
}

.missing-card b {
  font-family: var(--font-display);
  font-size: 30px;
}

.missing-card span {
  color: var(--ink-soft);
  font-size: 8px;
}

.duplicate-alert {
  grid-column: 1 / -1;
  color: #7b2936;
  border-color: #d8a8b1;
  background: #fff2f4;
}

.duplicate-alert[hidden] {
  display: none;
}

.duplicate-alert {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.duplicate-alert b {
  font-size: 10px;
}

.duplicate-alert span {
  font-size: 8px;
}

.review-section {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.review-section-head {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-section-head > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--burgundy);
  font-size: 7px;
}

.review-section-head div {
  display: grid;
}

.review-section-head b {
  font-size: 11px;
}

.review-section-head small {
  color: var(--ink-soft);
  font-size: 7px;
}

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

.review-grid label,
.image-url-field {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 600;
}

.review-grid input,
.review-grid select,
.review-grid textarea,
.image-url-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 9px;
}

.review-grid input:focus,
.review-grid select:focus,
.review-grid textarea:focus,
.image-url-field input:focus {
  border-color: var(--gold);
  background: var(--white);
}

.description-grid {
  grid-template-columns: 1fr 1fr;
}

.review-grid textarea {
  height: 130px;
  resize: vertical;
}

.image-url-field {
  margin-top: 12px;
}

.review-images {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.review-image {
  position: relative;
  padding: 5px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.review-image.selected {
  border: 2px solid var(--burgundy);
}

.review-image input {
  position: absolute;
  opacity: 0;
}

.review-image img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  background: var(--paper);
}

.review-image span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-image.broken {
  opacity: .35;
}

.no-images {
  grid-column: 1 / -1;
  padding: 25px;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  text-align: center;
  font-size: 8px;
}

.source-log {
  display: grid;
  gap: 7px;
}

.source-log article {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
}

.source-log article > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2a7653;
  font-size: 8px;
}

.source-log article.unavailable > span {
  background: #9a6d1d;
}

.source-log article div {
  display: grid;
}

.source-log b {
  font-size: 9px;
}

.source-log p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 7px;
}

.source-log a {
  color: var(--burgundy);
}

.review-submit {
  position: sticky;
  z-index: 4;
  bottom: -1px;
  margin-top: 15px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #fff;
  background: #1b1313;
  box-shadow: 0 -15px 35px rgba(20, 10, 10, .12);
}

.review-submit div {
  display: grid;
}

.review-submit b {
  font-size: 9px;
}

.review-submit small {
  color: rgba(255,255,255,.55);
  font-size: 6px;
}

.import-success {
  min-height: 500px;
  padding: 30px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.import-success > span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #27704f;
  font-size: 25px;
}

.import-success h3 {
  margin-bottom: 0;
}

.import-success p {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 9px;
}

.import-success > div {
  display: flex;
  gap: 8px;
}

@media (max-width: 1080px) {
  .header-main {
    grid-template-columns: minmax(175px, .7fr) minmax(260px, 1.3fr) auto;
    padding-inline: 24px;
  }

  .category-nav {
    padding-inline: 20px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-actions .wishlist-button {
    display: none;
  }

  .header-actions .account-button {
    display: grid !important;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    min-height: 0;
  }

  .catalog-list {
    max-height: 300px;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 74px;
  }

  body {
    padding-bottom: 0;
  }

  .announcement {
    min-height: 29px;
    padding-inline: 12px;
  }

  .announcement-benefits {
    width: 100%;
    justify-content: center;
  }

  .announcement-benefits span {
    display: none;
  }

  .announcement-benefits span:first-child {
    display: flex;
  }

  .announcement .text-button {
    display: none;
  }

  .site-header {
    min-height: 66px;
  }

  .header-main,
  .compact .header-main {
    position: relative;
    min-height: 66px;
    padding: 8px 13px;
    display: flex;
    gap: 8px;
  }

  .header-main > .brand {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
  }

  [dir="ltr"] .header-main > .brand {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-main .brand-mark {
    display: none;
  }

  .header-main .brand-word,
  .compact .brand-word {
    font-size: 24px;
  }

  .header-main .brand small {
    font-size: 5px;
  }

  .mobile-menu-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
  }

  .mobile-menu-button span {
    width: 15px;
    height: 1px;
    background: currentColor;
  }

  .header-search {
    width: 40px;
    height: 40px;
    margin-inline-start: auto;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
  }

  .header-search > span,
  .header-search kbd {
    display: none;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .currency-selector,
  .header-actions .lang-button,
  .header-actions .wishlist-button {
    display: none;
  }

  .header-actions .icon-button,
  .header-actions .cart-button {
    width: 40px;
    height: 40px;
    display: grid;
  }

  .header-actions .wishlist-button {
    display: none;
  }

  .category-nav {
    display: none;
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 118;
    inset: 0;
    display: block;
    background: rgba(10, 6, 7, .65);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
  }

  .mobile-menu-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-panel {
    position: fixed;
    z-index: 119;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(390px, 92vw);
    padding: 22px;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--white);
    box-shadow: -25px 0 80px rgba(0,0,0,.25);
    transform: translateX(105%);
    transition: .4s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  [dir="ltr"] .mobile-menu-panel {
    right: auto;
    left: 0;
    transform: translateX(-105%);
  }

  .mobile-menu-panel.open {
    transform: translateX(0);
  }

  .mobile-menu-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .mobile-menu-search {
    margin: 25px 0 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    font-size: 9px;
  }

  .mobile-menu-panel nav {
    display: grid;
  }

  .mobile-menu-panel nav a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
  }

  .mobile-taxonomy{margin-top:14px;display:grid;gap:8px}
  .mobile-taxonomy-group{border:1px solid var(--line);border-radius:10px;background:var(--paper)}
  .mobile-taxonomy-group summary{min-height:44px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--burgundy);font-size:11px;font-weight:800;cursor:pointer;list-style:none}
  .mobile-taxonomy-group summary::-webkit-details-marker{display:none}
  .mobile-taxonomy-group summary i{font-style:normal;transition:transform .2s ease}
  .mobile-taxonomy-group[open] summary i{transform:rotate(180deg)}
  .mobile-taxonomy-list{max-height:46vh;padding:5px 8px 10px;display:grid;grid-template-columns:1fr;gap:4px;overflow-y:auto}
  .mobile-taxonomy-list button{width:100%;min-height:38px;padding:7px 10px;display:flex;align-items:center;justify-content:space-between;gap:9px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:var(--white);font-size:9px;text-align:start}
  .mobile-taxonomy-list button i,.mobile-taxonomy-list button b{color:var(--gold-dark);font-style:normal}

  .mobile-admin-link {
    width: 100%;
    margin-top: 18px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    color: #fff;
    background: var(--burgundy);
    font-size: 8px;
  }

  .mobile-admin-link i {
    font-style: normal;
  }

  .mobile-menu-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
  }

  .mobile-menu-actions button {
    padding: 13px 5px;
    display: grid;
    justify-items: center;
    gap: 3px;
    border: 0;
    background: transparent;
  }

  .mobile-menu-actions b {
    font-size: 7px;
  }

  .mobile-nav {
    display: none;
  }

  .admin-overlay {
    padding: 0;
  }

  .admin-panel {
    min-height: 100vh;
    padding: 20px 14px 70px;
  }

  .admin-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-stats article {
    padding: 9px;
    gap: 7px;
  }

  .admin-stats article > span {
    display: none;
  }

  .admin-stats b {
    font-size: 14px;
  }

  .web-import-search {
    grid-template-columns: 1fr;
  }

  .admin-suggestion {
    grid-template-columns: 65px 1fr auto;
  }

  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-images {
    grid-template-columns: repeat(3, 1fr);
  }

  .review-submit {
    bottom: 0;
  }
}

@media (max-width: 580px) {
  .header-main > .brand {
    margin-inline-start: -7px;
  }

  .search-panel {
    width: 100%;
    padding: 58px 20px 28px;
  }

  .product-search-result {
    grid-template-columns: 48px 1fr;
  }

  .product-search-result strong {
    grid-column: 2;
  }

  .admin-head p {
    font-size: 8px;
  }

  .admin-stats {
    gap: 5px;
  }

  .admin-stats small {
    font-size: 5px;
  }

  .review-summary,
  .review-grid,
  .description-grid {
    grid-template-columns: 1fr;
  }

  .review-images {
    grid-template-columns: 1fr 1fr;
  }

  .review-section {
    padding: 13px;
  }

  .review-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .review-submit .button {
    width: 100%;
  }

  .import-success > div {
    width: 100%;
    flex-direction: column;
  }
}

/* Advanced ORIGO Admin */
.advanced-admin-overlay {
  padding: 0;
  place-items: stretch;
  background: rgba(7, 5, 5, .76);
}

.advanced-admin-panel {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  color: #251c1c;
  background: #f4f1ec;
  overflow: hidden;
}

body.dark .advanced-admin-panel {
  color: #f8f3eb;
  background: #161313;
}

.advanced-admin-sidebar {
  min-height: 0;
  padding: 20px 14px 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #fdf9f1;
  background:
    radial-gradient(circle at 15% 8%, rgba(177, 39, 75, .28), transparent 27%),
    #190f12;
  border-inline-end: 1px solid rgba(255,255,255,.08);
}

.admin-sidebar-brand {
  min-height: 58px;
  padding: 6px 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.admin-sidebar-brand .brand-mark {
  width: 27px;
  height: 35px;
}

.admin-sidebar-brand div {
  display: grid;
}

.admin-sidebar-brand b {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .13em;
  line-height: 1;
}

.admin-sidebar-brand small {
  margin-top: 4px;
  color: var(--gold);
  font-size: 6px;
  letter-spacing: .2em;
}

#advanced-admin-nav {
  min-height: 0;
  padding: 13px 0;
  overflow-y: auto;
  scrollbar-color: rgba(255,255,255,.18) transparent;
  scrollbar-width: thin;
}

#advanced-admin-nav > small {
  margin: 15px 10px 5px;
  display: block;
  color: rgba(255,255,255,.35);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .18em;
}

#advanced-admin-nav button {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 23px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 5px;
  color: rgba(255,255,255,.68);
  background: transparent;
  font-size: 8px;
  text-align: start;
  cursor: pointer;
  transition: .2s ease;
}

#advanced-admin-nav button i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.55);
  border-radius: 5px;
  background: rgba(255,255,255,.05);
  font-size: 12px;
  font-style: normal;
}

#advanced-admin-nav button b {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 99px;
  color: #fff;
  background: var(--burgundy-2);
  font-size: 6px;
  text-align: center;
}

#advanced-admin-nav button:hover,
#advanced-admin-nav button.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(143, 24, 52, .9), rgba(109,13,36,.45));
}

#advanced-admin-nav button.active i {
  color: var(--gold-bright);
  background: rgba(255,255,255,.1);
}

.admin-sidebar-user {
  padding: 12px 8px 2px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.admin-sidebar-user > span,
.admin-profile-button > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2b171d;
  background: linear-gradient(135deg, #ffe4a1, #c39132);
  font-family: var(--font-display);
  font-size: 11px;
}

.admin-sidebar-user div {
  min-width: 0;
  display: grid;
}

.admin-sidebar-user b {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-user small {
  color: rgba(255,255,255,.4);
  font-size: 6px;
}

.admin-sidebar-user button {
  border: 0;
  color: rgba(255,255,255,.45);
  background: transparent;
  cursor: pointer;
}

.advanced-admin-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
}

.advanced-admin-topbar {
  padding: 10px clamp(14px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(34,24,24,.1);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  z-index: 5;
}

body.dark .advanced-admin-topbar {
  border-color: rgba(255,255,255,.08);
  background: rgba(28,23,23,.92);
}

.admin-sidebar-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 20px;
}

.admin-global-search {
  width: min(460px, 48%);
  height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(34,24,24,.1);
  border-radius: 7px;
  background: #f5f2ee;
}

body.dark .admin-global-search {
  border-color: rgba(255,255,255,.1);
  background: #211c1c;
}

.admin-global-search > span {
  color: var(--burgundy);
  font-size: 19px;
}

.admin-global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font-size: 8px;
}

.admin-global-search kbd {
  padding: 2px 7px;
  border: 1px solid rgba(34,24,24,.12);
  border-radius: 4px;
  color: #8c8280;
  background: rgba(255,255,255,.5);
  font-family: inherit;
  font-size: 6px;
}

.admin-topbar-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-topbar-actions > button:not(.close-button) {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(34,24,24,.1);
  border-radius: 7px;
  color: inherit;
  background: transparent;
  font-size: 7px;
  cursor: pointer;
}

body.dark .admin-topbar-actions > button:not(.close-button) {
  border-color: rgba(255,255,255,.1);
}

.admin-topbar-actions .admin-notifications {
  position: relative;
  font-size: 17px !important;
}

.admin-notifications i {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--burgundy-2);
  font-size: 5px;
  font-style: normal;
  position: absolute;
  inset-inline-end: -3px;
  top: -3px;
}

.admin-topbar-actions .admin-profile-button {
  min-width: 150px !important;
  padding: 2px 8px !important;
  display: grid;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  gap: 7px;
  text-align: start;
}

.admin-profile-button > span {
  width: 29px;
  height: 29px;
  font-size: 8px;
}

.admin-profile-button b {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advanced-admin-topbar .close-button {
  position: static;
}

.advanced-admin-body {
  min-height: 0;
  padding: 25px clamp(16px, 3vw, 38px) 50px;
  overflow-y: auto;
}

.admin-view-head {
  margin-bottom: 23px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9a8f8a;
  font-size: 7px;
}

.admin-breadcrumb span {
  color: var(--burgundy);
  font-weight: 800;
}

.admin-breadcrumb i {
  font-style: normal;
}

.admin-view-head h1 {
  margin: 5px 0 0;
  font-size: clamp(27px, 3.2vw, 43px);
  line-height: 1.2;
}

.admin-view-head p {
  margin: 3px 0 0;
  color: #847975;
  font-size: 8px;
}

body.dark .admin-view-head p,
body.dark .admin-breadcrumb {
  color: #aa9f99;
}

.admin-view-actions {
  display: flex;
  gap: 8px;
}

.admin-view-actions .button {
  min-height: 39px;
  padding: 9px 14px;
  font-size: 7px;
}

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

.admin-metric-card {
  min-height: 122px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(34,24,24,.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(40,25,25,.035);
}

body.dark .admin-metric-card,
body.dark .admin-chart-card,
body.dark .admin-status-card,
body.dark .admin-list-card,
body.dark .admin-alerts-card,
body.dark .admin-data-table,
body.dark .admin-generic-grid article,
body.dark .admin-add-entity-card,
body.dark .admin-report-grid article,
body.dark .admin-settings-form,
body.dark .admin-quick-create {
  border-color: rgba(255,255,255,.09);
  background: #211c1c;
}

.admin-metric-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-metric-card header span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--burgundy);
  background: rgba(109,13,36,.07);
  font-size: 13px;
}

.admin-metric-card header i {
  padding: 2px 6px;
  border-radius: 99px;
  color: #267452;
  background: rgba(38,116,82,.08);
  font-size: 6px;
  font-style: normal;
}

.admin-metric-card strong {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

[dir="rtl"] .admin-metric-card strong {
  font-family: var(--font-ar);
  font-size: 20px;
}

.admin-metric-card > small {
  color: #897d79;
  font-size: 7px;
}

.admin-metric-card.burgundy {
  color: #fff;
  border-color: #651024;
  background:
    radial-gradient(circle at 85% 12%, rgba(255,215,120,.14), transparent 28%),
    linear-gradient(135deg, #72152c, #420815);
}

.admin-metric-card.burgundy header span {
  color: var(--gold-bright);
  background: rgba(255,255,255,.1);
}

.admin-metric-card.burgundy > small {
  color: rgba(255,255,255,.65);
}

.admin-metric-card.warning {
  border-color: rgba(194,121,32,.35);
  background: #fffaf0;
}

body.dark .admin-metric-card.warning {
  background: #2d2518;
}

.admin-overview-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: 12px;
}

.admin-overview-grid.lower {
  grid-template-columns: 1.15fr 1fr;
}

.admin-chart-card,
.admin-status-card,
.admin-list-card,
.admin-alerts-card {
  min-height: 300px;
  padding: 19px;
  border: 1px solid rgba(34,24,24,.09);
  border-radius: 8px;
  background: #fff;
}

.admin-chart-card > header,
.admin-status-card > header,
.admin-list-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-chart-card h3,
.admin-status-card h3,
.admin-list-card h3,
.admin-alerts-card h3 {
  margin: 3px 0 0;
  font-size: 14px;
}

.admin-chart-card select {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid rgba(34,24,24,.1);
  border-radius: 5px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 7px;
}

.admin-sales-chart {
  height: 190px;
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: clamp(8px, 2vw, 22px);
  border-bottom: 1px solid rgba(34,24,24,.1);
  background: repeating-linear-gradient(to bottom, transparent, transparent 39px, rgba(34,24,24,.055) 40px);
}

.admin-sales-chart span {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  justify-items: center;
}

.admin-sales-chart i {
  width: min(28px, 70%);
  height: var(--chart-value);
  min-height: 4px;
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(#a3274a, #630d24);
  box-shadow: 0 8px 18px rgba(109,13,36,.18);
}

.admin-sales-chart small {
  padding: 6px 0;
  color: #8b7f7b;
  font-size: 6px;
}

.admin-chart-card > footer {
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-chart-card > footer span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #887d79;
  font-size: 7px;
}

.admin-chart-card > footer span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--burgundy);
}

.admin-chart-card > footer b {
  color: var(--burgundy);
  font-size: 11px;
}

.admin-status-card header button,
.admin-list-card header button {
  border: 0;
  color: var(--burgundy);
  background: none;
  font-size: 7px;
  cursor: pointer;
}

.admin-status-card > div,
.admin-workflow-strip {
  margin-top: 15px;
  display: grid;
  gap: 6px;
}

.admin-status-card > div button,
.admin-workflow-strip button {
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(34,24,24,.075);
  border-radius: 5px;
  color: inherit;
  background: #faf8f5;
  text-align: start;
  cursor: pointer;
}

body.dark .admin-status-card > div button,
body.dark .admin-workflow-strip button {
  border-color: rgba(255,255,255,.08);
  background: #282222;
}

.admin-status-card button > i,
.admin-workflow-strip button > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9d918d;
}

.admin-status-card button > i.new,
.admin-workflow-strip button > i.new { background: #b88931; }
.admin-status-card button > i.processing,
.admin-workflow-strip button > i.processing { background: #356daa; }
.admin-status-card button > i.shipped,
.admin-workflow-strip button > i.shipped { background: #764ba2; }
.admin-status-card button > i.completed,
.admin-workflow-strip button > i.completed { background: #267452; }
.admin-status-card button > i.cancelled,
.admin-workflow-strip button > i.cancelled { background: #a33b43; }

.admin-status-card button span,
.admin-workflow-strip button span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-status-card button b,
.admin-workflow-strip button b {
  font-size: 11px;
}

.admin-status-card button small,
.admin-workflow-strip button small {
  color: #887d79;
  font-size: 7px;
}

.admin-status-card button strong,
.admin-workflow-strip button strong {
  color: #a19793;
  font-size: 8px;
}

.admin-ranked-product {
  padding: 9px 0;
  display: grid;
  grid-template-columns: 22px 47px 1fr auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(34,24,24,.07);
}

.admin-ranked-product > b {
  color: #a69b96;
  font-family: var(--font-display);
  font-size: 10px;
}

.admin-ranked-product img {
  width: 47px;
  height: 47px;
  object-fit: contain;
  border-radius: 5px;
  background: #f3eee8;
}

.admin-ranked-product span {
  min-width: 0;
  display: grid;
}

.admin-ranked-product strong {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ranked-product small {
  color: #948986;
  font-size: 6px;
}

.admin-ranked-product > i {
  color: var(--burgundy);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}

.admin-alerts-card > header {
  margin-bottom: 13px;
}

.admin-alerts-card > div {
  display: grid;
  gap: 7px;
}

.admin-alerts-card button {
  padding: 10px;
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 5px;
  color: inherit;
  background: #faf8f5;
  text-align: start;
  cursor: pointer;
}

body.dark .admin-alerts-card button {
  background: #282222;
}

.admin-alerts-card button > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #8a6319;
  background: #fff3d8;
  font-weight: 800;
}

.admin-alerts-card button > span.danger {
  color: #a13b43;
  background: #fde6e7;
}

.admin-alerts-card button div {
  display: grid;
}

.admin-alerts-card button b {
  font-size: 7px;
}

.admin-alerts-card button small {
  color: #928682;
  font-size: 6px;
}

.admin-alerts-card button > i {
  color: #9c918d;
  font-size: 8px;
  font-style: normal;
}

.admin-workflow-strip {
  margin: 0 0 13px;
  grid-template-columns: repeat(5, 1fr);
}

.admin-workflow-strip button {
  min-width: 0;
}

.admin-data-table {
  border: 1px solid rgba(34,24,24,.09);
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.admin-data-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(34,24,24,.07);
  text-align: start;
  vertical-align: middle;
}

.admin-data-table th {
  color: #887d78;
  background: #faf8f5;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .04em;
}

body.dark .admin-data-table th {
  background: #282222;
}

.admin-data-table td {
  font-size: 8px;
}

.admin-data-table td > b,
.admin-data-table td > small {
  display: block;
}

.admin-data-table td small {
  color: #948985;
  font-size: 6px;
}

.admin-data-table select {
  min-height: 31px;
  padding: 4px 7px;
  border: 1px solid rgba(34,24,24,.12);
  border-radius: 4px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 7px;
}

.admin-product-cell {
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-product-cell img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 5px;
  background: #f3eee8;
}

.admin-product-cell span {
  min-width: 0;
  display: grid;
}

.admin-product-cell b {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-status,
.stock-pill {
  min-width: max-content;
  padding: 3px 8px;
  display: inline-flex;
  border-radius: 99px;
  color: #267452;
  background: rgba(38,116,82,.09);
  font-size: 6px;
  font-weight: 700;
}

.admin-status.draft,
.admin-status.scheduled,
.admin-status.waiting {
  color: #936919;
  background: rgba(184,137,49,.12);
}

.admin-status.low,
.stock-pill.low,
.admin-status.pending,
.admin-status.open {
  color: #a23b44;
  background: rgba(162,59,68,.1);
}

.table-action {
  border: 0;
  color: var(--burgundy);
  background: transparent;
  font-size: 7px;
  font-weight: 700;
  cursor: pointer;
}

.admin-customer-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-customer-cell i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--burgundy);
  font-style: normal;
}

.admin-table-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #9a8f8a;
  font-size: 32px;
}

.admin-table-empty b {
  font-size: 8px;
}

.admin-feature-hero {
  min-height: 290px;
  padding: clamp(25px, 4vw, 50px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 25px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(125deg, #390713, #821b3a);
  overflow: hidden;
  position: relative;
}

.admin-feature-hero h2 {
  margin: 5px 0 10px;
  font-size: clamp(28px, 4vw, 50px);
}

.admin-feature-hero p {
  max-width: 680px;
  color: rgba(255,255,255,.7);
  font-size: 9px;
}

.admin-feature-hero > div:first-child > div {
  margin-top: 20px;
  display: flex;
  gap: 8px;
}

.admin-notes-orbit {
  width: 190px;
  height: 190px;
  margin: auto;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  position: relative;
}

.admin-notes-orbit::before {
  content: "";
  width: 145px;
  height: 145px;
  border: 1px solid rgba(255,217,120,.36);
  border-radius: 50%;
  position: absolute;
  inset: 22px;
}

.admin-notes-orbit strong {
  z-index: 1;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.admin-notes-orbit span,
.admin-notes-orbit i {
  z-index: 1;
  font-size: 7px;
  font-style: normal;
}

.admin-family-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.admin-family-grid article {
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(34,24,24,.09);
  border-radius: 7px;
  background: #fff;
}

body.dark .admin-family-grid article {
  border-color: rgba(255,255,255,.08);
  background: #211c1c;
}

.admin-family-grid article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--family-color);
}

.admin-family-grid article div {
  display: grid;
}

.admin-family-grid b {
  font-size: 7px;
}

.admin-family-grid small {
  color: #948985;
  font-size: 6px;
}

.admin-generic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.admin-generic-grid article,
.admin-add-entity-card {
  min-height: 170px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(34,24,24,.09);
  border-radius: 8px;
  color: inherit;
  background: #fff;
}

.admin-generic-grid article header {
  display: flex;
  justify-content: space-between;
}

.admin-generic-grid article header > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--burgundy);
  background: rgba(109,13,36,.07);
}

.admin-generic-grid article header > i {
  height: fit-content;
  padding: 2px 7px;
  border-radius: 99px;
  color: #267452;
  background: rgba(38,116,82,.08);
  font-size: 6px;
  font-style: normal;
}

.admin-generic-grid h3 {
  margin: 17px 0 3px;
  font-size: 11px;
}

.admin-generic-grid p {
  margin: 0;
  color: #8f8480;
  font-size: 7px;
}

.admin-generic-grid footer {
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(34,24,24,.07);
}

.admin-generic-grid footer b {
  color: var(--burgundy);
  font-size: 7px;
}

.admin-generic-grid footer button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.admin-add-entity-card {
  place-content: center;
  justify-items: center;
  border-style: dashed;
  color: #8f8480;
  cursor: pointer;
}

.admin-add-entity-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--burgundy);
  background: rgba(109,13,36,.07);
  font-size: 19px;
}

.admin-add-entity-card b {
  margin-top: 8px;
  font-size: 8px;
}

.admin-add-entity-card small {
  font-size: 6px;
}

.admin-finance-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.admin-integration-note {
  margin-top: 13px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(53,109,170,.2);
  border-radius: 7px;
  background: rgba(53,109,170,.06);
}

.admin-integration-note > span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #356daa;
  font-family: var(--font-display);
}

.admin-integration-note div {
  display: grid;
}

.admin-integration-note b {
  font-size: 8px;
}

.admin-integration-note p {
  margin: 2px 0 0;
  color: #7e7470;
  font-size: 7px;
}

.admin-report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.admin-report-grid article {
  padding: 16px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(34,24,24,.09);
  border-radius: 7px;
  background: #fff;
}

.admin-report-grid article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--burgundy);
  background: rgba(109,13,36,.07);
}

.admin-report-grid article div {
  display: grid;
}

.admin-report-grid b {
  font-size: 8px;
}

.admin-report-grid small {
  color: #918682;
  font-size: 6px;
}

.admin-report-grid button {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(34,24,24,.1);
  border-radius: 6px;
  color: var(--burgundy);
  background: transparent;
  cursor: pointer;
}

.admin-settings-form,
.admin-quick-create {
  padding: 24px;
  border: 1px solid rgba(34,24,24,.09);
  border-radius: 8px;
  background: #fff;
}

.admin-settings-form > section + section {
  margin-top: 25px;
}

.admin-settings-form > section {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.admin-settings-form > section[hidden] {
  display: none !important;
}

.admin-settings-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: -8px -8px 24px;
  padding: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface, #fff) 94%, transparent);
  box-shadow: 0 8px 24px rgba(64, 12, 27, .08);
  backdrop-filter: blur(14px);
}

.admin-settings-tabs button {
  min-width: max-content;
  min-height: 44px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--burgundy);
  background: var(--surface, #fff);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-settings-tabs button.active {
  color: #fff;
  border-color: var(--burgundy);
  background: var(--burgundy);
}

.admin-settings-tabs .origo-lux-icon {
  width: 19px;
  height: 19px;
}

.admin-view-error {
  min-height: 260px;
  padding: 32px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface, #fff);
}

.admin-view-error > .origo-lux-icon {
  width: 42px;
  height: 42px;
  color: var(--burgundy);
}

.admin-view-error h3,
.admin-view-error p {
  margin: 0;
}

.admin-view-error p {
  margin-top: 6px;
  color: var(--muted);
}

@media (max-width: 680px) {
  .admin-settings-form {
    padding: 14px;
  }
  .admin-settings-tabs {
    margin: -4px -4px 18px;
  }
}

.admin-toggle-row {
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(34,24,24,.07);
}

.admin-toggle-row > span {
  display: grid;
}

.admin-toggle-row b {
  font-size: 8px;
}

.admin-toggle-row small {
  color: #918682;
  font-size: 6px;
}

.admin-toggle-row input {
  width: 34px;
  height: 18px;
  accent-color: var(--burgundy);
}

.admin-settings-form > .button {
  margin-top: 23px;
}

.admin-quick-create {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(120px, .7fr)) auto;
  align-items: end;
  gap: 10px;
}

.admin-quick-create h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.admin-quick-create label {
  display: grid;
  gap: 4px;
  font-size: 7px;
  font-weight: 700;
}

.admin-quick-create input,
.admin-quick-create select {
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid rgba(34,24,24,.12);
  border-radius: 5px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 8px;
}

.admin-quick-create > div:last-child {
  display: flex;
  gap: 5px;
}

.admin-search-results > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.admin-search-results > div:last-child button {
  padding: 13px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(34,24,24,.09);
  border-radius: 7px;
  color: inherit;
  background: #fff;
  text-align: start;
  cursor: pointer;
}

body.dark .admin-search-results > div:last-child button {
  border-color: rgba(255,255,255,.09);
  background: #211c1c;
}

.admin-search-results button > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--burgundy);
  background: rgba(109,13,36,.07);
}

.admin-search-results button div {
  display: grid;
}

.admin-search-results button b {
  font-size: 8px;
}

.admin-search-results button small {
  color: #918682;
  font-size: 6px;
}

.admin-search-results button > i {
  color: #918682;
  font-size: 6px;
  font-style: normal;
}

.perfume-advanced-fields {
  margin-top: 18px;
}

.review-grid label.wide {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .advanced-admin-panel {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-generic-grid,
  .admin-family-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-quick-create {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .advanced-admin-panel {
    grid-template-columns: 1fr;
    position: relative;
  }

  .advanced-admin-sidebar {
    width: 250px;
    position: absolute;
    inset-block: 0;
    inset-inline-start: -260px;
    z-index: 20;
    transition: inset-inline-start .3s var(--ease);
    box-shadow: 18px 0 50px rgba(0,0,0,.25);
  }

  .advanced-admin-panel.sidebar-open .advanced-admin-sidebar {
    inset-inline-start: 0;
  }

  .admin-sidebar-toggle {
    display: block;
  }

  .admin-global-search {
    width: 100%;
  }

  .admin-topbar-actions > button:not(.admin-notifications, .close-button) {
    display: none;
  }

  .admin-overview-grid,
  .admin-overview-grid.lower,
  .admin-feature-hero {
    grid-template-columns: 1fr;
  }

  .admin-workflow-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-generic-grid,
  .admin-family-grid,
  .admin-finance-hero,
  .admin-report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .advanced-admin-main {
    grid-template-rows: 60px minmax(0, 1fr);
  }

  .advanced-admin-topbar {
    padding-inline: 10px;
  }

  .admin-global-search kbd,
  .admin-topbar-actions .admin-notifications {
    display: none;
  }

  .advanced-admin-body {
    padding: 17px 11px 40px;
  }

  .admin-view-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-metrics-grid,
  .admin-generic-grid,
  .admin-family-grid,
  .admin-finance-hero,
  .admin-report-grid,
  .admin-search-results > div:last-child {
    grid-template-columns: 1fr;
  }

  .admin-workflow-strip {
    grid-template-columns: 1fr;
  }

  .admin-chart-card,
  .admin-status-card,
  .admin-list-card,
  .admin-alerts-card {
    padding: 14px;
  }

  .admin-quick-create {
    grid-template-columns: 1fr;
  }
}

.product-bottom .card-add-button {
  width: auto;
  min-width: 118px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 7px;
  font-weight: 700;
}

.product-bottom .card-add-button i {
  font-size: 12px;
  font-style: normal;
}

.product-bottom .card-add-button:hover {
  transform: translateY(-2px);
}

.gallery-upload {
  margin-top: 12px;
  min-height: 72px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed color-mix(in srgb, var(--gold) 65%, var(--line));
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 70%, var(--white));
  cursor: pointer;
}

.gallery-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.gallery-upload > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--burgundy);
  font-size: 18px;
}

.gallery-upload > div {
  display: grid;
}

.gallery-upload b {
  font-size: 9px;
}

.gallery-upload small {
  color: var(--ink-soft);
  font-size: 7px;
}

.gallery-upload.loading {
  opacity: .55;
  pointer-events: none;
}

.profile-image-language-note{margin:0 0 18px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #ead8ca;border-radius:12px;background:#fffaf6;color:#5c1020}
.profile-image-language-note span{color:#756a67;font-size:12px}
.profile-image-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.profile-image-upload{position:relative;min-width:0;padding:14px;border:1px solid #eaded8;border-radius:14px;background:var(--surface,#fff);transition:border-color .2s,box-shadow .2s}
.profile-image-upload.has-image{border-color:#cda16e;box-shadow:0 8px 24px rgba(74,16,29,.06)}
.profile-image-upload>header{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.profile-image-upload>header>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#fff5ea;color:#9d5c1d;font-size:18px}
.profile-image-upload>header div{display:grid;gap:2px}.profile-image-upload>header b{color:var(--text,#361018);font-size:13px}.profile-image-upload>header small{color:var(--muted,#796f70);font-size:10px}
.profile-image-upload>label{min-height:104px;display:grid;place-items:center;align-content:center;gap:4px;border:1px dashed #d5b9aa;border-radius:10px;background:#fffaf7;cursor:pointer;text-align:center}
.profile-image-upload>label input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}.profile-image-upload>label span{color:#8b0926;font-size:24px}.profile-image-upload>label b{color:#5c1020;font-size:12px}.profile-image-upload>label small{color:#988b86;font-size:9px}
.profile-image-upload figure{position:relative;margin:12px 0 0;overflow:hidden;border:1px solid #eaded8;border-radius:10px;background:#f7f4f2;aspect-ratio:16/9}.profile-image-upload figure[hidden]{display:none}.profile-image-upload figure img{width:100%;height:100%;object-fit:contain}.profile-image-upload figure button{position:absolute;inset-block-start:8px;inset-inline-end:8px;width:30px;height:30px;border:0;border-radius:50%;background:#690019;color:#fff;font-size:20px;cursor:pointer}.profile-image-upload.loading{opacity:.62;pointer-events:none}
[data-theme="dark"] .profile-image-language-note,[data-theme="dark"] .profile-image-upload>label{background:#21181a;border-color:#60434a}[data-theme="dark"] .profile-image-upload{background:#171113;border-color:#50383e}[data-theme="dark"] .profile-image-upload>header>span{background:#2a1c1f}
@media(max-width:760px){.profile-image-upload-grid{grid-template-columns:1fr}.profile-image-language-note{align-items:flex-start;flex-direction:column}}

.password-field{position:relative;display:flex;align-items:center}.password-field input{width:100%;padding-inline-start:14px!important;padding-inline-end:54px!important}.password-field button{position:absolute;z-index:2;top:50%;inset-inline-end:6px;inset-inline-start:auto;width:40px;height:40px;display:grid;place-items:center;border:1px solid rgba(109,16,39,.14);border-radius:10px;background:var(--paper);color:#6d1027;transform:translateY(-50%);cursor:pointer}.password-field button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.password-field button:hover,.password-field button:focus-visible{border-color:rgba(185,132,60,.35);background:rgba(109,16,39,.08);outline:2px solid rgba(185,132,60,.25)}
.auth-text-action{align-self:center;margin-top:4px;padding:8px;border:0;background:transparent;color:#76132b;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.reset-channels{grid-column:1/-1;margin:0;padding:0;border:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.reset-channels legend{margin-bottom:8px;color:var(--ink,#2c1a1d);font-weight:700}.reset-channels label{position:relative}.reset-channels input{position:absolute;opacity:0}.reset-channels span{min-height:48px;padding:10px;display:grid;place-items:center;border:1px solid #dfcec6;border-radius:10px;background:#fff;cursor:pointer}.reset-channels input:checked+span{border-color:#7b1129;background:#fff4f6;color:#7b1129;box-shadow:0 0 0 2px rgba(123,17,41,.08)}
[data-theme="dark"] .reset-channels span{background:#21181a;border-color:#5b4248}[data-theme="dark"] .password-field button,[data-theme="dark"] .auth-text-action{color:#efb9c5}
.recovery-unavailable{grid-column:1/-1;margin:0;padding:12px 14px;border:1px solid #e3c7cd;border-radius:10px;background:#fff6f7;color:#76132b;text-align:center}
@media(max-width:540px){.reset-channels{grid-template-columns:1fr}.reset-channels span{min-height:44px}}

.fragrantica-reference .suggestion-source {
  color: #5a4a8c;
  border-color: #c9c1e4;
  background: #f1eef9;
}

@media (max-width: 540px) {
  .product-bottom .card-add-button {
    min-width: 104px;
    padding-inline: 9px;
  }
}

/* Perfume ratings and performance profile */
.product-dialog {
  width: min(1180px, 100%);
}

.perfume-insights {
  padding: clamp(24px, 4vw, 52px);
  color: #f8f4f1;
  background:
    radial-gradient(circle at 12% 0%, rgba(132,23,51,.24), transparent 34%),
    linear-gradient(145deg, #17171b, #111114);
}

.perfume-insights-head {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.perfume-insights-head h3 {
  margin: 5px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 400;
}

.perfume-insights-head p {
  max-width: 430px;
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 8px;
  line-height: 1.8;
}

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

.insight-card {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.insight-card > header {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.insight-card > header > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #d8bd7a;
  background: rgba(255,255,255,.04);
  font-size: 18px;
}

.insight-card > header div {
  display: grid;
  gap: 2px;
}

.insight-card > header b {
  color: #fff;
  font-size: 10px;
}

.insight-card > header small {
  color: #d8bd7a;
  font-size: 8px;
}

.mood-rating {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.mood-rating button {
  min-width: 0;
  padding: 8px 4px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255,255,255,.63);
  background: transparent;
  cursor: pointer;
  transition: .2s ease;
}

.mood-rating button:hover,
.mood-rating button.selected {
  color: #fff;
  border-color: rgba(216,189,122,.38);
  background: rgba(216,189,122,.08);
  transform: translateY(-2px);
}

.mood-rating button > span {
  font-size: 22px;
  line-height: 1;
}

.mood-rating button b {
  overflow: hidden;
  max-width: 100%;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mood-rating button i,
.season-meter i,
.insight-scale i,
.gender-meter i {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.mood-rating button i em,
.season-meter i em,
.insight-scale i em,
.gender-meter i em {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #7a1030, #e45c85);
}

.rating-insight > p {
  margin: 14px 0 0;
  color: rgba(255,255,255,.48);
  font-size: 7px;
  text-align: center;
}

.season-meter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.season-meter > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.season-meter span {
  color: rgba(255,255,255,.55);
  font-size: 21px;
}

.season-meter b {
  font-size: 7px;
}

.season-meter small {
  color: #d8bd7a;
  font-size: 7px;
}

.season-meter i em {
  background: linear-gradient(90deg, #1a9e96, #60d4cd);
}

.insight-scale {
  display: grid;
  gap: 9px;
}

.insight-scale > div {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 84px;
  align-items: center;
  gap: 12px;
  opacity: .45;
}

.insight-scale > div.selected {
  opacity: 1;
}

.insight-scale span {
  font-size: 8px;
}

.insight-scale i em {
  background: #18a99d;
}

.value-insight .insight-scale i em {
  background: linear-gradient(90deg, #f09a0b, #f4c12e);
}

.gender-meter {
  display: grid;
  gap: 14px;
}

.gender-meter > div {
  display: grid;
  grid-template-columns: 70px minmax(100px, 1fr) 42px;
  align-items: center;
  gap: 11px;
}

.gender-meter span,
.gender-meter b {
  font-size: 8px;
}

.gender-meter b {
  color: #a6cfff;
  text-align: end;
}

.gender-meter i em {
  background: linear-gradient(90deg, #569ee8, #d651bd);
}

@media (max-width: 760px) {
  .perfume-insights-head {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .perfume-insight-grid {
    grid-template-columns: 1fr;
  }

  .insight-card {
    border-radius: 14px;
  }

  .mood-rating {
    gap: 2px;
  }

  .mood-rating button {
    padding-inline: 2px;
  }

  .mood-rating button b {
    font-size: 6px;
  }

  .season-meter {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 15px;
  }
}

/* Fragrance Notes Library */
body.notes-route #storefront-main > section:not(#notes-library-page) {
  display: none;
}

.notes-route-page {
  min-height: 75vh;
  padding: clamp(45px, 6vw, 90px) clamp(18px, 5vw, 76px) 110px;
  background:
    radial-gradient(circle at 12% 4%, rgba(217, 173, 82, .16), transparent 27%),
    linear-gradient(180deg, var(--paper), var(--white) 42%);
}

.notes-page-shell {
  width: min(1450px, 100%);
  margin: 0 auto;
}

.notes-breadcrumb {
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 10px;
}

.notes-breadcrumb button {
  padding: 0;
  border: 0;
  color: var(--burgundy);
  background: none;
  cursor: pointer;
}

.notes-page-hero {
  min-height: 370px;
  padding: clamp(34px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  color: #fffaf3;
  background:
    linear-gradient(110deg, rgba(30, 8, 15, .18), rgba(30, 8, 15, .74)),
    radial-gradient(circle at 18% 12%, #a2294b, transparent 38%),
    #390713;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.notes-page-hero::before,
.notes-page-hero::after {
  content: "";
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  position: absolute;
  inset-inline-end: 11%;
  top: -120px;
}

.notes-page-hero::after {
  width: 220px;
  height: 220px;
  inset-inline-end: 4%;
  top: 180px;
}

.notes-page-hero > * {
  z-index: 1;
}

.notes-page-hero h1,
.note-detail-copy h1 {
  margin: 8px 0 15px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7.3vw, 104px);
  font-weight: 400;
  line-height: .93;
}

[dir="rtl"] .notes-page-hero h1,
[dir="rtl"] .note-detail-copy h1 {
  font-family: var(--font-ar);
  font-weight: 700;
  letter-spacing: -.06em;
}

.notes-page-hero h1 em {
  color: var(--gold-bright);
  font-weight: inherit;
}

.notes-page-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 13px;
}

.notes-page-stat {
  min-width: 160px;
  padding: 20px 25px;
  display: grid;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}

.notes-page-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(135px, 1fr));
  gap: 10px;
}

.notes-page-stat.complete strong { color: #8ed5ad; }
.notes-page-stat.pending strong { color: #ffcf78; }

.notes-page-stat strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
}

.notes-page-stat span {
  margin-top: 6px;
  font-size: 9px;
}

.notes-library-toolbar {
  margin: -26px 34px 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 18px 50px rgba(42, 19, 20, .1);
  position: relative;
  z-index: 2;
}

.notes-library-search,
.notes-admin-search {
  height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.notes-library-search span,
.notes-admin-search span {
  color: var(--burgundy);
  font-size: 24px;
}

.notes-library-search input,
.notes-admin-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.notes-family-filters {
  margin-top: 16px;
  padding-bottom: 3px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.notes-image-filters {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notes-image-filters button {
  min-width: 150px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--card);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.notes-image-filters button small {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 8px;
}

.notes-image-filters button.active {
  color: #fff;
  border-color: var(--burgundy);
  background: var(--burgundy);
}

.notes-image-filters button.active small {
  color: var(--burgundy);
  background: #fff;
}

.notes-family-filters button {
  min-width: max-content;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  font-size: 8px;
  cursor: pointer;
  transition: .25s ease;
}

.notes-family-filters button i {
  color: var(--family-color, var(--gold-dark));
  font-style: normal;
  font-size: 13px;
}

.notes-family-filters button small {
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--paper-2);
  font-size: 7px;
}

.notes-family-filters button:hover,
.notes-family-filters button.active {
  color: #fff;
  border-color: var(--burgundy);
  background: var(--burgundy);
}

.notes-results-head {
  margin: 58px 0 21px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.notes-results-head h2 {
  margin: 2px 0 0;
  font-size: clamp(27px, 3vw, 43px);
  line-height: 1.2;
}

.notes-results-head > b {
  color: var(--ink-soft);
  font-size: 10px;
}

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

.notes-family-showcase {
  margin: 26px 0 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.notes-family-showcase button {
  position: relative;
  min-width: 0;
  padding: 0 0 15px;
  overflow: hidden;
  display: grid;
  text-align: start;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--family-color), transparent 58%);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(52, 29, 31, .08);
  cursor: pointer;
}

.notes-family-showcase button > span {
  height: 154px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--family-accent), #fff 42%);
}

.notes-family-showcase img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.notes-family-showcase button > i {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  min-width: 36px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.notes-family-showcase b,
.notes-family-showcase small {
  margin-inline: 15px;
}

.notes-family-showcase b {
  margin-top: 12px;
  padding-inline-start: 10px;
  border-inline-start: 4px solid var(--family-color);
  font-size: 15px;
}

.notes-family-showcase small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.library-note-card {
  min-height: 120px;
  padding: 0;
  display: grid;
  grid-template-columns: 108px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.library-note-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--note-color), transparent 35%);
  box-shadow: 0 17px 38px rgba(42, 19, 20, .11);
}

.library-note-card.image-reference,
.library-note-card.image-missing {
  border-style: dashed;
  opacity: .86;
}

.library-note-card.image-reference .library-note-image img,
.library-note-card.image-missing .library-note-image img {
  filter: saturate(.55);
}

.library-note-card.image-reference { border-color: #d99b2b; }
.library-note-card.image-missing { border-color: #b76a78; }

.library-note-image {
  width: 108px;
  height: 120px;
  overflow: hidden;
}

.library-note-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: color-mix(in srgb, var(--note-color), #fff 88%);
  transition: transform .45s var(--ease);
}

.library-note-card:hover img {
  transform: scale(1.055);
}

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

.library-note-copy small {
  color: var(--note-color);
  font-size: 7px;
  font-weight: 700;
}

.library-note-copy b {
  margin-top: 2px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-note-copy i {
  color: var(--ink-soft);
  font-family: var(--font-ar);
  font-size: 8px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-card-arrow {
  padding-inline-end: 12px;
  color: var(--note-color);
}

.notes-load-more {
  margin: 35px auto 0;
}

.notes-empty-state,
.notes-not-found {
  grid-column: 1 / -1;
  min-height: 300px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.notes-empty-state > span,
.notes-not-found > span {
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 52px;
}

.notes-empty-state h3,
.notes-not-found h1 {
  margin: 6px 0;
}

.notes-empty-state p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.note-detail-back {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  color: var(--burgundy);
  background: none;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.note-detail-hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(320px, .8fr) 1.2fr;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.note-detail-image {
  min-height: 510px;
  padding: clamp(22px, 4vw, 54px);
  display: grid;
  place-items: center;
  background: var(--note-accent);
  overflow: hidden;
}

.note-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.note-detail-copy {
  padding: clamp(38px, 6vw, 85px);
  align-self: center;
}

.note-detail-copy h1 {
  margin-bottom: 0;
  color: var(--note-color);
}

.note-secondary-name {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 23px !important;
}

.note-detail-copy > p:not(.note-secondary-name) {
  max-width: 740px;
  color: var(--ink-soft);
  font-size: 12px;
}

.note-detail-facts {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.note-detail-facts span {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 2px;
  border-inline-end: 1px solid var(--line);
}

.note-detail-facts span:last-child {
  border: 0;
}

.note-detail-facts small {
  color: var(--ink-soft);
  font-size: 7px;
}

.note-detail-facts b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-detail-section {
  margin-top: 70px;
}

.note-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.note-product-card {
  min-height: 140px;
  padding: 12px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  text-align: start;
  cursor: pointer;
}

.note-product-card img {
  width: 110px;
  height: 116px;
  object-fit: contain;
  background: var(--paper);
}

.note-product-card span {
  display: grid;
}

.note-product-card small {
  color: var(--ink-soft);
  font-size: 7px;
}

.note-product-card b {
  font-size: 11px;
}

.note-product-card i {
  color: var(--burgundy);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.note-products-empty {
  grid-column: 1 / -1;
  padding: 35px;
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  text-align: center;
  font-size: 10px;
}

.related-notes-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.library-note-card.compact {
  grid-template-columns: 86px 1fr auto;
  min-height: 92px;
}

.library-note-card.compact .library-note-image {
  width: 86px;
  height: 92px;
}

/* Product note pyramid */
.dialog-note-pyramid {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.dialog-pyramid-row {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.dialog-pyramid-row > span {
  display: grid;
  align-content: start;
}

.dialog-pyramid-row > span small {
  color: var(--burgundy);
  font-size: 7px;
  letter-spacing: .15em;
}

.dialog-pyramid-row > span b {
  font-size: 9px;
}

.dialog-pyramid-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-note-chip {
  min-width: 105px;
  padding: 7px;
  display: grid;
  grid-template-columns: 42px auto;
  grid-template-rows: 1fr 1fr;
  column-gap: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  text-align: start;
  cursor: pointer;
}

.dialog-note-chip img {
  width: 42px;
  height: 42px;
  grid-row: 1 / 3;
  object-fit: cover;
}

.dialog-note-chip b {
  align-self: end;
  font-size: 8px;
}

.dialog-note-chip small {
  color: var(--ink-soft);
  font-size: 6px;
}

.dialog-note-chip.unknown {
  cursor: default;
  opacity: .75;
}

/* Notes library admin */
.notes-admin-overlay {
  padding: 20px;
}

.notes-admin-panel {
  width: min(1480px, 100%);
  max-height: calc(100vh - 40px);
  padding: 34px;
  background: var(--card);
  overflow: auto;
}

.notes-admin-stats {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.notes-admin-stats article {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.notes-admin-stats article > span {
  color: var(--burgundy);
  font-size: 23px;
}

.notes-admin-stats article div {
  display: grid;
}

.notes-admin-stats b {
  font-size: 20px;
  line-height: 1;
}

.notes-admin-stats small {
  color: var(--ink-soft);
  font-size: 8px;
}

.notes-admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, .34fr) 1fr;
  gap: 20px;
}

.notes-admin-browser {
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.notes-admin-search {
  height: 49px;
  background: var(--card);
}

.notes-admin-list {
  max-height: 680px;
  margin-top: 10px;
  display: grid;
  gap: 5px;
  overflow: auto;
}

.notes-admin-list button {
  padding: 7px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  color: var(--ink);
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.notes-admin-list button:hover,
.notes-admin-list button.active {
  border-color: var(--line);
  background: var(--card);
}

.notes-admin-list img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.notes-admin-list button span {
  min-width: 0;
  display: grid;
}

.notes-admin-list b,
.notes-admin-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-admin-list b {
  font-size: 9px;
}

.notes-admin-list small {
  color: var(--ink-soft);
  font-size: 7px;
}

.notes-admin-editor {
  min-width: 0;
}

.notes-admin-tabs {
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
}

.notes-admin-tabs button {
  padding: 10px 15px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.notes-admin-tabs button.active {
  color: #fff;
  border-color: var(--burgundy);
  background: var(--burgundy);
}

.notes-editor-form {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
}

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

.notes-editor-heading small {
  color: var(--burgundy);
  font-size: 7px;
  letter-spacing: .16em;
}

.notes-editor-heading h3 {
  margin: 2px 0 0;
}

.note-image-editor {
  margin: 20px 0;
  padding: 15px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.note-image-editor > img {
  width: 130px;
  height: 130px;
  object-fit: cover;
}

.note-image-editor > div {
  display: grid;
  gap: 10px;
}

.note-image-editor label {
  display: grid;
  gap: 5px;
  font-size: 8px;
  font-weight: 700;
}

.note-image-editor input {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
}

.compact-upload {
  margin: 0;
  min-height: 62px;
}

.note-merge-row {
  margin: 18px 0;
  padding: 15px;
  display: grid;
  gap: 5px;
  border: 1px dashed rgba(109,13,36,.35);
}

.note-merge-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 8px;
  font-weight: 700;
}

.note-merge-row select {
  width: min(480px, 70%);
  min-height: 40px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
}

.note-merge-row small {
  color: var(--ink-soft);
  font-size: 7px;
}

.unclassified-notes-list {
  display: grid;
  gap: 8px;
}

.unclassified-notes-list article {
  padding: 12px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.unclassified-notes-list article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #77736e;
}

.unclassified-notes-list article div {
  display: grid;
}

.unclassified-notes-list b {
  font-size: 9px;
}

.unclassified-notes-list small {
  color: var(--ink-soft);
  font-size: 7px;
}

.unclassified-notes-list button {
  padding: 7px 10px;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
  font-size: 7px;
  cursor: pointer;
}

.note-library-match-preview {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(36,114,79,.22);
  background: rgba(36,114,79,.055);
}

.note-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.note-match-head b {
  font-size: 9px;
}

.note-match-head span {
  color: var(--ink-soft);
  font-size: 7px;
}

.note-match-items {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.note-match-items > span {
  min-width: 150px;
  padding: 6px;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 7px;
  border: 1px solid var(--line);
  background: var(--card);
}

.note-match-items img,
.note-match-items i {
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  object-fit: cover;
}

.note-match-items i {
  display: grid;
  place-items: center;
  color: #fff;
  background: #77736e;
  font-style: normal;
}

.note-match-items b {
  align-self: end;
  font-size: 8px;
}

.note-match-items small {
  color: var(--ink-soft);
  font-size: 6px;
}

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

  .related-notes-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .note-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .notes-family-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .notes-route-page {
    padding-inline: 14px;
  }

  .notes-page-hero {
    min-height: 420px;
    grid-template-columns: 1fr;
  }

  .notes-page-stat {
    width: fit-content;
  }

  .notes-page-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notes-library-toolbar {
    margin-inline: 10px;
  }

  .library-notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .note-detail-image {
    min-height: 320px;
    max-height: 440px;
  }

  .note-detail-facts {
    grid-template-columns: 1fr;
  }

  .note-detail-facts span {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .notes-admin-overlay {
    padding: 0;
    place-items: stretch;
  }

  .notes-admin-panel {
    min-height: 100vh;
    max-height: none;
    padding: 62px 15px 30px;
  }

  .notes-admin-grid {
    grid-template-columns: 1fr;
  }

  .notes-admin-list {
    max-height: 280px;
  }
}

@media (max-width: 580px) {
  .notes-page-stats {
    grid-template-columns: 1fr;
  }

  .notes-page-stat {
    width: 100%;
  }

  .notes-image-filters button {
    min-width: calc(50% - 4px);
    flex: 1 1 calc(50% - 4px);
  }

  .notes-page-hero {
    padding: 30px 23px;
  }

  .notes-page-hero h1 {
    font-size: 48px;
  }

  .notes-library-toolbar {
    margin-top: -18px;
    padding: 12px;
  }

  .library-notes-grid,
  .note-products-grid,
  .related-notes-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .notes-family-showcase { gap: 10px; }
  .notes-family-showcase button { border-radius: 18px; padding-bottom: 12px; }
  .notes-family-showcase button > span { height: 145px; }
  .notes-family-showcase b { margin-top: 10px; font-size: 13px; }
  .notes-family-showcase small { font-size: 9px; }

  .library-note-card {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 18px;
  }

  .library-note-image {
    width: 100%;
    height: 150px;
  }

  .library-note-copy { min-width: 0; padding: 11px 12px 14px; }
  .library-note-copy small { font-size: 8px; }
  .library-note-copy b { font-size: 13px; }
  .library-note-copy i { font-size: 9px; }
  .note-card-arrow { display: none; }

  .note-detail-copy {
    padding: 30px 22px;
  }

  .note-detail-copy h1 {
    font-size: 49px;
  }

  .dialog-pyramid-row {
    grid-template-columns: 1fr;
  }

  .notes-admin-stats {
    grid-template-columns: 1fr;
  }

  .notes-editor-heading,
  .note-merge-row label {
    align-items: stretch;
    flex-direction: column;
  }

  .note-merge-row select {
    width: 100%;
  }

  .note-image-editor {
    grid-template-columns: 1fr;
  }
}

.account-overlay,
.checkout-overlay,
.admin-orders-overlay {
  place-items: center;
}

.account-button.signed-in {
  position: relative;
  color: var(--burgundy);
}

.account-button.signed-in::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #24724f;
}

.account-panel,
.checkout-panel,
.orders-panel {
  position: relative;
  width: min(920px, 100%);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 40px 100px rgba(0,0,0,.52);
  transform: translateY(-25px);
  transition: .4s var(--ease);
}

.account-panel {
  width: min(780px, 100%);
  min-height: 560px;
}

.account-panel > .close-button,
.checkout-panel > .close-button,
.orders-panel > .close-button {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  color: var(--ink);
  background: color-mix(in srgb, var(--white) 84%, transparent);
}

.auth-shell {
  min-height: 560px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
}

.auth-art {
  padding: 55px 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(66,5,21,.15), rgba(45,4,15,.9)),
    url("assets/origo-hero.png") 28% center / cover;
}

.auth-art h2 {
  margin: 10px 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.auth-art p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 10px;
  line-height: 1.8;
}

.auth-body,
.account-home {
  padding: 66px clamp(30px, 5vw, 58px) 45px;
}

.auth-tabs {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  padding: 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}

.auth-tabs button.active {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

.commerce-form h2,
.account-home h2,
.checkout-form h2,
.orders-head h2 {
  margin: 7px 0;
  font-size: clamp(28px, 4vw, 42px);
}

.commerce-form > p,
.checkout-form > p,
.account-intro {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.8;
}

.commerce-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.commerce-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
}

.commerce-fields label.wide {
  grid-column: 1 / -1;
}

.commerce-fields input,
.commerce-fields select,
.commerce-fields textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 10px;
}

.commerce-fields textarea {
  min-height: 82px;
  resize: vertical;
}

.commerce-fields input:focus,
.commerce-fields select:focus,
.commerce-fields textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent);
}

.commerce-form > .button {
  margin-top: 20px;
}

.form-error {
  min-height: 18px;
  margin: 12px 0 0 !important;
  color: #a51e37 !important;
  font-size: 9px !important;
}

.button[disabled] {
  cursor: wait;
  opacity: .65;
}

.account-profile {
  margin: 25px 0;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.account-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--burgundy);
  font-family: var(--font-display);
  font-size: 22px;
}

.account-profile div {
  display: grid;
  gap: 3px;
}

.account-profile b {
  font-size: 13px;
}

.account-profile span {
  color: var(--ink-soft);
  font-size: 9px;
}

.account-actions {
  display: flex;
  gap: 9px;
}

.account-actions .button {
  flex: 1;
}

.account-orders {
  margin-top: 32px;
}

.account-orders > h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.orders-empty,
.orders-loading {
  padding: 45px 20px;
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  text-align: center;
  font-size: 10px;
}

.checkout-panel {
  width: min(1040px, 100%);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  min-height: 650px;
}

.checkout-form {
  padding: 70px clamp(30px, 6vw, 70px) 50px;
}

.checkout-summary {
  padding: 72px 38px 40px;
  border-inline-start: 1px solid var(--line);
  background: var(--paper);
}

.checkout-summary > .eyebrow {
  display: block;
  margin-bottom: 22px;
}

.checkout-summary-item {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.checkout-summary-item img {
  width: 58px;
  height: 70px;
  object-fit: cover;
  background: var(--white);
}

.checkout-summary-item div {
  display: grid;
  gap: 3px;
}

.checkout-summary-item b {
  font-size: 10px;
}

.checkout-summary-item small {
  color: var(--ink-soft);
  font-size: 8px;
}

.checkout-summary-item > strong {
  font-size: 9px;
}

.checkout-total {
  margin-top: 25px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
}

.payment-choice {
  margin-top: 18px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(36,114,79,.25);
  background: rgba(36,114,79,.06);
}

.payment-choice > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #24724f;
}

.payment-choice div {
  display: grid;
  gap: 3px;
}

.payment-choice b {
  font-size: 10px;
}

.payment-choice small {
  color: var(--ink-soft);
  font-size: 8px;
}

.order-success {
  min-height: 560px;
  padding: 70px 35px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.order-success > span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #24724f;
  font-size: 30px;
}

.order-success h2 {
  margin: 22px 0 6px;
  font-size: 35px;
}

.order-success p {
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.8;
}

.order-success b {
  margin-bottom: 23px;
  color: var(--burgundy);
  letter-spacing: .08em;
}

.orders-panel {
  width: min(1040px, 100%);
  min-height: 620px;
  padding: 65px clamp(25px, 5vw, 55px) 45px;
}

.orders-head {
  padding-inline-end: 60px;
}

.orders-list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.order-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.order-card-head {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.order-card-head div {
  display: grid;
  gap: 3px;
}

.order-card-head b {
  font-size: 11px;
}

.order-card-head small {
  color: var(--ink-soft);
  font-size: 8px;
}

.order-status {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--burgundy);
  background: rgba(109,13,36,.08);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.order-card-body {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.order-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.8;
}

.order-card-body strong {
  font-size: 12px;
}

.order-admin-meta {
  grid-column: 1 / -1;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.order-admin-meta span {
  color: var(--ink-soft);
  font-size: 8px;
}

.order-admin-meta select {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 8px;
}

@media (max-width: 760px) {
  .account-overlay,
  .checkout-overlay,
  .admin-orders-overlay {
    padding: 0;
    place-items: stretch;
  }

  .account-panel,
  .checkout-panel,
  .orders-panel {
    min-height: 100vh;
  }

  .auth-shell,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 190px;
    padding: 40px 28px 28px;
  }

  .auth-art h2 {
    font-size: 31px;
  }

  .auth-body,
  .account-home,
  .checkout-form {
    padding: 62px 24px 35px;
  }

  .checkout-summary {
    padding: 32px 24px 40px;
    border-top: 1px solid var(--line);
    border-inline-start: 0;
  }

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

  .commerce-fields label.wide {
    grid-column: auto;
  }

  .orders-panel {
    padding: 62px 18px 35px;
  }

  .order-card-body {
    grid-template-columns: 1fr;
  }

  .order-admin-meta {
    grid-column: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-head-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }
}

.marketing-consent {
  position: fixed;
  z-index: 10000;
  inset-inline: clamp(12px, 4vw, 52px);
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(25, 18, 17, .96);
  color: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

.marketing-consent p,
.marketing-consent div {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.marketing-consent span {
  color: rgba(255, 255, 255, .72);
}

.marketing-consent button {
  min-width: 90px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.marketing-consent button[data-consent="granted"] {
  border-color: #f3d3a1;
  background: #f3d3a1;
  color: #2b1b18;
}

@media (max-width: 720px) {
  .marketing-consent,
  .marketing-consent p {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-consent div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.dynamic-filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 18px 0 26px;
  padding: 4px 0 10px;
  scroll-snap-type: x mandatory;
}

.dynamic-filter-bar[hidden] {
  display: none;
}

.dynamic-filter-bar label {
  display: grid;
  flex: 0 0 min(210px, 52vw);
  gap: 6px;
  scroll-snap-align: start;
}

.dynamic-filter-bar span {
  color: var(--muted);
  font-size: .72rem;
}

.dynamic-filter-bar select {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding-inline: 12px;
}

.admin-filter-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 18px;
}

.product-editor-modes {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
}

.product-editor-modes button {
  min-height: 48px;
  border: 1px solid transparent;
  background: #fffaf3;
  color: #32161f;
  font: 700 1rem/1.3 "IBM Plex Sans Arabic", "Noto Sans Arabic", Inter, sans-serif;
  cursor: pointer;
}

.product-editor-modes button.active {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
}

.catalog-review {
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Inter, "Noto Sans", sans-serif;
  padding-bottom: 98px;
}

.catalog-review .review-section-head b { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.catalog-review label { font-size: .9rem; font-weight: 700; line-height: 1.65; }
.catalog-review input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.catalog-review select,
.catalog-review textarea { min-height: 50px; font-size: 1rem; border-color: color-mix(in srgb, var(--burgundy) 18%, var(--line)); }
.catalog-review textarea { min-height: 120px; }
.catalog-review input:focus-visible,
.catalog-review select:focus-visible,
.catalog-review textarea:focus-visible,
.catalog-review button:focus-visible { outline: 3px solid color-mix(in srgb, var(--burgundy) 28%, transparent); outline-offset: 2px; }
.catalog-review input[readonly] { background: color-mix(in srgb, var(--paper) 90%, #ddd); color: var(--muted); cursor: not-allowed; }

.fragrance-editor-subtitle { margin: 4px 0 14px; color: var(--burgundy); font-size: 1.12rem; }

.accord-admin-editor { margin-top: 18px; padding: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 72%, var(--surface)); }
.accord-admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.accord-admin-toolbar div { display: grid; gap: 4px; }
.accord-admin-toolbar small { color: var(--muted); }
.accord-admin-toolbar button { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); color: var(--burgundy); font-weight: 700; cursor: pointer; }
.accord-admin-search { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto auto; align-items: center; gap: 8px; margin-bottom: 12px; }
.accord-admin-search label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); }
.accord-admin-search label:focus-within { border-color: var(--burgundy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--burgundy) 12%, transparent); }
.accord-admin-search label > span { color: var(--burgundy); font-size: 1.2rem; }
.accord-admin-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.accord-admin-search button { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--burgundy); font-weight: 750; cursor: pointer; }
.accord-admin-search button.active { border-color: var(--burgundy); background: var(--burgundy); color: #fff; }
.accord-search-count { white-space: nowrap; color: var(--muted); font-size: .82rem; }
.accord-search-count b { color: var(--burgundy); font-size: 1rem; }
.accord-search-empty { margin: 8px 0 12px; padding: 16px; border: 1px dashed var(--line); text-align: center; color: var(--muted); background: var(--surface); }
.accord-admin-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.accord-admin-item { display: grid; grid-template-columns: auto auto minmax(100px, 1fr) minmax(100px, .9fr) 48px; align-items: center; gap: 9px; min-height: 62px; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); opacity: .7; }
.accord-admin-item.selected { border-color: var(--accord); box-shadow: inset 3px 0 var(--accord); opacity: 1; }
.accord-admin-item > input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--burgundy); }
.accord-admin-item .accord-symbol { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accord) 14%, transparent); color: var(--accord); font-size: 1.25rem; }
.accord-admin-item > span:nth-of-type(2) { display: grid; }
.accord-admin-item small { color: var(--muted); font-weight: 500; }
.accord-admin-item input[type="range"] { accent-color: var(--accord); }
.accord-admin-item output { color: var(--accord); font-weight: 800; direction: ltr; }
.accord-admin-live { margin-top: 14px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--burgundy) 28%, var(--line)); background: var(--surface); }
.accord-admin-live::before { content: "معاينة مباشرة"; display: block; margin-bottom: 10px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.accord-admin-live .pdp-accord-profile > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.review-submit { min-height: 70px; }
.review-submit-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.review-submit-actions .button { min-height: 46px; }

@media (max-width: 900px) {
  .accord-admin-search { grid-template-columns: 1fr 1fr; }
  .accord-admin-search label { grid-column: 1 / -1; }
  .accord-search-count { justify-self: start; }
  .accord-admin-list { grid-template-columns: 1fr; }
  .accord-admin-live .pdp-accord-profile > div { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .catalog-review { padding-bottom: 156px; }
  .product-editor-modes { grid-template-columns: 1fr; position: static; }
  .accord-admin-toolbar { align-items: stretch; flex-direction: column; }
  .accord-admin-search { grid-template-columns: 1fr 1fr; }
  .accord-admin-search .accord-search-count { grid-column: 1 / -1; }
  .accord-admin-item { grid-template-columns: auto auto minmax(0, 1fr) 46px; }
  .accord-admin-item input[type="range"] { grid-column: 1 / -1; width: 100%; }
  .review-submit { position: sticky; bottom: 0; z-index: 12; padding: 10px; }
  .review-submit > div:first-child { display: none; }
  .review-submit-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .review-submit-actions .burgundy-button { grid-column: 1 / -1; }
}

.catalog-review[data-editor-mode="quick"] [data-editor-tier="smart"],
.catalog-review[data-editor-mode="quick"] [data-editor-tier="advanced"],
.catalog-review[data-editor-mode="smart"] [data-editor-tier="advanced"] {
  display: none;
}

.product-editor-preview {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.product-editor-preview > img {
  grid-row: 1 / span 6;
  width: 90px;
  height: 112px;
  object-fit: cover;
  background: var(--paper);
}

.product-editor-preview > .eyebrow,
.product-editor-preview > small,
.product-editor-preview > h3,
.product-editor-preview > p {
  grid-column: 2;
  margin: 0;
}

.product-editor-preview > b,
.product-editor-preview > button {
  grid-column: 3;
}

.product-editor-preview > button {
  padding: 9px 14px;
  border: 0;
  background: var(--ink);
  color: var(--surface);
}

.product-editor-checklist {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-editor-checklist span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}

.product-editor-checklist span.ready {
  border-color: rgba(36, 122, 85, .38);
  color: #247a55;
}

#product-autosave-status {
  grid-column: 2 / -1;
  color: var(--muted);
}

.product-ai-tools,
.ai-product-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.product-ai-tools > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  font-weight: 700;
}

.product-ai-tools button,
.ai-product-review button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.ai-product-review > div {
  min-width: min(100%, 360px);
  flex: 1;
}

.ai-product-review p {
  margin: 5px 0 0;
  color: var(--muted);
}

.brand-carousel-section {
  padding: clamp(42px, 7vw, 88px) var(--page-pad);
  overflow: hidden;
}

.brand-carousel-head,
.brand-carousel-head > div,
.brand-carousel-track {
  display: flex;
  align-items: center;
}

.brand-carousel-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.brand-carousel-head h2 {
  margin: 4px 0 0;
}

.brand-carousel-head > div {
  gap: 7px;
}

.brand-carousel-head input {
  min-height: 42px;
  width: min(260px, 38vw);
  border: 1px solid var(--line);
  background: var(--surface);
  padding-inline: 12px;
}

.brand-carousel-head button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.brand-carousel-track {
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  cursor: grab;
}

.brand-carousel-track:active {
  cursor: grabbing;
}

.brand-carousel-track > button {
  flex: 0 0 clamp(170px, 20vw, 240px);
  min-height: 126px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  scroll-snap-align: start;
  cursor: pointer;
}

.brand-carousel-track > button > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--burgundy);
  font-family: var(--font-display);
}

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

@media (max-width: 700px) {
  .brand-carousel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-carousel-head input {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 700px) {
  .product-editor-preview {
    grid-template-columns: 72px 1fr;
  }

  .product-editor-preview > img {
    width: 72px;
    height: 94px;
  }

  .product-editor-preview > b,
  .product-editor-preview > button {
    grid-column: 2;
  }

  .product-editor-checklist,
  #product-autosave-status {
    grid-column: 1 / -1;
  }
}

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

.finder-admin-group {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.finder-admin-group legend {
  padding-inline: 8px;
  color: var(--burgundy);
  font-weight: 800;
}

.finder-admin-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finder-admin-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-strong, #fff);
  cursor: pointer;
}

.finder-admin-group input {
  accent-color: var(--burgundy);
}

body.dark .finder-admin-group,
body.dark .finder-admin-group label {
  background: #21181b;
}

@media (max-width: 760px) {
  .finder-admin-groups {
    grid-template-columns: 1fr;
  }
}
/* Product editor: searchable, bilingual, database-backed product options */
.catalog-review .review-section{overflow:visible}
.smart-select-label{position:relative;min-width:0;align-self:start}
.smart-select-label>span{display:flex;gap:4px;align-items:center;margin-bottom:7px;font-weight:700;color:var(--ink,#2a1b1c)}
.smart-select-label>span b{color:#9b0b2a}
.smart-select{position:relative;min-width:0}
.smart-select-control{min-height:46px;border:1px solid #e7d8d1;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;cursor:pointer;transition:.18s;border-box;color:#2f2424}
.smart-select-control:hover,.smart-select-control:focus-visible,.smart-select:focus-within .smart-select-control{border-color:#7a001d;box-shadow:0 0 0 3px rgba(122,0,29,.09);outline:0}
.smart-select-chips{display:flex;flex:1;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.smart-select-chips>small{color:#6f6461;font-weight:500}
.smart-select-chips>i{font-style:normal;display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 8px;border-radius:999px;background:#fbf2ed;color:#611025;border:1px solid #efddd3;font-size:.82rem;font-weight:700}
.smart-select-chips>i>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.smart-select-chips>i em{font-style:normal;color:#b77b17}
.smart-select-chips>i img{width:22px;height:22px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.smart-select-chips>i button{border:0;background:transparent;color:#7a001d;font-size:1rem;line-height:1;padding:0;cursor:pointer}
.smart-select-chips>i .smart-select-edit-note{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#7a001d;border:1px solid #dfc4ba;font-size:.85rem;flex:0 0 auto}
.smart-select-chips>i .smart-select-edit-note:hover,.smart-select-chips>i .smart-select-edit-note:focus-visible{background:#7a001d;color:#fff;outline:0}
.product-note-edit-help{grid-column:1/-1;margin:10px 0 2px;padding:10px 12px;border:1px solid #ead8cf;border-radius:10px;background:#fffaf7;color:#68534d;font-size:.82rem;line-height:1.65}
.smart-select-menu{position:absolute;z-index:80;inset-inline:0;top:calc(100% + 6px);min-width:min(420px,90vw);max-height:390px;border:1px solid #dfc9bf;background:#fff;border-radius:14px;padding:9px;box-shadow:0 20px 55px rgba(49,22,22,.18)}
.smart-select-search{display:flex;gap:7px;position:sticky;top:0;background:#fff;z-index:2}
.smart-select-search input{height:42px!important;min-height:42px!important;flex:1}
.smart-select-search button{width:42px;border:1px solid #ead8cf;border-radius:9px;background:#fff;color:#7a001d;cursor:pointer}
.smart-select-actions{display:flex;justify-content:flex-end;gap:10px;padding:8px 2px 5px;border-bottom:1px solid #f0e5df}
.smart-select-actions button{border:0;background:transparent;color:#7a001d;font-weight:700;cursor:pointer}
.smart-select-options{max-height:250px;overflow:auto;padding:5px 1px}
.smart-select-options [role=option]{width:100%;display:flex;align-items:center;gap:9px;border:0;border-radius:9px;background:transparent;padding:8px;text-align:start;color:#2b2020;cursor:pointer}
.smart-select-options [role=option]:hover,.smart-select-options [role=option].keyboard-active{background:#fbf2ed}
.smart-select-options [role=option][aria-selected=true]{background:#f7e8e7;color:#6e071e}
.smart-select-options [role=option]>em{width:34px;height:34px;border-radius:8px;background:color-mix(in srgb,var(--option-color,#d69b32) 15%,white);display:grid;place-items:center;color:var(--option-color,#a66c13);font-style:normal;flex:0 0 auto}
.smart-select-options [role=option]>img{width:34px;height:34px;border-radius:8px;object-fit:cover;flex:0 0 auto}
.smart-select-options [role=option]>span{display:grid;flex:1;min-width:0}
.smart-select-options [role=option] b,.smart-select-options [role=option] small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.smart-select-options [role=option]>i{font-style:normal;opacity:0;color:#087c43}
.smart-select-options [role=option][aria-selected=true]>i{opacity:1}
.smart-select-create{position:sticky;bottom:0;width:100%;height:42px;border:1px dashed #b78d79;border-radius:9px;background:#fffaf7;color:#7a001d;font-weight:800;cursor:pointer}
.product-option-dialog{width:min(680px,calc(100vw - 28px));border:0;border-radius:20px;padding:0;box-shadow:0 30px 90px rgba(31,11,16,.3);color:#281c1d}
.product-option-dialog::backdrop{background:rgba(25,10,14,.56);backdrop-filter:blur(3px)}
.product-option-dialog form{padding:24px}
.product-option-dialog header,.product-option-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:16px}
.product-option-dialog header{padding-bottom:18px;border-bottom:1px solid #eee1da}
.product-option-dialog header h3{margin:3px 0;color:#6d1023;font-size:1.45rem}
.product-option-dialog header>button{border:0;background:#f7eeeb;border-radius:50%;width:38px;height:38px;font-size:1.4rem;cursor:pointer}
.option-dialog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px 0}
.option-dialog-grid label{display:grid;gap:7px;font-weight:700}
.option-dialog-grid input,.option-dialog-grid select,.option-dialog-grid textarea{min-height:46px;border:1px solid #dfd1ca;border-radius:10px;padding:10px 12px;font:inherit;background:inherit;color:inherit}
.option-dialog-grid textarea{min-height:92px;resize:vertical}
.option-dialog-grid .wide{grid-column:1/-1}
.option-image-upload input{padding:8px;height:auto}
.option-image-upload .option-image-status{min-height:22px;color:#17683a;font-size:13px;font-style:normal;font-weight:800}.option-image-upload .option-image-status:not(:empty)::before{content:"●";margin-inline-end:7px;color:#c8943d}
.option-image-preview{grid-column:1/-1;position:relative;margin:0;display:flex;justify-content:center;border:1px solid #eadbd2;border-radius:12px;padding:10px;background:#fffaf7}
.option-image-preview[hidden]{display:none}
.option-image-preview img{width:112px;height:88px;object-fit:contain;border-radius:9px}
.option-image-preview figcaption{align-self:center;margin-inline-start:12px;color:#17683a;font-size:13px;font-weight:800}
.option-image-preview button{position:absolute;inset-inline-end:8px;top:8px;width:30px;height:30px;border:0;border-radius:50%;background:#720019;color:#fff;cursor:pointer}
.brand-marquee-set button>img{width:52px;height:38px;object-fit:contain;border-radius:8px;background:#fff}
.benefit-icon-upload{margin-top:10px;padding:10px;display:grid!important;grid-template-columns:64px 1fr;align-items:center;gap:6px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.benefit-icon-upload>span,.benefit-icon-upload>small,.benefit-icon-upload>input{grid-column:2}.benefit-icon-upload>img{grid-column:1;grid-row:1/5;width:64px;height:64px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#fff}.benefit-icon-upload>small{color:var(--muted);font-size:9px}.footer-benefit-icon img,.benefit-detail-art img{width:100%;height:100%;object-fit:contain}
.store-icons-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:10px 0 24px}.store-icon-upload{min-width:0;padding:12px;display:grid!important;grid-template-columns:48px 1fr;align-items:center;gap:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.store-icon-upload>span:first-child{grid-column:1/-1;font-weight:800}.store-icon-upload input{min-width:0;font-size:11px}.store-icon-preview{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;color:var(--burgundy);background:var(--paper);font-size:24px}.store-icon-preview img{width:38px;height:38px;object-fit:contain}.home-categories [data-home-category-icon] img,.home-benefits .benefit-icon img{width:100%;height:100%;display:block;object-fit:contain}
.option-dialog-grid input:focus{outline:0;border-color:#7a001d;box-shadow:0 0 0 3px rgba(122,0,29,.1)}
.option-dialog-grid .option-active{display:flex;align-items:center;gap:8px;align-self:end;height:46px}
.option-dialog-grid .option-active input{width:20px;height:20px}
.product-option-dialog footer{justify-content:flex-end}
.product-option-dialog footer button:disabled{opacity:.55;cursor:wait}
.option-dialog-error{padding:10px;border-radius:8px;background:#fff0f0;color:#9b0b2a}
.pricing-live-metrics{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;border:1px solid #ead9d0;border-radius:12px;overflow:hidden;background:#ead9d0}
.pricing-live-metrics span{background:#fffaf7;padding:12px;display:flex;justify-content:space-between;gap:8px;color:#695b57}
.pricing-live-metrics b{color:#6e071e}
.product-options-admin>header{padding:8px 0 22px;border-bottom:1px solid #ecdfd8}
.product-options-admin h2{margin:6px 0;color:#641024}
.product-options-admin p{color:#736561}
.product-options-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.product-options-groups>section{border:1px solid #e9d9d0;border-radius:15px;background:#fff;padding:14px;min-width:0}
.product-options-groups>section>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:10px;border-bottom:1px solid #f0e5df}
.product-options-groups>section>header>div{display:grid;gap:3px}.product-options-groups>section>header small{color:#8a7b76}
.product-options-groups>section>header button{border:1px solid #ddc7bb;background:#fff8f4;color:#761127;border-radius:8px;padding:8px 12px;font-weight:800;cursor:pointer}
.product-options-groups>section>div{display:grid;gap:7px;margin-top:10px;max-height:260px;overflow:auto}
.product-options-groups article{display:flex;align-items:center;gap:9px;padding:8px;border-radius:9px;background:#fcf8f6}
.product-options-groups article>i{font-style:normal;width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:var(--option-color);background:color-mix(in srgb,var(--option-color) 12%,white)}
.product-options-groups article>img{width:34px;height:34px;object-fit:cover;border-radius:8px}.product-options-groups article>span{display:grid;flex:1;min-width:0}.product-options-groups article small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#857570}
.product-options-groups article>em{font-style:normal;font-size:.75rem;color:#147743;background:#eaf7ef;border-radius:999px;padding:4px 7px}.product-options-groups article.inactive{opacity:.58}.product-options-groups article>button{border:0;background:transparent;color:#92102c;font-size:1.1rem;cursor:pointer}
html[data-theme=dark] .smart-select-label>span{color:#f7eeee}
html[data-theme=dark] .smart-select-control,html[data-theme=dark] .smart-select-menu,html[data-theme=dark] .smart-select-search,html[data-theme=dark] .smart-select-search button,html[data-theme=dark] .smart-select-create,html[data-theme=dark] .smart-select-options [role=option]{background:#211719;color:#f8eeee;border-color:#543b3f}
html[data-theme=dark] .smart-select-options [role=option]:hover,html[data-theme=dark] .smart-select-options [role=option][aria-selected=true]{background:#3a2228}
html[data-theme=dark] .pricing-live-metrics span{background:#211719;color:#d8c9c8}
@media(max-width:1024px){.smart-select-menu{min-width:min(360px,82vw)}.catalog-review .review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-options-groups{grid-template-columns:1fr}}
@media(max-width:680px){.catalog-review .review-grid,.option-dialog-grid,.pricing-live-metrics{grid-template-columns:1fr}.smart-select-menu{position:fixed;inset-inline:12px;top:auto;bottom:12px;min-width:0;max-height:min(70vh,520px);z-index:1000;border-radius:18px}.smart-select-options{max-height:42vh}.product-option-dialog form{padding:18px}.product-option-dialog footer{display:grid;grid-template-columns:1fr 1fr}.product-option-dialog footer .button{width:100%}.product-options-groups>section{padding:11px}.product-options-groups>section>header button{padding:7px 9px}}
.homepage-rail-settings{display:grid;gap:14px}.homepage-rail-settings>article{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.homepage-rail-settings>article>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.homepage-rail-settings .admin-toggle-row{width:auto;margin:0}.home-media-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-top:16px}.home-media-library article{min-width:0;padding:9px;display:grid;grid-template-columns:64px 1fr 32px;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.home-media-library img{width:64px;height:58px;object-fit:contain;border-radius:7px;background:var(--paper)}.home-media-library span{min-width:0;display:grid}.home-media-library small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.home-media-library button{width:32px;height:32px;border:0;border-radius:50%;color:#8a0a27;background:#f8e9ec;cursor:pointer}@media(max-width:680px){.homepage-rail-settings>article{padding:12px}.homepage-rail-settings>article>header{align-items:flex-start;flex-direction:column}.home-media-library{grid-template-columns:1fr}}
.home-media-library .home-hero-media-card{grid-column:span 2;align-items:start}.home-hero-slide-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-top:8px;border-top:1px solid var(--line)}.home-hero-slide-fields label{min-width:0;display:grid;gap:5px;color:var(--muted);font-size:10px}.home-hero-slide-fields :is(input,textarea){width:100%;min-height:38px;padding:8px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:var(--paper);font:inherit}.home-hero-slide-fields textarea{min-height:62px;resize:vertical}.home-hero-slide-fields .wide{grid-column:1/-1}@media(max-width:680px){.home-media-library .home-hero-media-card{grid-column:auto}.home-hero-slide-fields{grid-template-columns:1fr}.home-hero-slide-fields .wide{grid-column:auto}}

.appearance-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.appearance-settings-grid>label{min-width:0}
.appearance-range{display:grid!important;gap:8px}
.appearance-range>span{display:flex;align-items:center;justify-content:space-between;gap:10px}
.appearance-range output{min-width:52px;padding:3px 8px;border-radius:999px;color:#fff;background:var(--burgundy);text-align:center;font-size:.78rem}
.appearance-range input{width:100%;accent-color:var(--burgundy)}
.appearance-preview{margin:18px 0;padding:var(--origo-card-padding);display:grid;grid-template-columns:auto 1fr 70px;align-items:center;gap:16px;border:var(--origo-card-border-width) solid var(--line);border-radius:var(--origo-card-radius);box-shadow:var(--origo-card-shadow);background:var(--surface,#fff)}
.appearance-preview>span{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;color:var(--gold-dark);background:var(--paper);font-size:calc(24px * var(--origo-icon-scale))}
.appearance-preview h3{margin:0;font-family:var(--origo-font-heading);zoom:var(--origo-heading-scale)}
.appearance-preview p{margin:4px 0 0;color:var(--muted)}
.appearance-preview img{width:70px;height:58px;object-fit:var(--origo-image-fit,contain);scale:var(--origo-image-scale);border-radius:var(--origo-image-radius)}
@media(max-width:900px){.appearance-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.appearance-settings-grid{grid-template-columns:1fr}.appearance-preview{grid-template-columns:auto 1fr}.appearance-preview>img{display:none}}
