:root {
  --ink: #f7efe0;
  --muted: #c9bfa8;
  --paper: #fff8e8;
  --night: #061513;
  --moss: #0e2823;
  --green: #14392f;
  --gold: #c7a45a;
  --gold-bright: #e6c978;
  --clay: #8c4e36;
  --line: rgba(230, 201, 120, 0.24);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

body.cart-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

main > section[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(6, 21, 19, 0.94), rgba(6, 21, 19, 0.56));
  border-bottom: 1px solid rgba(230, 201, 120, 0.15);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(126px, 13vw, 196px);
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(230, 201, 120, 0.16);
  background: rgba(3, 10, 9, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 248, 232, 0.05);
}

.desktop-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 0;
  background: transparent;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.desktop-nav a::after {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 9px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--paper);
  background: rgba(230, 201, 120, 0.09);
  outline: none;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  opacity: 0.58;
  transform: scaleX(1);
}

.cart-trigger,
.button,
.icon-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--night);
  background: var(--gold-bright);
  font-weight: 700;
}

.cart-trigger b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--night);
  color: var(--gold-bright);
}

.cart-trigger.is-updated {
  box-shadow: 0 0 0 3px rgba(230, 201, 120, 0.28);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px clamp(20px, 6vw, 88px) 82px;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(3, 10, 9, 0.98), rgba(4, 13, 12, 0.78), rgba(4, 13, 12, 0.42)),
    linear-gradient(0deg, rgba(3, 10, 9, 0.84), rgba(3, 10, 9, 0.2) 42%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.88;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.96;
}

.hero-content h1 {
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.96;
}

h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1;
}

.hero-copy {
  max-width: 560px;
  color: var(--paper);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.hero-actions,
.product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  color: var(--night);
  background: var(--gold-bright);
}

.button.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(6, 21, 19, 0.38);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.06);
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  color: var(--night);
  background: var(--paper);
}

.button.full {
  width: 100%;
}

.intro-section,
.catalog-section,
.rituals-section,
.guide-section,
.reviews-section,
.order-section {
  padding: 88px clamp(20px, 6vw, 88px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(199, 164, 90, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(18, 48, 41, 0.96), rgba(4, 13, 12, 1)),
    var(--green);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  max-width: 760px;
}

.intro-section h2 {
  max-width: 760px;
  font-size: clamp(42px, 5.8vw, 82px);
}

.intro-notes {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.intro-notes div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px 18px;
  padding: 22px;
  background: rgba(3, 10, 9, 0.42);
}

.intro-notes span {
  grid-row: span 2;
  color: var(--gold-bright);
  font-weight: 800;
}

.intro-notes strong {
  color: var(--paper);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  line-height: 1;
}

.intro-notes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.intro-section p,
.section-heading p,
.rituals-copy p,
.guide-copy p,
.order-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

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

.catalog-page-section {
  min-height: 100vh;
  padding-top: 138px;
}

.catalog-page-section h1 {
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.96;
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.requisites-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(18, 48, 41, 0.96), rgba(4, 13, 12, 1) 56%),
    var(--night);
}

.requisites-section {
  min-height: 100vh;
  padding: 150px clamp(20px, 6vw, 88px) 88px;
  background:
    linear-gradient(180deg, rgba(3, 10, 9, 0.18), rgba(3, 10, 9, 0.72)),
    radial-gradient(circle at 80% 12%, rgba(199, 164, 90, 0.14), transparent 32%);
}

.requisites-intro {
  max-width: 820px;
  margin-bottom: 34px;
}

.requisites-intro h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.94;
}

.requisites-intro p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.requisites-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.requisites-list div {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(230, 201, 120, 0.14);
}

.requisites-list div:first-child {
  border-top: 0;
}

.requisites-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.requisites-list dd {
  margin: 0;
  color: var(--paper);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.thank-you-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(18, 48, 41, 0.96), rgba(4, 13, 12, 1) 58%),
    var(--night);
}

.thank-you-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 150px clamp(20px, 6vw, 88px) 88px;
  background:
    linear-gradient(180deg, rgba(3, 10, 9, 0.08), rgba(3, 10, 9, 0.72)),
    radial-gradient(circle at 82% 16%, rgba(230, 201, 120, 0.14), transparent 34%);
}

.thank-you-copy {
  max-width: 840px;
}

.thank-you-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(50px, 8vw, 110px);
  line-height: 0.92;
}

.thank-you-lead {
  max-width: 720px;
  color: var(--paper);
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.55;
}

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

.thank-you-card {
  margin: 30px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.055);
}

.thank-you-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.thank-you-card h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.thank-you-card-head strong {
  color: var(--gold-bright);
  font-size: 24px;
}

.thank-you-customer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.thank-you-customer dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.thank-you-customer dd {
  margin: 4px 0 0;
  color: var(--paper);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.thank-you-items {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thank-you-items li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(230, 201, 120, 0.12);
}

.thank-you-items b {
  color: var(--gold-bright);
  white-space: nowrap;
}

.thank-you-comment {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.thank-you-status {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 248, 232, 0.06);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.product-card.is-added {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(230, 201, 120, 0.28), 0 18px 48px rgba(0, 0, 0, 0.22);
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(230, 201, 120, 0.62);
  background: rgba(255, 248, 232, 0.09);
  outline: none;
  transform: translateY(-2px);
}

.product-image-crop {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--mobile-catalog-y, 50%);
  transform: scale(var(--zoom, 1));
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

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

.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: rgba(255, 248, 232, 0.06);
  border: 1px solid var(--line);
}

.review-stars {
  color: var(--gold-bright);
  letter-spacing: 3px;
  font-size: 16px;
}

.review-text {
  margin: 0;
  flex: 1;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.review-author strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: var(--paper);
}

.review-author span {
  color: var(--muted);
  font-size: 14px;
}

.product-body span {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-body p {
  min-height: 96px;
  color: var(--muted);
  line-height: 1.6;
}

.product-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  justify-content: stretch;
}

.product-card-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  gap: 8px;
  min-width: 0;
}

.product-card-actions .button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 clamp(6px, 0.9vw, 12px);
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1;
}

