/* ============================================================
   FAIZAN DIAMOND PAINTS — Lustre & Facet Design System
   Global Stylesheet · public/style.css
   ============================================================ */

/* ── 1. Google Fonts are loaded in index.html ── */

/* ── 2. CSS Custom Properties (Design Tokens) ── */
:root {
  /* Surface */
  --surface:                  #f9f9ff;
  --surface-dim:              #d8d9e2;
  --surface-bright:           #f9f9ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low:    #f2f3fc;
  --surface-container:        #ecedf6;
  --surface-container-high:   #e6e8f1;
  --surface-container-highest:#e1e2eb;
  --on-surface:               #191c22;
  --on-surface-variant:       #414753;
  --inverse-surface:          #2e3037;
  --inverse-on-surface:       #eff0f9;
  --outline:                  #727784;
  --outline-variant:          #c1c6d5;
  --surface-tint:             #005cba;

  /* Primary — Diamond Blue */
  --primary:                  #004e9f;
  --on-primary:               #ffffff;
  --primary-container:        #0066cc;
  --on-primary-container:     #dfe8ff;
  --inverse-primary:          #aac7ff;
  --primary-fixed:            #d7e3ff;
  --primary-fixed-dim:        #aac7ff;
  --on-primary-fixed:         #001b3e;
  --on-primary-fixed-variant: #00458e;

  /* Secondary — Warm Copper */
  --secondary:                #85532e;
  --on-secondary:             #ffffff;
  --secondary-container:      #febb8e;
  --on-secondary-container:   #794925;
  --secondary-fixed:          #ffdcc6;
  --secondary-fixed-dim:      #fbb88b;
  --on-secondary-fixed:       #301400;
  --on-secondary-fixed-variant:#693c19;

  /* Tertiary — Mountain Orange */
  --tertiary:                 #883700;
  --on-tertiary:              #ffffff;
  --tertiary-container:       #af4900;
  --on-tertiary-container:    #ffe3d6;
  --tertiary-fixed:           #ffdbcb;
  --tertiary-fixed-dim:       #ffb692;
  --on-tertiary-fixed:        #341100;
  --on-tertiary-fixed-variant:#793000;

  /* Error */
  --error:                    #ba1a1a;
  --on-error:                 #ffffff;
  --error-container:          #ffdad6;
  --on-error-container:       #93000a;

  /* Background */
  --background:               #f9f9ff;
  --on-background:            #191c22;
  --surface-variant:          #e1e2eb;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Border Radius */
  --radius-sm:   0.25rem;
  --radius:      0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Spacing */
  --unit:            8px;
  --container-max:   1280px;
  --gutter:          24px;
  --margin-desktop:  64px;
  --margin-mobile:   20px;

  /* Glass */
  --glass-bg:       rgba(255, 255, 255, 0.65);
  --glass-bg-dark:  rgba(255, 255, 255, 0.12);
  --glass-border:   rgba(255, 255, 255, 0.35);
  --glass-blur:     blur(18px);
  --glass-blur-sm:  blur(10px);

  /* Shadows */
  --shadow-xs:    0 1px 3px rgba(0, 78, 159, 0.06);
  --shadow-sm:    0 2px 8px  rgba(0, 78, 159, 0.08);
  --shadow-md:    0 8px 24px rgba(0, 78, 159, 0.12);
  --shadow-lg:    0 20px 48px rgba(0, 78, 159, 0.15);
  --shadow-glass: 0 8px 32px rgba(0, 78, 159, 0.10);
  --shadow-blue:  0 0 0 3px rgba(0, 102, 204, 0.25);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition:        250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

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

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

ul, ol {
  list-style: none;
}

/* ── 4. Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface-container-low);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-container);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ── 5. Selection ── */
::selection {
  background: var(--primary-fixed);
  color: var(--on-primary-fixed);
}

/* ── 6. Typography Scale ── */
.text-headline-xl {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-headline-lg {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
}

.text-headline-md {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.4;
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.text-body-md {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.text-label-md {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.text-label-sm {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

/* ── 7. Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-desktop);
}

.section {
  padding-block: calc(var(--unit) * 10);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
}

/* ── 8. Keyframe Animations ── */

/* Float — hero paint can */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  33%       { transform: translateY(-14px) rotate(1.5deg); }
  66%       { transform: translateY(-6px) rotate(-0.5deg); }
}

/* Gentle float for chips */
@keyframes floatChip {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* Fade up entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in from left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in from right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Shimmer sweep (buttons) */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Pulsing ring (color swatches) */
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 102, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

/* Gradient flow (hero background) */
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Paint stroke underline */
@keyframes paintStroke {
  from { width: 0; }
  to   { width: 100%; }
}

/* Diamond spin (decorative) */
@keyframes diamondSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Counter pop */
@keyframes counterPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Stagger fade for card grid */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Ripple on click */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Slide in badge */
@keyframes slideBadge {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Heartbeat for favorites */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25%       { transform: scale(1.3); }
  50%       { transform: scale(0.95); }
  75%       { transform: scale(1.2); }
}

/* Glow pulse for CTA */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(0, 102, 204, 0); }
}

/* Slow rotate — diamond bg pattern */
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Navbar entrance */
@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 9. Scroll-triggered reveal classes ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for children */
.stagger > *:nth-child(1)  { transition-delay: 0ms; }
.stagger > *:nth-child(2)  { transition-delay: 80ms; }
.stagger > *:nth-child(3)  { transition-delay: 160ms; }
.stagger > *:nth-child(4)  { transition-delay: 240ms; }
.stagger > *:nth-child(5)  { transition-delay: 320ms; }
.stagger > *:nth-child(6)  { transition-delay: 400ms; }
.stagger > *:nth-child(7)  { transition-delay: 480ms; }
.stagger > *:nth-child(8)  { transition-delay: 560ms; }

/* ── 10. Glassmorphism Utilities ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.glass-sm {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-md);
}

.glass-dark {
  background: rgba(25, 28, 34, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

/* ── 11. Diamond Pattern Overlay ── */
.diamond-pattern {
  position: relative;
}

.diamond-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2 L38 20 L20 38 L2 20 Z' fill='none' stroke='%23004e9f' stroke-width='0.5' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── 12. Component: Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: 2px solid transparent;
  user-select: none;
}

/* Ripple effect base */
.btn::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.btn:active::after {
  animation: ripple 0.4s ease-out;
}

/* Primary button */
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 78, 159, 0.35);
}

.btn-primary:hover {
  background: var(--primary-container);
  border-color: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 78, 159, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 78, 159, 0.3);
}

