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

:root {
  --bg-porcelain: #faf7f7;
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-blur: 16px;
  --glass-border: rgba(217, 119, 6, 0.12);
  --glass-border-hover: rgba(225, 29, 72, 0.25);
  
  --primary-rose: #e11d48;
  --primary-rose-glow: rgba(225, 29, 72, 0.12);
  --secondary-champagne: #d97706;
  --secondary-champagne-light: rgba(217, 119, 6, 0.08);
  --slate-charcoal: #27272a;
  
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  
  --shadow-sm: 0 4px 6px -1px rgba(24, 24, 27, 0.03), 0 2px 4px -1px rgba(24, 24, 27, 0.02);
  --shadow-md: 0 10px 15px -3px rgba(24, 24, 27, 0.04), 0 4px 6px -2px rgba(24, 24, 27, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(24, 24, 27, 0.06), 0 10px 10px -5px rgba(24, 24, 27, 0.03);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Core Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-porcelain);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(225, 29, 72, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(217, 119, 6, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

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

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 9999px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--slate-charcoal);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(39, 39, 42, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-rose);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.3);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--slate-charcoal);
}

.btn-secondary:hover {
  border-color: var(--primary-rose);
  background: rgba(225, 29, 72, 0.05);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--primary-rose), #be123c);
  color: white;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.5);
}

/* Slimmed & Proper Header Section */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(24, 24, 27, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.65rem 2rem; /* Slimmer, cleaner padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 26px; /* Optimized smaller scale */
  height: 26px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem; /* Balanced layout ratio */
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--slate-charcoal);
  line-height: 1;
}

.logo-text span {
  color: var(--primary-rose);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem; /* Elegant, properly spaced */
  list-style: none;
}

.nav-link {
  font-size: 0.88rem; /* Highly legible and slim */
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.2rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-rose);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--slate-charcoal);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cart-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; /* Slimmed down */
  height: 38px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.cart-toggle-btn:hover {
  background: rgba(225, 29, 72, 0.08);
}

.cart-count-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--primary-rose);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--slate-charcoal);
  transition: var(--transition-smooth);
}

/* Global Footer Styles */
.footer {
  background-color: var(--slate-charcoal);
  color: #e4e4e7;
  padding: 5rem 2rem 2rem;
  margin-top: 8rem;
  border-top: 4px solid var(--secondary-champagne);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand-info h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.footer-brand-info p {
  color: #a1a1aa;
  margin-bottom: 1.5rem;
}

.footer-address-block {
  font-style: normal;
  color: #d4d4d8;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-address-block span {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-column-title {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.75rem;
}

.footer-list a {
  color: #a1a1aa;
  font-size: 0.95rem;
}

.footer-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-newsletter p {
  color: #a1a1aa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-form {
  display: flex;
  gap: 0.5rem;
}

.footer-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  color: white;
  font-size: 0.9rem;
  outline: none;
}

.footer-form input:focus {
  border-color: var(--primary-rose);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #71717a;
}

/* Glass Cart Side Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 24, 27, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2010;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-item {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 1rem;
  align-items: center;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f1f1;
}

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

.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-charcoal);
}

.cart-item-price {
  color: var(--primary-rose);
  font-weight: 500;
  font-size: 0.9rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.cart-item-remove:hover {
  color: var(--primary-rose);
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(250, 247, 247, 0.8);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Glass Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 650px;
  margin: 0 auto;
  z-index: 1500;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.92);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cookie-content strong {
  color: var(--slate-charcoal);
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Grid & Hero Layout Layouts */
.hero-section {
  padding: 8.5rem 2rem 5rem; /* Properly slimmed padding offset */
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  max-width: 620px;
}

.hero-tagline {
  color: var(--primary-rose);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  color: var(--slate-charcoal);
  margin-bottom: 1.5rem;
}

.hero-title span {
  font-style: italic;
  font-weight: 400;
  color: var(--secondary-champagne);
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

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

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  padding: 1.25rem;
  max-width: 250px;
  border-radius: 16px;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.9);
}

.hero-floating-badge-icon {
  background: var(--secondary-champagne-light);
  color: var(--secondary-champagne);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-floating-badge-text h4 {
  font-size: 0.95rem;
  color: var(--slate-charcoal);
  font-weight: 600;
}

.hero-floating-badge-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Feature Showcase Section */
.section {
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  color: var(--primary-rose);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.6rem;
  color: var(--slate-charcoal);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-card {
  padding: 3rem 2.25rem;
  text-align: left;
  border-radius: 20px;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background-color: var(--secondary-champagne-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--secondary-champagne);
}

.feature-card h3 {
  font-size: 1.4rem;
  color: var(--slate-charcoal);
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Products Catalog Card Display */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  border-radius: 20px;
}

.product-image-container {
  position: relative;
  height: 280px;
  width: 100%;
  overflow: hidden;
  background: #f4f2f2;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-rose);
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.product-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.product-spec-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.product-price {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--slate-charcoal);
  font-size: 1.15rem;
}

.product-title {
  font-size: 1.4rem;
  color: var(--slate-charcoal);
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-actions {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.75rem;
}

/* Product Detail Page Specifics */
.detail-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  padding-top: 7.5rem; /* Adjusted for slim header */
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-main-img {
  width: 100%;
  height: 540px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.detail-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  height: 100px;
}

.detail-thumb.active {
  border-color: var(--primary-rose);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 2.8rem;
  color: var(--slate-charcoal);
  margin-bottom: 1rem;
}

.detail-price-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-rose);
}

.detail-stock-badge {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(21, 128, 61);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.detail-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
}

.detail-meta-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.detail-meta-table td.label {
  font-weight: 600;
  color: var(--slate-charcoal);
  width: 40%;
}

.detail-meta-table td.value {
  color: var(--text-secondary);
}

.detail-buying-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Interactive Audit / Lab Customizer Section */
.audit-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  border-radius: 28px;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-charcoal);
}