.product-add-button {
  min-width: 112px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.product-card-actions .product-add-button {
  min-width: 0;
}

.product-add-button.is-added {
  color: var(--night);
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(230, 201, 120, 0.28);
  transform: translateY(-1px);
}

.product-card-actions .button.secondary {
  color: var(--ink);
  background: rgba(255, 248, 232, 0.05);
}

.rituals-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
  background: var(--paper);
  color: var(--night);
}

.rituals-section .eyebrow,
.rituals-section .rituals-copy p {
  color: var(--clay);
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}

.ritual-grid article {
  border-left: 1px solid rgba(12, 35, 31, 0.18);
}

.ritual-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ritual-grid h3,
.ritual-grid p {
  padding: 0 18px;
}

.ritual-grid h3 {
  margin-top: 18px;
}

.ritual-grid p {
  color: #5d5141;
  line-height: 1.55;
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  background: linear-gradient(160deg, #07100f, #15362e 62%, #07100f);
}

.guide-media img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.guide-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.guide-list li {
  position: relative;
  min-height: 54px;
  padding: 16px 18px 16px 64px;
  color: var(--paper);
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.05);
  line-height: 1.55;
}

.guide-list li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--night);
  background: var(--gold-bright);
  font-weight: 800;
}

.order-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--paper);
  color: var(--night);
}

.order-section h2 {
  max-width: 720px;
}

.order-section p {
  max-width: 720px;
  color: #5d5141;
}

.cart-panel {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
}

.product-modal {
  position: fixed;
  z-index: 55;
  inset: 0;
  pointer-events: none;
}

.product-modal[aria-hidden="false"] {
  pointer-events: auto;
}

.product-modal[aria-hidden="false"] .cart-backdrop {
  background: rgba(3, 9, 8, 0.78);
}

.product-modal-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(1060px, calc(100% - 36px));
  max-height: min(820px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 28px;
  background: #0b1f1b;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translate(-50%, -46%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.product-modal[aria-hidden="false"] .product-modal-dialog {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.bakhur-quantity-picker {
  position: fixed;
  z-index: 88;
  inset: 0;
  pointer-events: none;
}

.bakhur-quantity-picker[aria-hidden="false"] {
  pointer-events: auto;
}

.bakhur-quantity-picker[aria-hidden="false"] .cart-backdrop {
  background: rgba(3, 9, 8, 0.78);
}

.bakhur-quantity-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(520px, calc(100% - 32px));
  max-height: min(720px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--line);
  background: #0b1f1b;
  box-shadow: var(--shadow);
  transform: translate(-50%, -46%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.bakhur-quantity-picker[aria-hidden="false"] .bakhur-quantity-dialog {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.bakhur-quantity-copy {
  display: grid;
  gap: 8px;
  padding-right: 42px;
}

.bakhur-quantity-copy span {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.bakhur-quantity-copy h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
}

.bakhur-quantity-copy p {
  margin: 0;
  color: var(--muted);
}

.bakhur-quantity-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.bakhur-quantity-option {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 248, 232, 0.05);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.bakhur-quantity-option:hover,
.bakhur-quantity-option:focus-visible {
  border-color: var(--gold-bright);
  outline: none;
}

.bakhur-quantity-option strong {
  color: var(--paper);
  font-size: 20px;
}

.bakhur-quantity-option span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bakhur-quantity-option span:last-child {
  color: var(--gold-bright);
}

.bakhur-quantity-input {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.bakhur-quantity-input > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bakhur-quantity-input strong {
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
}

.bakhur-quantity-input input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--gold-bright);
  cursor: pointer;
}

.bakhur-quantity-input input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(255, 248, 232, 0.06);
  font: inherit;
  font-size: 18px;
}

.bakhur-quantity-custom-benefit {
  color: var(--gold-bright);
  font-size: 13px;
  line-height: 1.4;
}

.bakhur-quantity-custom-benefit[data-state="error"] {
  color: #ffb4a8;
}

.product-modal-close {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  color: var(--night);
  background: var(--gold-bright);
  border: 1px solid rgba(255, 248, 232, 0.38);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.product-modal [data-product-modal-body] {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.product-modal-main-crop {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.product-modal-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--mobile-card-y, 50%);
  transform: scale(var(--zoom, 1));
}

.product-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.product-modal-thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.product-modal-thumbs button.is-active,
.product-modal-thumbs button:focus-visible {
  border-color: var(--gold-bright);
  opacity: 1;
  outline: none;
}

.thumb-crop {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
}

.product-modal-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 38px;
}

.product-modal-tag {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-modal-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
}

.product-modal-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.product-detail-block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-detail-block h4 {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-size: 13px;
  text-transform: uppercase;
}

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

.product-detail-block dl > div {
  padding: 10px;
  background: rgba(255, 248, 232, 0.04);
  border: 1px solid rgba(230, 201, 120, 0.12);
}

.product-detail-block dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-detail-block dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.note-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  margin: 8px 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(230, 201, 120, 0.1);
  color: var(--muted);
  line-height: 1.55;
}

.note-row:last-child {
  border-bottom: 0;
}

.note-row strong {
  color: var(--ink);
}

.product-detail-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.cart-panel[aria-hidden="false"] {
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 8, 0);
  transition: background 180ms ease;
}

.cart-panel[aria-hidden="false"] .cart-backdrop {
  background: rgba(3, 9, 8, 0.72);
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100%;
  padding: 28px;
  overflow-y: auto;
  background: #0b1f1b;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-panel[aria-hidden="false"] .cart-drawer {
  transform: translateX(0);
}

.cart-removal-confirm {
  position: fixed;
  z-index: 92;
  inset: 0;
  pointer-events: none;
}

.cart-removal-confirm[aria-hidden="false"] {
  pointer-events: auto;
}

.cart-removal-confirm[aria-hidden="false"] .cart-backdrop {
  background: rgba(3, 9, 8, 0.78);
}

