/* ===== HomeLab 3D — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

@font-face {
  font-family: 'SF Pro Rounded Web';
  src: url('fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors — Light Clean */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFB;
  /* Very light gray for sections */
  --bg-tertiary: #F3F4F6;
  /* Inputs, secondary elements */
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-primary: #111827;
  /* Near black */
  --text-secondary: #4B5563;
  /* Cool gray */
  --text-tertiary: #9CA3AF;

  --accent: #00D64F;
  /* Bambu Green */
  --accent-hover: #059669;
  --accent-light: rgba(0, 214, 79, 0.08);
  --accent-glow: rgba(0, 214, 79, 0.15);

  --border: #E5E7EB;
  --border-hover: #D1D5DB;
  --border-active: var(--accent);

  /* Shadows — Soft & Airy */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-accent: 0 4px 14px 0 rgba(0, 214, 79, 0.3);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Helpers */
.mobile-only {
  display: none !important;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-green {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 177, 64, 0.4);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 0 12px rgba(0, 177, 64, 0);
    opacity: 0.4;
  }
}

@keyframes pulse-red {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.navbar__divider {
  width: 1px;
  height: 32px;
  background-color: var(--border);
}

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

.navbar__reseller span {
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: right;
  white-space: nowrap;
}

.bambu-logo {
  height: 24px;
  width: auto;
}

.navbar__logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.navbar__logo-text {
  font-family: 'SF Pro Rounded Web', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.navbar__logo-text span {
  color: var(--accent);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}



.navbar__link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out);
}

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

.navbar__link:hover::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar__cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--ease-out);
}

.navbar__cart-btn:hover {
  background: var(--bg-secondary);
}

.navbar__cart-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-primary);
  fill: none;
  stroke-width: 1.8;
}

.navbar__cart-btn.cart-pulse {
  animation: cart-bounce 0.4s ease;
}

@keyframes cart-bounce {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all var(--duration-fast) var(--ease-spring);
}

.cart-badge.active {
  opacity: 1;
  transform: scale(1);
}

/* Mobile hamburger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: 1001;
}

.navbar__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.navbar__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__burger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO BANNER ===== */
.hero-banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: bannerZoom 20s ease-in-out infinite alternate;
}

@keyframes bannerZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.55) 40%,
      rgba(0, 0, 0, 0.35) 100%);
  backdrop-filter: blur(2px);
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: calc(var(--nav-height) + var(--space-4xl)) var(--space-xl) var(--space-4xl);
  animation: fadeInUp 0.9s var(--ease-out) both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

.hero-banner__content .hero__badge {
  background: rgba(0, 214, 79, 0.15);
  border: 1px solid rgba(0, 214, 79, 0.3);
  color: var(--accent);
}

/* Closed state */
.hero__badge--closed {
  color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.hero__badge--closed::before {
  background: #EF4444 !important;
  animation: pulse-red 2s infinite !important;
}

/* Note text below badge */
.hero__badge-note {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-banner__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: var(--space-xl);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-banner__title span {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0, 214, 79, 0.3);
}

.hero-banner__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
}

.hero-banner__actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn--white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn--white:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-banner__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounceDown 2s ease-in-out infinite;
}

.hero-banner__scroll-hint svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255, 255, 255, 0.5);
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 177, 64, 0.25);
}

.btn--secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-weight: 500;
}

.btn--secondary:hover {
  background: #E5E7EB;
  border-color: #D1D5DB;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 214, 79, 0.04);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ===== SECTIONS ===== */
.section {
  padding: 120px 0;
  position: relative;
}

.section--alt {
  background: var(--bg-secondary);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CATEGORY FILTERS ===== */
.filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--duration-fast) var(--ease-out);
}

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

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

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

/* Removed dark mode inner glow */
.product-card::after {
  display: none;
}

.product-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__badge--new {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

.product-card__badge--popular {
  background: #fff;
  color: #000;
}

.product-card__badge--combo {
  background: linear-gradient(135deg, #A855F7, #EC4899);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.product-card__image {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  overflow: hidden;
  padding: var(--space-sm);
}

.product-card__image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--duration-normal) var(--ease-out);
}

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

.product-card__body {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
}

