/* ==========================================================================
   PARFAIT & CO. - LUXURY ARTISANAL EMBEDDED DESIGN SYSTEM & MASTER STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Variables
   -------------------------------------------------------------------------- */
:root {
  /* Rich Red & Royal Blue Palette */
  --bg-main: #f6f8fd;                  /* Soft luminous ice-pearl background */
  --surface-lowest: #ffffff;
  --surface-low: #edf2fc;             /* Crisp ice-blue surface tint */
  --surface-container: #e2eaf8;       /* Blue container tint */
  --surface-high: #d4e2f5;
  --surface-highest: #c4d7f0;

  --primary: #dc2626;                 /* Vibrant Crimson Garnet Red */
  --primary-hover: #b91c1c;
  --primary-container: #fee2e2;
  --on-primary: #ffffff;

  --secondary: #1e40af;               /* Deep Royal Sapphire Blue */
  --secondary-hover: #1e3a8a;
  --secondary-container: #dbeafe;
  --on-secondary-container: #1e3a8a;

  --tertiary: #2563eb;                /* Cobalt Berry Blue */
  --tertiary-container: #eff6ff;
  --on-tertiary: #ffffff;

  --gold: #3b82f6;                    /* Accent Sapphire Glow */
  --gold-light: #93c5fd;
  --gold-dark: #1d4ed8;

  --text-main: #0f172a;               /* Deep Navy Charcoal Text */
  --text-muted: #475569;              /* Slate Muted Text */
  --text-light: #64748b;

  --border-light: rgba(30, 64, 175, 0.15);  /* Translucent Royal Blue border */
  --border-focus: #dc2626;
  --glass-bg: rgba(246, 248, 253, 0.88);
  --glass-border: rgba(220, 38, 38, 0.2);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(220, 38, 38, 0.12);
  --shadow-lg: 0 16px 40px rgba(30, 64, 175, 0.15);
  --shadow-glow: 0 10px 30px rgba(220, 38, 38, 0.25);
  --shadow-gold: 0 8px 20px rgba(30, 64, 175, 0.25);

  /* Layout & Geometry */
  --container-max: 1280px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Theme Overrides */
body.dark-theme {
  --bg-main: #0b0f19;                 /* Deep Cosmic Navy Background */
  --surface-lowest: #111827;
  --surface-low: #1e293b;
  --surface-container: #334155;
  --surface-high: #475569;
  --surface-highest: #64748b;

  --primary: #ef4444;                 /* Electric Ruby Red */
  --primary-hover: #f87171;
  --primary-container: #450a0a;
  --on-primary: #ffffff;

  --secondary: #3b82f6;               /* Electric Sapphire Blue */
  --secondary-container: #1e3a8a;
  --on-secondary-container: #dbeafe;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;

  --border-light: rgba(59, 130, 246, 0.2);
  --border-focus: #ef4444;
  --glass-bg: rgba(15, 23, 42, 0.9);
  --glass-border: rgba(239, 68, 68, 0.2);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

/* --------------------------------------------------------------------------
   2. Global Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  outline: none;
}

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

input, select, textarea {
  font-family: inherit;
  outline: none;
}

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

/* Typography Helpers */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
}

.text-gradient {
  background: linear-gradient(135deg, #dc2626 0%, #2563eb 50%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   3. Top Announcement Marquee Bar
   -------------------------------------------------------------------------- */
.top-announcement-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 30%, #dc2626 70%, #0f172a 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  overflow: hidden;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(30%); }
  100% { transform: translateX(-100%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marquee-badge {
  background: linear-gradient(135deg, #dc2626, #2563eb);
  color: #ffffff;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #dc2626, #2563eb, #dc2626);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.app-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: var(--glass-bg);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s ease;
}

.app-header.scrolled .header-container {
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

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

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background-color: var(--surface-low);
  border: 1px solid var(--border-light);
  transition: var(--transition-bounce);
  position: relative;
}

.btn-icon:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--primary), #d22b2b);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
  box-shadow: 0 2px 6px rgba(174, 8, 22, 0.3);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.mobile-menu-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Mobile Navigation Drawer & Bottom Bar
   -------------------------------------------------------------------------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 16, 0.6);
  backdrop-filter: blur(8px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: var(--surface-lowest);
  z-index: 191;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: 10px 0 30px rgba(0,0,0,0.2);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  z-index: 90;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-bottom-item.active {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   6. Cart Drawer & Checkout Modals
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 17, 16, 0.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background-color: var(--surface-lowest);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
}

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

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface-low);
}

.drawer-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-light);
  background-color: var(--surface-low);
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: var(--surface-low);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  align-items: center;
  position: relative;
  transition: var(--transition-fast);
}

.cart-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.3;
}