.cart-removal-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  gap: 16px;
  width: min(520px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  background: #0b1f1b;
  box-shadow: var(--shadow);
  transform: translate(-50%, -46%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.cart-removal-confirm[aria-hidden="false"] .cart-removal-dialog {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.cart-removal-dialog .eyebrow,
.cart-removal-dialog h2,
.cart-removal-dialog p {
  margin: 0;
}

.cart-removal-dialog h2 {
  font-size: 42px;
}

.cart-removal-dialog p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.cart-removal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: rgba(255, 248, 232, 0.08);
  font-size: 28px;
}

.product-modal-close.icon-button {
  color: var(--night);
  background: var(--gold-bright);
  border: 1px solid rgba(255, 248, 232, 0.38);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.cart-items {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.empty-cart,
.empty-admin {
  color: var(--muted);
  line-height: 1.6;
}

.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
}

.cart-item-crop {
  display: block;
  width: 86px;
  height: 104px;
  overflow: hidden;
}

.cart-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
}

.cart-item h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.cart-item p {
  color: var(--muted);
}

.cart-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
}

.cart-price-line strong {
  color: var(--gold-bright);
  font-size: 16px;
}

.cart-old-price {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.8;
}

.cart-discount-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: var(--night);
  font-size: 12px;
  font-weight: 800;
}

.cart-minimum-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quantity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quantity-row button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.quantity-row span {
  min-width: 24px;
  text-align: center;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.order-form .privacy-checkbox,
.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  line-height: 1.45;
}

.privacy-checkbox input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.privacy-checkbox span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.privacy-checkbox a {
  color: var(--gold-bright);
}

.order-form input:not([type="checkbox"]),
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 248, 232, 0.06);
  font: inherit;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.form-status[data-state="error"] {
  color: #ffb39e;
}

.form-status[data-state="success"] {
  color: var(--gold-bright);
}

.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(230, 201, 120, 0.28);
  background: rgba(18, 24, 21, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cream);
}

.cookie-consent p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 248, 231, 0.74);
  font-size: 13px;
  line-height: 1.55;
}

.cookie-consent a {
  color: var(--gold-bright);
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-consent-actions .button.ghost,
.cookie-consent .cookie-consent-actions .button.ghost {
  color: var(--paper);
  border: 1px solid rgba(255, 248, 232, 0.58);
  background: transparent;
}

.cookie-consent-actions .button.ghost:hover,
.cookie-consent-actions .button.ghost:focus-visible,
.cookie-consent .cookie-consent-actions .button.ghost:hover,
.cookie-consent .cookie-consent-actions .button.ghost:focus-visible {
  color: var(--night);
  background: var(--paper);
  outline: none;
}

.site-footer {
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(230, 201, 120, 0.12);
  background: #061513;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(201, 191, 168, 0.72);
  font-size: 12px;
}

.site-footer-links a {
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  outline: none;
}

.legal-page {
  padding: 130px 24px 80px;
  max-width: 980px;
  margin: 0 auto;
}

.legal-hero {
  margin-bottom: 24px;
}

.legal-hero h1 {
  margin: 8px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.95;
}

.legal-hero p {
  color: var(--muted);
}

.legal-card {
  padding: 24px 0;
  border-top: 1px solid rgba(230, 201, 120, 0.18);
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.legal-card p {
  margin: 0 0 12px;
  color: rgba(255, 248, 231, 0.78);
  line-height: 1.75;
}

.legal-definitions {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.legal-definitions div {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(230, 201, 120, 0.12);
}

.legal-definitions dt {
  color: var(--muted);
}

.legal-definitions dd {
  margin: 0;
  color: var(--cream);
}

.legal-definitions a {
  color: var(--gold-bright);
}

.admin-page {
  background: var(--paper);
  color: var(--night);
}

.admin-page .admin-login-card,
.admin-page .order-form label,
.admin-page .admin-login-copy,
.admin-page .admin-login-brand p {
  color: #5d5141;
}

.admin-page .admin-login-brand h1,
.admin-page .form-status {
  color: #061513;
}

.admin-page .order-form input,
.admin-page .order-form textarea {
  border-color: rgba(24, 36, 32, 0.22);
  color: #061513;
  background: rgba(255, 255, 255, 0.78);
  caret-color: #061513;
}

.admin-page .order-form input::placeholder,
.admin-page .order-form textarea::placeholder {
  color: #7b725f;
  opacity: 1;
}

.admin-page .order-form input:focus,
.admin-page .order-form textarea:focus {
  border-color: #9c7a1e;
  outline: 2px solid rgba(156, 122, 30, 0.18);
  outline-offset: 0;
}

.admin-page h1,
.admin-page h2,
.admin-page h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.admin-page h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 24px;
}

.admin-page h2 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
}

.admin-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.admin-back {
  color: var(--clay);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.admin-back:hover {
  text-decoration: underline;
}

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

.admin-order {
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(12, 35, 31, 0.14);
}

.admin-order div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--clay);
}

.calc-page {
  min-height: 100vh;
  padding-bottom: 132px;
  background:
    linear-gradient(180deg, rgba(10, 31, 27, 0.98), rgba(6, 21, 19, 1) 260px),
    var(--night);
  color: var(--ink);
}

.calc-topbar {
  position: sticky;
  z-index: 12;
  top: 0;
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 21, 19, 0.92);
  backdrop-filter: blur(18px);
}

.calc-brand,
.calc-icon-btn {
  display: grid;
  place-items: center;
  height: 46px;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  background: rgba(255, 248, 232, 0.06);
  text-decoration: none;
  font-weight: 800;
}

.calc-brand {
  width: 112px;
  overflow: hidden;
}

.calc-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.calc-icon-btn {
  width: 46px;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
}

.calc-topbar p,
.calc-kicker {
  margin: 0;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.calc-topbar h1,
.calc-hero-panel h2,
.calc-section-head h2,
.calc-library-head h2 {
  margin: 2px 0 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
}

.calc-topbar h1 {
  font-size: 27px;
}

.calc-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.calc-hero-panel,
.calc-section,
.calc-item {
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.065);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.calc-hero-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.calc-hero-panel h2 {
  font-size: 38px;
}

.calc-hero-actions {
  display: grid;
  gap: 12px;
  align-items: end;
}

.calc-hero-actions .calc-action {
  justify-self: start;
}

.calc-section {
  margin-top: 14px;
  padding: 16px;
}

.calc-section-head,
.calc-item-head,
.calc-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calc-section-head h2,
.calc-library-head h2 {
  font-size: 32px;
}

.calc-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calc-title-field,
.calc-grid label,
.calc-item label,
.calc-service label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calc-title-field input,
.calc-grid input,
.calc-item input,
.calc-service input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(230, 201, 120, 0.28);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: rgba(3, 10, 9, 0.36);
  font: inherit;
  font-size: 16px;
}

