:root {
  color-scheme: dark;
  --bg: #060819;
  --bg-2: #111329;
  --panel: rgba(15, 21, 43, 0.94);
  --panel-strong: #11182f;
  --panel-2: #282046;
  --input-bg: #090f23;
  --media-bg: #0b1021;
  --text: #f2f5ff;
  --muted: #b8c3df;
  --accent: #ff70d7;
  --accent-2: #4cecf6;
  --accent-dark: var(--accent);
  --on-accent: #090c20;
  --cyan: #4cecf6;
  --blue: #a18aff;
  --lime: #c8ff72;
  --gold: #f7c86d;
  --pink: #3d1b40;
  --purple: #c0afff;
  --success: #75f4b7;
  --danger: #ff9cab;
  --line: rgba(125, 153, 240, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(140, 71, 255, 0.12);
  --shadow-soft: 0 16px 34px rgba(0, 0, 0, 0.3), 0 0 22px rgba(76, 236, 246, 0.06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: radial-gradient(ellipse at 0% 0%, rgba(221, 28, 255, .26), transparent 45%), radial-gradient(ellipse at 100% 25%, rgba(0, 224, 255, .2), transparent 43%), radial-gradient(ellipse at 45% 100%, rgba(110, 52, 255, .3), transparent 48%), linear-gradient(145deg, var(--bg), var(--bg-2) 55%, #06101d);
  background-attachment: fixed;
  color: var(--text);
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }
button { font: inherit; cursor: pointer; }
button[disabled] { cursor: not-allowed; }
button { color: inherit; }
input, textarea, select { color: var(--text); background: var(--input-bg); }
input::placeholder, textarea::placeholder { color: #96a4c5; opacity: 1; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { background: var(--cyan); color: var(--on-accent); }
.auth-dialog, .product-dialog, .store-help-dialog { background: var(--panel-strong); border: 1px solid var(--line); color: var(--text); }

.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; letter-spacing: -0.05em; }
.section-subtitle { color: var(--muted); margin: 0 0 28px; font-size: 1.05rem; }

.site-header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); background: rgba(6, 8, 25, .9); border-bottom: 1px solid var(--line);
}
.navbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 80px; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--accent) 0%, var(--blue) 52%, var(--cyan) 100%); color: var(--on-accent); display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; box-shadow: 0 18px 28px rgba(77, 124, 255, 0.32);
}

.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-weight: 600; }
.nav-toggle { display: none; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--panel); font-weight: 700; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -8px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gender-switcher, .lang-switcher { display: inline-flex; align-items: center; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(35, 24, 19, 0.05); }
.gender-btn, .lang-btn { border: 0; background: transparent; color: var(--muted); font-weight: 800; border-radius: 999px; padding: 8px 12px; min-width: 48px; transition: all 0.2s ease; }
.gender-btn.active, .lang-btn.active { background: linear-gradient(135deg, var(--accent) 0%, var(--blue) 100%); color: var(--on-accent); box-shadow: 0 10px 18px rgba(77, 124, 255, 0.22); }

.icon-btn, .primary-btn, .secondary-btn, .filter-btn, .add-to-cart, .cart-pill { border: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.icon-btn { width: 42px; height: 42px; background: var(--panel); border: 1px solid var(--line); border-radius: 50%; font-size: 1.2rem; }
.primary-btn, .secondary-btn, .add-to-cart { padding: 14px 22px; border-radius: 999px; font-weight: 700; }
.primary-btn, .add-to-cart { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--on-accent); box-shadow: 0 18px 30px rgba(255, 112, 215, .22); }
.secondary-btn { background: var(--panel); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-soft); }
.icon-btn:hover, .primary-btn:hover, .secondary-btn:hover, .filter-btn:hover, .add-to-cart:hover, .gender-btn:hover, .lang-btn:hover { transform: translateY(-1px); }
.cart-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-weight: 700; color: var(--text); box-shadow: var(--shadow-soft);
}
.cart-count { min-width: 24px; min-height: 24px; padding: 4px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: inline-grid; place-items: center; font-size: 0.75rem; }