/* Shimmer on primary button */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  background-position: -200% center;
  transition: none;
}

.btn-primary:hover::before {
  animation: shimmer 0.6s ease forwards;
}

/* Outlined button */
.btn-outline {
  background: transparent;
  color: var(--on-surface);
  border-color: var(--outline-variant);
}

.btn-outline:hover {
  background: var(--surface-container-low);
  border-color: var(--outline);
  transform: translateY(-2px);
}

/* Secondary (copper) button */
.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--on-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(133, 83, 46, 0.3);
}

/* Small button */
.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* Icon-only button */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  justify-content: center;
}

/* Glow animation for main CTA */
.btn-glow {
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* ── 13. Component: Chip / Badge ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--outline-variant);
  color: var(--on-surface-variant);
  background: var(--surface-container-lowest);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-fixed);
}

.chip.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 78, 159, 0.3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-orange {
  background: rgba(136, 55, 0, 0.1);
  color: var(--tertiary);
  border: 1px solid rgba(136, 55, 0, 0.2);
}

.badge-blue {
  background: var(--primary-fixed);
  color: var(--primary);
  border: 1px solid rgba(0, 78, 159, 0.2);
}

/* ── 14. Component: Search Input ── */
.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--outline-variant);
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--transition);
  width: 200px;
}

.search-input input {
  border: none;
  background: transparent;
  outline: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
}

.search-input:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-blue);
  width: 240px;
}

.search-input svg {
  flex-shrink: 0;
  color: var(--outline);
}

/* ── 15. Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  padding-inline: var(--margin-desktop);
  background: rgba(249, 249, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-xs);
  animation: navSlideDown 0.5s ease both;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(249, 249, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  gap: 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.navbar__logo:hover {
  opacity: 0.85;
}

.navbar__logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__link {
  position: relative;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  border-radius: var(--radius);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.navbar__link:hover {
  color: var(--primary);
  background: var(--primary-fixed);
}

.navbar__link:hover::after {
  transform: scaleX(1);
}

.navbar__link.active {
  color: var(--primary);
  font-weight: 600;
}

.navbar__link.active::after {
  transform: scaleX(1);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--on-surface-variant);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.navbar__cart:hover {
  background: var(--surface-container);
  color: var(--primary);
}

.navbar__cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tertiary-container);
  color: var(--on-tertiary);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 16. Hero Section ── */
.hero {
  min-height: 100vh;
  max-height: 800px;
  display: flex;
  align-items: center;
  padding-top: 68px;
  background: linear-gradient(
    135deg,
    #eef2ff 0%,
    #f4f8ff 30%,
    #f9f9ff 60%,
    #f0f5ff 100%
  );
  background-size: 300% 300%;
  animation: gradientFlow 10s ease infinite;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 3 L45 24 L24 45 L3 24 Z' fill='none' stroke='%23004e9f' stroke-width='0.6' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-desktop);
  position: relative;
  z-index: 1;
}

.hero__content {
  animation: fadeInLeft 0.7s ease both;
}

.hero__badge {
  animation: slideBadge 0.6s ease both 0.1s;
  margin-bottom: 20px;
}

.hero__badge::before {
  content: '✦';
  margin-right: 4px;
  font-size: 10px;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--on-surface);
  animation: fadeInUp 0.7s ease both 0.2s;
  margin-bottom: 16px;
}

.hero__headline-accent {
  color: var(--primary);
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 16px;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 440px;
  animation: fadeInUp 0.7s ease both 0.35s;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease both 0.5s;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 32px;
  animation: fadeInUp 0.7s ease both 0.65s;
}