.calc-title-field input:focus,
.calc-grid input:focus,
.calc-item input:focus,
.calc-service input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(230, 201, 120, 0.14);
}

.calc-grid,
.calc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.calc-items {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.calc-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.calc-services {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.calc-service {
  padding: 12px;
  border: 1px solid rgba(230, 201, 120, 0.2);
  background: rgba(3, 10, 9, 0.28);
}

.calc-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.calc-service-head strong {
  color: var(--paper);
}

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

.calc-service-grid label:first-child,
.calc-service-grid label:nth-child(3) {
  grid-column: span 2;
}

.calc-service-line {
  margin: 10px 0 0;
  padding: 10px 12px;
  color: var(--gold-bright);
  background: rgba(230, 201, 120, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.calc-item {
  padding: 14px;
}

.calc-item-head {
  margin-bottom: 14px;
}

.calc-item-head span {
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.calc-item-head strong {
  display: block;
  margin-top: 2px;
  color: var(--paper);
  font-size: 17px;
}

.calc-item .wide {
  margin-bottom: 12px;
}

.calc-remove {
  min-height: 38px;
  border: 1px solid rgba(255, 179, 158, 0.28);
  color: #ffb39e;
  background: rgba(255, 179, 158, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.calc-remove:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.calc-item-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.calc-item-results div {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(3, 10, 9, 0.42);
}

.calc-item-results dt,
.calc-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.calc-item-results dd {
  margin: 0;
  color: var(--paper);
  font-weight: 800;
}

.calc-action {
  min-height: 46px;
  border: 0;
  padding: 0 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.calc-action.primary {
  color: var(--night);
  background: var(--gold-bright);
}

.calc-action.secondary {
  color: var(--paper);
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.07);
}

.calc-action.full {
  width: 100%;
}

.calc-summary {
  position: fixed;
  z-index: 18;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(6, 21, 19, 0.96);
  box-shadow: 0 -20px 52px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.calc-summary div {
  display: grid;
  gap: 3px;
}

.calc-summary strong {
  color: var(--paper);
  font-size: 18px;
  line-height: 1.1;
}

.calc-summary .calc-action {
  grid-column: span 2;
}

.calc-library {
  position: fixed;
  z-index: 30;
  inset: 0;
  pointer-events: none;
}

.calc-library[aria-hidden="false"] {
  pointer-events: auto;
}

.calc-library-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 8, 0);
  transition: background 180ms ease;
}

.calc-library[aria-hidden="false"] .calc-library-backdrop {
  background: rgba(3, 9, 8, 0.68);
}

.calc-library-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(78vh, 720px);
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: #0b1f1b;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.46);
  transform: translateY(100%);
  transition: transform 220ms ease;
}

.calc-library[aria-hidden="false"] .calc-library-sheet {
  transform: translateY(0);
}

.calc-saved-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.calc-saved-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.05);
}

.calc-saved-card button:first-child {
  display: grid;
  gap: 4px;
  min-height: 52px;
  border: 0;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.calc-saved-card span,
.calc-empty {
  color: var(--muted);
  font-size: 13px;
}

.calc-toast {
  position: fixed;
  z-index: 40;
  left: 14px;
  right: 14px;
  bottom: 124px;
  margin: 0 auto;
  max-width: 520px;
  min-height: 0;
  padding: 0;
  color: var(--night);
  background: var(--gold-bright);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-align: center;
}

.calc-toast:not(:empty) {
  padding: 12px 14px;
}

.calc-toast[data-state="error"] {
  color: #2a0904;
  background: #ffb39e;
}

.calc-toast[data-state="success"] {
  color: var(--night);
  background: var(--gold-bright);
}

@media (min-width: 860px) {
  .calc-page {
    padding-bottom: 34px;
  }

  .calc-topbar {
    grid-template-columns: 52px 1fr auto;
    padding: 16px clamp(24px, 4vw, 48px);
  }

  .calc-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
  }

  .calc-hero-panel,
  .calc-products-section {
    grid-column: span 2;
  }

  .calc-hero-panel {
    grid-template-columns: 1fr minmax(320px, 0.7fr);
    align-items: end;
    padding: 24px;
  }

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

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

  .calc-summary {
    position: sticky;
    bottom: 18px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    grid-template-columns: 1fr 1fr 220px;
    align-items: center;
    padding: 14px 16px;
  }

  .calc-summary .calc-action {
    grid-column: auto;
  }

  .calc-library-sheet {
    left: auto;
    width: min(420px, 100%);
    height: 100%;
    max-height: none;
    border-top: 0;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
  }

  .calc-library[aria-hidden="false"] .calc-library-sheet {
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .intro-section,
  .section-heading,
  .rituals-section,
  .guide-section {
    grid-template-columns: 1fr;
  }

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

  .product-modal [data-product-modal-body] {
    grid-template-columns: 1fr;
  }

  .product-modal-copy {
    padding-right: 0;
  }

}

@media (max-width: 640px) {
  main > section[id] {
    scroll-margin-top: 142px;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 14px;
    gap: 10px;
  }

  .brand-mark {
    order: 1;
    margin-right: auto;
  }

  .brand-logo {
    width: 88px;
    height: 40px;
  }

  .desktop-nav {
    display: flex;
    flex: 0 0 100%;
    order: 4;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 16px;
    font-size: 12px;
  }

  .desktop-nav a {
    min-width: 0;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .desktop-nav a::after {
    display: none;
  }

  .cart-trigger {
    order: 2;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
  }

  .cart-trigger span {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 158px 18px 54px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 46px);
    line-height: 0.98;
    overflow-wrap: normal;
  }

  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(3, 10, 9, 0.96), rgba(3, 10, 9, 0.54)),
      linear-gradient(90deg, rgba(3, 10, 9, 0.86), rgba(3, 10, 9, 0.28));
  }

  .hero-actions,
  .order-section {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .legal-page {
    padding: 150px 18px 70px;
  }

  .legal-definitions div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-modal-dialog {
    inset: 10px 10px auto;
    width: auto;
    max-height: calc(100dvh - 20px);
    padding: 12px 12px 20px;
    border-radius: 8px;
    transform: translateY(28px);
  }

  .bakhur-quantity-dialog {
    inset: 8vh 14px auto;
    width: auto;
    max-height: 84vh;
    padding: 58px 16px 20px;
    border-radius: 8px;
    transform: translateY(28px);
  }

  .cart-removal-dialog {
    inset: auto 14px 14px;
    width: auto;
    padding: 20px 16px;
    border-radius: 8px;
    transform: translateY(28px);
  }

  .cart-removal-confirm[aria-hidden="false"] .cart-removal-dialog {
    transform: translateY(0);
  }

  .cart-removal-dialog h2 {
    font-size: 34px;
  }

  .cart-removal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bakhur-quantity-picker[aria-hidden="false"] .bakhur-quantity-dialog {
    transform: translateY(0);
  }

  .product-modal[aria-hidden="false"] .product-modal-dialog {
    transform: translateY(0);
  }

  .bakhur-quantity-picker[aria-hidden="false"] .cart-backdrop,
  .product-modal[aria-hidden="false"] .cart-backdrop {
    background: rgba(3, 9, 8, 0.72);
  }

  .product-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
  }

  .bakhur-quantity-options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .bakhur-quantity-copy h2 {
    font-size: 32px;
  }

  .adm-product-dialog {
    inset: 0;
    width: 100%;
    max-height: 100%;
    transform: translateY(100%);
  }

  .adm-product-modal[aria-hidden="false"] .adm-product-dialog {
    transform: translateY(0);
  }

  .product-detail-block dl,
  .note-row {
    grid-template-columns: 1fr;
  }

  .product-image-crop {
    aspect-ratio: 1 / 1;
  }

  .product-image-crop img,
  .product-modal-main {
    object-fit: cover;
  }

  .product-body {
    padding: 16px;
  }

  .product-body p {
    font-size: 15px;
    line-height: 1.55;
  }

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

  .product-footer strong {
    width: 100%;
  }

  .product-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    width: 100%;
  }

  .intro-section,
  .catalog-section,
  .catalog-page-section,
  .requisites-section,
  .rituals-section,
  .guide-section,
  .order-section {
    padding: 58px 18px;
  }

  .catalog-page-section,
  .requisites-section {
    padding-top: 142px;
  }

  .requisites-list div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 16px 0;
  }

  .ritual-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .catalog-page-section {
    padding-left: 12px;
    padding-right: 12px;
  }

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

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

  .product-image-crop {
    aspect-ratio: 1 / 1;
  }

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

  .product-body span {
    font-size: 10px;
  }

  .product-body h3 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    font-size: 21px;
    line-height: 1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-body p {
    display: none;
  }

  .product-footer {
    width: 100%;
    display: grid;
    gap: 9px;
  }

  .product-footer strong {
    width: auto;
    font-size: 14px;
    line-height: 1.25;
  }

  .product-card-actions {
    width: 100%;
    justify-content: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .product-card-actions .button {
    width: 100%;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    padding: 0 6px;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1;
  }

  .product-add-button {
    min-width: 0;
  }

  .product-add-button.is-added {
    box-shadow: none;
    transform: none;
  }

  .product-body p {
    min-height: 0;
  }

.cart-drawer {
    padding: 22px 16px;
  }
}

/* ===== Admin: products manager & login ===== */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-logout {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.admin-login {
  max-width: 460px;
}

.admin-login .order-form {
  margin-top: 18px;
}

.admin-login-card {
  margin-top: clamp(20px, 5vh, 64px);
  padding: 28px;
  border: 1px solid rgba(24, 36, 32, 0.14);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 48px rgba(60, 45, 10, 0.08);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.admin-login-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(24, 36, 32, 0.14);
  background: rgba(6, 21, 19, 0.92);
}

.admin-login-brand p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-login-brand h1 {
  margin-bottom: 0;
}

.admin-login-copy {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-editor {
  margin: 18px 0 32px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(12, 35, 31, 0.14);
  border-radius: 6px;
}

.product-editor h2 {
  margin: 0 0 16px;
}

.product-editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.product-editor-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.product-image-preview {
  margin: 4px 0;
}

.product-image-preview img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(12, 35, 31, 0.14);
}

.product-list-title {
  margin: 8px 0 16px;
}

.admin-product {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(12, 35, 31, 0.14);
  border-radius: 6px;
}

.admin-product img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-product-noimg {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--clay);
  background: rgba(12, 35, 31, 0.06);
  border-radius: 6px;
}

.admin-product-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-product-body strong {
  font-size: 17px;
}

.admin-product-tag {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clay);
}

