:root {
  --bg: #f9eff9;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --surface-muted: rgba(255, 255, 255, 0.86);
  --text: #32134b;
  --muted: #6f4a7d;
  --primary: #7b1594;
  --secondary: #a13bc7;
  --accent: #ddb1f6;
  --accent-soft: #f8e7ff;
  --border: rgba(123, 22, 148, 0.18);
  --shadow: 0 24px 60px rgba(86, 33, 127, 0.12);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --header-bg: rgba(255, 255, 255, 0.9);
  --nav-link-bg: rgba(255, 255, 255, 0.9);
  --input-bg: rgba(255, 255, 255, 0.95);
  --logo-bg: rgba(255, 255, 255, 0.96);
  --hero-bg: linear-gradient(135deg, rgba(251, 236, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
  --hero-art-bg: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.98), rgba(255, 248, 255, 0.9) 35%, rgba(244, 230, 255, 0.9) 100%);
  --hero-art-border: rgba(255, 255, 255, 0.85);
  --hero-glow-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.78), rgba(247, 238, 248, 0.58));
  --floating-card-bg: rgba(255, 255, 255, 0.9);
  --floating-card-border: rgba(255, 255, 255, 0.85);
  --portrait-card-bg: rgba(255, 255, 255, 0.92);
  --card-bg: rgba(255, 255, 255, 0.86);
  --editorial-bg: linear-gradient(135deg, rgba(255, 250, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  --editorial-visual-bg: radial-gradient(circle at top left, rgba(244, 230, 255, 0.95), rgba(255, 250, 255, 0.96) 65%, rgba(255, 244, 255, 0.9));
  --editorial-badge-bg: rgba(255, 255, 255, 0.92);
  --editorial-stack-bg: rgba(255, 255, 255, 0.83);
  --product-media-bg: linear-gradient(180deg, #fcf4ff 0%, #ffffff 100%);
  --placeholder-bg: linear-gradient(160deg, rgba(244, 230, 255, 1), rgba(255, 247, 255, 1));
  --support-bg: rgba(244, 230, 255, 0.55);
  --highlight-bg: rgba(255, 255, 255, 0.78);
  --footer-bg: rgba(255, 255, 255, 0.86);
  --qty-bg: #ffffff;
  --skeleton-bg: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(244, 230, 255, 0.86), rgba(255, 255, 255, 0.8));
  --image-preview-bg: rgba(255, 255, 255, 0.62);
  --body-bg: linear-gradient(135deg, #fbf0ff 0%, var(--bg) 45%, #f6e7ff 100%);
  --dot-color: rgba(123, 22, 148, 0.14);
  --dot-opacity: 0.35;
  --focus-ring: rgba(157, 78, 221, 0.28);
  --newsletter-btn-bg: #ffffff;
  --newsletter-btn-text: var(--primary);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--body-bg);
  font-family: "Poppins", "Segoe UI", sans-serif;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
  -webkit-tap-highlight-color: rgba(123, 22, 148, 0.12);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: var(--dot-opacity);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
a:hover { color: var(--primary); }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.page-shell {
  width: min(1400px, calc(100vw - 48px));
  margin: 0 auto;
  padding: calc(20px + var(--safe-top)) 0 32px;
  position: relative;
  z-index: 1;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 28px;
  position: sticky;
  top: calc(16px + var(--safe-top));
  z-index: 50;
  border: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-logo {
  width: auto;
  height: 48px;
  min-height: 40px;
  max-height: 50px;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 10px 25px rgba(123, 22, 148, 0.18);
  background: var(--logo-bg);
  padding: 6px;
}
.brand-logo-footer {
  width: auto;
  height: 44px;
}
.brand strong { display: block; font-size: 1.02rem; letter-spacing: 0.02em; }
.brand small { color: var(--muted); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--nav-link-bg);
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.site-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-nav a, .ghost-button, .secondary-button, .primary-button {
  border-radius: 999px; border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}
.site-nav a {
  padding: 10px 14px;
  background: var(--nav-link-bg);
  border-color: var(--border);
  font-weight: 600;
  color: var(--text);
}
.site-nav a:hover, .ghost-button:hover, .secondary-button:hover, .primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(123, 22, 143, 0.14);
}
.cart-pill {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; margin-left: 6px;
  border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.page-content { display: grid; gap: 24px; animation: fadeIn 400ms ease both; }
.hero-card, .panel-card, .summary-panel, .checkout-form, .auth-card, .section-panel, .newsletter-card {
  border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(12px); border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.hero-card {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 28px; padding: 42px; overflow: hidden;
  background: var(--hero-bg);
  min-height: 540px;
}
.hero-copy h1, .section-head h1, .detail-copy h1, .auth-card h1 {
  margin: 0; font-family: "Playfair Display", Georgia, serif; letter-spacing: -0.02em; line-height: 1.05;
}
.hero-copy h1 { font-size: clamp(2.2rem, 8vw, 4.2rem); max-width: 11ch; }
.hero-text, .muted, .detail-description, .auth-note { color: var(--muted); }
.hero-text { font-size: clamp(0.98rem, 2.5vw, 1.04rem); line-height: 1.8; max-width: 62ch; margin-top: 16px; }
.eyebrow {
  margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.74rem; color: var(--secondary); font-weight: 700;
}
.hero-actions, .detail-actions, .form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.primary-button, .secondary-button, .ghost-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--border);
  font-weight: 600;
}
.primary-button {
  color: #fff; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); box-shadow: 0 16px 32px rgba(123, 22, 148, 0.18);
}
.secondary-button, .ghost-button { background: var(--nav-link-bg); color: var(--text); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.hero-meta span {
  padding: 8px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--primary); font-size: 0.92rem; border: 1px solid rgba(123, 22, 148, 0.1);
}
.hero-art {
  position: relative; min-height: 360px; border-radius: 30px;
  background: var(--hero-art-bg);
  overflow: hidden; border: 1px solid var(--hero-art-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.hero-art::before, .hero-art::after { content: ""; position: absolute; border-radius: 50%; }
.hero-art::before { width: 240px; height: 240px; right: 10px; top: 4px; background: radial-gradient(circle, rgba(123, 22, 143, 0.18) 0%, rgba(123, 22, 143, 0.025) 72%); }
.hero-art::after { width: 300px; height: 300px; left: -50px; bottom: -50px; background: radial-gradient(circle, rgba(199, 125, 255, 0.28) 0%, rgba(199, 125, 255, 0.04) 72%); }
.hero-visual-glow {
  position: absolute; inset: 18px; border-radius: 28px; border: 1px solid rgba(123, 22, 143, 0.12); background: var(--hero-glow-bg);
  backdrop-filter: blur(10px);
}
.floating-card {
  position: absolute; z-index: 2; padding: 14px 16px; border-radius: 20px; font-weight: 700; color: var(--primary);
  background: var(--floating-card-bg); border: 1px solid var(--floating-card-border); box-shadow: 0 14px 28px rgba(70, 28, 91, 0.12); animation: float 5s ease-in-out infinite;
}
.card-one { left: 24px; top: 34px; }
.card-two { right: 24px; top: 160px; animation-delay: 0.6s; }
.card-three { left: 92px; bottom: 34px; animation-delay: 1.2s; }
.hero-portrait-card {
  position: absolute; right: 30px; bottom: 28px; z-index: 2; padding: 16px 18px; border-radius: 22px; background: var(--portrait-card-bg); border: 1px solid var(--floating-card-border); box-shadow: 0 14px 32px rgba(70, 28, 91, 0.12);
}
.hero-portrait-card span { display: block; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; }
.hero-portrait-card strong { display: block; margin-top: 6px; font-size: 1rem; }
.highlights-grid, .feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.highlight-card, .feature-card {
  padding: 22px 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--card-bg); box-shadow: 0 12px 30px rgba(70, 28, 91, 0.05);
}
.highlight-card h3, .feature-card h3 {
  margin: 0 0 10px; font-size: 1.08rem; font-family: "Playfair Display", Georgia, serif;
}
.highlight-card p, .feature-card p, .testimonial-card p {
  margin: 0; color: var(--muted); line-height: 1.7;
}
.editorial-panel {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; padding: 30px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--editorial-bg); box-shadow: var(--shadow);
}
.editorial-copy h2 {
  margin: 0 0 12px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.8rem, 3.2vw, 2.35rem);
}
.editorial-copy p {
  margin: 0; color: var(--muted); line-height: 1.8; max-width: 60ch;
}
.editorial-visual {
  position: relative; min-height: 240px; border-radius: 28px; overflow: hidden; padding: 24px; border: 1px solid rgba(123, 22, 143, 0.16); background: var(--editorial-visual-bg);
}
.editorial-badge {
  display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--editorial-badge-bg); color: var(--primary); font-weight: 700; border: 1px solid rgba(123, 22, 143, 0.1);
}
.editorial-stack {
  position: absolute; inset: auto 24px 24px 24px; display: grid; gap: 10px;
}
.editorial-stack span {
  display: inline-flex; width: fit-content; padding: 10px 14px; border-radius: 999px; background: var(--editorial-stack-bg); border: 1px solid var(--floating-card-border); color: var(--text); font-weight: 600;
}
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 8px 4px;
}
.section-head h2, .summary-panel h2, .checkout-form h2, .panel-card h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; color: var(--text); }
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { color: var(--muted); font-size: 0.95rem; }
.filter-bar select {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.95rem; color: var(--text); background: var(--input-bg);
}
.section-panel { padding: 24px; }
.testimonials-panel { padding-top: 10px; }
.testimonial-card { display: grid; gap: 12px; }
.testimonial-card strong { color: var(--primary); }
.newsletter-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px;
  background: linear-gradient(135deg, rgba(123, 22, 148, 0.95), rgba(161, 59, 199, 0.88));
  color: #fff;
}
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  min-width: min(280px, 100%); border: 0; border-radius: 999px; padding: 12px 16px; color: var(--text); background: var(--input-bg);
}
.newsletter-card .primary-button { background: var(--newsletter-btn-bg); color: var(--newsletter-btn-text); box-shadow: none; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card {
  overflow: hidden; display: flex; flex-direction: column; height: 100%; background: var(--surface-strong); border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(70, 28, 91, 0.06); transition: transform 220ms ease, box-shadow 220ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(70, 28, 91, 0.12); }
.product-media { aspect-ratio: 1 / 1; background: var(--product-media-bg); }
.product-media img, .detail-image img, .image-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; flex: 1; }
.product-body h3, .detail-copy h1 { margin: 0; }
.product-body h3 { font-size: 1.05rem; }
.product-body p {
  margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6;
}
.product-meta, .price-row, .summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-meta span, .summary-row span { color: var(--muted); }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.detail-shell, .cart-layout, .checkout-layout, .admin-layout { display: grid; gap: 22px; }
.detail-shell {
  grid-template-columns: 1fr 1fr; align-items: center; padding: 24px; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(12px); border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.detail-image-wrap { padding: 10px; }
.detail-image { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 24px; }
.placeholder-surface { background: var(--placeholder-bg); }
.detail-copy { padding-right: 10px; }
.detail-copy h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.detail-description { font-size: 1.02rem; line-height: 1.7; }
.cart-layout { grid-template-columns: 1.5fr 0.8fr; align-items: start; }
.cart-panel, .checkout-form, .summary-panel, .panel-card, .auth-card { padding: 22px; }
.cart-items { display: grid; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 20px; background: var(--surface-soft); border: 1px solid var(--border);
}
.cart-item img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; }
.qty-control {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--qty-bg);
}
.qty-control button {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--primary);
}
.cart-empty-state { display: none; place-items: center; gap: 10px; min-height: 220px; text-align: center; }
.summary-panel { display: grid; gap: 14px; }
.total-row strong, .price-row strong { font-size: 1.2rem; }
.full-width { width: 100%; }
.support-box {
  padding: 14px 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--support-bg);
}
.support-box strong { display: block; margin-bottom: 6px; }
.support-box p { margin: 0; color: var(--muted); line-height: 1.65; }
.detail-highlights {
  display: grid; gap: 12px; margin-top: 20px;
}
.detail-highlights > div {
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--highlight-bg);
}
.detail-highlights strong { display: block; margin-bottom: 4px; }
.detail-highlights p { margin: 0; color: var(--muted); line-height: 1.6; }
.checkout-layout { grid-template-columns: 1fr 0.9fr; }
.checkout-form, .auth-card, .admin-form { display: grid; gap: 16px; }
.checkout-form label, .auth-card label, .admin-form label { display: grid; gap: 8px; }
.checkout-form input, .checkout-form textarea, .auth-card input, .admin-form input, .admin-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; background: var(--input-bg); color: var(--text);
}
.admin-form select {
  width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; background: var(--input-bg); color: var(--text); font-size: 1rem;
}
.auth-shell { min-height: calc(100vh - 210px); display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); }
.checkout-badge, .admin-user-chip {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; background: rgba(123, 22, 143, 0.1); color: var(--primary); font-weight: 700;
}
.admin-layout { grid-template-columns: 0.95fr 1.2fr; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-span { grid-column: 1 / -1; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted); font-weight: 700; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.image-preview { min-height: 220px; border-radius: 22px; border: 1px dashed var(--border); background: var(--image-preview-bg); overflow: hidden; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.grid-skeleton {
  aspect-ratio: 0.9; border-radius: var(--radius-lg);
  background: var(--skeleton-bg); background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.site-footer {
  width: min(1400px, calc(100vw - 48px));
  margin: 0 auto calc(28px + var(--safe-bottom));
  padding: 24px 28px;
  display: flex; align-items: start; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  border-radius: 24px; border: 1px solid var(--border); background: var(--footer-bg); box-shadow: 0 12px 28px rgba(70, 28, 91, 0.06);
}
.footer-brand { display: flex; align-items: center; gap: 14px; max-width: 360px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links h3 { margin: 0 0 8px; font-size: 0.95rem; color: var(--text); }
.footer-links a { display: block; margin: 6px 0; color: var(--muted); font-weight: 500; }
.site-footer strong { display: block; margin-bottom: 6px; }
.site-footer p { margin: 0; color: var(--muted); }
.toast-stack {
  position: fixed;
  right: calc(18px + var(--safe-right));
  bottom: calc(18px + var(--safe-bottom));
  display: grid;
  gap: 12px;
  z-index: 100;
  max-width: calc(100vw - 36px);
}
.toast {
  min-width: 240px; padding: 14px 16px; color: #fff; border-radius: 16px; background: rgba(36, 22, 27, 0.94); box-shadow: var(--shadow); animation: toastIn 220ms ease both;
}
.toast.success { background: linear-gradient(135deg, #0f8d63, #126a4c); }
.toast.error { background: linear-gradient(135deg, #a83a4d, #742937); }
.toast.info { background: linear-gradient(135deg, #7b168f, #9d4edd); }
.empty-state, .cart-empty-state { color: var(--muted); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
@keyframes shimmer { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1400px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hero-card, .editorial-panel { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { min-height: 300px; }
  .highlights-grid, .feature-cards { grid-template-columns: 1fr; }
  .detail-shell, .cart-layout, .checkout-layout, .admin-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-copy { padding-right: 0; }
}
@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 24px, 100%);
    padding-top: calc(10px + var(--safe-top));
  }
  .site-footer {
    width: min(100vw - 24px, 100%);
    padding: 20px;
    flex-direction: column;
  }
  .site-header {
    border-radius: 28px;
    padding: 12px 16px;
    flex-wrap: wrap;
    top: calc(8px + var(--safe-top));
  }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
    padding-top: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
  }
  body.nav-open { overflow: hidden; }
  .section-head, .panel-title-row { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cart-item { grid-template-columns: 1fr; text-align: center; }
  .cart-item img { margin: 0 auto; }
  .qty-control { margin: 10px auto 0; }
  .newsletter-card { flex-direction: column; align-items: start; }
  .hero-card { padding: 28px; min-height: auto; }
  .hero-art { min-height: 260px; }
  .floating-card { font-size: 0.85rem; padding: 10px 12px; }
  .card-one { left: 12px; top: 20px; }
  .card-two { right: 12px; top: 120px; }
  .card-three { left: 24px; bottom: 20px; }
  .hero-portrait-card { right: 16px; bottom: 16px; }
  .primary-button, .secondary-button, .ghost-button { min-height: 48px; width: 100%; }
  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .product-actions .primary-button,
  .product-actions .secondary-button { width: auto; flex: 1; min-width: 0; }
  .site-header,
  .hero-card,
  .panel-card,
  .summary-panel,
  .checkout-form,
  .auth-card,
  .section-panel,
  .detail-shell {
    backdrop-filter: none;
  }
  .hero-visual-glow { backdrop-filter: none; }
  .product-card:hover { transform: none; }
}
@media (max-width: 560px) {
  .hero-card { padding: 22px; }
  .hero-copy h1 { max-width: none; }
  .product-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-actions, .product-actions { flex-direction: column; }
  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .product-actions .primary-button,
  .product-actions .secondary-button { width: 100%; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { width: 100%; }
  .footer-links { flex-direction: column; gap: 18px; }
  .toast-stack { left: calc(12px + var(--safe-left)); right: calc(12px + var(--safe-right)); }
  .toast { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .floating-card { animation: none; }
  .product-card:hover { transform: none; }
}
@media (prefers-color-scheme: dark) {
  html { color-scheme: dark; }

  :root {
    --bg: #1a1025;
    --surface: rgba(18, 9, 36, 0.96);
    --surface-strong: #13061f;
    --surface-soft: rgba(255, 255, 255, 0.06);
    --surface-muted: rgba(255, 255, 255, 0.05);
    --text: #f7edff;
    --muted: #d7c0f5;
    --primary: #b98cff;
    --secondary: #d9a1ff;
    --accent: #573b75;
    --accent-soft: rgba(248, 231, 255, 0.16);
    --border: rgba(185, 140, 255, 0.22);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    --header-bg: rgba(18, 9, 36, 0.92);
    --nav-link-bg: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.08);
    --logo-bg: rgba(255, 255, 255, 0.1);
    --hero-bg: linear-gradient(135deg, rgba(35, 16, 58, 0.98) 0%, rgba(18, 9, 36, 0.96) 100%);
    --hero-art-bg: radial-gradient(circle at 20% 20%, rgba(45, 22, 72, 0.98), rgba(30, 14, 50, 0.92) 35%, rgba(24, 10, 42, 0.9) 100%);
    --hero-art-border: rgba(185, 140, 255, 0.15);
    --hero-glow-bg: linear-gradient(140deg, rgba(45, 22, 72, 0.78), rgba(30, 14, 50, 0.58));
    --floating-card-bg: rgba(35, 16, 58, 0.92);
    --floating-card-border: rgba(185, 140, 255, 0.12);
    --portrait-card-bg: rgba(35, 16, 58, 0.92);
    --card-bg: rgba(255, 255, 255, 0.05);
    --editorial-bg: linear-gradient(135deg, rgba(35, 16, 58, 0.95) 0%, rgba(18, 9, 36, 0.9) 100%);
    --editorial-visual-bg: radial-gradient(circle at top left, rgba(45, 22, 72, 0.95), rgba(30, 14, 50, 0.96) 65%, rgba(24, 10, 42, 0.9));
    --editorial-badge-bg: rgba(255, 255, 255, 0.08);
    --editorial-stack-bg: rgba(255, 255, 255, 0.07);
    --product-media-bg: linear-gradient(180deg, rgba(35, 16, 58, 0.9) 0%, rgba(18, 9, 36, 0.95) 100%);
    --placeholder-bg: linear-gradient(160deg, rgba(35, 16, 58, 1), rgba(24, 10, 42, 1));
    --support-bg: rgba(185, 140, 255, 0.1);
    --highlight-bg: rgba(255, 255, 255, 0.06);
    --footer-bg: rgba(18, 9, 36, 0.92);
    --qty-bg: rgba(255, 255, 255, 0.08);
    --skeleton-bg: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(185, 140, 255, 0.08), rgba(255, 255, 255, 0.04));
    --image-preview-bg: rgba(255, 255, 255, 0.06);
    --body-bg: linear-gradient(135deg, #15081f 0%, #1f0e33 45%, #2b1548 100%);
    --dot-color: rgba(185, 140, 255, 0.12);
    --dot-opacity: 0.18;
    --focus-ring: rgba(185, 140, 255, 0.4);
    --newsletter-btn-bg: rgba(255, 255, 255, 0.95);
    --newsletter-btn-text: #32134b;
  }

  .site-header, .hero-card, .panel-card, .summary-panel, .checkout-form, .auth-card, .section-panel, .newsletter-card, .detail-shell, .site-footer {
    border-color: rgba(255, 255, 255, 0.06);
  }

  .newsletter-card {
    background: linear-gradient(135deg, rgba(120, 27, 178, 0.95), rgba(146, 59, 201, 0.88));
  }

  .newsletter-form input {
    color: #32134b;
    background: rgba(255, 255, 255, 0.95);
  }

  .hero-art {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .checkout-badge, .admin-user-chip {
    background: rgba(185, 140, 255, 0.14);
  }
}
