:root {
  color-scheme: light;

  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #efede8;
  --glass: rgba(255, 255, 255, 0.86);
  --text: #161412;
  --muted: #625d57;
  --line: rgba(27, 22, 18, 0.12);

  --accent-burgundy: #2a1712;
  --accent-gold: #a97124;
  --accent-teal: #176b64;

  --text-on-accent: #ffffff;
  --accent-hover: #472019;
  --accent-shadow: rgba(42, 23, 18, 0.18);

  --shadow: 0 16px 42px rgba(28, 22, 17, 0.07);
  --shadow-hover: 0 24px 62px rgba(28, 22, 17, 0.13);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

  --bg: #0f0d0c;
  --surface: #171411;
  --surface-soft: #211c18;
  --glass: rgba(23, 20, 17, 0.88);
  --text: #fbf6ee;
  --muted: #b7aa9a;
  --line: rgba(255, 255, 255, 0.13);

  --accent-burgundy: #f1c57a;
  --accent-gold: #d6a95f;
  --accent-teal: #37a7a0;

  --text-on-accent: #160f0b;
  --accent-hover: #ffe0a3;
  --accent-shadow: rgba(241, 197, 122, 0.2);

  --shadow: 0 18px 52px rgba(0, 0, 0, 0.48);
  --shadow-hover: 0 26px 70px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(247, 247, 244, 0.92)),
    url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M44 18c24 20 24 48 0 68 24 20 24 48 0 68M136 18c-24 20-24 48 0 68-24 20-24 48 0 68' fill='none' stroke='%23736657' stroke-width='1.4' stroke-opacity='.055'/%3E%3C/svg%3E");
  color: var(--text);
  font-family: "Cairo", system-ui, sans-serif;
  overflow-x: clip;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background-image:
    linear-gradient(180deg, rgba(15, 13, 12, 0.94), rgba(15, 13, 12, 1)),
    url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M44 18c24 20 24 48 0 68 24 20 24 48 0 68M136 18c-24 20-24 48 0 68-24 20-24 48 0 68' fill='none' stroke='%23f1c57a' stroke-width='1.2' stroke-opacity='.05'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Shell Layout */
.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 42px;
}

/* Topbar styles */
.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(28, 22, 17, 0.06);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  background: #0f0d0c;
  border: 1px solid rgba(214, 169, 95, 0.42);
  border-radius: 8px;
  box-shadow: 0 10px 26px var(--accent-shadow);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  font-family: 'Cinzel', serif;
  letter-spacing: 0;
}

.brand small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
}

.nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.nav a {
  padding: 8px 14px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 4px;
}

.nav a:hover {
  background: var(--surface-soft);
  color: var(--accent-burgundy);
}

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

.icon-button {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.icon-button:hover {
  border-color: var(--accent-gold);
  color: var(--accent-burgundy);
  transform: translateY(-2px);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -7px;
  left: -7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  background: var(--accent-burgundy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Theme toggle icon styling */
.theme-icon {
  font-size: 18px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 40px;
  align-items: center;
  min-height: 548px;
  padding: 42px 0 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 20px;
  font-size: 64px;
  line-height: 1.08;
  font-weight: 800;
  color: var(--text);
  font-family: 'Cairo', system-ui, sans-serif;
  text-wrap: balance;
}

.hero-copy p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 28px;
}

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

.primary-action,
.secondary-action,
.checkout,
.add-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  padding: 12px 24px;
}

.primary-action,
.checkout {
  background: var(--accent-burgundy);
  color: var(--text-on-accent);
}

.primary-action:hover,
.checkout:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-shadow);
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.secondary-action:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.login-btn {
  font-size: 13px;
  height: 46px;
  padding: 0 16px;
  display: flex;
}

.hero-visual {
  position: relative;
  height: 492px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-soft);
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.22));
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-visual:hover .hero-img {
  transform: scale(1.05);
}

