/* ============================================================
   SCENTÉ LAGOS — PERFUME BOUTIQUE
   Aesthetic: Bright, airy, feminine editorial
   Palette: Blush rose, warm cream, soft coral, champagne gold
   Fonts: Cormorant Garamond (display) + Nunito (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #e8687a;          /* rose pink */
  --primary-light: #f5a8b2;
  --primary-pale: #fde8eb;
  --accent: #c4813a;           /* warm amber gold */
  --accent-light: #f0c98a;
  --blush: #f7e8e8;
  --cream: #fdf8f3;
  --warm-white: #fffaf7;
  --surface: #ffffff;
  --bg: #fdf6f0;
  --bg-2: #fceee8;
  --border: #f0d8d0;
  --border-soft: #f9ece8;
  --text: #2d1f1f;
  --text-mid: #6b4a4a;
  --text-muted: #a08080;
  --success: #4caf88;
  --danger: #e84c5a;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow-soft: 0 4px 24px rgba(232, 104, 122, 0.10);
  --shadow-card: 0 8px 32px rgba(180, 80, 80, 0.10);
  --shadow-hover: 0 20px 48px rgba(180, 80, 80, 0.18);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--blush); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(232, 104, 122, 0.08);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--primary) !important;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-style: italic;
}

.navbar-brand .brand-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 6px;
}

.navbar-brand img#store-logo { height: 40px; width: auto; border-radius: 6px; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap input {
  background: var(--blush);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem 0.45rem 2.3rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  width: 200px;
  transition: var(--transition);
  outline: none;
}

.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap input:focus {
  background: #fff;
  border-color: var(--primary);
  width: 240px;
  box-shadow: 0 0 0 3px rgba(232,104,122,0.12);
}

.search-wrap .bi-search {
  position: absolute; left: 0.8rem;
  color: var(--primary-light); font-size: 0.85rem;
}

.btn-cart {
  background: var(--primary-pale);
  border: 1.5px solid var(--border);
  color: var(--primary);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-size: 1.1rem;
}

.btn-cart:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232,104,122,0.35);
}

.cart-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ─── ANNOUNCEMENT BAR ───────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary) 0%, #e85d8a 50%, var(--accent) 100%);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #fde8eb 0%, #fdf0e8 40%, #fdf8f0 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 520px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,104,122,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(196,129,58,0.10) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1.5px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  color: var(--primary);
  font-style: italic;
}

.hero p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.btn-hero-primary:hover {
  background: #d4566a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232,104,122,0.40);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-secondary:hover { border-color: var(--primary); color: var(--primary); }

.hero-visual {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}

.hero-perfume-stack {
  position: relative;
  width: 280px; height: 320px;
}

.hero-blob {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(232,104,122,0.15) 0%, rgba(245,168,178,0.08) 60%, transparent 100%);
  border-radius: 50% 45% 55% 50%;
  animation: blobPulse 4s ease-in-out infinite;
}

@keyframes blobPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(3deg); }
}

.hero-img-main {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  position: relative; z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(232,104,122,0.25));
}

.hero-badge {
  position: absolute;
  bottom: 20px; left: -20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  z-index: 2;
}

.hero-badge-dot {
  width: 10px; height: 10px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,136,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(76,175,136,0); }
}

/* ─── TRUST STRIP ─────────────────────────────────────────────── */
.trust-strip {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid);
}

.trust-item .bi {
  color: var(--primary);
  font-size: 1rem;
}

/* ─── SECTION HEADERS ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
}

.section-header h2 em { color: var(--primary); font-style: italic; }

.section-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ─── CATEGORY PILLS ──────────────────────────────────────────── */
.filters-wrap {
  display: flex; gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.cat-btn {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cat-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.cat-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── PRODUCT GRID ────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.75rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* ─── PRODUCT CARD ────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--border-soft);
  position: relative;
}

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

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fde8eb, #fdf0f8);
  aspect-ratio: 3/4;
}

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

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

.badge-discount {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.badge-new {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-wishlist {
  position: absolute;
  top: 50px; right: 12px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-mid);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.btn-wishlist:hover { border-color: var(--primary); color: var(--primary); }

.btn-wishlist.active { color: var(--primary); border-color: var(--primary); background: var(--primary-pale); }

.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(253,232,235,0.7);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}

.out-of-stock-overlay span {
  background: #fff;
  color: var(--primary);
  font-weight: 700; font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--primary-light);
  letter-spacing: 0.06em;
}

