:root {
  /* Design System - Mistura Gerivas (Preto, Vermelho, Branco) */
  --primary: #ff1a1a;
  --primary-dark: #cc0000;
  --primary-glow: rgba(255, 26, 26, 0.4);

  /* Variáveis de Tema (Valores Default: Dark Premium) */
  --bg-dark: #0a0a0a;
  --bg-card: rgba(35, 35, 35, 0.8);
  --text-main: #ffffff;
  --text-secondary: #f0f0f0;
  --glass-bg: rgba(20, 20, 20, 0.95);
  --glass-border: rgba(255, 255, 255, 0.15);

  --accent-blue: var(
    --primary
  ); /* Mantendo compatibilidade com código anterior */
  --accent-purple: #810810;

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tema Branco - Elegante */
body.theme-light {
  --bg-dark: #f8f9fa;
  --bg-card: #ffffff;
  --text-main: #121212;
  --text-secondary: #555555;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Tema Vermelho Brand - Imersivo */
body.theme-red {
  --bg-dark: #2a0000;
  --bg-card: rgba(80, 0, 0, 0.6);
  --text-main: #ffffff;
  --text-secondary: #ffdddd;
  --glass-bg: rgba(50, 0, 0, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Aplicação das variáveis */
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

/* Seletor de Temas UI */
#theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 9999;
  background: var(--glass-bg);
  padding: 10px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.theme-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.3s;
}

.theme-btn:hover {
  transform: scale(1.2);
}
.theme-btn.dark {
  background: #000;
}
.theme-btn.light {
  background: #fff;
}
.theme-btn.red {
  background: #ff1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-image:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 26, 26, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(129, 8, 16, 0.03) 0%,
      transparent 40%
    );
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}

.navbar.scrolled {
  padding: 1rem 0;
  background-color: rgba(10, 10, 10, 0.85); /* Tom mais escuro */
  backdrop-filter: blur(20px); /* Blur aumentado Premium */
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Borda subtil */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 90px;
  max-width: auto;
  object-fit: contain;
  /* Técnica para remover fundo branco em temas escuros preservando o Vermelho */
  filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(1.2);
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-blue);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* --- Dropdown / Mega Menu --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  min-width: 700px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(230, 16, 28, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 3px solid var(--accent-blue);
  border-radius: 12px;
  z-index: 100;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-col h4 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.mega-menu-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mega-menu-col ul li a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.mega-menu-col ul li a::after {
  display: none; /* remove o traço azul do link de nav global */
}

.mega-menu-col ul li a:hover {
  color: var(--accent-blue);
  padding-left: 5px;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--accent-blue);
  transform: scale(1.1);
}

.cart-btn {
  padding: 0.5rem;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -5px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(230, 16, 28, 0.4);
  animation: pulse 2s infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  box-shadow: 0 8px 30px rgba(230, 16, 28, 0.4); /* Maior difusão de luz */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(230, 16, 28, 0.7); /* Glow intenso hover */
  transform: translateY(-3px) scale(1.02); /* Escala ligeira */
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
}

.btn-primary:hover::before {
  left: 100%;
  transition: 0.7s;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface-light);
  border-color: var(--text-secondary);
}

/* Hero Slider (Swiper v11) */
.hero-slider {
  width: 100%;
  min-height: 60vh;
  margin-top: 80px; /* altura da navbar */
  position: relative;
  background: var(--bg-primary);
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: var(--bg-dark);
  z-index: 1;
}

.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.98) 0%, rgba(8, 8, 8, 0.7) 50%, rgba(8, 8, 8, 0.3) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 4rem 2rem;
}

.slide-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.slide-content h1 span {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-blue);
  background: linear-gradient(to right, #cf161c, var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.slide-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.swiper-pagination-bullet {
  background: var(--text-secondary) !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 8px !important;
}

.swiper-button-next, .swiper-button-prev {
  color: rgba(255, 255, 255, 0.5) !important;
  transition: color 0.3s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  color: var(--primary) !important;
}

/* Products Section (Agora no topo) */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem; /* Compensar a navbar fixa */
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: linear-gradient(145deg, var(--bg-card), rgba(129, 8, 16, 0.1));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 1; /* Garantir visibilidade por defeito */
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-card.visible {
  animation: cardFadeIn 0.6s ease-out forwards;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow);
  border-color: var(--primary);
  background: var(--glass-bg);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-category {
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
  margin-bottom: 0.8rem;
}