.cart-item-details {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.cart-item-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 15px;
  margin-top: 6px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-lowest);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
  background: var(--surface-container);
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Promo Code Box */
.promo-code-container {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.promo-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-lowest);
  font-size: 13px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7. Modals (Checkout, Quick View, Search)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 16, 0.6);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--surface-lowest);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   8. Page Sections (SPA Routing)
   -------------------------------------------------------------------------- */
.page-view {
  display: none;
  animation: pageFadeIn 0.4s ease-out;
}

.page-view.active {
  display: block;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.section-title {
  font-size: 42px;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-high);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   9. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #1e40af 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(220, 38, 38, 0.35);
  background: linear-gradient(135deg, #b91c1c 0%, #1e3a8a 100%);
}

.btn-secondary {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.4);
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.btn-outline {
  border: 2px solid var(--border-focus);
  color: var(--text-main);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1);
  transform: scale(1.05);
  animation: heroZoom 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at center, rgba(20, 17, 16, 0.4) 0%, rgba(20, 17, 16, 0.85) 100%),
              linear-gradient(to bottom, rgba(20, 17, 16, 0.3), var(--bg-main));
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  text-align: center;
  color: #ffffff;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-serif);
}

.hero-stat-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   11. Value Props Cards & Bento Highlights
   -------------------------------------------------------------------------- */
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.prop-card {
  background: var(--surface-lowest);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

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

.prop-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--surface-container);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  transition: var(--transition-fast);
}

.prop-card:hover .prop-icon-wrapper {
  background: var(--primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   12. Product Grid & Product Card Redesign
   -------------------------------------------------------------------------- */
.admin-menu-panel {
  background: var(--surface-low);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
}
.admin-menu-panel h3 { font-family: var(--font-serif); font-size: 24px; margin-bottom: 6px; }
.admin-menu-panel p { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.admin-menu-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding-bottom: 20px; }
.admin-menu-form textarea { grid-column: 1 / -1; }
.admin-menu-panel input, .admin-menu-panel textarea { width: 100%; padding: 10px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: var(--surface-lowest); color: var(--text-main); font: inherit; }
.admin-menu-panel label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.admin-menu-panel label input[type="checkbox"] { width: auto; }
.admin-product-list { min-width: 0; }
.admin-product-list summary span { color: var(--text-muted); font-size: 13px; text-align: right; }
@media (max-width: 560px) { .admin-product-list summary { align-items: flex-start; flex-direction: column; } .admin-product-list summary span { text-align: left; } }

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

.product-card {
  background: var(--surface-lowest);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

.product-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--surface-low);
}

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

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

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-light);
  z-index: 2;
}

.product-quick-view-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  display: flex;
  align-items: center; 
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-fast);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-card:hover .product-quick-view-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-quick-view-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.product-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-sans);
}

/* --------------------------------------------------------------------------
   13. Interactive Build Your Own Parfait (Customizer)
   -------------------------------------------------------------------------- */
.customizer-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

.customizer-visual-column {
  position: sticky;
  top: 100px;
  background: var(--surface-lowest);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.glass-jar-simulator {
  position: relative;
  width: 220px;
  height: 320px;
  margin: 0 auto 24px auto;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  backdrop-filter: blur(4px);
}

.glass-glare {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 14px;
  height: 85%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.05));
  border-radius: 10px;
  pointer-events: none;
  z-index: 10;
}

.jar-label-sticker {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 251, 245, 0.95);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 12;
  text-align: center;
  max-width: 80%;
  pointer-events: none;
}