.product-overlay {
  position: absolute; inset: 0;
  background: rgba(232,104,122,0.12);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.btn-quick-view {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
  transform: translateY(10px);
  letter-spacing: 0.02em;
}

.product-card:hover .btn-quick-view { transform: translateY(0); }
.btn-quick-view:hover { background: var(--primary); color: #fff; }

.product-info { padding: 1.1rem 1.25rem 1.25rem; }

.product-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.product-volume {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.product-price-row {
  display: flex; align-items: baseline; gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.product-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Star rating */
.product-stars {
  display: flex; gap: 2px;
  margin-bottom: 0.7rem;
}

.product-stars .bi { font-size: 0.75rem; color: var(--accent); }

.btn-add-cart {
  width: 100%;
  background: var(--primary-pale);
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-add-cart:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(232,104,122,0.30);
}

.btn-add-cart:disabled {
  background: var(--bg-2);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
}

/* ─── SCENT CATEGORIES SECTION ────────────────────────────────── */
.scent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.scent-card {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.scent-card:hover {
  border-color: var(--primary);
  background: var(--primary-pale);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.scent-emoji { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.scent-name { font-size: 0.85rem; font-weight: 700; color: var(--text-mid); }

/* ─── CART SIDEBAR ────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(45,31,31,0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--warm-white);
  z-index: 2001;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 48px rgba(232,104,122,0.15);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-pale), #fff8f5);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  font-style: italic;
}

.btn-close-cart {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.btn-close-cart:hover { border-color: var(--primary); color: var(--primary); }

.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }

.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 240px;
  color: var(--text-muted);
  gap: 0.75rem;
}

.cart-empty .bi { font-size: 3rem; color: var(--primary-light); }
.cart-empty p { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; }
.cart-empty small { font-size: 0.82rem; }

.cart-item {
  display: flex; gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.cart-item img {
  width: 68px; height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--blush);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; line-height: 1.3; }
.cart-item-price { font-size: 0.88rem; color: var(--primary); font-weight: 700; margin-bottom: 0.4rem; }

.cart-qty-control { display: flex; align-items: center; gap: 0.4rem; }

.cart-qty-control button {
  background: var(--blush);
  border: 1.5px solid var(--border);
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--primary);
}

.cart-qty-control button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.cart-qty-control span { font-size: 0.88rem; font-weight: 700; min-width: 22px; text-align: center; }

.btn-remove {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer; margin-left: auto;
  font-size: 0.85rem; padding: 0.2rem;
  transition: var(--transition);
}

.btn-remove:hover { color: var(--danger); }

#free-shipping-msg {
  background: linear-gradient(135deg, #e8f5ef, #f0faf5);
  border: 1px solid #a5d6b5;
  color: #2e7d56;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600;
  margin-top: 0.75rem; display: none;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.cart-summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.875rem; color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.cart-total-row {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: 1.1rem;
  color: var(--text);
  margin: 0.75rem 0 1rem;
  padding-top: 0.75rem;
  border-top: 1.5px solid var(--border);
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #e85d8a);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition);
  letter-spacing: 0.03em;
}

.btn-checkout:hover {
  background: linear-gradient(135deg, #d4566a, #d44d7a);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,104,122,0.40);
}

/* ─── MODALS ─────────────────────────────────────────────────── */
.modal-content {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-pale), #fff8f5);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  font-style: italic;
}

#modal-img {
  width: 100%; height: 340px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--blush);
}

.stock-badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-top: 0.4rem;
}

.in-stock { background: #e8f5ef; color: #2e7d56; }
.out-stock { background: #fde8eb; color: var(--danger); }

.qty-control {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.qty-control button {
  background: var(--blush);
  border: none;
  width: 38px; height: 38px;
  cursor: pointer; font-size: 1rem;
  transition: var(--transition);
  color: var(--primary);
}

.qty-control button:hover { background: var(--primary); color: #fff; }
.qty-control input { width: 50px; border: none; text-align: center; font-weight: 700; outline: none; background: #fff; color: var(--text); }

.btn-primary-rose {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700; cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

.btn-primary-rose:hover { background: #d4566a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,104,122,0.35); }
.btn-primary-rose:disabled { background: var(--bg-2); color: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── ORDER SUCCESS ───────────────────────────────────────────── */
#order-success {
  position: fixed;
  top: 80px; left: 50%; transform: translateX(-50%);
  background: #fff;
  border: 1.5px solid var(--primary-light);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(232,104,122,0.2);
  z-index: 3000;
  display: flex; align-items: center; gap: 1rem;
  max-width: 90vw;
}

#order-success .bi { font-size: 1.6rem; color: var(--success); }
#order-success strong { color: var(--text); font-size: 0.95rem; }
#order-success small { color: var(--text-muted); font-size: 0.82rem; }
#order-success button { background: none; border: none; color: var(--text-muted); cursor: pointer; margin-left: auto; font-size: 1rem; }

/* ─── TOAST ──────────────────────────────────────────────────── */
#toast-container, #admin-toast-container {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem;
}

.shop-toast {
  background: #fff;
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 0.65rem;
  min-width: 240px; max-width: 320px;
  font-size: 0.875rem; font-weight: 600;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.shop-toast.show { transform: translateX(0); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 2rem 2rem;
  margin-top: 5rem;
}

footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary-light);
  font-style: italic;
  display: block;
  margin-bottom: 0.4rem;
}

footer p, footer a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  line-height: 1.9;
}

footer a:hover { color: var(--primary-light); }
footer h5 { color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ─── CHECKOUT ───────────────────────────────────────────────── */
.checkout-summary {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  border: 1px solid var(--border);
}

.checkout-total-row {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: 1.05rem;
  color: var(--primary);
  padding-top: 0.75rem; margin-top: 0.5rem;
  border-top: 2px solid var(--border);
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--warm-white);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,104,122,0.12);
  background: #fff;
}

.form-label { font-weight: 600; font-size: 0.82rem; color: var(--text-mid); margin-bottom: 0.35rem; }

/* ─── ADMIN ──────────────────────────────────────────────────── */
.admin-layout { display: flex; height: 100vh; overflow: hidden; }

.admin-sidebar {
  width: 240px;
  background: var(--text);
  display: flex; flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary-light);
  font-style: italic;
  display: block;
}

.sidebar-brand small {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sidebar-nav { flex: 1; padding: 1rem 0; }

.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1.5rem;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600; font-size: 0.875rem;
  border-left: 3px solid transparent;
}

.nav-item:hover { background: rgba(232,104,122,0.08); color: rgba(255,255,255,0.9); }
.nav-item.active { background: rgba(232,104,122,0.12); color: var(--primary-light); border-left-color: var(--primary); }
.nav-item .bi { font-size: 1rem; }

.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }

.btn-logout {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  cursor: pointer; font-family: var(--font-body);
  font-size: 0.875rem; transition: var(--transition);
  display: flex; align-items: center; gap: 0.5rem;
}

.btn-logout:hover { background: rgba(232,104,122,0.15); color: var(--primary-light); border-color: rgba(232,104,122,0.3); }

.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.admin-topbar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}

.admin-topbar h4 { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--primary); }

#sidebar-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text); }

.admin-content { flex: 1; overflow-y: auto; padding: 2rem; background: var(--bg); }

.admin-section { display: none; }
.admin-section.active { display: block; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

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

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}

.stat-icon.rose { background: var(--primary-pale); color: var(--primary); }
.stat-icon.amber { background: rgba(196,129,58,0.12); color: var(--accent); }
.stat-icon.green { background: rgba(76,175,136,0.12); color: #2e7d56; }
.stat-icon.blue { background: rgba(30,136,229,0.10); color: #1565c0; }

.stat-value { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; line-height: 1; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-top: 0.2rem; letter-spacing: 0.04em; }

/* Admin card */
.admin-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border-soft); overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--shadow-soft); }

.admin-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--cream), #fff);
}