.admin-product-price {
  font-weight: 700;
  color: var(--night);
}

.admin-product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button.small.ghost {
  background: none;
  border: 1px solid rgba(12, 35, 31, 0.3);
  color: var(--night);
}

@media (max-width: 640px) {
  .product-editor-row {
    grid-template-columns: 1fr;
  }

  .admin-product {
    grid-template-columns: 72px 1fr;
  }

  .admin-product img,
  .admin-product-noimg {
    width: 72px;
    height: 72px;
  }

  .admin-product-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

/* ============================================================
   Unified admin dashboard (adm-*)
   ============================================================ */
.adm-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(199, 164, 90, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(10, 31, 27, 0.98), rgba(6, 21, 19, 1) 320px),
    var(--night);
  color: var(--ink);
  padding-bottom: 80px;
}

.adm-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px clamp(14px, 3vw, 32px);
  background: rgba(6, 21, 19, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.adm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.04);
}

.adm-brand p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.adm-brand h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.adm-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.adm-tab {
  padding: 9px 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.adm-tab:hover { color: var(--ink); }

.adm-tab.is-active {
  color: var(--night);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.adm-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.adm-link {
  background: none;
  border: none;
  color: var(--gold-bright);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.adm-link:hover { text-decoration: underline; }

.adm-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px);
}

.adm-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.adm-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.adm-panel-head h2 {
  margin: 4px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.adm-card {
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.055);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin-bottom: 16px;
}

.adm-card h3 {
  margin: 0 0 16px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-bright);
}

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

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