.form-control {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--slate-charcoal);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary-rose);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-rose-glow);
}

/* Design Your Vanity Stack interactive layout */
.lab-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: flex-start;
}

.lab-preview-box {
  height: 540px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #faf0f0;
  border: 1px solid var(--glass-border-hover);
  box-shadow: var(--shadow-lg);
}

.lab-preview-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 5rem;
  gap: 0.5rem;
}

.lab-canvas-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
}

.lab-canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(250, 247, 247, 0.8) 10%, rgba(250, 247, 247, 0.1) 100%);
  z-index: 2;
  pointer-events: none;
}

.canvas-tray-element {
  width: 280px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -10px 20px rgba(0, 0, 0, 0.03),
    0 10px 25px rgba(225, 29, 72, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-charcoal);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0 1rem;
  height: 48px;
  transition: var(--transition-smooth);
  animation: stackIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  z-index: 10;
}

/* Polished metallic knob in the center */
.canvas-tray-element::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 6px;
  background: linear-gradient(135deg, var(--secondary-champagne), #b45309);
  border-radius: 99px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Premium dynamic customization classes for realistic layout display */
.tray-luxe-v9 {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.7);
}
.tray-uv-cleanse {
  background: rgba(243, 232, 255, 0.45);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 
    inset 0 0 12px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 8px 24px rgba(168, 85, 247, 0.15);
}
.tray-uv-cleanse::before {
  content: '⚡ UV-C STERILE';
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.55rem;
  color: #a855f7;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tray-chillbeauty {
  background: rgba(224, 242, 254, 0.45);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 
    inset 0 0 12px rgba(14, 165, 233, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 8px 24px rgba(14, 165, 233, 0.15);
}
.tray-chillbeauty::before {
  content: '❄️ 10°C';
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.55rem;
  color: #0284c7;
  font-weight: 700;
}
.tray-maggrid {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(217, 119, 6, 0.4);
  background-image: linear-gradient(90deg, transparent 24%, rgba(217, 119, 6, 0.12) 25%, rgba(217, 119, 6, 0.12) 26%, transparent 27%, transparent 49%, rgba(217, 119, 6, 0.12) 50%, rgba(217, 119, 6, 0.12) 51%, transparent 52%);
}
.tray-velvettouch {
  background: rgba(63, 63, 70, 0.9);
  border-color: rgba(113, 113, 122, 0.9);
  color: #f4f4f5 !important;
}
.tray-velvettouch::after {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}
.tray-rotary360 {
  background: rgba(254, 242, 242, 0.6);
  border-color: rgba(225, 29, 72, 0.4);
  border-radius: 50px / 12px;
}

@keyframes stackIn {
  from {
    transform: translateY(-100px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.lab-control-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lab-option-card {
  padding: 1.25rem;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lab-option-card:hover {
  border-color: var(--primary-rose);
}

.lab-option-card.selected {
  border-color: var(--primary-rose);
  background: var(--primary-rose-glow);
}

/* Reviews / Testimonials */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.review-card {
  padding: 2.5rem;
  border-radius: 20px;
}

.review-rating {
  color: var(--secondary-champagne);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.review-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--slate-charcoal);
  margin-bottom: 2rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author-info h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-charcoal);
}

.review-author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Legal Pages Styling */
.legal-page {
  max-width: 850px;
  margin: 7.5rem auto 4rem; /* Proper adjusted margin */
  padding: 0 2rem;
}

.legal-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.legal-date {
  color: var(--primary-rose);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.legal-content h2 {
  font-size: 1.8rem;
  color: var(--slate-charcoal);
  margin: 2.5rem 0 1rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  top: 5rem; /* Slimmed position */
  right: 2rem;
  z-index: 2100;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: var(--slate-charcoal);
  color: white;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.visible {
  transform: translateX(0);
}

/* Modal Popup Success */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 24, 27, 0.4);
  backdrop-filter: blur(8px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 90%;
  max-width: 500px;
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: rgb(34, 197, 94);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.modal-box h3 {
  font-size: 1.8rem;
  color: var(--slate-charcoal);
  margin-bottom: 1rem;
}

.modal-box p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Mobile Responsiveness Rules */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 8rem;
    gap: 3rem;
  }
  .hero-visual {
    order: -1;
  }
  .hero-image-wrapper {
    max-width: 100%;
    height: 400px;
  }
  .feature-grid, .product-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .detail-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .lab-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .feature-grid, .product-grid, .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1.25rem;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
}