.admin-card-header h5 { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: var(--primary); margin: 0; }

.admin-card-body { padding: 1.25rem 1.5rem; }

/* Table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { background: var(--cream); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }
.table-row-inactive { opacity: 0.5; }

.product-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--blush); }

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700;
  text-transform: capitalize; letter-spacing: 0.05em;
}

.status-pending { background: #fff3e0; color: #bf6000; }
.status-processing { background: #e3f2fd; color: #1565c0; }
.status-shipped { background: #e8f5ef; color: #2e7d56; }
.status-delivered { background: #f3e5f5; color: #6a1b9a; }
.status-cancelled { background: #fde8eb; color: var(--danger); }

.stock-pill { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 4px; font-weight: 700; font-size: 0.8rem; }
.stock-ok { background: #e8f5ef; color: #2e7d56; }
.stock-low { background: #fff3e0; color: #bf6000; }
.stock-empty { background: #fde8eb; color: var(--danger); }

.status-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  background: #fff;
  cursor: pointer;
}

.btn-icon {
  background: var(--blush);
  border: 1px solid var(--border);
  color: var(--text-mid);
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.82rem; transition: var(--transition);
  margin-right: 4px;
}

.btn-icon:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-icon-danger:hover { background: #fde8eb; border-color: var(--primary-light); color: var(--danger); }

.btn-admin-primary {
  background: var(--primary);
  color: #fff; border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.875rem;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

.btn-admin-primary:hover { background: #d4566a; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,104,122,0.35); }

.btn-admin-outline {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer; transition: var(--transition);
}

.btn-admin-outline:hover { border-color: var(--primary); color: var(--primary); }

.order-filter-btn {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}

.order-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.low-stock-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--border-soft);
  font-size: 0.875rem;
}

.low-stock-item:last-child { border-bottom: none; }
.low-stock-item img { width: 42px; height: 42px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--blush); }

.settings-section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-soft); }
.settings-section:last-child { border-bottom: none; }
.settings-section h5 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1.25rem; }

.color-picker-wrap { display: flex; align-items: center; gap: 0.75rem; }
.color-picker-wrap input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }

/* Login */
.login-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #fde8eb 0%, #fdf0e8 50%, #fdf8f5 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,104,122,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.login-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232,104,122,0.15);
  border-radius: var(--radius);
  padding: 2.75rem;
  width: min(400px, 90vw);
  box-shadow: 0 24px 64px rgba(232,104,122,0.15);
  position: relative; z-index: 1;
}