.hero__stat {
  border-left: 3px solid var(--outline-variant);
  padding-left: 16px;
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 500;
}

/* Hero Visual */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 0.7s ease both 0.3s;
}

.hero__can {
  width: 300px;
  height: auto;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 28px 44px rgba(0, 78, 159, 0.28));
  position: relative;
  z-index: 2;
}

.hero__can-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  /* No play/pause — purely decorative animation */
  pointer-events: none;
  /* Remove any browser-injected video controls chrome */
  outline: none;
  background: transparent;
  mix-blend-mode: multiply;  /* dissolves light bg against hero gradient */
  transition: transform var(--transition-slow);
}

/* Suppress WebKit/Blink built-in media overlay controls */
.hero__can-img::-webkit-media-controls          { display: none !important; }
.hero__can-img::-webkit-media-controls-enclosure { display: none !important; }

.hero__can:hover .hero__can-img {
  transform: scale(1.04);
}

/* Color chips floating around can */
.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  min-width: 160px;
  z-index: 3;
}

.hero__chip--sage {
  top: 18%;
  right: 4%;
  animation: floatChip 3.5s ease-in-out infinite;
}

.hero__chip--crystal {
  bottom: 22%;
  left: 4%;
  animation: floatChip 4s ease-in-out infinite 0.8s;
}

.hero__chip-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.6);
}

.hero__chip-info {
  flex: 1;
}

.hero__chip-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1;
  margin-bottom: 3px;
}

.hero__chip-sub {
  font-size: 11px;
  color: var(--on-surface-variant);
  font-weight: 400;
}

/* Floating action button */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 78, 159, 0.4);
  cursor: pointer;
  border: none;
  z-index: 999;
  transition: all var(--transition);
  animation: glowPulse 3s ease-in-out infinite;
}

.fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 78, 159, 0.5);
}

/* ── 17. Section Heading ── */
.section-heading {
  margin-bottom: 40px;
}

.section-heading__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--on-surface);
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.section-heading__title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--tertiary-container), var(--secondary-container));
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.section-heading__title.visible::after {
  width: 60%;
  animation: paintStroke 1s ease forwards;
}

.section-heading__sub {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-top: 14px;
}

/* ── 18. Color Discovery ── */
.color-discovery {
  padding-block: calc(var(--unit) * 12);
  background: var(--surface-container-lowest);
}

.discovery__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.discovery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── 19. Product Card ── */
.product-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  /* No box-shadow — clean flat look */
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.14);
}

/*
  Image wrap — pure white background.
  isolation: isolate contains the color blend so it NEVER
  bleeds out to colour the white card background.
*/
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3.6;
  overflow: hidden;
  background: #ffffff;
  isolation: isolate;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Bucket zone — centres the image */
.product-card__bucket-zone {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
  Bucket image:
  1. grayscale(100%)  — strip all original colour so the tint
                        overlay drives the final hue cleanly.
  2. contrast(0.55)   — compress the tonal range toward the
                        midpoint → flattens 3-D shading/reflections.
  3. brightness(1.12) — lift the compressed midtones toward white
                        so the mix-blend-mode: color overlay reads
                        correctly at full saturation.
  4. No mix-blend-mode on the image itself — white areas remain
     white and carry the white card background through.
*/
.product-card__bucket-img {
  width: 74%;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(100%) contrast(0.55) brightness(1.12);
  transition: transform var(--transition-slow);
  margin-top: -4%;
}

.product-card:hover .product-card__bucket-img {
  transform: scale(1.07) translateY(-7px);
}

/*
  Colour tint overlay — mix-blend-mode: color
  ─────────────────────────────────────────────
  color blend = H(overlay) + S(overlay) + L(backdrop)
  ┌──────────────────────────────────────────────────┐
  │ White card background (L = 1.0):                 │
  │   result = H+S from product.color, L = 1.0       │
  │   → pure white  ✓  background stays white        │
  │                                                  │
  │ Bucket body pixels (L ≈ 0.4–0.65 after filter):  │
  │   result = product.color at that luminance        │
  │   → flat solid-ish color matching the swatch ✓   │
  └──────────────────────────────────────────────────┘
*/
.product-card__color-tint {
  display: block;           /* re-enabled */
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: color;    /* key: preserves luminance of backdrop */
  opacity: 1;               /* full strength for clean flat color */
  transition: opacity var(--transition);
}

.product-card:hover .product-card__color-tint {
  opacity: 0.92;
}

.product-card__bg-glow { display: none; }

/* Color swatch dot */
.product-card__swatch {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition-spring);
  z-index: 5;
}

.product-card:hover .product-card__swatch {
  transform: scale(1.3);
}

/* Wishlist button */
.product-card__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all var(--transition);
  color: var(--outline);
  z-index: 5;
}

.product-card__wish:hover {
  transform: scale(1.12);
  background: white;
  color: #e53935;
}

.product-card__wish.wished {
  color: #e53935;
  animation: heartbeat 0.4s ease;
}

/* Card body */
.product-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 5px;
  line-height: 1.3;
}