.hero { padding: 42px 0 30px; }
.hero-wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 34px; background: radial-gradient(ellipse at 0% 0%, rgba(221, 28, 255, .17), transparent 65%), linear-gradient(135deg, #17132f, #101c36 65%, #0b2934); border: 1px solid var(--line); border-radius: 36px; padding: clamp(24px, 4vw, 54px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-wrap::before { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; background: radial-gradient(circle, rgba(76, 236, 246, .3), transparent 65%); pointer-events: none; }
.hero-copy h1 { font-size: clamp(2.9rem, 6vw, 5rem); line-height: 0.95; letter-spacing: -0.08em; margin: 0 0 18px; }
.hero-copy h1 { text-shadow: 0 0 34px rgba(161, 138, 255, .22); }
.hero-copy p { color: var(--muted); font-size: 1.08rem; max-width: 52ch; line-height: 1.7; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; }
.stat-item { min-width: 120px; }
.stat-item strong { display: block; font-size: 1.7rem; letter-spacing: -0.05em; }
.stat-item span { color: var(--muted); font-size: 0.9rem; }

.hero-visual { position: relative; min-height: 580px; }
.hero-image-card { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.hero-image-card img { height: 100%; object-fit: cover; }
.badge-floating { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--panel); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: 0 12px 22px rgba(0,0,0,0.1); font-weight: 800; color: var(--text); }
.badge-top { left: -12px; top: 24px; }
.badge-bottom { right: -10px; bottom: 38px; }
.badge-floating .price { background: var(--panel-2); padding: 6px 10px; border-radius: 999px; font-size: 0.82rem; }

.section { padding: 54px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.catalog-mode-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 112, 215, .12); color: var(--accent-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.catalog-mode-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 112, 215, .12); }

.categories-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.category-card {
  position: relative; min-height: 280px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); transform: translateY(0); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow), 0 0 24px rgba(255, 112, 215, .16); }