/* Trust and offer bands */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 18px;
}

.trust-strip div,
.offer-band {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-strip div {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 58px 18px 18px;
}

.trust-strip div::before {
  content: "";
  position: absolute;
  top: 19px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(169, 113, 36, 0.22), rgba(23, 107, 100, 0.16)),
    var(--surface-soft);
  border: 1px solid var(--line);
}

.trust-strip strong {
  color: var(--text);
  font-size: 16px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
}

.offer-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 28px;
  padding: 18px 20px;
  border-color: rgba(169, 113, 36, 0.34);
  background: linear-gradient(90deg, rgba(169, 113, 36, 0.14), rgba(23, 107, 100, 0.06), var(--surface));
}

.offer-band p {
  margin: 0;
  font-weight: 800;
}

.offer-band a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--accent-burgundy);
  color: var(--text-on-accent);
  font-weight: 800;
  white-space: nowrap;
}

.offer-band a:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Tools (Search & Filter) */
.tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(180px, 220px) minmax(190px, 230px);
  gap: 16px;
  align-items: center;
  margin: 34px 0;
}

.search {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.search:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(169, 113, 36, 0.15), var(--shadow);
}

.search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.filter {
  min-width: 76px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.filter:hover {
  border-color: var(--accent-gold);
  color: var(--text);
}

.filter.is-active {
  border-color: var(--accent-burgundy);
  background: var(--accent-burgundy);
  color: var(--text-on-accent);
}

/* Section Headings */
.section-head,
.sets {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  font-family: 'Cairo', system-ui, sans-serif;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-head p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

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

.product-card,
.set-card,
.cart-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card {
  display: grid;
  grid-template-rows: 250px 1fr;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(169, 113, 36, 0.08), transparent),
    var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

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

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

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-title-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  min-height: 47px;
}

.volume {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}

.notes {
  display: -webkit-box;
  min-height: 68px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.tag {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 4px;
}

.price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-burgundy);
  font-family: 'Montserrat', sans-serif;
}

.add-button {
  width: 100%;
  gap: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
  margin-top: 2px;
}

.details-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-burgundy);
  cursor: pointer;
  font-weight: 800;
  transition: var(--transition);
}

.details-button:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.add-button:hover {
  background: var(--accent-burgundy);
  color: var(--text-on-accent);
}

.add-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* Skeleton Loading State */
.skeleton-card {
  pointer-events: none;
}

.skeleton-art {
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.skeleton-line {
  background: var(--line);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton-title {
  height: 20px;
  width: 60%;
}

.skeleton-notes {
  height: 14px;
  width: 90%;
  margin-top: 6px;
}

.skeleton-notes-short {
  height: 14px;
  width: 50%;
  margin-top: 6px;
}

.skeleton-tag {
  height: 22px;
  width: 50px;
}

.skeleton-price {
  height: 22px;
  width: 70px;
}

.skeleton-btn {
  height: 48px;
  width: 100%;
  margin-top: 10px;
}

.skeleton-art::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Toast Container & Notification styles */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  display: grid;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 48px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--accent-gold, #a97124);
  color: var(--text, #161412);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(229, 184, 105, 0.15);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

[data-theme="dark"] .toast {
  background: #1e1914 !important;
  border-color: rgba(229, 184, 105, 0.5) !important;
  color: #ffffff !important;
}

.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-hide {
  transform: translateY(-20px);
  opacity: 0;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.toast-success {
  border-right: 4px solid #10b981 !important;
}
.toast-success .toast-icon {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981 !important;
}

.toast-error {
  border-right: 4px solid #ef4444 !important;
}
.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444 !important;
}

.toast-info {
  border-right: 4px solid var(--accent-gold) !important;
}
.toast-info .toast-icon {
  background: rgba(229, 184, 105, 0.2);
  color: var(--accent-gold) !important;
}

.toast-message {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #161412);
  flex-grow: 1;
}

[data-theme="dark"] .toast-message {
  color: #ffffff !important;
}

.form-message {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  margin-top: 8px;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366 !important;
  border: 1px solid rgba(37, 211, 102, 0.3);
  display: block;
}

.form-message:empty {
  display: none;
}

.form-message.is-error {
  background: rgba(224, 75, 99, 0.15);
  color: #ff6b81 !important;
  border-color: rgba(224, 75, 99, 0.4);
}

.toast-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  padding: 0 4px;
}

.toast-close:hover {
  color: var(--text);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--line);
  width: 100%;
  transform-origin: left;
  animation: progress 3s linear forwards;
}

.toast-success .toast-progress { background: var(--accent-teal); }
.toast-error .toast-progress { background: var(--accent-burgundy); }
.toast-info .toast-progress { background: var(--accent-gold); }

@keyframes progress {
  to {
    transform: scaleX(0);
  }
}

/* Entrance animation for scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Sets Section Layout */
.sets {
  margin-top: 54px;
  display: block;
}

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

.set-card {
  min-height: 180px;
  padding: 22px;
}

.set-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  background: var(--accent-teal);
  color: #fff;
  border-radius: 6px;
  font-weight: 800;
}