.adm-field-grid label,
.adm-file-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.adm-field-grid input,
.adm-field-grid textarea,
.adm-field-grid select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(230, 201, 120, 0.28);
  background: rgba(6, 21, 19, 0.5);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: none;
}

.adm-field-grid textarea { min-height: 70px; resize: vertical; }

.adm-field-grid input::placeholder,
.adm-field-grid textarea::placeholder {
  color: rgba(247, 239, 224, 0.48);
  opacity: 1;
}

.adm-field-grid input:focus,
.adm-field-grid textarea:focus,
.adm-field-grid select:focus {
  border-color: var(--gold-bright);
}

.adm-checkbox {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.adm-checkbox input { width: 18px; min-height: 18px; height: 18px; }

.adm-image-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.adm-gallery-admin {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.adm-product-modal {
  position: fixed;
  z-index: 70;
  inset: 0;
  pointer-events: none;
}

.adm-product-modal[aria-hidden="false"] {
  pointer-events: auto;
}

.adm-product-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 8, 0);
  transition: background 180ms ease;
}

.adm-product-modal[aria-hidden="false"] .adm-product-backdrop {
  background: rgba(3, 9, 8, 0.9);
}

.adm-product-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(960px, calc(100% - 32px));
  max-height: min(880px, calc(100vh - 32px));
  overflow-y: auto;
  background: #0b1f1b;
  transform: translate(-50%, -46%);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.adm-product-modal[aria-hidden="false"] .adm-product-dialog {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.adm-delete-confirm {
  position: fixed;
  z-index: 95;
  inset: 0;
  pointer-events: none;
}

.adm-delete-confirm[aria-hidden="false"] {
  pointer-events: auto;
}

.adm-delete-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 8, 0);
  transition: background 180ms ease;
}

.adm-delete-confirm[aria-hidden="false"] .adm-delete-backdrop {
  background: rgba(3, 9, 8, 0.82);
}

.adm-delete-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(460px, calc(100% - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  background: #0b1f1b;
  box-shadow: var(--shadow);
  transform: translate(-50%, -46%);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.adm-delete-confirm[aria-hidden="false"] .adm-delete-dialog {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.adm-delete-dialog h2 {
  margin: 6px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  line-height: 1;
}

.adm-delete-dialog p:not(.adm-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.adm-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.adm-product-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.adm-gallery-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.adm-gallery-summary {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.adm-gallery-summary strong {
  color: var(--gold-bright);
  font-size: 13px;
}

.adm-gallery-item {
  width: 132px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.04);
}

.adm-gallery-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(230, 201, 120, 0.18);
}

.adm-primary-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 6px;
  background: var(--gold-bright);
  color: var(--night);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.adm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
}

.adm-gallery-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.adm-zoom-label {
  display: grid !important;
  gap: 5px !important;
  align-items: stretch !important;
}

.adm-zoom-label input {
  width: 100%;
}

.adm-zoom-label span {
  color: var(--gold-bright);
}

.adm-mobile-photo-editor {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
}

.adm-mobile-photo-editor[aria-hidden="false"] {
  pointer-events: auto;
}

.adm-mobile-photo-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 8, 0);
  transition: background 180ms ease;
}

.adm-mobile-photo-editor[aria-hidden="false"] .adm-mobile-photo-editor-backdrop {
  background: rgba(3, 9, 8, 0.82);
}

.adm-mobile-photo-editor-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 22px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: #0b1f1b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, -46%);
  transition: transform 200ms ease, opacity 200ms ease;
}

.adm-mobile-photo-editor[aria-hidden="false"] .adm-mobile-photo-editor-dialog {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.adm-mobile-photo-editor-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.adm-mobile-photo-editor-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-right: 64px;
  flex-wrap: wrap;
}

.adm-mobile-photo-editor-head h3 {
  margin: 0;
  color: var(--paper);
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  line-height: 1;
}

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

.adm-mobile-editor-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.adm-mobile-editor-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold-bright);
  font-weight: 900;
}

.adm-mobile-editor-phone {
  width: min(100%, 390px);
  min-height: 560px;
  padding: 18px 14px;
  overflow: hidden;
  border: 1px solid rgba(230, 201, 120, 0.2);
  background: #02100e;
}

.adm-mobile-editor-product-card,
.adm-mobile-editor-modal-card {
  position: relative;
  gap: 14px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b241f;
  color: var(--paper);
}

.adm-mobile-editor-product-card {
  display: flex;
  flex-direction: column;
}

.adm-mobile-editor-product-image,
.adm-mobile-editor-modal-image {
  width: 100%;
  overflow: hidden;
  background: rgba(255, 248, 232, 0.05);
}

.adm-mobile-editor-product-image {
  aspect-ratio: 1 / 1;
}

.adm-mobile-editor-modal-image {
  aspect-ratio: 4 / 5;
  border-bottom: 1px solid var(--line);
}

.adm-mobile-editor-product-image img,
.adm-mobile-editor-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
}

.adm-mobile-editor-product-image img {
  object-position: center var(--mobile-catalog-y, 50%);
}

.adm-mobile-editor-modal-image img {
  object-position: center var(--mobile-card-y, 50%);
}

.adm-mobile-editor-product-body,
.adm-mobile-editor-modal-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.adm-mobile-editor-modal-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  color: var(--night);
  background: var(--gold-bright);
}