/* Type tag — pill chip, colored per product via inline style */
.product-card__type {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Rs. price */
.product-card__price {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.01em;
}

.product-card__price-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--on-surface-variant);
  display: block;
  margin-bottom: 1px;
}

/* Add-to-cart button */
.product-card__add {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--outline-variant);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all var(--transition-spring);
  flex-shrink: 0;
}

.product-card__add:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: rotate(90deg) scale(1.12);
  box-shadow: 0 4px 14px rgba(0, 78, 159, 0.4);
}

/* Load More */
.load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.load-more__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: var(--radius);
  border: 1.5px solid var(--outline-variant);
  background: var(--surface-container-lowest);
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
}

.load-more__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-fixed);
  transform: translateY(-2px);
}

/* ── 20. Built for Peaks ── */
.peaks {
  padding-block: calc(var(--unit) * 14);
  background: linear-gradient(180deg, var(--surface-container-low) 0%, var(--background) 100%);
}

.peaks__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-desktop);
}

.peaks__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 480px;
  flex-shrink: 0;
}

.peaks__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.peaks__image-wrap:hover img {
  transform: scale(1.05);
}

.peaks__overlay-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.peaks__overlay-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.peaks__overlay-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.peaks__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.peaks__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.2;
}

.peaks__description {
  font-size: 15px;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.peaks__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.peaks__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.peaks__feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--transition-spring);
}

.peaks__feature:hover .peaks__feature-icon {
  background: var(--primary);
  transform: scale(1.15);
}

.peaks__feature:hover .peaks__feature-icon svg {
  color: white;
}

.peaks__feature-icon svg {
  color: var(--primary);
  transition: color var(--transition-fast);
}

.peaks__feature-text {
  font-size: 15px;
  color: var(--on-surface-variant);
  font-weight: 500;
  line-height: 1.5;
}

/* ── 21. Footer ── */
.footer {
  background: var(--on-surface);
  color: var(--inverse-on-surface);
  /* padding-block removed — multi-column footer__main controls its own spacing */
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 3 L45 24 L24 45 L3 24 Z' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-desktop);
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 28px;
}

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-block: 24px;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer__link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.footer__link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.footer__dot {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer__social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition);
}

.footer__social-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  transform: translateY(-3px);
}

/* ── 22. Responsive ── */
@media (max-width: 1024px) {
  .navbar {
    padding-inline: var(--margin-mobile);
  }

  .hero__inner {
    padding-inline: var(--margin-mobile);
    gap: 32px;
  }

  .discovery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .peaks__inner {
    padding-inline: var(--margin-mobile);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    max-height: none;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 40px;
  }

  .hero__description {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    height: 340px;
  }

  .hero__can {
    width: 200px;
  }

  .discovery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .peaks__inner {
    grid-template-columns: 1fr;
  }

  .peaks__image-wrap {
    height: 340px;
  }

  .navbar__nav {
    display: none;
  }

  .color-discovery {
    padding-inline: 0;
  }
  .footer__inner {
    padding-inline: var(--margin-mobile);
  }

  .container {
    padding-inline: 16px;
  }
}

@media (max-width: 480px) {
  .discovery__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__can {
    width: 160px;
  }
}

/* ══════════════════════════════════════════════════════
   UX ENHANCEMENT LAYER
   ══════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--tertiary-container) 60%, var(--secondary-container) 100%);
  z-index: 9999;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* ── Scroll-To-Top Button ── */
.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: white;
  border: 1.5px solid var(--outline-variant);
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 998;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 78, 159, 0.3);
}

/* ── Mobile Hamburger ── */
.navbar__hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  color: var(--on-surface);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.navbar__hamburger:hover {
  background: var(--surface-container);
  color: var(--primary);
}

/* ── Mobile Nav Drawer ── */
.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

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

.mobile-nav__drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100dvh;
  background: white;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: right var(--transition-spring);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav__drawer {
  right: 0;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--outline-variant);
}

.mobile-nav__logo {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}

.mobile-nav__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  flex-shrink: 0;
}

.mobile-nav__close:hover {
  background: var(--error-container);
  color: var(--error);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding: 16px 12px;
}

.mobile-nav__link {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--on-surface-variant);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: block;
  text-decoration: none;
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--primary);
  background: var(--primary-fixed);
}

.mobile-nav__footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--outline-variant);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav__footer .btn {
  width: 100%;
  justify-content: center;
}

/* ── Toast Notifications ── */
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(-28px) scale(0.94); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: scale(1); max-height: 80px; margin-bottom: 10px; }
  to   { opacity: 0; transform: scale(0.92); max-height: 0; margin-bottom: 0; }
}

.toast-container {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 78, 159, 0.12), 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0, 78, 159, 0.08);
  border-left: 4.5px solid var(--toast-color, #1a5fc4);
  min-width: 280px;
  max-width: 340px;
  animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  pointer-events: auto;
  transition: all 0.3s;
}

.toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 78, 159, 0.16);
}

.toast__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.toast__body {
  flex: 1;
  min-width: 0;
}

.toast__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.3;
  margin-bottom: 2px;
}

.toast__sub {
  font-size: 12px;
  color: var(--on-surface-variant);
}