.product-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.product-card__footer .btn {
  width: 100%;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.product-card__price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.product-card__add-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.product-card__add-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

.product-card__add-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== FILAMENT SECTION ===== */
.filament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.filament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  text-align: center;
}

.filament-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.filament-card__image {
  height: 220px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.filament-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--duration-normal) var(--ease-out);
}

.filament-card:hover .filament-card__image img {
  transform: scale(1.05);
}

.filament-card__color {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--bg-secondary);
}

.filament-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.filament-card__type {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.filament-card__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-discounted {
  color: #10B981;
  /* Green color for discount */
}

.price-old {
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-size: 0.85em;
  font-weight: 500;
}

.filament-card__btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.filament-card__btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== FEATURES / WHY US ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.marketplace-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-md);
  color: #F59E0B;
  /* Amber color for stars */
  font-size: 0.9rem;
  font-weight: 600;
}

.marketplace-rating svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.marketplace-rating span {
  color: var(--text-secondary);
  margin-left: 4px;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SHOWROOM ===== */
.showroom {
  position: relative;
  overflow: hidden;
}

.showroom__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.showroom__content {
  padding: var(--space-3xl) 0;
}

.showroom__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

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

.showroom__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.showroom__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.showroom__info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showroom__info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.showroom__info-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

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

.showroom__map {
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  position: relative;
  padding: 8px;
}

.showroom__map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--text-tertiary);
}

.showroom__map-placeholder svg {
  width: 48px;
  height: 48px;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  z-index: 2000;
  transition: all var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(4px);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 90vw);
  background: var(--bg-primary);
  z-index: 2001;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

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

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast);
}

.cart-drawer__close:hover {
  background: var(--bg-secondary);
}

.cart-drawer__close svg {
  width: 20px;
  height: 20px;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-tertiary);
  gap: var(--space-md);
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

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

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

.cart-item__image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item__image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.cart-item__qty-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-item__qty {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  margin-left: auto;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

.cart-item__remove:hover {
  color: #EF4444;
}

.cart-drawer__footer {
  padding: var(--space-xl);
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.cart-total__label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cart-total__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.cart-checkout-btn:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  z-index: 3000;
  transition: all var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xl);
}

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

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast);
}

.modal__close:hover {
  background: var(--bg-secondary);
}

.modal__body {
  padding: var(--space-2xl);
}

/* Checkout Form */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.order-summary {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.order-summary__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.order-summary__item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
}