.jar-layer {
  width: 100%;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.7);
  position: relative;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.ingredient-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ingredient-card {
  background: var(--surface-low);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 14px;
}

.ingredient-card:hover {
  border-color: var(--primary);
  background: var(--surface-lowest);
  transform: translateY(-2px);
}

.ingredient-card.selected {
  border-color: var(--primary);
  background: var(--primary-container);
  box-shadow: var(--shadow-sm);
}

.ingredient-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Macro Bars */
.macro-progress-bar {
  height: 6px;
  background: var(--surface-container);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.macro-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* --------------------------------------------------------------------------
   14. Subscriptions & Catering Calculators
   -------------------------------------------------------------------------- */
.subscription-card {
  background: var(--surface-lowest);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
}

.subscription-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.badge-popular {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Range Slider */
.custom-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-container);
  outline: none;
  -webkit-appearance: none;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   15. Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--surface-lowest);
  border-left: 5px solid var(--primary);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 360px;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.app-footer {
  background: var(--surface-lowest);
  border-top: 1px solid var(--border-light);
  padding: 80px 24px 32px 24px;
  margin-top: auto;
}

.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   17. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-title { font-size: 48px; }
  .customizer-layout { grid-template-columns: 1fr; }
  .customizer-visual-column { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-bottom-bar { display: flex; }
  .section-container { padding: 48px 16px; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* --------------------------------------------------------------------------
   18. Dynamic Scroll Animations & Micro-Interactions
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* Staggered Delay Utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Floating micro-animation */
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.float-animation {
  animation: floatY 4s ease-in-out infinite;
}

/* Scroll progress glow bar indicator */
.scroll-progress-bar {
  box-shadow: 0 0 10px rgba(174, 8, 22, 0.6);
}
/* Connected account experience */
.auth-shell { display:grid; grid-template-columns:minmax(280px, .9fr) minmax(320px, 1.1fr); overflow:hidden; border:1px solid var(--border-light); border-radius:var(--radius-lg); background:var(--surface-low); box-shadow:var(--shadow-lg); }
.auth-story { min-height:510px; padding:52px 40px; color:#fff; background:linear-gradient(145deg, #1e3a8a 0%, #0f172a 50%, #dc2626 100%); display:flex; flex-direction:column; justify-content:space-between; gap:48px; }
.auth-eyebrow { display:inline-block; padding:7px 12px; border:1px solid rgba(255,255,255,.35); border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.auth-story h2 { margin-top:24px; font-family:var(--font-serif); font-size:42px; line-height:1.05; }
.auth-story p { margin-top:16px; line-height:1.7; opacity:.82; }
.auth-delivery { display:flex; align-items:center; gap:10px; font-size:13px; opacity:.8; }
.auth-panel { padding:42px; }
.auth-tabs { display:flex; gap:22px; border-bottom:1px solid var(--border-light); margin-bottom:28px; }
.auth-tab { padding:0 0 12px; border:0; background:transparent; color:var(--text-muted); font-weight:800; cursor:pointer; }
.auth-tab.active { color:var(--primary); border-bottom:2px solid var(--primary); }
.auth-form { display:flex; flex-direction:column; gap:16px; }
.auth-form h3 { font-family:var(--font-serif); font-size:28px; }
.auth-form p { color:var(--text-muted); font-size:14px; }
.auth-input { width:100%; padding:14px; background:var(--surface-lowest); border:1px solid var(--border-light); border-radius:var(--radius-sm); font:inherit; }
@media (max-width: 720px) { .auth-shell { grid-template-columns:1fr; } .auth-story { min-height:260px; padding:36px 28px; } .auth-story h2 { font-size:34px; } .auth-panel { padding:30px 24px; } }

/* ==========================================================================
   ADMIN CONSOLE ENHANCEMENTS
   ========================================================================== */
.admin-nav-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-nav-tab {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav-tab:hover {
  color: var(--primary);
}

.admin-nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.admin-search-bar {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface-lowest);
  font: inherit;
  font-size: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--surface-lowest);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table th {
  background: var(--surface-low);
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-main);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--surface-low);
}

.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-badge.admin {
  background: var(--primary-container);
  color: var(--primary);
}

.role-badge.delivery {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.role-badge.customer {
  background: var(--surface-container);
  color: var(--text-muted);
}

.quick-price-input {
  width: 100px;
  padding: 6px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-lowest);
}

/* --- Upgrades CSS Styles --- */

/* Wishlist Heart Button */
.btn-wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-low);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

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

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

/* Reviews & Ratings */
.rating-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  align-items: center;
}