.adm-mobile-editor-product-body span,
.adm-mobile-editor-modal-card span {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.adm-mobile-editor-product-body h4,
.adm-mobile-editor-modal-card h4 {
  margin: 0;
  color: var(--paper);
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  line-height: 0.96;
}

.adm-mobile-editor-product-body p,
.adm-mobile-editor-modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.adm-mobile-editor-product-body p {
  display: none;
}

.adm-mobile-editor-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.adm-mobile-editor-thumbs span {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  opacity: 0.64;
}

.adm-mobile-editor-thumbs span.is-active {
  border-color: var(--gold-bright);
  opacity: 1;
}

.adm-mobile-editor-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-mobile-editor-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.adm-mobile-editor-footer strong,
.adm-mobile-editor-modal-card strong {
  color: var(--paper);
  font-size: 18px;
}

.adm-mobile-editor-control {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.adm-mobile-editor-control input {
  width: 100%;
}

.adm-mobile-editor-zoom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.adm-mobile-editor-zoom span {
  color: var(--gold-bright);
}

.adm-mobile-editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .adm-mobile-photo-editor-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px;
  }

  .adm-mobile-editor-grid {
    grid-template-columns: 1fr;
  }

  .adm-mobile-editor-phone {
    width: 100%;
    min-height: 0;
  }
}

.adm-detail-editor {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.adm-detail-editor h4 {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 13px;
  text-transform: uppercase;
}

.adm-bakhur-fields {
  margin-top: 16px;
}

.adm-range-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.adm-tier-editor {
  margin: 12px 0 18px;
}

.adm-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

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

.adm-tier-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(132px, 0.7fr) repeat(2, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.adm-pricing-settings {
  margin-bottom: 18px;
}

.adm-pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.adm-pricing-toggle {
  flex: 0 0 auto;
  margin-top: 0;
}

.adm-pricing-rules {
  display: grid;
  gap: 14px;
}

.adm-pricing-rule {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.04);
}

.adm-discount-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(132px, 0.7fr) repeat(2, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.adm-discount-mode {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
}

.adm-discount-mode legend {
  width: 100%;
  margin-bottom: 6px;
  color: var(--muted);
}

.adm-discount-mode label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
}

.adm-discount-mode input {
  width: auto;
}

.adm-image-preview img {
  max-width: 120px;
  max-height: 120px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.adm-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.adm-form-actions-top {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.adm-status-inline {
  color: var(--muted);
}

.adm-product-dialog .adm-form-actions {
  position: sticky;
  bottom: -20px;
  z-index: 2;
  margin: 18px -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #0b1f1b;
}

.adm-product-dialog .adm-form-actions-top {
  position: static;
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.adm-btn {
  padding: 11px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.06);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

.adm-btn:active { transform: translateY(1px); }

.adm-btn.primary {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--night);
}

.adm-btn.primary:hover { background: var(--gold); }

.adm-btn.ghost { background: transparent; }

.adm-btn.danger {
  border-color: rgba(255, 179, 158, 0.45);
  background: rgba(255, 179, 158, 0.06);
  color: #ffb39e;
}

.adm-btn.small { padding: 7px 13px; font-size: 13px; }

.adm-file-label::after {
  content: attr(data-count);
  color: var(--gold-bright);
  font-size: 12px;
}

.adm-file-label.is-disabled {
  opacity: 0.58;
}

.adm-status { font-size: 13px; font-weight: 700; color: var(--muted); }
.adm-status[data-state="error"] { color: #ffb39e; }
.adm-status[data-state="success"] { color: var(--gold-bright); }
.adm-status[data-state="pending"] { color: var(--muted); }

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

.adm-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.045);
}

.adm-thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.adm-thumb-empty {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 248, 232, 0.04);
}

.adm-row-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.adm-row-body strong { font-size: 16px; }
.adm-row-body p { margin: 0; color: var(--muted); font-size: 14px; }

.adm-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  font-weight: 800;
}