.toast__close {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--surface-container);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  flex-shrink: 0;
  transition: all var(--transition-fast);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.toast__close:hover {
  background: var(--error-container);
  color: var(--error);
}

/* ── Hero Trust Bar ── */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 32px;
  animation: fadeInUp 0.7s ease both 0.75s;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 500;
  padding-inline: 12px;
}

.hero__trust-item:first-child {
  padding-left: 0;
}

.hero__trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tertiary-container);
  flex-shrink: 0;
}

.hero__trust-divider {
  width: 1px;
  height: 16px;
  background: var(--outline-variant);
  flex-shrink: 0;
}

/* ── Product Card Badge — harmonious (color set via inline style per card) ── */
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  /* background + color set via inline style so each badge matches its card */
}

/* Fallback classes (overridden by inline style) */
.product-card__badge--new     { background: rgba(0, 78, 159, 0.15); color: #004e9f; }
.product-card__badge--popular { background: rgba(136, 55, 0, 0.14); color: #883700; }

/* ── Quick View overlay ── */
.product-card__hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  pointer-events: none;
  transition: background var(--transition);
}

.product-card:hover .product-card__hover-overlay {
  background: rgba(0, 0, 0, 0.04);
}

.product-card__quick-view {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
}

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

/* ── Testimonials Section ── */
.testimonials {
  padding-block: calc(var(--unit) * 12);
  background: linear-gradient(180deg, #eef4ff 0%, var(--surface-container-lowest) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 3 L45 24 L24 45 L3 24 Z' fill='none' stroke='%23004e9f' stroke-width='0.6' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  pointer-events: none;
}

.testimonials__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-desktop);
  position: relative;
  z-index: 1;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 72px;
  line-height: 1;
  color: var(--primary-fixed);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 78, 159, 0.10);
  border-color: rgba(0, 78, 159, 0.09);
}

.testimonial-card__stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--on-surface-variant);
  margin-bottom: 22px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 2px;
}

.testimonial-card__loc {
  font-size: 11px;
  color: var(--on-surface-variant);
  font-weight: 400;
}

/* ── Newsletter Section ── */
.newsletter {
  padding-block: calc(var(--unit) * 9);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 3 L45 24 L24 45 L3 24 Z' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  pointer-events: none;
}

.newsletter::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.newsletter__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.newsletter__content {
  flex: 1;
  min-width: 0;
}

.newsletter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.newsletter__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  line-height: 1.25;
}

.newsletter__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 400px;
}

.newsletter__form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.newsletter__input {
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  width: 270px;
  outline: none;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.50);
}

.newsletter__input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
}

.newsletter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  background: white;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.newsletter__btn:hover {
  background: var(--primary-fixed-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.newsletter__privacy {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Footer — Multi-column Redesign ── */
/* Override single-column footer layout */
.footer__main {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 48px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: calc(var(--unit) * 9) var(--margin-desktop) calc(var(--unit) * 7);
  position: relative;
  z-index: 1;
}

.footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.65;
  max-width: 230px;
}

.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  transition: color var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.footer__col-link:hover {
  color: white;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer__contact-icon {
  width: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  text-align: center;
}

.footer__contact-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 20px var(--margin-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.footer__bottom-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__bottom-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__bottom-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Focus Visible (Accessibility) ── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ── Section Spacing Consistency ── */
.color-discovery {
  padding-block: calc(var(--unit) * 12);
}

/* ── Responsive: new elements ── */
@media (max-width: 1024px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-inline: var(--margin-mobile);
  }

  .newsletter__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-inline: var(--margin-mobile);
  }

  .newsletter__form {
    width: 100%;
  }

  .newsletter__input {
    width: 100%;
    flex: 1;
  }

  .testimonials__inner {
    padding-inline: var(--margin-mobile);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar__hamburger {
    display: flex;
  }

  .navbar__logo {
    gap: 6px;
  }

  .navbar__brand-name {
    font-size: 14.5px;
  }

  .navbar__logo-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .navbar__logo {
    gap: 4px;
  }

  .navbar__brand-name {
    font-size: 12.5px;
  }

  .navbar__logo-icon {
    width: 24px;
    height: 24px;
  }

  .navbar__hamburger {
    margin-left: 4px;
  }

  .navbar__actions > .btn {
    padding: 6px 12px !important;
    font-size: 12.5px !important;
  }
}

@media (max-width: 768px) {
  .navbar__actions .search-input {
    display: none;
  }

  /* Keep login / user area compact on mobile */
  .navbar__actions > .btn {
    padding: 7px 14px !important;
    font-size: 13px !important;
  }

  .navbar__user-name {
    display: none;
  }

  .navbar__user .btn {
    padding: 7px 14px !important;
    font-size: 13px !important;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: calc(var(--unit) * 6);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-inline: var(--margin-mobile);
  }

  .footer__bottom-links {
    gap: 16px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .studio-section {
    display: none !important;
  }

  .hero__trust {
    justify-content: center;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: 100%;
    min-width: unset;
  }

  .scroll-top {
    bottom: 84px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Override old single-column footer styles ── */
/* The new footer uses footer__main / footer__bottom instead of footer__inner */
.footer__inner {
  /* Keep as generic wrapper — padding handled by footer__main and footer__bottom */
  padding: 0;
}
/* Old brand/copy/divider/links/socials were centered; new layout handles positioning */
.footer__brand {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.footer__copy   { display: none; }
.footer__divider { display: none; }
.footer__links  { display: none; }
.footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

/* ══════════════════════════════════════════════════════
   HIGH-END DYNAMIC ANIMATIONS & PAINT STUDIO LAYER
   ══════════════════════════════════════════════════════ */

/* ── 3D Parallax GPU-Accelerated Shifts ── */
.hero__can {
  transform: translate3d(calc(var(--mx) * -42px), calc(var(--my) * -42px), 0) rotate(calc(var(--mx) * -3deg)) !important;
  transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform;
}

.hero__chip--sage {
  transform: translate3d(calc(var(--mx) * 55px), calc(var(--my) * 55px), 0) !important;
  transition: transform 0.26s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform;
}

.hero__chip--crystal {
  transform: translate3d(calc(var(--mx) * -24px), calc(var(--my) * -24px), 0) !important;
  transition: transform 0.26s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform;
}

/* ── Wet Paintbrush Highlight Underline ── */
.brush-highlight-stroke {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 18px;
  pointer-events: none;
  overflow: visible;
}

.brush-highlight-stroke path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawStroke 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.8s;
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

.hero__headline-accent {
  position: relative;
  display: inline-block;
  z-index: 1;
}

/* ── Cart Pop Animation ── */
.navbar__cart-badge.pop {
  animation: badgePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.45) both !important;
}

@keyframes badgePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.6); background-color: var(--secondary-container); color: var(--on-secondary-container); }
  100% { transform: scale(1); }
}

/* ── Add to Cart Paint Particles ── */
.paint-particle {
  pointer-events: none;
  will-change: transform, opacity;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ── Paint Splash Studio Styling ── */
.studio-section {
  padding-block: calc(var(--unit) * 12);
  background: linear-gradient(180deg, var(--surface-container-lowest) 0%, var(--surface-container-low) 100%);
  position: relative;
}

.studio-container {
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.studio-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--outline-variant);
  padding-bottom: 12px;
}

.studio-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--on-surface-variant);
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.studio-tab-btn:hover {
  background: var(--surface-container);
  color: var(--primary);
}

.studio-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 78, 159, 0.25);
}