.set-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.set-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Cart Panel */
.cart-panel {
  display: grid;
  gap: 16px;
  margin-top: 38px;
  padding: 24px;
}

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

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--bg);
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 18px;
  font-weight: 800;
}

.checkout {
  width: 100%;
}

.is-hidden {
  display: none;
}

/* Drawer overlay & drawer layout */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 100;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer.is-active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-close {
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
}
.drawer-close:hover {
  color: var(--text);
  transform: scale(1.1);
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
}

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

/* Drawer cart actions */
.cart-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.qty-btn:hover {
  border-color: var(--accent-gold);
}
.remove-btn {
  background: transparent;
  border: 0;
  color: var(--accent-burgundy);
  font-size: 18px;
  cursor: pointer;
  margin-left: 8px;
}
.remove-btn:hover {
  transform: scale(1.1);
}

/* Dialog / Modal Styling */
.checkout-modal {
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 0;
  max-width: 520px;
  width: calc(100% - 32px);
  z-index: 99999 !important;
  margin: auto;
}
.checkout-modal:not([open]) {
  display: none !important;
}
body.modal-open .floating-contact,
body:has(.drawer.is-active) .floating-contact {
  display: none !important;
  pointer-events: none !important;
}
.checkout-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.modal-content {
  padding: 28px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-header h2 {
  font-size: 22px;
  margin: 0;
}
.modal-close {
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
}
.modal-close:hover {
  color: var(--text);
}

.checkout-form {
  display: grid;
  gap: 16px;
}
.checkout-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
.checkout-form input,
.checkout-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  outline: 0;
  transition: var(--transition);
}
.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--accent-gold);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 10px;
}
.whatsapp-btn {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  gap: 8px;
}
.whatsapp-btn:hover {
  background: #128c7e;
  border-color: #128c7e;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}
.wa-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Wishlist styles */
.wishlist-count {
  position: absolute;
  top: -7px;
  left: -7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  background: var(--accent-gold);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
  z-index: 5;
}
.wishlist-btn:hover {
  transform: scale(1.1);
  color: var(--accent-burgundy);
}
.wishlist-btn.is-active {
  color: var(--accent-burgundy);
}
.wishlist-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}
.wishlist-btn.is-active svg {
  fill: var(--accent-burgundy);
  stroke: var(--accent-burgundy);
}

.featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: none;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(42, 23, 18, 0.82);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0;
}

.featured-badge.is-visible {
  display: inline-flex;
}