.adm-tag[data-tg="approved"] { color: #9be6a8; }
.adm-tag[data-tg="pending"] { color: #ffd27a; }
.adm-tag[data-tg="blocked"] { color: #ffb39e; }

.adm-tg-status { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.adm-tg-status p { margin: 0; }

.adm-price { font-weight: 800; color: var(--gold-bright); }

.adm-row-actions { display: flex; flex-direction: column; gap: 8px; }

.adm-review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-stars { color: var(--gold-bright); letter-spacing: 2px; }
.adm-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.adm-log-list {
  gap: 10px;
}

.adm-log-card {
  margin-bottom: 0;
}

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

.adm-log-head > div {
  display: grid;
  gap: 4px;
}

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

.adm-log-grid span,
.adm-log-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.adm-log-grid b {
  display: block;
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.adm-log-card p {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.adm-content-group h3 { color: var(--gold-bright); }

.adm-checkbox-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.adm-checkbox-inline input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.adm-content-image-field {
  display: grid;
  gap: 10px;
}

.adm-content-image-field img {
  width: min(240px, 100%);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.04);
}

.adm-content-image-field img[hidden] {
  display: none;
}

.adm-repeatable {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.adm-repeatable h4 {
  margin: 0;
  color: var(--gold-bright);
  font-size: 13px;
  text-transform: uppercase;
}

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

.adm-repeatable-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.035);
}

.adm-repeatable-item strong {
  color: var(--ink);
  font-size: 14px;
}

.adm-empty.compact {
  margin: 0;
  padding: 12px;
}

.adm-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border-radius: 999px;
}
.adm-chip.is-active { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--night); }

.adm-order p, .adm-cart p { margin: 6px 0; font-size: 14px; }
.adm-muted { color: var(--muted); font-weight: 500; }

.adm-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.adm-order-top strong { display: block; font-size: 16px; }

.adm-order-status {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--line);
}
.adm-order-status[data-st="new"] { color: var(--gold-bright); border-color: var(--gold-bright); }
.adm-order-status[data-st="processing"] { color: #8fd0ff; border-color: #8fd0ff; }
.adm-order-status[data-st="shipped"] { color: #c9a9ff; border-color: #c9a9ff; }
.adm-order-status[data-st="completed"] { color: #9be6a8; border-color: #9be6a8; }
.adm-order-status[data-st="canceled"] { color: #ffb39e; border-color: #ffb39e; }

.adm-order-statusctl {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  max-width: 220px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.adm-order-statusctl select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(230, 201, 120, 0.28);
  background: rgba(6, 21, 19, 0.5);
  color: var(--ink);
  font: inherit;
}
.adm-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.adm-order-actions-top {
  margin: 0 0 12px;
}
.adm-order-actions .adm-order-statusctl { margin-top: 0; }
.adm-order-actions .adm-btn { align-self: flex-end; }

.adm-cart-items { margin: 8px 0; padding-left: 18px; }
.adm-cart-items li { margin: 4px 0; font-size: 14px; }
.adm-session { font-size: 12px; word-break: break-all; }

.adm-help { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.adm-empty { color: var(--muted); padding: 24px 0; }

.adm-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  padding: 13px 22px;
  background: var(--gold-bright);
  color: var(--night);
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 60;
  max-width: calc(100% - 32px);
}
.adm-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.adm-toast[data-kind="error"] { background: #ffb39e; }

@media (max-width: 860px) {
  .adm-tabs { order: 3; width: 100%; margin: 4px 0 0; justify-content: flex-start; }
  .adm-actions { margin-left: auto; }
}

@media (max-width: 600px) {
  .adm-product-modal { padding: 8px; }
  .adm-product-dialog {
    top: 8px;
    left: 8px;
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    transform: translateY(12px);
  }
  .adm-product-modal[aria-hidden="false"] .adm-product-dialog { transform: none; }
  .adm-product-close { top: 12px; right: 12px; }
  .adm-product-dialog .adm-card { padding: 14px; }
  .adm-product-dialog .adm-form-actions {
    bottom: -14px;
    margin: 16px -14px -14px;
    padding: 12px 14px;
  }
  .adm-delete-dialog {
    inset: auto 12px 12px;
    width: auto;
    padding: 18px;
    transform: translateY(24px);
  }
  .adm-delete-confirm[aria-hidden="false"] .adm-delete-dialog { transform: translateY(0); }
  .adm-delete-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .adm-field-grid { grid-template-columns: 1fr; }
  .adm-tier-row { grid-template-columns: 1fr; }
  .adm-discount-row { grid-template-columns: 1fr; }
  .adm-pricing-head { flex-direction: column; }
  .adm-row { grid-template-columns: 64px 1fr; }
  .adm-thumb { width: 64px; height: 64px; }
  .adm-row-actions { grid-column: 1 / -1; flex-direction: row; }
  .adm-log-grid { grid-template-columns: 1fr; }
  .adm-log-head { flex-direction: column; }
}

/* ============================================================
   Светлая тема для админки и калькулятора (.theme-light на <html>)
   ============================================================ */
.theme-light {
  --ink: #202b27;
  --muted: #6f6757;
  --paper: #18241f;
  --night: #f3ead4;
  --moss: #ece2c9;
  --green: #ece2c9;
  --gold: #b8923f;
  --gold-bright: #9c7a1e;
  --line: rgba(24, 36, 32, 0.16);
  --shadow: 0 18px 50px rgba(60, 45, 10, 0.14);
}

.theme-light .adm-page {
  background: linear-gradient(180deg, #faf3e2, #f3ead4 320px), #f3ead4;
}
.theme-light .calc-page {
  background: linear-gradient(180deg, #faf3e2, #f3ead4 260px), #f3ead4;
}

.theme-light .adm-topbar,
.theme-light .calc-topbar {
  background: rgba(250, 243, 226, 0.92);
  border-bottom: 1px solid rgba(24, 36, 32, 0.12);
}

.theme-light .adm-card,
.theme-light .adm-row,
.theme-light .calc-hero-panel,
.theme-light .calc-section,
.theme-light .calc-item {
  background: #fff;
  border-color: rgba(24, 36, 32, 0.12);
  box-shadow: 0 14px 40px rgba(60, 45, 10, 0.08);
}

.theme-light .adm-brand-logo,
.theme-light .calc-brand,
.theme-light .calc-icon-btn,
.theme-light .adm-btn,
.theme-light .calc-action.secondary {
  background: #fff;
  border-color: rgba(24, 36, 32, 0.16);
}

.theme-light .adm-btn.ghost {
  background: transparent;
}

.theme-light .adm-btn.primary {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #fff;
}
.theme-light .adm-btn.primary:hover { background: var(--gold); }

.theme-light .adm-field-grid input,
.theme-light .adm-field-grid textarea,
.theme-light .adm-field-grid select,
.theme-light .adm-order-statusctl select,
.theme-light .calc-title-field input,
.theme-light .calc-grid input,
.theme-light .calc-item input,
.theme-light .calc-service input {
  background: #fff;
  border-color: rgba(24, 36, 32, 0.2);
  color: #202b27;
}

.theme-light .adm-field-grid input::placeholder,
.theme-light .adm-field-grid textarea::placeholder,
.theme-light .calc-title-field input::placeholder,
.theme-light .calc-grid input::placeholder,
.theme-light .calc-item input::placeholder,
.theme-light .calc-service input::placeholder {
  color: #766d5b;
  opacity: 1;
}

.theme-light .calc-item-results div { background: #f7f0df; }
.theme-light .calc-service { background: #f7f0df; border-color: rgba(24, 36, 32, 0.12); }
.theme-light .calc-service-line { background: rgba(156, 122, 30, 0.12); }
.theme-light .adm-thumb-empty { background: rgba(24, 36, 32, 0.05); }

.theme-light .calc-summary {
  background: rgba(250, 243, 226, 0.96);
  border-top-color: rgba(24, 36, 32, 0.12);
  box-shadow: 0 -16px 40px rgba(60, 45, 10, 0.1);
}

.theme-light .calc-library-sheet { background: #faf3e2; }
.theme-light .calc-saved-card { background: #fff; border-color: rgba(24, 36, 32, 0.12); }
.theme-light .calc-library-backdrop { background: rgba(40, 30, 8, 0.32) !important; }

.theme-light .adm-tab:hover { color: var(--ink); }
.theme-light .adm-chip,
.theme-light .adm-tab { border-color: rgba(24, 36, 32, 0.16); }

.theme-light .adm-toast,
.theme-light .calc-toast {
  box-shadow: 0 18px 50px rgba(60, 45, 10, 0.22);
}

/* Топбар калькулятора: место под переключатель темы */
.calc-topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Калькулятор как вкладка админки */
.calc-embed {
  padding-bottom: 120px;
}
.calc-embed .calc-hero-panel {
  margin-top: 4px;
}