@media (max-width: 860px) {
  .studio-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .studio-sidebar {
    order: -1;
  }
}


/* ══════════════════════════════════════════════════════
   PHASE 2: SPLIT-SCREEN AUTHENTICATION PAGE LAYOUT
   ══════════════════════════════════════════════════════ */

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 130px 24px 80px 24px;
  background: radial-gradient(circle at 0% 0%, rgba(0, 78, 159, 0.07) 0%, transparent 45%), 
              radial-gradient(circle at 100% 100%, rgba(196, 98, 69, 0.05) 0%, transparent 45%), 
              var(--surface-container-low);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

.auth-container {
  width: 100%;
  max-width: 1000px;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.auth-cancel-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface-container-lowest);
  border: 1.5px solid var(--outline-variant);
  color: var(--on-surface-variant);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: all 0.25s ease;
}

.auth-cancel-btn:hover {
  background: var(--error);
  border-color: var(--error);
  color: white;
  transform: rotate(90deg);
  box-shadow: 0 4px 10px rgba(186, 26, 26, 0.25);
}

/* ── Left Column Styling ── */
.auth-left-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
  color: white;
  background: #001b3e;
}

.auth-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 78, 159, 0.4) 0%, rgba(0, 27, 62, 0.85) 100%);
  z-index: 1;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.auth-left-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbb88b;
  box-shadow: 0 0 8px #fbb88b;
  animation: pulseDot 1.8s infinite alternate;
}

.auth-quote-slider {
  margin-block: auto;
  position: relative;
  min-height: 180px;
}

.auth-quote-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.auth-quote-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.auth-quote {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.auth-quote-author {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.auth-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

.auth-spec-item {
  display: flex;
  flex-direction: column;
}

.auth-spec-num {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #ffdcc6;
  line-height: 1.2;
}

.auth-spec-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

/* ── Right Column Styling ── */
.auth-right-col {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.auth-header {
  margin-bottom: 24px;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
}

.auth-tabs {
  display: flex;
  background: var(--surface-container-high);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 26px;
  border: 1px solid var(--outline-variant);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Interactive Floating Input ── */
.input-float-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-md);
  background: white;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface);
  outline: none;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(0, 78, 159, 0.1);
}

.auth-input.error {
  border-color: var(--error) !important;
}

.auth-input ~ label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--on-surface-variant);
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
}

.auth-input:focus ~ label,
.auth-input:not(:placeholder-shown) ~ label,
.auth-input.error ~ label,
.auth-input.floated ~ label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  left: 12px;
  background: white;
  padding: 0 6px;
  color: var(--primary);
  font-weight: 700;
}