/* Sort Select styles */
.sort-select {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  border-radius: 6px;
  outline: 0;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.sort-select:hover {
  border-color: var(--accent-gold);
}

.price-filter {
  display: grid;
  min-width: 210px;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.price-filter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price-filter input {
  accent-color: var(--accent-burgundy);
  cursor: pointer;
}

.product-detail-modal {
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 0;
  width: min(820px, calc(100% - 32px));
  z-index: 115;
}

.product-detail-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.product-detail-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
}

.detail-close {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
}

.detail-media {
  min-height: 460px;
  background: var(--bg);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px;
}

.detail-info h2 {
  margin: 0;
}

.detail-badge {
  display: none;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(198, 151, 63, 0.16);
  color: var(--accent-burgundy);
  font-size: 12px;
  font-weight: 800;
}

.detail-badge.is-visible {
  display: inline-flex;
}

.detail-meta,
.detail-notes {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-highlights {
  display: grid;
  gap: 8px;
}

.detail-highlights span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-price {
  color: var(--accent-burgundy);
  font-size: 24px;
}

.detail-size-selector {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selector-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.size-options-group {
  display: flex;
  gap: 10px;
}

.size-option-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.size-option-btn:hover {
  border-color: var(--accent-gold);
}

.size-option-btn.active {
  border-color: var(--accent-burgundy);
  background: rgba(161, 43, 62, 0.15);
  color: var(--accent-burgundy);
}

/* Testimonials styles */
.testimonials {
  margin-top: 54px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  display: grid;
  gap: 12px;
}
.stars {
  color: var(--accent-gold);
  font-size: 16px;
  letter-spacing: 0;
}
.testimonial-card p {
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}
.testimonial-card strong {
  font-size: 14px;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 42px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1280px) and (min-width: 641px) {
  .floating-whatsapp {
    width: 58px;
    padding: 0;
  }

  .floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

.floating-whatsapp,
.floating-call {
  display: inline-flex;
  min-width: 58px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(18, 140, 126, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.floating-call {
  width: 58px;
  padding: 0;
  background: var(--accent-burgundy);
  color: var(--text-on-accent);
  box-shadow: 0 14px 34px var(--accent-shadow);
}

.floating-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(18, 140, 126, 0.42);
}

.floating-call:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px var(--accent-shadow);
}

.floating-whatsapp:focus-visible,
.floating-call:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35);
  outline-offset: 4px;
}

.floating-whatsapp svg,
.floating-call svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.floating-whatsapp svg {
  fill: currentColor;
}

.floating-call svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-whatsapp span {
  line-height: 1;
  white-space: nowrap;
}

/* FAQ / Buyer confidence */
.faq {
  margin-top: 62px;
  padding: 42px 0 8px;
  border-top: 1px solid var(--line);
}

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

.faq-card {
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faq-card span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent-burgundy);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.faq-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Footer Styles */
.footer {
  margin-top: 68px;
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  max-width: 100%;
  margin-top: 8px;
}

.footer-links a {
  font-weight: 700;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-burgundy);
}

.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Responsiveness Media Queries */
@media (max-width: 920px) {
  .hero,
  .tools {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 26px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-visual {
    height: 380px;
  }

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

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

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

  .filter {
    min-width: 0;
  }

  .price-filter {
    min-width: 0;
  }

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

  .product-detail-content {
    grid-template-columns: 1fr;
  }

  .detail-media {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 18px, 1180px);
    padding-top: 8px;
  }

  .topbar {
    top: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: 8px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .nav a {
    min-height: 38px;
    padding: 8px 6px;
    text-align: center;
    font-size: 14px;
  }

  .hero {
    padding: 30px 0 22px;
  }

  .hero-copy {
    align-items: center;
    padding-top: 8px;
    text-align: center;
  }

  h1 {
    font-size: 34px;
    line-height: 1.15;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.75;
  }

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

  .primary-action,
  .secondary-action,
  .checkout,
  .add-button {
    min-height: 48px;
    padding: 12px 10px;
    font-size: 14px;
  }

  .hero-visual {
    height: 318px;
  }

  .product-grid,
  .set-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 260px 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .offer-band {
    align-items: stretch;
    flex-direction: column;
  }

  .offer-band a {
    width: 100%;
  }

  .tools {
    gap: 10px;
    margin: 26px 0;
  }

  .search {
    min-height: 50px;
  }

  .filters {
    gap: 6px;
  }

  .filter {
    min-height: 42px;
    font-size: 13px;
  }

  .sort-select {
    width: 100%;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .detail-info {
    padding: 24px;
  }

  .floating-contact {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .floating-call {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .floating-whatsapp {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
  }

  .floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .footer {
    margin-top: 54px;
  }

  .footer-links {
    gap: 10px 16px;
  }
}

/* ── Promo Code Field ────────────────────────────────────────────────────────── */
.promo-field {
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.promo-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.promo-input-row input {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
}

.promo-input-row input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(169, 113, 36, 0.14);
}

.promo-result {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  min-height: 18px;
  transition: var(--transition);
}

.promo-success {
  color: #25d366;
}

.promo-error {
  color: var(--accent-burgundy);
}

/* ===== Theme Toggle Animation & Micro-Interactions ===== */
.theme-toggle {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(229, 184, 105, 0.25);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.92) rotate(-15deg);
}

.theme-toggle .theme-icon {
  display: inline-block;
  font-size: 20px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(20deg) scale(1.2);
  filter: drop-shadow(0 0 6px rgba(214, 169, 95, 0.6));
}

/* ===== Free Shipping Progress Bar ===== */
.free-shipping-container {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: var(--transition);
}

.free-shipping-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.free-shipping-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.free-shipping-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--glass-border);
  color: var(--accent-gold);
  white-space: nowrap;
}

.free-shipping-bar {
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.free-shipping-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), #f1c57a);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(214, 169, 95, 0.4);
}

.free-shipping-container.unlocked {
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.06);
}