.product-card:hover .product-price {
  transform: scale(1.02);
  text-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.action-btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.6rem 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary.action-btn {
  padding: 0.6rem 0.2rem;
}

.add-btn {
  background: rgba(255, 255, 255, 0.05); /* Fundo botão circular transparente */
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 44px; /* Ligeiramente maior */
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 1.3rem;
}

.product-card:hover .add-btn {
  background: var(--accent-blue); /* Vermelho ativo no hover do cartao */
  color: #fff;
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(230, 16, 28, 0.5);
  transform: rotate(90deg); /* Pequeno twist interativo */
}

/* Footer Element */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 6rem 2rem 2rem;
  margin-top: 8rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-links h3 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.newsletter-form {
  display: flex;
  margin-top: 1.5rem;
}

.newsletter-form input {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: 8px 0 0 8px;
  color: white;
  outline: none;
  flex-grow: 1;
  font-family: var(--font-sans);
}

.newsletter-form input:focus {
  border-color: var(--accent-blue);
}

.newsletter-form button {
  border-radius: 0 8px 8px 0;
  padding: 0 1.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 26, 26, 0.4);
}

.footer-links li a {
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.footer-links li a:hover {
  transform: translateX(8px);
}

.footer-links li a ion-icon {
  font-size: 0.8rem;
  opacity: 0.5;
  transition: var(--transition);
}

.footer-links li a:hover ion-icon {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-surface);
  z-index: 1002;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--accent-purple);
  transform: rotate(90deg);
}

.cart-items {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  gap: 1rem;
}

.empty-cart ion-icon {
  font-size: 4rem;
  opacity: 0.5;
}

.cart-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-surface-light);
  padding: 1rem;
  border-radius: 12px;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 0.25rem;
  border-radius: 8px;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  color: var(--accent-blue);
  font-weight: 800;
}

.remove-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
}

.remove-item:hover {
  color: #ff4757;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.checkout-btn {
  width: 100%;
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 16, 28, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(230, 16, 28, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 16, 28, 0);
  }
}

@keyframes orbPulse {
  0% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes fillText {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s forwards;
}

.animate-fade {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Observer Interaction Classes */
.section-fade {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product Quick View Modal */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal-card {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(230, 16, 28, 0.15);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-modal-overlay.active .product-modal-card {
  transform: scale(1) translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.close-modal-btn:hover {
  background: var(--accent-blue);
  transform: rotate(90deg);
}

.modal-left {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-left img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

.modal-right {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-category {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-specs {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.spec-name {
  color: var(--text-secondary);
}

.spec-value {
  color: white;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.w-100 {
  width: 100%;
}
.mt-2 {
  margin-top: 1rem;
}

/* Modal Checkout */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.checkout-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.checkout-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.checkout-modal-overlay.active .checkout-modal-card {
  transform: scale(1) translateY(0);
}

.checkout-header {
  text-align: center;
  margin-bottom: 2rem;
}

.checkout-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.checkout-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  background: rgba(0, 0, 0, 0.4);
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
  font-size: 1.1rem;
}

.checkout-summary strong {
  font-size: 1.5rem;
  color: var(--accent-red);
}

/* Responsiveness */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .hero-content p {
    margin: 0 auto 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .product-modal-card {
    grid-template-columns: 1fr;
    max-height: 85vh;
  }
  .modal-left img {
    max-height: 250px;
  }
  .modal-right {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

 . n o - p r o d u c t s   { 
     g r i d - c o l u m n :   1   /   - 1 ; 
     t e x t - a l i g n :   c e n t e r ; 
     p a d d i n g :   4 r e m ; 
     c o l o r :   v a r ( - - t e x t - s e c o n d a r y ) ; 
     f o n t - s i z e :   1 . 2 r e m ; 
     b a c k g r o u n d :   v a r ( - - b g - c a r d ) ; 
     b o r d e r - r a d i u s :   2 0 p x ; 
     b o r d e r :   1 p x   d a s h e d   v a r ( - - g l a s s - b o r d e r ) ; 
 } 
 
 