.order-summary__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Success screen */
.success-screen {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.success-screen__icon {
  width: 72px;
  height: 72px;
  background: var(--accent-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  animation: scaleIn 0.5s var(--ease-spring);
}

.success-screen__icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.success-screen__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.success-screen__text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== SHOWROOM GALLERY ===== */
.showroom-gallery {
  background: var(--bg-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-grid__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-grid__item--large {
  grid-column: span 2;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.05);
}

.gallery-grid__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-grid__item:hover .gallery-grid__overlay {
  opacity: 1;
}

.gallery-grid__overlay span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid__item--large {
    grid-column: span 1;
  }
}

/* Footer Marketplace Icons */
.footer-mkp-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 12px;
}

.footer-mkp-icon.ozon {
  background: #005BFF;
  color: white;
}

.footer-mkp-icon.wb {
  background: linear-gradient(135deg, #CB11AB, #4A017D);
  color: white;
}

.footer-mkp-icon.yandex {
  background: #FFCC00;
  color: black;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-3xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer__logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.footer__logo-text {
  font-family: 'SF Pro Rounded Web', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.footer__logo-text span {
  color: var(--accent);
}

.bambu-icon-bullet {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: var(--accent);
  -webkit-mask-image: url('images/bambu-lab-logo.svg');
  -webkit-mask-size: auto 100%;
  -webkit-mask-position: left center;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('images/bambu-lab-logo.svg');
  mask-size: auto 100%;
  mask-position: left center;
  mask-repeat: no-repeat;
  margin-right: 6px;
  vertical-align: middle;
  transform: translateY(-2px);
}

.footer__brand-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer__col-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.footer__social-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-banner__title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
  }

  .showroom__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ===== UTILITIES ===== */
.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  :root {
    --space-xl: 1.25rem;
    --space-4xl: 3.5rem;
    --space-5xl: 5rem;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .hide-mobile {
    display: none !important;
  }

  /* Force hide desktop elements when mobile menu is active */
  .navbar__nav.active .hide-mobile {
    display: none !important;
  }

  .navbar__nav.active .nav-dropdown {
    display: none !important;
  }

  .navbar__nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    z-index: 999;
  }

  .navbar__nav.active {
    display: flex;
  }

  .navbar__nav .navbar__link {
    font-size: 1.3rem;
    font-family: var(--font-display);
    font-weight: 600;
  }

  .navbar__burger {
    display: flex;
  }

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

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



  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

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

  .hero-banner__title {
    font-size: 2.2rem;
  }

  .hero-banner__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn--lg {
    padding: 16px 32px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .product-card__image {
    height: 200px;
  }
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast__icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ===== V2 UPDATES ===== */

/* Panda Images */
.panda-hero {
  width: 100%;
  max-width: 600px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.panda-decoration {
  display: flex;
  justify-content: center;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.panda-decoration img {
  max-width: 250px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.panda-decoration--printers {
  margin-top: 0;
  margin-bottom: -60px;
}

/* Product Card Updates */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__image {
  height: 300px;
  /* Taller for photos */
  padding: 0;
  background: #fff;
}

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

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

.product-card--ams .product-card__image {
  background: var(--bg-secondary);
  padding: var(--space-xl);
}

.product-card--ams .product-card__image img {
  object-fit: contain;
}

/* Variant Tabs */
.variant-tabs {
  display: flex;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.variant-tab {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.variant-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
}

.variant-tab.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

/* Filament Card Updates */
.filament-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.filament-card__image {
  height: 220px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.filament-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.filament-card>h3,
.filament-card>p,
.filament-card>.filament-card__footer {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.filament-card>h3 {
  margin-top: var(--space-md);
  margin-bottom: 4px;
}

.filament-card>p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.filament-card__footer {
  margin-top: auto;
  padding-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.filament-card__footer .btn {
  width: 100%;
}

/* Spool Toggle */
.spool-toggle {
  display: flex;
  margin: 0 var(--space-lg) var(--space-md);
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 3px;
}

.spool-btn {
  flex: 1;
  font-size: 0.75rem;
  padding: 4px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.spool-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: transparent;
}

.spool-btn.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* Color Swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 var(--space-lg) var(--space-md);
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.2);
  z-index: 2;
}

.color-dot.active {
  transform: scale(1.3);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
  z-index: 2;
}

/* Modal Updates */
.product-modal-container {
  max-width: 900px;
  width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.modal-image {
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.modal-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.modal__body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.modal-info {
  margin-bottom: var(--space-lg);
}

.modal-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-color-name {
  margin-top: 8px;
  font-size: 0.9rem;
}

.modal-specs {
  margin-top: auto;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: var(--space-md);
}

.modal-specs h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.modal-specs table {
  width: 100%;
  font-size: 0.85rem;
}

.modal-specs td {
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-specs td:last-child {
  text-align: right;
  font-weight: 500;
}

.modal-footer {
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.modal-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Modal Variants override */
.variant-tabs--modal {
  margin-bottom: var(--space-md);
}

.spool-toggle--modal {
  margin: 0 0 var(--space-md) 0;
}

.color-swatches--modal {
  padding: 0;
  margin-bottom: var(--space-lg);
}

.color-swatches--modal .color-dot {
  width: 28px;
  height: 28px;
}

/* Showroom Grid */
.showroom__images-grid {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .product-modal-container {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-image {
    padding: var(--space-lg);
    height: 250px;
  }

  .modal-image img {
    max-height: 100%;
  }
}

/* ===== MODAL FIX v2 ===== */
.product-modal-container {
  display: block;
  /* Override grid */
  padding: 0;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  width: 90%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}

#productModalBody {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.modal-left {
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  min-height: 400px;
}

.modal-left img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.modal-right {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-title-internal {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
  line-height: 1.1;
  color: var(--text-primary);
  padding-right: 40px;
  /* Space for close button */
}

/* Position close button absolute relative to container */
.product-modal-container .modal__header {
  display: none;
  /* Hide old header container */
}

#productModalClose {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#productModalClose:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

/* Adjustments for responsive */
@media (max-width: 768px) {
  #productModalBody {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow-y: auto;
  }

  .modal-left {
    min-height: 250px;
    padding: var(--space-lg);
  }

  .modal-right {
    padding: var(--space-lg);
  }
}

/* ===== MODAL FIXES v3 (User Feedback) ===== */
.modal-left {
  padding: var(--space-md) !important;
  /* Force override */
  max-height: 500px;
}

.modal-left img {
  max-height: 480px !important;
  /* Force override */
  width: 100%;
  object-fit: contain;
}

.modal-color-name {
  margin-bottom: var(--space-md) !important;
  display: block;
}

/* ===== MODAL FIXES v4 (Maximize Image) ===== */
.modal-left {
  padding: var(--space-md) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-left .modal-image {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-left img {
  width: 100%;
  height: 100%;
  max-height: none !important;
  /* Remove constraints */
  object-fit: cover !important;
  /* Fill the area (might crop slightly if aspect ratio differs) - Try cover based on 'scale' request */
}

/* ===== PRODUCT GALLERY (Mini) ===== */
.product-gallery {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding: 0 var(--space-lg);
  /* Match card padding */
  margin-bottom: var(--space-sm);
  justify-content: center;
}

.product-gallery__item {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.product-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__item:hover,
.product-gallery__item.active {
  opacity: 1;
  border-color: var(--primary);
}

/* ===== MODAL GALLERY ===== */
.modal-gallery {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.modal-gallery__item {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.modal-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-gallery__item:hover,
.modal-gallery__item.active {
  opacity: 1;
  border-color: var(--primary);
}

/* ===== CARD SPECS ===== */
.product-card__specs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
  margin-top: var(--space-xs);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

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

.spec-label {
  color: var(--text-tertiary);
}

.spec-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* ===== PRODUCT PAGE STYLES ===== */
.product-page {
  background: var(--bg-secondary);
}

.product-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .product-page__grid {
    grid-template-columns: 1fr;
  }
}

.product-page__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-page__main-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-page__main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-page__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.product-page__gallery-item {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
}

.product-page__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-page__gallery-item.active {
  border-color: var(--primary);
}

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

.product-page__header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.product-page__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 10px 0;
}

.product-page__desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.product-page__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-page__specs {
  margin-top: 20px;
}

.product-page__specs h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.specs-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.spec-label {
  color: var(--text-secondary);
}

.spec-value {
  font-weight: 600;
}

/* ===== PRODUCT TABS ===== */
.product-page__details {
  margin-top: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-page__tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.product-tab-btn {
  padding: 20px 40px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.product-tab-btn:hover {
  color: var(--primary);
  background: rgba(0, 0, 0, 0.02);
}

.product-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg-primary);
}

.product-page__tab-content {
  display: none;
  padding: 60px;
  animation: fadeIn 0.3s ease;
}

.product-page__tab-content.active {
  display: block;
}

/* ===== FEATURES (Rich Description) ===== */
.product-features {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature-block {
  display: flex;
  align-items: center;
  gap: 60px;
}

.feature-reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.feature-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.feature-image {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #f9f9f9;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.feature-block:hover .feature-image img {
  transform: scale(1.03);
}

/* ===== FULL SPECS ===== */
.specs-table-full {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.specs-table-full .spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.specs-table-full .spec-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.specs-table-full .spec-dots {
  flex: 1;
  border-bottom: 1px dotted var(--border);
  margin: 0 10px;
  position: relative;
  top: -5px;
}

.specs-table-full .spec-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* ===== RICH CONTENT (Bambu Style) ===== */
.rich-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 60px;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  box-shadow: var(--shadow-md);
}

.rich-hero__content {
  max-width: 600px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rich-hero__content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
}

.rich-hero__content p {
  font-size: 1.4rem;
  font-weight: 500;
  opacity: 0.9;
}

.rich-hero__content--dark {
  color: var(--text-primary);
  text-shadow: none;
}

/* Rich Grid */
.rich-grid-section {
  text-align: center;
  margin-bottom: 80px;
}

.rich-grid-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

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

.rich-grid__item {
  background: var(--bg-tertiary);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.rich-grid__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.rich-grid__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.rich-grid__item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.rich-grid__item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Feature Strip */
.feature-strip {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature-strip--reverse {
  flex-direction: row-reverse;
}

.feature-strip__text {
  flex: 1;
  padding: 60px;
}

.feature-strip__text h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--text-primary);
}

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

.feature-strip__image {
  flex: 1;
  height: 500px;
}

.feature-strip__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .feature-strip {
    flex-direction: column;
    gap: 0;
  }

  .feature-strip--reverse {
    flex-direction: column;
  }

  .feature-strip__image {
    width: 100%;
    height: 300px;
  }

  .feature-strip__text {
    padding: 30px;
  }

  .rich-hero {
    height: 400px;
    padding: 30px;
  }

  .rich-hero__content h2 {
    font-size: 2rem;
  }
}

.specs-table-full .spec-dots {
  flex: 1;
  border-bottom: 1px dotted var(--border);
  /* Optional dotted line visual */
  margin: 0 10px;
  opacity: 0.5;
  display: none;
  /* Hidden for clean look, or remove display:none to show */
}

.specs-table-full .spec-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
  width: 50%;
  text-align: left;
}

@media (max-width: 768px) {
  .product-page__tab-content {
    padding: 30px 20px;
  }

  .feature-block,
  .feature-reverse {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .feature-text h3 {
    font-size: 1.5rem;
  }
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumbs span {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumbs-separator {
  color: var(--text-secondary);
  opacity: 0.5;
}

/* ===== OUT OF STOCK BUTTON ===== */
.btn--out-of-stock {
  background: var(--bg-secondary) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.85;
}

.btn--out-of-stock:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 214, 79, 0.35);
  transition: opacity var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-spring),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: none;
}

.scroll-top svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 177, 64, 0.35);
}

.scroll-top:active {
  transform: translateY(0) scale(0.95);
}

/* ===== FLOATING CONTACT BUTTON & MENU ===== */
.floating-contact-wrapper {
  position: fixed;
  bottom: 32px;
  right: 92px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: opacity var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-spring);
}

.floating-contact-wrapper.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-contact__menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: all var(--duration-normal) var(--ease-spring);
  border: 1px solid var(--border);
  min-width: 160px;
}

.floating-contact-wrapper.menu-open .floating-contact__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--duration-fast);
}

.floating-contact__item:hover {
  background: var(--bg-secondary);
}

.floating-contact__item svg {
  width: 20px;
  height: 20px;
}

.floating-contact__item.tg {
  color: #2AABEE;
}

.floating-contact__item.max-msgr {
  color: #0079C1;
}

.floating-contact {
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 12px;
  box-shadow: 0 4px 18px rgba(0, 177, 64, 0.35);
  cursor: pointer;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.floating-contact__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.floating-contact__label {
  letter-spacing: 0.01em;
}

.floating-contact:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(0, 177, 64, 0.4);
}

.floating-contact:active {
  transform: translateY(0) scale(0.97);
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .scroll-top svg {
    width: 20px;
    height: 20px;
  }

  .floating-contact-wrapper {
    bottom: 24px;
    right: 74px;
  }

  .floating-contact {
    height: 44px;
    padding: 0 12px;
  }

  .floating-contact__label {
    display: none;
  }

  .navbar__reseller span {
    display: none;
    /* Hide text on mobile */
  }

  .navbar__divider {
    height: 24px;
    margin-left: -5px;
  }

  .bambu-logo {
    height: 18px;
  }
}

/* ===== OUT OF STOCK ===== */
.color-dot.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  position: relative;
  box-shadow: none;
}

.color-dot.out-of-stock::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 1.5px;
  background: var(--text-secondary);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.btn--out-of-stock {
  background: var(--bg-tertiary) !important;
  color: var(--text-tertiary) !important;
  cursor: not-allowed !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.btn--out-of-stock:hover {
  background: var(--bg-tertiary) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ===== AMS SPECIFIC GRID ===== */
#amsGrid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  #amsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #amsGrid {
    grid-template-columns: 1fr;
  }
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown__trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-primary);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 100;
  border: 1px solid var(--border);
}

.nav-dropdown:hover .nav-dropdown__menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.nav-dropdown__item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-dropdown {
    display: none;
  }
}

/* ===== FOOTER CATALOG BOX (Removed specific styling) ===== */
/* ===== CATALOG PAGE SPECIFIC STYLES ===== */
.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}