.login-card .login-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  font-style: italic;
  display: block;
  text-align: center;
  margin-bottom: 0.25rem;
}

.login-card h2 { font-size: 1.1rem; color: var(--text-mid); text-align: center; font-weight: 600; margin-bottom: 0.25rem; }
.login-card p { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin-bottom: 2rem; }

#image-preview {
  display: none; width: 100%;
  max-height: 180px; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 0.5rem; background: var(--blush);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 3rem 1.5rem; }
  .hero p { margin: 0 auto 2rem; }
  .hero-cta-group { justify-content: center; }
  .hero-visual { display: none; }
  .trust-strip { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .search-wrap { display: none !important; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .admin-sidebar { position: fixed; top: 0; left: 0; height: 100vh; z-index: 1000; transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  #sidebar-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-content { padding: 1rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-info { padding: 0.75rem; }
  .product-name { font-size: 0.95rem; }
  .product-price { font-size: 1rem; }
  .btn-add-cart { font-size: 0.78rem; padding: 0.5rem; }
  .section-header h2 { font-size: 1.5rem; }
}

/* ─── PHP TEMPLATE BRIDGE CLASSES ───────────────────────────────────────────── */

/* Hero */
.hero-section { background: var(--cream); padding: 5rem 0 4rem; }
.hero-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-title { font-family: var(--font-display); font-size: clamp(2rem,5vw,3.5rem); font-weight: 600; color: var(--text); margin-bottom: 1rem; line-height: 1.15; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-mid); margin-bottom: 2rem; }
.hero-image-wrapper { display: flex; align-items: center; justify-content: center; position: relative; }
.hero-blob { width: 360px; height: 360px; background: radial-gradient(circle, var(--primary-pale) 0%, var(--blush) 60%, transparent 100%); border-radius: 50%; }
@media(max-width:768px) { .hero-section .container { grid-template-columns: 1fr; } }

/* Section utilities */
.section-padding { padding: 4rem 0; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }
.bg-light-cream { background: var(--cream); }

/* Navbar helpers */
.brand-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--primary); }
.search-form { display: flex; align-items: center; background: var(--bg-2); border-radius: var(--radius-pill); padding: 0.2rem 0.2rem 0.2rem 1rem; border: 1px solid var(--border); }
.search-input { background: transparent; border: none; outline: none; font-family: var(--font-body); font-size: 0.875rem; width: 200px; color: var(--text); }
.search-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.25rem 0.6rem; }
.cart-btn { position: relative; background: var(--primary-pale); border: 1.5px solid var(--primary-light); color: var(--primary); border-radius: var(--radius-pill); padding: 0.45rem 1rem; font-size: 1.1rem; cursor: pointer; transition: var(--transition); }
.cart-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cart-badge { background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; top: -4px; right: -4px; }

/* Scent card labels */
.scent-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-align: center; color: var(--text-mid); transition: var(--transition); background: var(--surface); }
.scent-card:hover, .scent-card.active { border-color: var(--primary); background: var(--primary-pale); color: var(--primary); box-shadow: 0 4px 16px rgba(232,104,122,.12); }
.scent-name { display: block; font-size: 0.85rem; font-weight: 700; margin-top: 0.3rem; }
.scent-desc { font-size: 0.72rem; }

/* Footer helpers */
.footer { background: var(--text); color: rgba(255,255,255,.8); padding: 3rem 0 2rem; }
.footer-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li { margin-bottom: .6rem; font-size: .875rem; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); font-size: 1rem; text-decoration: none; transition: var(--transition); }
.social-icon:hover { background: var(--primary); color: #fff; }

/* Logo helpers */
.navbar-logo { height: 40px; max-width: 200px; object-fit: contain; }
.footer-logo { height: 40px; max-width: 200px; object-fit: contain; }
.sidebar-logo { max-height: 44px; max-width: 100%; object-fit: contain; }