.review-card {
  background: var(--surface-low);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

/* Delivery Progress Tracker */
.tracker-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 24px 0 32px;
}

.tracker-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: var(--border-light);
  z-index: 1;
}

.tracker-progress-line {
  position: absolute;
  top: 22px;
  left: 10%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 2;
  transition: width 0.6s ease;
}

.tracker-step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.tracker-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-low);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.tracker-step-node.completed .tracker-step-icon,
.tracker-step-node.active .tracker-step-icon {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.3);
}

.tracker-step-node.active {
  color: var(--primary);
}

/* Simulated Delivery Map Box */
.delivery-map-sim {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  background: #1e293b;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.map-route-line {
  position: absolute;
  top: 50%;
  left: 15%;
  width: 70%;
  height: 3px;
  background: repeating-linear-gradient(90deg, #38bdf8 0, #38bdf8 10px, transparent 10px, transparent 20px);
  transform: translateY(-50%);
  animation: routePulse 1.5s infinite linear;
}

@keyframes routePulse {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

.van-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.8);
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -62%); }
}

/* Analytics Chart SVG Styling */
.chart-bar {
  transition: height 0.5s ease, opacity 0.3s ease;
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   17. Bespoke Parfait Customizer Styling
   -------------------------------------------------------------------------- */
.customizer-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
  margin-top: 36px;
}

@media (max-width: 992px) {
  .customizer-layout {
    grid-template-columns: 1fr;
  }
}

.customizer-steps-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.customizer-category-section {
  background: var(--surface-lowest);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.customizer-category-section:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

.customizer-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.ingredient-card {
  background: var(--surface-low);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.ingredient-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ingredient-card.selected {
  border-color: var(--primary);
  background: var(--primary-container);
  box-shadow: 0 0 0 2px var(--primary);
}

.ingredient-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.ingredient-card-header strong {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.3;
}

.ingredient-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.ingredient-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.ingredient-macros {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
}

/* Customizer Visual Column & Sticky Preview */
.customizer-visual-column {
  position: sticky;
  top: 100px;
}

.customizer-preview-card {
  background: var(--surface-lowest);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

/* 3D Glass Jar Simulation */
.glass-jar-outer {
  width: 170px;
  margin: 16px auto 24px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass-jar-lid {
  width: 110px;
  height: 14px;
  background: linear-gradient(180deg, #d4af37 0%, #aa8010 100%);
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid #856214;
}

.glass-jar-neck {
  width: 90px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-left: 2px solid rgba(220, 38, 38, 0.2);
  border-right: 2px solid rgba(220, 38, 38, 0.2);
}

.glass-jar-body {
  width: 150px;
  height: 250px;
  border-radius: 12px 12px 20px 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(220, 38, 38, 0.25);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.8), 0 12px 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.glass-jar-body::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 8px;
  width: 12px;
  height: 85%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 6px;
  pointer-events: none;
  z-index: 10;
}

.glass-jar-base {
  width: 130px;
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  margin-top: 4px;
}

.jar-layer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 2px 6px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customizer-macros-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--surface-low);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.macro-item {
  text-align: center;
}

.macro-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.macro-val {
  font-weight: 800;
  font-size: 16px;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   18. Artisanal Catering Styling
   -------------------------------------------------------------------------- */
.catering-calculator-card {
  background: var(--surface-lowest);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}

.catering-slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: var(--surface-container);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.catering-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  border: 3px solid #ffffff;
  transition: transform 0.15s ease;
}

.catering-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.catering-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.catering-metric-box {
  background: var(--surface-low);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition-fast);
}

.catering-metric-box:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.catering-metric-val {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-serif);
  margin: 6px 0 2px 0;
}