.category-card img { height: 100%; object-fit: cover; filter: saturate(0.92); transition: transform 0.4s ease, filter 0.4s ease; }
.category-card:hover img { transform: scale(1.08); }
.category-card { display: block; }
.category-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.catalog-search { margin-bottom: 20px; }
.store-help-dialog p { line-height: 1.6; }
.catalog-search > div { display: flex; gap: 12px; margin-top: 10px; }
.catalog-search input { min-width: 0; flex: 1; padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; font: inherit; }
.catalog-selection { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); }
.catalog-more { display: block; margin: 28px auto 0; }
.product-favorite { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--input-bg); color: var(--accent-dark); font-size: 1.4rem; z-index: 2; }
.product-favorite[aria-pressed="true"], [data-favorites-toggle][aria-pressed="true"] { background: var(--pink); }
.image-caption { position: absolute; bottom: 12px; left: 12px; font-size: .7rem; color: var(--muted); background: var(--panel); border-radius: 6px; padding: 4px 7px; }
.product-stock { color: var(--success); font-size: .9rem; font-weight: 600; margin: 0 0 12px; }
.product-stock.is-unavailable { color: var(--muted); }
.add-to-cart:disabled { opacity: .6; box-shadow: none; }
.product-media .discount-badge, .fragrance-image-wrap .discount-badge { top: 64px; }
.product-media .quick-view { bottom: 44px; }
.cart-backdrop { position: fixed; inset: 0; background: rgba(3, 5, 17, .72); z-index: 29; }
#shop, main[id], section[id], .catalog-anchor { scroll-margin-top: var(--header-offset, 150px); }
.catalog-anchor { display: block; height: 0; }
.category-card .label { position: absolute; left: 18px; bottom: 18px; right: 18px; background: var(--panel); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; }
.fragrance-category { border: 1px solid rgba(137, 114, 255, 0.25); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.filter-btn { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; color: var(--muted); font-weight: 800; box-shadow: 0 8px 16px rgba(35, 24, 19, 0.04); }
.filter-btn.active { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: var(--on-accent); border-color: transparent; box-shadow: 0 0 20px rgba(76, 236, 246, .2); }

.products-grid, .fragrance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card, .fragrance-card { background: linear-gradient(180deg, #141b33, #10162c); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.product-card:hover, .fragrance-card:hover { transform: translateY(-7px) scale(1.01); border-color: var(--cyan); box-shadow: var(--shadow), 0 0 24px rgba(76, 236, 246, .18); }
.product-media, .fragrance-image-wrap { position: relative; height: 320px; overflow: hidden; background: var(--media-bg); }
.product-media img, .fragrance-image-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.45s ease; }
.product-card:hover .product-media img, .fragrance-card:hover .fragrance-image-wrap img { transform: scale(1.08); }
img { transition: transform 0.4s ease, filter 0.4s ease; }
img:hover { transform: scale(1.06); filter: saturate(1.16) contrast(1.04); }
.product-tag { position: absolute; left: 14px; top: 14px; background: var(--panel); border: 1px solid var(--cyan); border-radius: 999px; padding: 7px 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.discount-badge { position: absolute; top: 14px; right: 14px; padding: 7px 10px; border-radius: 999px; background: #b42318; color: #fff; font-size: .78rem; font-weight: 800; }
.quick-view { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 14px); border: none; border-radius: 999px; background: rgba(31, 26, 26, 0.72); color: white; padding: 10px 16px; font-weight: 700; opacity: 0; transition: all 0.28s ease; }
.product-card:hover .quick-view, .product-card:focus-within .quick-view, .quick-view:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .quick-view { opacity: 1; transform: translate(-50%, 0); min-height: 44px; } }
.product-body, .fragrance-body { padding: 18px 18px 20px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.product-brand { display: inline-block; font-size: 0.8rem; color: var(--accent-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.product-name { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; }
.product-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 16px; }
.product-comments-link { display: inline-block; border: 0; padding: 0; margin: 0 0 16px; color: var(--accent-dark); background: transparent; font: inherit; font-size: .88rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-price { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; }
.product-price span { color: var(--muted); font-size: 0.8rem; text-decoration: line-through; margin-left: 6px; font-weight: 600; }
.product-price.is-discounted { color: var(--danger); }
.cart-original-price { color: var(--muted); font-size: .8rem; }
.add-to-cart { padding: 11px 16px; font-size: 0.9rem; box-shadow: 0 16px 24px rgba(255, 112, 215, .18); }
.add-to-cart:hover { background: linear-gradient(135deg, var(--accent), var(--blue)); }
.product-buy-controls { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; }
.size-control { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; margin: 5px 0; font-size: .8rem; font-weight: 600; }
.size-control select { width: 100%; min-width: 0; max-width: 100%; padding: 8px 10px; color: var(--text); background: var(--input-bg); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.size-control select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.product-footer { flex-wrap: wrap; }
.product-buy-controls .add-to-cart { white-space: normal; }
.cart-item-info { min-width: 0; }
.checkout-line > div { min-width: 0; }

.offer-banner {
  margin-top: 18px; background: linear-gradient(135deg, #201239, #182543 60%, #0b303c); color: var(--text); border: 1px solid var(--line); border-radius: 30px; padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.offer-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 112, 215, .12), transparent 45%, rgba(76, 236, 246, .12)); pointer-events: none; }
.offer-banner h3 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.06em; margin: 0 0 12px; }
.offer-banner p { margin: 0; color: rgba(255,255,255,0.72); max-width: 54ch; line-height: 1.7; }
.offer-banner .promo-box { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; padding: 18px 20px; text-align: center; }
.offer-banner .promo-box strong { display: block; font-size: 3rem; letter-spacing: -0.06em; }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.story-text { padding-right: 10px; }
.story-text p { color: var(--muted); line-height: 1.8; font-size: 1.05rem; margin: 0 0 18px; }
.story-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.feature-box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-soft); }
.feature-box strong { display: block; margin-bottom: 6px; font-size: 1.2rem; }
.feature-box span { color: var(--muted); }

.story-visual { position: relative; min-height: 520px; }
.story-image { border-radius: 30px; overflow: hidden; height: 100%; box-shadow: var(--shadow); }
.story-image img { height: 100%; object-fit: cover; }
.float-card { position: absolute; right: -18px; bottom: 24px; width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; backdrop-filter: blur(10px); box-shadow: 0 18px 36px rgba(0,0,0,0.08); }
.float-card strong { display: block; font-size: 2rem; letter-spacing: -0.05em; margin-bottom: 6px; }
.float-card span { color: var(--muted); }

.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.review-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-soft); }
.review-stars { color: #d5a96d; letter-spacing: 0.18em; margin-bottom: 14px; }
.review-card p { color: var(--muted); line-height: 1.8; margin: 0 0 18px; }
.author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.author strong { display: block; }
.author span { color: var(--muted); font-size: 0.85rem; }

.newsletter { background: linear-gradient(135deg, #2a163c, #142643 55%, #103439); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 22px; box-shadow: var(--shadow-soft); }
.newsletter h3 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.06em; margin: 0 0 8px; }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter-form { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 18px; box-shadow: var(--shadow-soft); }
.newsletter-form input { border: 0; outline: 0; background: transparent; min-width: min(280px, 36vw); padding: 10px 0; font: inherit; }
.newsletter-form.submitted { outline: 2px solid rgba(84, 169, 106, 0.35); }
.newsletter-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: 18px; }
.newsletter-form input { min-width: 0; width: 100%; }
.form-status, .catalog-status { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.newsletter-form .form-status { grid-column: 1 / -1; padding: 0 4px 4px; }
.form-status[data-state="error"], .catalog-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="success"], .catalog-status[data-state="success"] { color: var(--success); }
.catalog-status { margin: -8px 0 18px; }
.checkout-email-label { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.checkout-email { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--input-bg); color: var(--text); font: inherit; }
.checkout-email:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cart-footer .form-status { min-height: 1.4em; }
.cart-checkout:disabled { opacity: 0.55; box-shadow: none; cursor: not-allowed; }

.cart-drawer {
  position: fixed; top: 0; right: 0; width: min(420px, 100vw); height: 100vh; padding: 24px 20px 20px; background: var(--panel-strong); backdrop-filter: blur(16px); box-shadow: -18px 0 40px rgba(15, 10, 8, 0.12); border-left: 1px solid var(--line); transform: translateX(102%); transition: transform 0.25s ease; z-index: 30; display: flex; flex-direction: column; gap: 16px;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; }
.cart-header h3 { margin: 0; font-size: 1.7rem; letter-spacing: -0.05em; }
.cart-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); }
.cart-list { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; flex: 1; padding-right: 6px; }
.empty-cart { color: var(--muted); margin: 0; }
.cart-item { display: grid; grid-template-columns: 80px 1fr 24px; gap: 12px; align-items: center; background: var(--panel-strong); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 14px; }
.cart-item-info h4 { margin: 0 0 4px; font-size: 1rem; }
.cart-item-info p { margin: 0 0 8px; color: var(--muted); font-size: 0.82rem; }
.cart-item-info strong { font-size: 1rem; }
.cart-remove { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); }
.cart-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 1.1rem; }
.cart-checkout { width: 100%; }