.auth-input.error ~ label {
  color: var(--error);
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s ease;
  z-index: 2;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

.field-error-msg {
  font-size: 11px;
  color: var(--error);
  font-weight: 700;
  margin-top: 5px;
  animation: shake 0.35s ease;
}

/* ── Custom Swat Selector ── */
.custom-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-md);
  background: white;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.auth-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(0, 78, 159, 0.1);
}

.auth-select.error {
  border-color: var(--error) !important;
}

.select-float-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--on-surface-variant);
  pointer-events: none;
  transition: all 0.22s ease;
}

.auth-select:focus ~ .select-float-label,
.auth-select.has-val ~ .select-float-label,
.auth-select.error ~ .select-float-label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  left: 12px;
  background: white;
  padding: 0 6px;
  color: var(--primary);
  font-weight: 700;
}

.select-arrow {
  position: absolute;
  right: 16px;
  color: var(--on-surface-variant);
  pointer-events: none;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.auth-select:focus ~ .select-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

/* ── Password Strength meter ── */
.password-strength-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.strength-bar-bg {
  height: 4px;
  background: var(--surface-container-highest);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.strength-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--on-surface-variant);
}

.forgot-pass-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.forgot-link-btn, .link-style-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s ease;
}

.forgot-link-btn:hover, .link-style-btn:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* ── Custom Styled Checkbox ── */
.auth-checkbox-field {
  margin-block: 4px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--on-surface-variant);
  line-height: 1.45;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-checkmark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--outline-variant);
  border-radius: 4px;
  background: white;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkbox-checkmark {
  border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkbox-checkmark {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 78, 159, 0.2);
}

.checkbox-checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkbox-checkmark::after {
  display: block;
}

/* ── Action Buttons ── */
.auth-submit-btn {
  padding-block: 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(0, 78, 159, 0.2);
  width: 100%;
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ── Mock OAuth section ── */
.auth-oauth-wrap {
  margin-top: 26px;
}

.oauth-divider {
  position: relative;
  text-align: center;
  margin-bottom: 18px;
}

.oauth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--outline-variant);
  z-index: 1;
}

.oauth-divider span {
  position: relative;
  background: var(--surface-container-low);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--outline);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}

/* Make divider transparent on white card */
.auth-right-col .oauth-divider span {
  background: #f6f7fa; /* Matches intermediate card mesh */
}

.oauth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--outline-variant);
  background: white;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all var(--transition);
}

.oauth-btn:hover {
  background: var(--surface-container-low);
  color: var(--primary);
  border-color: var(--outline);
}

.auth-footer-help {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.auth-footer-help p {
  margin: 0;
}

/* ── Animation Keyframes ── */
@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive Mobile Scale Adjustments ── */
@media (max-width: 860px) {
  .auth-page {
    padding: 100px 16px 60px 16px;
    align-items: flex-start;
  }
  
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 460px;
    min-height: auto;
  }
  
  .auth-left-col {
    display: none;
  }
  
  .auth-right-col {
    padding: 40px 24px;
    background: white;
  }
}


/* ══════════════════════════════════════════════════════
   WELCOME SECTION  (replaces hero when user is logged in)
   ══════════════════════════════════════════════════════ */

.welcome-section {
  position: relative;
  padding: 96px 24px 72px;
  text-align: center;
  background: #e6edf4;
  overflow: visible;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 78, 159, 0.08);
}

@keyframes gradientPulse {
  0% { opacity: 0.85; filter: blur(40px) saturate(1.1); }
  50% { opacity: 1; filter: blur(50px) saturate(1.3); }
  100% { opacity: 0.85; filter: blur(40px) saturate(1.1); }
}

.welcome-bg-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.welcome-bg-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(26, 95, 196, 0.14) 0%, transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(196, 98, 45, 0.14) 0%, transparent 50%),
              radial-gradient(circle at 60% 20%, rgba(123, 94, 167, 0.10) 0%, transparent 40%);
  animation: gradientPulse 12s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* ── Colour bar across the very top ── */
.welcome-paint-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg,
    #C4622D 0%,   #C4622D 16.5%,
    #1A5FC4 16.5%, #1A5FC4 33%,
    #2E7D35 33%,   #2E7D35 49.5%,
    #7B5EA7 49.5%, #7B5EA7 66%,
    #D4A017 66%,   #D4A017 82.5%,
    #0097A7 82.5%, #0097A7 100%
  );
}

/* ── Individual drips ── */
.paint-drip {
  position: absolute;
  top: 10px;
  width: 14px;
  border-radius: 0 0 7px 7px;
  animation: paintDrip 3.2s ease-in-out infinite;
  transform-origin: top center;
  box-shadow: inset -2px 0 4px rgba(255,255,255,0.22), 
              inset 2px 0 4px rgba(0,0,0,0.1),
              0 4px 10px rgba(0,0,0,0.08);
}

.paint-drip__drop {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: dropAppear 3.2s ease-in-out infinite;
  box-shadow: inset -2px -2px 6px rgba(0,0,0,0.12),
              inset 2px 2px 6px rgba(255,255,255,0.3),
              0 6px 14px rgba(0,0,0,0.1);
}