.free-shipping-container.unlocked .free-shipping-text {
  color: #25d366;
}

.free-shipping-container.unlocked .free-shipping-progress {
  background: linear-gradient(90deg, #25d366, #128c7e);
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

/* ===== Fragrance Pyramid (هرم النوتات العطرية) ===== */
.notes-pyramid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.pyramid-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}

.pyramid-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--glass-border);
  font-size: 14px;
  flex-shrink: 0;
}

.pyramid-content {
  flex: 1;
}

.pyramid-title {
  font-weight: 800;
  color: var(--accent-gold);
  font-size: 11px;
  margin-bottom: 2px;

}

.pyramid-notes {
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

/* ===== Validation Highlight ===== */
.input-error {
  border-color: #e04b63 !important;
  background-color: rgba(224, 75, 99, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(224, 75, 99, 0.2) !important;
}

.input-success {
  border-color: #25d366 !important;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2) !important;
}

/* ===== ADMIN MENUBAR ===== */
.admin-menubar {
  background: linear-gradient(90deg, #0e0a07 0%, #1a130d 50%, #0e0a07 100%);
  border-bottom: 1px solid rgba(229, 184, 105, 0.4);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 10000;
  font-size: 13px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-menubar-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-menubar-left,
.admin-menubar-right,
.admin-menubar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-badge-gold {
  background: var(--accent-gold, #a97124);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-session-user {
  color: var(--muted, #aaa);
  font-size: 12px;
  font-weight: 600;
}

.admin-menu-link {
  color: #f3f3f3;
  text-decoration: none;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.admin-menu-link:hover {
  background: rgba(229, 184, 105, 0.2);
  color: var(--accent-gold, #e5b869);
  border-color: rgba(229, 184, 105, 0.5);
  transform: translateY(-1px);
}

.admin-logout-btn {
  background: rgba(224, 75, 99, 0.15);
  color: #f87171;
  border: 1px solid rgba(224, 75, 99, 0.3);
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.admin-logout-btn:hover {
  background: #dc2626;
  color: #fff;
}