.product-dialog { width: min(760px, calc(100% - 28px)); max-height: min(90vh, 900px); overflow-y: auto; border: 0; border-radius: 20px; padding: 30px; color: var(--text); box-shadow: var(--shadow); }
.product-dialog::backdrop { background: rgba(3, 5, 17, .76); backdrop-filter: blur(3px); }
.product-dialog .dialog-close { position: sticky; top: 0; z-index: 1; margin: -12px -12px 0 0; }
.product-dialog-summary { display: grid; grid-template-columns: minmax(160px, .8fr) 1.2fr; gap: 22px; align-items: center; padding-right: 24px; }
.product-dialog-summary img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 12px; background: var(--media-bg); }
.product-dialog-summary h2 { margin: 8px 0; }
.product-dialog-summary p { color: var(--muted); line-height: 1.65; }
.product-reviews-panel { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.product-review-list { display: grid; gap: 12px; max-height: 300px; overflow-y: auto; margin-bottom: 20px; }
.product-review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.product-review-head { display: flex; justify-content: space-between; gap: 14px; }
.product-review-head span { color: var(--gold); white-space: nowrap; }
.product-review p { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-review time { color: var(--muted); font-size: .85rem; }
.review-signin { padding: 14px 0; }
.product-review-form { margin-top: 20px; }
.product-review-form textarea, .checkout-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }

.checkout-shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.checkout-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: start; gap: 20px; }
.checkout-form h2, .checkout-summary h2 { margin-top: 0; }
.checkout-summary { position: sticky; top: 20px; }
.checkout-line { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checkout-line img { width: 62px; height: 74px; object-fit: cover; border-radius: 8px; }
.checkout-line strong { overflow-wrap: anywhere; }
.checkout-line small { display: block; margin-top: 4px; }
.checkout-grand-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 1.15rem; }
.checkout-payment-note { color: var(--muted); line-height: 1.6; font-size: .9rem; }
.checkout-success { margin-top: 24px; }
.checkout-success .primary-btn { display: inline-block; margin-top: 16px; text-decoration: none; }

.site-footer { padding: 38px 0 50px; }