@keyframes paintDrip {
  0%   { height: 0;     opacity: 0; }
  15%  { opacity: 1; }
  55%  { height: 50px;  opacity: 1; }
  75%  { height: 54px;  opacity: 0.85; }
  100% { height: 0;     opacity: 0; }
}

@keyframes dropAppear {
  0%, 45%  { transform: translateX(-50%) scale(0); opacity: 0; }
  60%, 80% { transform: translateX(-50%) scale(1); opacity: 1; }
  100%     { transform: translateX(-50%) scale(0); opacity: 0; }
}

/* ── Content ── */
.welcome-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 95, 196, 0.05);
  border: 1.5px solid rgba(26, 95, 196, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1a5fc4;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(26, 95, 196, 0.04);
  transition: transform 0.25s ease;
}

.welcome-badge:hover {
  transform: translateY(-2px);
  background: rgba(26, 95, 196, 0.08);
  border-color: rgba(26, 95, 196, 0.2);
}

.welcome-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: badgeDotPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes badgeDotPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0px rgba(34, 197, 94, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0px rgba(34, 197, 94, 0); }
}

.welcome-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.welcome-name {
  background: linear-gradient(135deg, #1A5FC4 0%, #7B5EA7 50%, #C4622D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  position: relative;
}

.welcome-name::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #1A5FC4, #7B5EA7, #C4622D);
  border-radius: 2px;
  opacity: 0.3;
}

.welcome-sub {
  font-size: 1.05rem;
  color: #475569;
  margin: 0 auto 32px;
  max-width: 480px;
  line-height: 1.6;
  font-weight: 400;
}

/* ── Modern Search Bar ── */
.welcome-search-container {
  position: relative;
  max-width: 520px;
  margin: 20px auto 32px;
  width: 100%;
  display: flex;
  align-items: center;
  z-index: 10;
}

.welcome-search-icon {
  position: absolute;
  left: 18px;
  pointer-events: none;
  color: #64748b;
  transition: color 0.2s ease, transform 0.2s ease;
}

.welcome-search-input {
  width: 100%;
  padding: 14px 44px 14px 50px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 78, 159, 0.12);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 78, 159, 0.04), inset 0 2px 4px rgba(255,255,255,0.8);
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  color: #0f172a;
}

.welcome-search-input:focus {
  border-color: #1a5fc4;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(26, 95, 196, 0.12), 0 0 0 4px rgba(26, 95, 196, 0.15);
  transform: scale(1.015);
}

.welcome-search-input:focus + .welcome-search-icon {
  color: #1a5fc4;
  transform: scale(1.08);
}

.welcome-search-clear {
  position: absolute;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.welcome-search-clear:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

/* ── Suggestions Dropdown ── */
.welcome-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 78, 159, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 78, 159, 0.08);
  z-index: 1000;
  overflow-y: auto;
  max-height: 320px;
  text-align: left;
}

.welcome-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease, padding-left 0.2s ease;
  border-bottom: 1px solid rgba(0, 78, 159, 0.04);
}

.welcome-search-item:last-child {
  border-bottom: none;
}

.welcome-search-item:hover,
.welcome-search-item.highlighted {
  background: rgba(26, 95, 196, 0.06);
  padding-left: 20px;
}

.welcome-search-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1.5px solid rgba(255,255,255,0.9);
}

.welcome-search-item-info {
  display: flex;
  flex-direction: column;
}

.welcome-search-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.welcome-search-item-type {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 1px;
}

/* ── Stats Cards Grid ── */
.welcome-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.welcome-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(0, 78, 159, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 78, 159, 0.02), inset 0 2px 4px rgba(255,255,255,0.7);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.welcome-stat:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(26, 95, 196, 0.22);
  box-shadow: 0 16px 36px rgba(26, 95, 196, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.welcome-stat-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.welcome-stat--colors .welcome-stat-icon-wrap {
  background: rgba(26, 95, 196, 0.08);
  color: #1a5fc4;
}

.welcome-stat--processing .welcome-stat-icon-wrap {
  background: rgba(196, 98, 45, 0.08);
  color: #c4622d;
}

.welcome-stat:hover .welcome-stat-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.welcome-stat-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.welcome-stat-num {
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.welcome-stat--colors .welcome-stat-num {
  color: #1a5fc4;
}

.welcome-stat--processing .welcome-stat-num {
  color: #c4622d;
}

.welcome-stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

/* ══════════════════════════════════════════════════════
   AUTH API ERROR BANNER
   ══════════════════════════════════════════════════════ */
.auth-api-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff2f2;
  border: 1px solid #f5c6c6;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #b91c1c;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════
   NAVBAR USER CHIP + LOGOUT
   ══════════════════════════════════════════════════════ */
.navbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   COMPACT FOOTER (logged-in view)
   ══════════════════════════════════════════════════════ */
.footer--compact {
  background: var(--surface-dark, #0d1b2a);
  padding: 28px 24px 20px;
}

.footer__compact-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer__compact-inner .footer__brand {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer__compact-copy {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 500px) {
  .welcome-stat { padding: 0 16px; }
  .welcome-stat-divider { height: 28px; }
}