.account-link { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: var(--panel); font-weight: 700; white-space: nowrap; }
.account-profile-name { margin: 0 0 18px; font-size: 1.25rem; font-weight: 800; overflow-wrap: anywhere; }
.account-signout { margin-top: 20px; }
.auth-dialog { width: min(460px, calc(100% - 28px)); border: 0; border-radius: 24px; padding: 32px; color: var(--text); box-shadow: var(--shadow); }
.auth-dialog::backdrop { background: rgba(3, 5, 17, .76); backdrop-filter: blur(3px); }.dialog-close { float: right; border: 0; background: transparent; font-size: 1.6rem; }.eyebrow { color: var(--accent-dark); letter-spacing: .14em; font-size: .76rem; font-weight: 800; }.stack-form { display: grid; gap: 14px; }.stack-form label { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 700; }.stack-form input, .table-toolbar input, select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--input-bg); }.text-button { background: none; border: 0; color: var(--accent-dark); padding: 0; font: inherit; text-decoration: underline; }.portal-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 80px; }.back-link { color: var(--accent-dark); font-weight: 700; }.portal-heading { margin: 36px 0 24px; }.portal-heading h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin: 6px 0; letter-spacing: -.06em; }.account-grid { display: grid; grid-template-columns: minmax(280px,.75fr) 1.1fr 1.1fr; gap: 18px; align-items: start; }.surface-card, .metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-soft); }.surface-card h2 { margin-top: 0; }.data-list { display: grid; gap: 10px; }.list-row { border-bottom: 1px solid var(--line); padding: 10px 0; display: grid; gap: 4px; }.list-row span, small { color: var(--muted); }.empty-state { color: var(--muted); }.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }.metric-card span { color: var(--muted); display: block; }.metric-card strong { display: block; font-size: 1.8rem; margin-top: 8px; }.table-toolbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }.table-toolbar input { max-width: 300px; }.table-wrap { overflow: auto; } table { width: 100%; border-collapse: collapse; min-width: 720px; } th,td { border-bottom: 1px solid var(--line); text-align:left; padding: 13px 10px; vertical-align: top; } th { color: var(--muted); font-size: .8rem; text-transform: uppercase; }.status-tag { display:inline-block; padding: 5px 8px; background: var(--panel-2); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.auth-divider { margin: 18px 0 10px; color: var(--muted); text-align: center; font-size: .88rem; }
.email-code-dialog h2 { padding-right: 24px; }
.email-code-dialog .email-code-notice { margin: 0 0 16px; color: var(--success); line-height: 1.6; }
.email-code-dialog [data-email-description] { margin: 0; color: var(--muted); line-height: 1.6; }
.email-code-dialog [name="code"] { letter-spacing: .35em; font-size: 1.3rem; }
.email-code-dialog .form-status { margin-top: 16px; }
.google-signin-button { display: flex; justify-content: center; min-height: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-brand p, .footer-links a, .footer-meta { color: var(--muted); line-height: 1.8; }
.footer-links { display: grid; gap: 8px; }
.footer-links h4, .footer-meta h4 { margin: 0 0 12px; font-size: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; color: var(--muted); }
.socials { display: flex; gap: 10px; }
.socials span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); }

.office-login { width: min(560px, 100%); margin-bottom: 22px; }
.office-login > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.office-heading-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.office-language { flex: 0 0 auto; }
.office-login-divider { margin: 20px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.staff-card { margin-top: 22px; }
.employee-invite-form { max-width: 640px; margin-bottom: 22px; }
.employee-permission-options { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; }
.employee-permission-options legend { padding: 0 6px; font-weight: 700; }
.employee-permission-options label { display: flex; align-items: center; gap: 10px; }
.employee-permission-options input[type="checkbox"], .employee-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-dark); flex-shrink: 0; }
.employee-table small { display: block; margin-top: 4px; }
.employee-table .employee-account-state { display: grid; gap: 8px; }
[data-admin-section="employees"] { margin-top: 20px; }
.permission-options { display: grid; gap: 10px; }
.permission-options label { display: flex; align-items: center; gap: 10px; }
.permission-options input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent-dark); }
.small-action { border: 0; border-radius: 999px; padding: 8px 12px; font: inherit; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--on-accent); }
.product-admin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.product-admin-form label { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.product-admin-form input, .product-admin-form select, .product-admin-form textarea { width: 100%; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--input-bg); }
.product-admin-form .product-admin-wide { grid-column: 1 / -1; }
.product-admin-form .product-active-label { display: flex; align-items: center; gap: 10px; }
.product-admin-form .product-active-label input { width: 18px; height: 18px; accent-color: var(--accent-dark); }
.product-admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-management { margin-top: 20px; }
.product-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(190px, 260px); gap: 12px; margin-bottom: 14px; }
.product-toolbar input, .product-toolbar select, .product-discount-input input { width: 100%; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--input-bg); }
.product-selection-actions { margin-bottom: 14px; }
.product-discount-input { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.product-discount-input input { width: 84px; }
.product-table-wrap table { min-width: 760px; }
.product-table-wrap td:first-child, .product-table-wrap th:first-child { width: 42px; text-align: center; }
.product-table-wrap input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-dark); }
.product-table-wrap td small { display: block; margin-top: 3px; }
.catalog-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.catalog-pagination > div { display: flex; gap: 8px; }
.catalog-pagination button { border: 0; padding: 8px 12px; cursor: pointer; }
.order-details { margin-top: 6px; color: var(--muted); }
.order-details summary { cursor: pointer; color: var(--accent-dark); font-weight: 700; }
.order-details span { display: block; margin-top: 5px; white-space: normal; overflow-wrap: anywhere; }
.order-details .note-text { white-space: pre-line; line-height: 1.5; }
.order-status-cell { display: flex; flex-direction: column; gap: 8px; }
.mini-action, .mini-remove { border: 0; border-radius: 999px; padding: 7px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.mini-action { background: var(--accent-dark); color: var(--on-accent); }
.mini-remove { background: #3d1b32; color: var(--danger); }
.completed-orders-tray { position: fixed; right: 20px; bottom: 20px; width: min(320px, calc(100% - 24px)); background: var(--panel-strong); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; z-index: 40; }
.completed-orders-header { margin-bottom: 10px; font-size: .9rem; }
.completed-orders-list { display: grid; gap: 10px; max-height: 280px; overflow-y: auto; }
.completed-order-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--input-bg); }
.completed-order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.completed-order-item p, .completed-order-item small { margin: 0; color: var(--muted); }
.is-blocked { background: #3d1b32; color: var(--danger); }
.is-active { background: #10382d; color: var(--success); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; order: 3; width: 100%; flex-wrap: wrap; gap: 10px 20px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .quick-view { opacity: 1; transform: translate(-50%, 0); min-height: 44px; }
  .hero-wrap, .offer-banner, .story-grid, .newsletter, .footer-grid { grid-template-columns: 1fr; }
  .categories-grid, .products-grid, .fragrance-grid, .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { min-height: 420px; }
  .account-grid { grid-template-columns: 1fr; }.metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .office-heading-row { gap: 10px; }
  .office-heading-row h1 { font-size: 2rem; }
  .categories-grid, .products-grid, .fragrance-grid, .testimonials, .story-features { grid-template-columns: 1fr; }
  .header-actions { gap: 10px; }
  .cart-pill { display: inline-flex; }
  .site-header .header-actions { width: 100%; justify-content: flex-start; }
  .site-header .navbar { gap: 12px; }
  .gender-btn, .lang-btn { min-width: 40px; padding: 8px 10px; }
  .cart-drawer { height: 100dvh; }
  .float-card { right: 0; max-width: 100%; }
  .catalog-search > div { flex-wrap: wrap; }
  .account-link { padding: 8px 10px; font-size: .82rem; }.metric-grid { grid-template-columns: 1fr; }.table-toolbar { display: grid; }.table-toolbar input { max-width: none; }
  .newsletter-form { width: 100%; flex-direction: column; border-radius: 22px; padding: 12px; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .newsletter-form .primary-btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .checkout-layout, .product-admin-form { grid-template-columns: 1fr; }
  .product-toolbar { grid-template-columns: 1fr; }
  .product-selection-actions { align-items: stretch; }
  .product-discount-input { justify-content: space-between; width: 100%; }
  .catalog-pagination { align-items: flex-start; flex-direction: column; }
  .checkout-summary { position: static; }
  .product-admin-form .product-admin-wide { grid-column: auto; }
  .product-dialog { padding: 18px; }
  .product-dialog-summary { grid-template-columns: 1fr; padding-right: 0; }
  .product-dialog-summary img { max-height: 250px; aspect-ratio: 16 / 10; }
  .product-review-head { align-items: flex-start; flex-direction: column; gap: 4px; }
}
