
/* ===== VARIABLES CSS ===== */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #dc2626;
  --primary-foreground: #ffffff;
  --accent: #f3f4f6;
  --accent-foreground: #0a0a0a;
}

.dark {
  --background: #000000;
  --foreground: #fafafa;
  --card: #000000;
  --card-foreground: #fafafa;
  --muted: #000000;
  --muted-foreground: #a3a3a3;
  --border: #262626;
  --primary: #dc2626;
  --primary-foreground: #ffffff;
  --accent: #000000;
  --accent-foreground: #fafafa;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 640px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  p, a, button, input { font-size: 0.875rem; }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
  p, a, button, input { font-size: 0.9375rem; }
}

/* Desktop */
@media (min-width: 1025px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
  p, a, button, input { font-size: 1rem; }
}

/* ===== HEADER RESPONSIVE ===== */
header {
  background-color: #000000 !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
  backdrop-filter: blur(12px);
  height: auto !important;
  min-height: 60px !important;
}

/* Header elements - always white */
header,
header.dark,
html.dark header {
  background-color: #000000 !important;
}

header * {
  color: #ffffff !important;
}

/* Header links and buttons hover */
header a:hover,
header button:hover {
  color: #dc2626 !important;
}

/* Vertical Carousels Styles */
.carousel-vertical {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.carousel-slides-1,
.carousel-slides-2,
.carousel-slides-3 {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ===== MOBILE MENU FIX ===== */
#mobile-menu {
  background-color: #000000 !important;
  background: #000000 !important;
}

#mobile-menu * {
  background-color: transparent !important;
  color: #ffffff !important;
}

#mobile-menu a {
  color: #ffffff !important;
}

#mobile-menu a:hover {
  color: #dc2626 !important;
}

#mobile-menu .bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

#mobile-menu .bg-red-600 {
  background-color: #dc2626 !important;
}

/* Botón de cierre siempre blanco */
#mobile-menu-close,
#mobile-menu-close *,
#mobile-menu-close span {
  color: #ffffff !important;
  background-color: transparent !important;
  background: transparent !important;
}

#mobile-menu-close:hover {
  background-color: #dc2626 !important;
}


#mobile-menu .border-t {
  border-color: rgba(220, 38, 38, 0.2) !important;
}

/* Close button X fix */
#mobile-menu-close {
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

#mobile-menu-close:hover {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

#mobile-menu-close .material-icons {
  color: #ffffff !important;
  fill: #ffffff !important;
  font-size: 24px !important;
}

#mobile-menu-close svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

#mobile-menu-close svg path {
  stroke: #ffffff !important;
}

/* Force button X colors */
#mobile-menu-close {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

#mobile-menu-close:hover {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

#mobile-menu-close span {
  color: #ffffff !important;
  text-shadow: 0 0 2px #000000 !important;
}

/* Force X icon color everywhere */
.material-icons:empty,
.material-icons:not([class*="text-"]):not([style*="color"]),
#mobile-menu .material-icons {
  color: #ffffff !important;
}

html body #mobile-menu .material-icons,
body #mobile-menu .material-icons {
  color: #ffffff !important;
}

.slide-vertical {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
  transform: scale(1.05);
}

.slide-vertical.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-indicators-1 .indicator,
.carousel-indicators-2 .indicator,
.carousel-indicators-3 .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-indicators-1 .indicator.active,
.carousel-indicators-2 .indicator.active,
.carousel-indicators-3 .indicator.active {
  background: #dc2626;
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #vertical-carousels {
    padding: 8px 4px;
  }
  
  #vertical-carousels .grid {
    gap: 8px;
  }
  
  #vertical-carousels .carousel-container {
    aspect-ratio: 2/3;
  }
  
  #vertical-carousels .absolute.top-4 img {
    height: 30px;
  }
  
  .carousel-prev-1,
  .carousel-next-1,
  .carousel-prev-2,
  .carousel-next-2,
  .carousel-prev-3,
  .carousel-next-3 {
    width: 32px !important;
    height: 32px !important;
  }
  
  .carousel-prev-1 .material-icons,
  .carousel-next-1 .material-icons,
  .carousel-prev-2 .material-icons,
  .carousel-next-2 .material-icons,
  .carousel-prev-3 .material-icons,
  .carousel-next-3 .material-icons {
    font-size: 18px !important;
  }
  
  .carousel-indicators-1,
  .carousel-indicators-2,
  .carousel-indicators-3 {
    bottom: 12px !important;
  }
}

@media (min-width: 769px) {
  #vertical-carousels .carousel-container {
    aspect-ratio: 9/16;
    max-height: 70vh;
  }
  
  #vertical-carousels .absolute.top-4 img {
    height: 50px;
  }
}

/* Model Viewer Section */
model-viewer {
  --poster-color: transparent;
}

@media (max-width: 768px) {
  #model-viewer-section model-viewer {
    height: 400px !important;
  }
  
  #model-viewer-section h2 {
    font-size: 1.5rem;
  }
}

/* Compensar header fixed en el body - sin padding extra */
body {
  padding-top: 0 !important;
}

@media (max-width: 640px) {
  body {
    padding-top: 0 !important;
  }
}

header {
  overflow: visible !important;
}

header,
header * {
  pointer-events: auto !important;
}

header a:hover,
header button:hover {
  color: var(--primary) !important;
}

#mobile-menu-button {
  z-index: 10001 !important;
  position: relative !important;
  pointer-events: auto !important;
}

#mobile-menu {
  background-color: var(--background) !important;
  border-color: var(--border) !important;
  width: 100% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  z-index: 10001 !important;
  height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 1rem;
}

/* Close button for mobile menu */
#mobile-menu-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 10002 !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--background) !important;
  border: 2px solid var(--border) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
}

#mobile-menu-close span {
  font-size: 28px !important;
  color: var(--foreground) !important;
}

#mobile-menu .flex.flex-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding-top: 4rem;
}

#mobile-menu a {
  color: var(--foreground) !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 320px !important;
  padding: 1rem 1.5rem !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
}

/* Improve mobile menu links */
#mobile-menu a:hover {
  color: #dc2626 !important;
}

/* Mobile menu buttons */
#mobile-menu button {
  width: 100% !important;
  max-width: 320px !important;
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

/* Better spacing for mobile menu items */
#mobile-menu > .flex.flex-col > a,
#mobile-menu > .flex.flex-col > div {
  margin-bottom: 0.5rem;
}

/* Hide header during splash screen */
body.splash-active header,
body.splash-active main {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}

/* Ensure splash screen covers everything */
#splash-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
}

/* Mobile header adjustments - Pantallas pequeñas (teléfono) */
@media (max-width: 640px) {
  header {
    padding: 0.4rem 0.5rem !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  header img {
    height: 1.75rem !important;
    max-height: 1.75rem !important;
  }
  
  header .material-icons {
    font-size: 1.5rem !important;
  }
  
  header button {
    padding: 0.5rem !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Ajustar espaciado entre botones */
  header .flex.items-center.justify-end.gap-4 {
    gap: 0.25rem !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* Esconder enlaces de texto en móvil, mostrar solo iconos */
  header .flex.items-center.justify-end.gap-4 > a:not([class*="bg-red"]):not([class*="cart"]):not([class*="user"]):not(.bg-red) {
    display: none !important;
  }
  
  /* Asegurar que el botón de usuario sea visible */
  #user-btn, #user-btn-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
  }
  
  /* Contador del carrito más pequeño */
  #cart-count, #cart-count-desktop {
    width: 1rem !important;
    height: 1rem !important;
    font-size: 0.65rem !important;
    top: -2px !important;
    right: -2px !important;
  }
  
  /* Botón del carrito */
  #cart-button, #cart-button-desktop {
    width: 2.5rem !important;
    height: 2.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Asegurar que el header esté arriba del contenido */
  header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
  }
  
  /* Mejorar texto del hero */
  #hero h2 {
    font-size: 2rem !important;
  }
  
  #hero p {
    font-size: 0.875rem !important;
  }
}

/* Tablet header */
@media (min-width: 641px) and (max-width: 1024px) {
  header {
    padding: 1rem 1.5rem !important;
  }
}

/* ===== HERO SECTION RESPONSIVE ===== */
#hero {
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #000;
}

/* En móvil, el carrusel empieza después del header */
@media (max-width: 640px) {
  #hero {
    min-height: calc(100vh - 56px) !important;
    height: auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  #hero > .relative.z-10 {
    display: block !important;
    height: auto !important;
    min-height: calc(100vh - 56px) !important;
  }
  
  #hero .relative.h-\[100vh\] {
    display: block !important;
    height: auto !important;
    min-height: calc(100vh - 56px) !important;
  }
  
  #hero .relative.h-full.overflow-hidden {
    display: block !important;
    height: auto !important;
    min-height: calc(100vh - 56px) !important;
  }
  
  #hero-media {
    display: block !important;
    height: calc(100vh - 56px) !important;
  }
  
  #hero-image {
    height: 100% !important;
    min-height: calc(100vh - 56px) !important;
  }
}

#hero > .relative.z-10 {
  height: 100%;
  width: 100%;
}

#hero .relative.h-\[100vh\] {
  height: 100%;
  width: 100%;
  position: relative;
}

#hero .relative.h-full.overflow-hidden {
  height: 100%;
  width: 100%;
  position: relative;
}

#hero #hero-media {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0;
  left: 0;
}

#hero #hero-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0;
  left: 0;
}

/* Slides 2, 3, 4 - Position images lower */
#hero #hero-image.hero-slide-1,
#hero #hero-image.hero-slide-2,
#hero #hero-image.hero-slide-3 {
  object-position: 50% 100% !important;
}

#hero h2 {
  font-size: clamp(2rem, 8vw, 5rem);
  line-height: 1.1;
}

#hero p {
  font-size: clamp(0.75rem, 2vw, 1rem);
}

/* Mobile hero - Carrusel en móvil */
@media (max-width: 640px) {
  #hero {
    min-height: calc(100vh - 50px) !important;
    height: calc(100vh - 50px) !important;
    width: 100%;
    position: relative;
    margin-top: 0 !important;
  }
  
  /* Asegurar que el header esté arriba del carrusel */
  header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
  }
  
  /* Contenedor del carrusel - scrollable */
  #hero .relative.z-10 {
    height: 100%;
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  #hero .relative.h-\[100vh\] {
    height: auto !important;
    min-height: calc(100vh - 50px);
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: visible;
  }
  
  /* Imagen del carrusel - permitir ver completa */
  #hero #hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
  
  /* Info del carrusel - ajustar para móvil */
  #hero-info {
    padding: 1rem !important;
  }
  
  #hero-title {
    font-size: 1.75rem !important;
  }
  
  #hero-subtitle {
    font-size: 0.65rem !important;
    letter-spacing: 0.15em !important;
  }
  
  /* Botones CTA - ajustar para móvil */
  .flex.flex-col.sm\:flex-row.gap-4 {
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
  }
  
  .flex.flex-col.sm\:flex-row.gap-4 button {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.75rem !important;
  }
  
  /* Indicadores de slide - mover a posición visible */
  #hero-indicators {
    position: absolute !important;
    bottom: 60px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    z-index: 50 !important;
  }
  
  /* Contador de slides */
  .absolute.top-4.left-4 {
    z-index: 50 !important;
  }
}

/* CTA Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.cta-button-primary {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.cta-button-primary:hover {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
}

.cta-button-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button-secondary:hover {
  background: white;
  color: black;
  border-color: white;
}

/* Hero Section Slides */
#hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.7s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Navigation Dots */
#hero-nav {
  display: flex;
  gap: 0.5rem;
}

.hero-nav-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-nav-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-nav-dot.active {
  background: white;
  width: 2rem;
  border-radius: 9999px;
}

/* Scroll indicator animation */
@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
}

.animate-scroll-bounce {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Products Grid */
#featured-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

@media (max-width: 640px) {
  #featured-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  #featured-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Product Card - Modern Dark Design */
.product-card {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.25), 
              0 0 30px rgba(220, 38, 38, 0.1);
}

/* Product Image Container */
.product-card-image-container {
  position: relative;
  width: 100%;
  padding-top: 120%;
  overflow: hidden;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
}

.product-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image Overlay with Gradient */
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

/* Red Glow Effect on Hover */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(145deg, transparent, rgba(220, 38, 38, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer: none;
}

.product-card:hover::before {
  opacity: 1;
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 20px;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.product-badge-new {
  left: 0.75rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.product-badge-featured {
  right: 0.75rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.badge-gender {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 20;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.badge-gender .material-icons {
  font-size: 22px;
}

/* Quick View Button */
.product-card-actions {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.quick-view-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.quick-view-btn::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: left 0.5s ease;
}

.quick-view-btn:hover::before {
  left: 100%;
}

.quick-view-btn:hover {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.6), 
              0 0 40px rgba(220, 38, 38, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.quick-view-btn:active {
  transform: scale(0.98);
}

/* Fullscreen image button - Mobile only */
.fullscreen-view-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

.group:hover .fullscreen-view-btn {
  opacity: 1;
  transform: scale(1);
}

.fullscreen-view-btn:hover {
  background: rgba(220, 38, 38, 0.9);
  border-color: rgba(220, 38, 38, 1);
  transform: scale(1.1);
}

/* Hide fullscreen button on desktop */
.fullscreen-view-btn {
  display: none;
}

/* Responsive for mobile */
@media (max-width: 640px) {
  .fullscreen-view-btn {
    display: flex;
    opacity: 1;
    transform: scale(1);
    width: 40px;
    height: 40px;
  }
  
  .fullscreen-view-btn:hover {
    background: rgba(220, 38, 38, 1);
  }
  .quick-view-btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }
  
  .product-card-actions {
    bottom: 0.5rem;
  }
  
  /* Products Grid - Mobile */
  #featured-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  /* Product Card - Mobile */
  .product-card {
    border-radius: 8px;
    border-width: 1px;
  }
  
  .product-card-image-container {
    aspect-ratio: 3/4;
    height: auto;
  }
  
  .product-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.55rem;
    top: 0.5rem;
  }
  
  .product-badge-new,
  .product-badge-featured {
    left: 0.5rem;
    right: auto;
  }
  
  .product-badge-featured {
    left: auto;
    right: 0.5rem;
  }
  
  .product-card-info {
    padding: 0.5rem;
  }
  
  .product-card-name {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .product-card-price {
    font-size: 0.9rem;
  }
  
  .color-swatches {
    gap: 0.25rem;
  }
  
  .color-swatch {
    width: 1rem;
    height: 1rem;
  }

  /* Always show quick view button on mobile */
  .product-card-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    bottom: 0.25rem;
  }
  
  .quick-view-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.6rem;
    border-radius: 3px;
  }
  
  /* Modal responsive */
  .modal-content {
    max-height: 95vh;
    margin: 1rem;
  }
  
  .modal-product-info {
    padding: 1.5rem;
  }
  
  .modal-product-name {
    font-size: 1.5rem;
  }
  
  .modal-product-price {
    font-size: 1.5rem;
  }
  
  .product-thumb {
    width: 4rem;
    height: 5rem;
  }
  
  .size-btn {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .color-btn {
    padding: 0.5rem 1rem;
  }
}

/* Tablet responsive */
@media (min-width: 641px) and (max-width: 1024px) {
  #featured-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .product-card-image-container {
    padding-top: 120%;
  }
  
  .quick-view-btn {
    padding: 0.8rem 1.75rem;
    font-size: 0.7rem;
  }
  
  .modal-content {
    max-width: 90vw;
  }
  
  .product-modal-image-container img {
    height: 500px;
  }
}

/* Product Info */
.product-card-info {
  padding: 0.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.product-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.product-card:hover .product-card-name {
  color: #dc2626;
}

.product-card-description {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

/* Color Swatches */
.color-swatches {
  display: flex;
  gap: 0.375rem;
}

.color-swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.2);
  border-color: #dc2626;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

/* Buy Now Button */
.buy-now-btn {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.buy-now-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* WhatsApp Checkout Modal */
.whatsapp-checkout-content {
  max-width: 500px !important;
  width: 90% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 2rem !important;
}

.checkout-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.checkout-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.checkout-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: #dc2626;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkout-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #ffffff;
  transition: all 0.3s ease;
}

.checkout-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.checkout-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.checkout-textarea {
  min-height: 80px;
  resize: vertical;
}

.whatsapp-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.whatsapp-submit-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.whatsapp-submit-btn svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .whatsapp-checkout-content {
    padding: 1.5rem !important;
  }
  
  .checkout-header h2 {
    font-size: 1.25rem;
  }
  
  .checkout-total {
    font-size: 1.1rem;
  }
  
  .whatsapp-submit-btn {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}

/* Scan Line Effect on Card */
.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.product-card:hover::after {
  left: 100%;
}

/* Particle Effect */
.product-card .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #dc2626;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.product-card:hover .particle {
  animation: particleFloat 1s ease-out forwards;
}

.product-card .particle:nth-child(1) { --x: 20%; --y: 30%; animation-delay: 0s; }
.product-card .particle:nth-child(2) { --x: 40%; --y: 50%; animation-delay: 0.1s; }
.product-card .particle:nth-child(3) { --x: 60%; --y: 20%; animation-delay: 0.2s; }
.product-card .particle:nth-child(4) { --x: 80%; --y: 60%; animation-delay: 0.3s; }

@keyframes particleFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y));
  }
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* Filter Buttons */
.filter-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Category Sections */
.category-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.category-hero > * {
  position: relative;
  z-index: 2;
}

/* Footer */
footer {
  background: var(--muted);
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--foreground);
}

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 70rem;
  max-height: 95vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .modal-content {
    max-width: 80rem;
    max-height: 90vh;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

/* Product Modal */
.product-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb {
  width: 4rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.product-thumb:hover {
  opacity: 1;
}

.product-thumb.active {
  border-color: white;
  opacity: 1;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cart Modal */
.cart-item-image {
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.cart-item-remove {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-item-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Form Elements */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-slide-down {
  animation: slideDown 0.5s ease forwards;
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Grid Layouts */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .grid-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* Image Zoom Effect */
.zoom-hover {
  overflow: hidden;
}

.zoom-hover img {
  transition: transform 0.5s ease;
}

.zoom-hover:hover img {
  transform: scale(1.1);
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--muted);
}

::-webkit-scrollbar-thumb {
  background: var(--muted-foreground);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--foreground);
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--muted) 25%, var(--border) 50%, var(--muted) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast Notifications - Dark Mode */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 1.5rem;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border-radius: 12px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(220, 38, 38, 0.2);
  z-index: 10000;
  transition: all 0.3s ease;
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: white;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  border-left: 4px solid #22c55e;
}

.toast-error {
  border-left: 4px solid #dc2626;
}

/* Cart Notification - Beautiful Design */
.cart-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(220, 38, 38, 0.5);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(220, 38, 38, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90vw;
  width: 400px;
}

.cart-notification.show {
  transform: translateX(-50%) translateY(0);
}

.cart-notification-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-notification-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(145deg, #dc2626, #991b1b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  animation: cartPopIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-notification-icon .material-icons {
  font-size: 28px;
  color: white;
  animation: cartBounce 0.6s ease;
}

.cart-notification-details {
  flex: 1;
  min-width: 0;
}

.cart-notification-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-notification-product {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.cart-notification-message {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.cart-notification-count {
  background: linear-gradient(145deg, #dc2626, #991b1b);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Cart notification animations */
@keyframes cartPopIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.05); }
}

@keyframes checkmarkDraw {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.cart-notification-icon svg {
  width: 32px;
  height: 32px;
}

.cart-notification-icon svg circle {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: checkmarkDraw 0.4s ease forwards;
}

.cart-notification-icon svg path {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  animation: checkmarkDraw 0.3s ease 0.2s forwards;
}

/* Visitor Counter - Hero Section */
.visitor-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(220, 38, 38, 0.1);
  position: relative;
  overflow: hidden;
}

.visitor-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visitor-icon svg {
  width: 20px;
  height: 20px;
  color: #dc2626;
  filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.6));
}

.visitor-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.visitor-label {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.visitor-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  font-family: 'Space Grotesk', monospace;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.visitor-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e;
  animation: visitorPulse 2s ease-in-out infinite;
}

.visitor-pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: rgba(34, 197, 94, 0.4);
  border-radius: 50%;
  animation: visitorPulseRing 2s ease-in-out infinite;
}

@keyframes visitorPulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes visitorPulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Responsive visitor counter */
@media (max-width: 640px) {
  .visitor-counter {
    padding: 0.35rem 0.6rem;
    gap: 0.35rem;
  }
  
  .visitor-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .visitor-number {
    font-size: 0.75rem;
  }
}

/* Search Results Dropdown */
#search-results {
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(220, 38, 38, 0.1);
}

.search-result-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 700;
}

.search-result-empty {
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.search-result-empty .material-icons {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.search-result-count {
  padding: 0.5rem 1rem;
  background: rgba(220, 38, 38, 0.1);
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Shake animation for validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Cart Modal Enhanced - Dark Mode */
.cart-modal-enhanced {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  border-radius: 20px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(220, 38, 38, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Cart Header */
.cart-header {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 100%);
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
  overflow: hidden;
}

.cart-header-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
  animation: cartGlow 3s ease-in-out infinite;
}

@keyframes cartGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.cart-title {
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-icon {
  font-size: 1.75rem !important;
  color: #dc2626;
  filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.5));
}

/* Cart Items Container */
.cart-items-container {
  padding: 1rem 1.5rem;
  max-height: 55vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(220, 38, 38, 0.3) transparent;
}

.cart-items-container::-webkit-scrollbar {
  width: 6px;
}

.cart-items-container::-webkit-scrollbar-track {
  background: transparent;
}

.cart-items-container::-webkit-scrollbar-thumb {
  background: rgba(220, 38, 38, 0.3);
  border-radius: 3px;
}

/* Cart Empty State */
.cart-empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

.cart-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseEmpty 2s ease-in-out infinite;
}

@keyframes pulseEmpty {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px 10px rgba(220, 38, 38, 0.1); }
}

.cart-empty-icon .material-icons {
  font-size: 2.5rem !important;
  color: rgba(220, 38, 38, 0.5);
}

.cart-empty-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.cart-empty-subtext {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Cart Item */
.cart-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.cart-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #dc2626 0%, rgba(220, 38, 38, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(220, 38, 38, 0.3);
  transform: translateX(5px);
}

.cart-item:hover::before {
  opacity: 1;
}

.cart-item-image-container {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}

.cart-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image {
  transform: scale(1.1);
}

.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.cart-item-info {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
  text-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.cart-item-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cart-item-remove:hover {
  background: rgba(220, 38, 38, 0.3);
  border-color: #dc2626;
  color: white;
  transform: scale(1.1);
}

.cart-item-remove .material-icons {
  font-size: 1rem !important;
}

/* Cart Total Section */
.cart-total-section {
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(220, 38, 38, 0.05) 50%, rgba(220, 38, 38, 0.1) 100%);
  border-top: 1px solid rgba(220, 38, 38, 0.2);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-total-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.cart-total-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.cart-total-old {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

/* Cart Discount */
.cart-discount-section {
  margin-bottom: 1rem;
}

.cart-discount-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.cart-discount-input-group {
  display: flex;
  gap: 0.5rem;
}

.cart-discount-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cart-discount-input:focus {
  outline: none;
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

.cart-discount-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cart-discount-btn {
  padding: 0.75rem 1.25rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-discount-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

.cart-discount-applied {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  color: #22c55e;
  font-size: 0.9rem;
}

/* Cart Checkout Button */
.cart-checkout-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(220, 38, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cart-checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cart-checkout-btn:hover::before {
  left: 100%;
}

.cart-checkout-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(220, 38, 38, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cart-checkout-btn:active {
  transform: translateY(0);
}

/* Cart Scrollbar */
.cart-items-container::-webkit-scrollbar {
  width: 6px;
}

.cart-items-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.cart-items-container::-webkit-scrollbar-thumb {
  background: rgba(220, 38, 38, 0.3);
  border-radius: 3px;
}

.cart-items-container::-webkit-scrollbar-thumb:hover {
  background: rgba(220, 38, 38, 0.5);
}

/* Mobile Cart Modal */
@media (max-width: 640px) {
  .cart-modal-enhanced {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    margin: auto 0 0 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 10001;
    animation: slideUpMobile 0.3s ease-out;
  }
  
  .cart-header {
    padding: 1rem 1.25rem;
    border-radius: 20px 20px 0 0;
  }
  
  .cart-title {
    font-size: 1.1rem;
    gap: 0.5rem;
  }
  
  .cart-icon {
    font-size: 1.5rem !important;
  }
  
  .cart-items-container {
    padding: 0.75rem 1rem;
    max-height: 50vh;
    gap: 0.75rem;
  }
  
  .cart-item {
    padding: 0.6rem;
    gap: 0.75rem;
    border-radius: 10px;
  }
  
  .cart-item-image-container {
    width: 55px;
    height: 55px;
    border-radius: 6px;
  }
  
  .cart-item-name {
    font-size: 0.85rem;
  }
  
  .cart-item-info {
    font-size: 0.75rem;
  }
  
  .cart-item-price {
    font-size: 0.9rem;
  }
  
  .cart-item-remove {
    width: 24px;
    height: 24px;
    top: 0.35rem;
    right: 0.35rem;
  }
  
  .cart-total-section {
    padding: 1rem 1.25rem;
  }
  
  .cart-total-row {
    margin-bottom: 0.75rem;
  }
  
  .cart-total-label {
    font-size: 0.9rem;
  }
  
  .cart-total-amount {
    font-size: 1.1rem;
  }
  
  .cart-checkout-btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 10px;
  }
  
  .cart-empty {
    padding: 2rem 1rem;
  }
  
  .cart-empty-icon {
    width: 60px;
    height: 60px;
  }
  
  .cart-empty-icon .material-icons {
    font-size: 2rem !important;
  }
  
  .cart-empty-text {
    font-size: 1rem;
  }
  
  /* Quantity controls mobile */
  .quantity-control {
    gap: 0.5rem;
  }
  
  .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    border-radius: 6px;
  }
  
  .qty-value {
    font-size: 0.9rem;
    min-width: 28px;
  }
}

/* Slide Up Animation for Mobile Cart */
@keyframes slideUpMobile {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Utility Classes */
.text-balance {
  text-wrap: balance;
}

.truncate-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Aspect Ratios */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-portrait {
  aspect-ratio: 3 / 4;
}

.aspect-horizontal {
  aspect-ratio: 4 / 3;
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dark .glass {
  background: rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

/* Glow Effect */
.glow {
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.glow-hover:hover {
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

/* Border Gradient */
.border-gradient {
  border: double 2px transparent;
  background-image: linear-gradient(var(--card), var(--card)), linear-gradient(135deg, var(--primary), #f59e0b);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Bounce Animation */
.bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(-5%); }
  50% { transform: translateY(0); }
}

/* Spin Animation */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Ping Animation */
.ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Drop Shadow */
.drop-shadow {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.drop-shadow-lg {
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Backdrop Blur */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur-md {
  backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(12px);
}

.backdrop-blur-xl {
  backdrop-filter: blur(16px);
}

/* Content Visibility */
.content-visibility-auto {
  content-visibility: auto;
}

.content-visibility-contain {
  content-visibility: contain;
}

/* Contain Intrinsic Size */
.contain-intrinsic-size-auto {
  contain-intrinsic-size: auto;
}

.contain-intrinsic-size_300px {
  contain-intrinsic-size: 300px;
}

/* Focus Within */
.focus-within_ring {
  focus-within: ring 2px var(--primary);
}

/* Image Rendering */
.image-rendering-auto {
  image-rendering: auto;
}

.image-rendering-pixelated {
  image-rendering: pixelated;
}

.image-rendering-crisp-edges {
  image-rendering: crisp-edges;
}

/* List Reset */
.list-none {
  list-style: none;
}

/* Marker */
.marker\:text-red-500::marker {
  color: #dc2626;
}

.marker\:text-sm::marker {
  font-size: 0.875rem;
}

/* Selection */
.selection\:bg-red-500::selection {
  background: #dc2626;
  color: white;
}

.selection\:text-white::selection {
  color: white;
}

/* Tab Size */
.tab-size_2 {
  tab-size: 2;
}

.tab-size_4 {
  tab-size: 4;
}

/* Text Decorations */
.underline-offset_auto {
  text-decoration-thickness: auto;
}

.underline-offset_2px {
  text-decoration-thickness: 2px;
}

.underline-offset_4px {
  text-decoration-thickness: 4px;
}

/* hyphens */
.hyphens-none {
  hyphens: none;
}

.hyphens-manual {
  hyphens: manual;
}

.hyphens-auto {
  hyphens: auto;
}

/* Writing Modes */
.writing-vertical-rl {
  writing-mode: vertical-rl;
}

.writing-vertical-lr {
  writing-mode: vertical-lr;
}

.writing-horizontal-tb {
  writing-mode: horizontal-tb;
}

/* Transform Origin */
.transform-origin_center {
  transform-origin: center;
}

.transform-origin_top {
  transform-origin: top;
}

.transform-origin_right {
  transform-origin: right;
}

.transform-origin_bottom {
  transform-origin: bottom;
}

.transform-origin_left {
  transform-origin: left;
}

/* Transition Timing */
.ease-linear {
  transition-timing-function: linear;
}

.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Will Change */
.will-change-auto {
  will-change: auto;
}

.will-change-scroll {
  will-change: scroll-position;
}

.will-change-contents {
  will-change: contents;
}

.will-change-transform {
  will-change: transform;
}

/* Z-Index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* ===== USER MENU STYLES ===== */

/* Hide elements initially to prevent flash */
#user-menu-desktop,
#logged-menu,
#logged-menu-mobile,
#user-menu-mobile {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#user-menu-desktop.visible,
#logged-menu.visible,
#logged-menu-mobile.visible,
#user-menu-mobile.visible {
  visibility: visible;
  opacity: 1;
}

/* Hide initially by default */
#guest-menu.hidden,
#guest-menu-mobile.hidden {
  display: none !important;
}

/* Avatar initials */
.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
}

/* Avatar images */
#user-btn img,
#user-btn-desktop img,
#user-avatar img,
#user-avatar-desktop img,
#profile-avatar img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
}

/* User menu desktop - hidden by default */
#user-menu-desktop {
  position: relative;
  display: none;
}

#user-menu-desktop.visible {
  display: flex;
}

/* Guest menu desktop - visible by default */
#guest-menu-desktop {
  display: flex;
}

#guest-menu-desktop.hidden {
  display: none;
}

/* Hide logged menu by default to prevent flash */
#logged-menu {
  display: none !important;
}

#logged-menu.visible {
  display: block !important;
}

/* Guest menu mobile */
#guest-menu {
  display: block;
}

#guest-menu.hidden {
  display: none !important;
}

/* Ensure proper visibility for mobile menu */
@media (max-width: 768px) {
  #guest-menu.hidden {
    display: none !important;
  }
  
  #logged-menu.visible {
    display: block !important;
  }
}

#user-btn-desktop {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#user-btn-desktop:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* User avatar mobile */
#user-btn {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease;
}

#user-btn:active {
  transform: scale(0.95);
}

/* ========================================
   ENHANCED QUICK VIEW BUTTON STYLES
   ======================================== */

.product-card-actions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  bottom: 1rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.quick-view-btn {
  position: relative;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 
    0 0 20px rgba(220, 38, 38, 0.5),
    0 0 40px rgba(220, 38, 38, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Shimmer effect */
.quick-view-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.quick-view-btn:hover::before {
  left: 100%;
}

/* Glow pulse effect */
.quick-view-btn::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #dc2626, #f87171, #dc2626);
  border-radius: 8px;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  animation: glow-pulse-btn 2s ease-in-out infinite;
}

@keyframes glow-pulse-btn {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.quick-view-btn:hover::after {
  opacity: 1;
}

.quick-view-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 0 30px rgba(220, 38, 38, 0.7),
    0 0 60px rgba(220, 38, 38, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.quick-view-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Scan line effect on button */
.quick-view-btn .scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0;
  animation: scan-line-btn 2s ease-in-out infinite;
}

@keyframes scan-line-btn {
  0% { transform: translateY(-10px); opacity: 0; }
  50% { transform: translateY(calc(100% + 10px)); opacity: 1; }
  100% { transform: translateY(calc(100% + 10px)); opacity: 0; }
}

/* ========================================
   ENHANCED PRODUCT MODAL STYLES - FULLY DARK MODE
   ======================================== */

/* Modal backdrop with blur */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  background: linear-gradient(145deg, #0a0a0a 0%, #000000 100%);
  border-radius: 20px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(220, 38, 38, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(220, 38, 38, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Modal grid layout - full width on mobile */
.modal-content .grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  height: auto !important;
}

@media (min-width: 768px) {
  .modal-content .grid {
    grid-template-columns: 1fr 1fr !important;
    height: auto !important;
  }
  
  .product-modal-image-container {
    min-height: 500px !important;
    height: auto !important;
  }
  
  .product-modal-image-container img#modal-main-image {
    height: 500px !important;
    object-fit: cover !important;
  }
  
  .modal-product-info {
    padding: 2.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 500px !important;
  }
  
  .modal-product-name {
    font-size: 2rem !important;
  }
  
  .modal-product-price {
    font-size: 2rem !important;
  }
  
  .modal-product-description {
    font-size: 1rem !important;
    line-height: 1.8 !important;
  }
  
  .modal-section-label {
    font-size: 0.85rem !important;
  }
  
  .color-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .size-btn {
    width: 3rem !important;
    height: 3rem !important;
    font-size: 0.9rem !important;
  }
  
  #modal-add-to-cart {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .payphone-btn {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
  }
}

/* Enhanced modal close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.2);
  border: 2px solid rgba(220, 38, 38, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.modal-close:hover {
  background: rgba(220, 38, 38, 0.6);
  border-color: rgba(220, 38, 38, 0.8);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.modal-close span {
  font-size: 1.5rem;
  line-height: 1;
}

/* Product modal image container - FULL IMAGE VIEW without gaps */
.product-modal-image-container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  height: 100%;
  min-height: 350px;
}

.product-modal-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.8) 100%),
    linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}

.product-modal-image-container img#modal-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}

@media (min-width: 768px) {
  .product-modal-image-container {
    min-height: 500px !important;
  }
  
  .product-modal-image-container img#modal-main-image {
    height: 100% !important;
    min-height: 500px !important;
  }
}

/* Pattern overlay to fill any gaps */
.product-modal-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(220, 38, 38, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
  pointer-events: none;
}

/* Thumbnails container */
.product-modal-image-container > div:not(.absolute) {
  position: absolute !important;
}

/* Enhanced product thumbnails */
.product-thumb {
  width: 4rem;
  height: 5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
}

.product-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.product-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.product-thumb.active {
  opacity: 1;
  border-color: #dc2626;
}

.product-thumb.active::before {
  border-color: #dc2626;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-thumb:hover img {
  transform: scale(1.1);
}

/* Enhanced modal product info */
.modal-product-info {
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.03) 0%, #000 50%);
  height: auto;
  overflow-y: visible;
}

@media (min-width: 768px) {
  .modal-product-info {
    padding: 2rem;
    height: auto;
    overflow-y: visible;
  }
}

.modal-product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(220, 38, 38, 0.2);
}

@media (min-width: 768px) {
  .modal-product-name {
    font-size: 2rem;
  }
}

.modal-product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

@media (min-width: 768px) {
  .modal-product-price {
    font-size: 1.75rem;
  }
}

.modal-product-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Section labels */
.modal-section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

/* Enhanced color buttons */
.color-btn {
  position: relative;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.color-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
  color: #fff;
}

.color-btn.active {
  background: rgba(220, 38, 38, 0.3);
  border-color: #dc2626;
  color: #fff;
}

.color-btn.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

/* Enhanced size buttons */
.size-btn {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .size-btn {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.size-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
}

.size-btn.active {
  background: rgba(220, 38, 38, 0.3);
  border-color: #dc2626;
  color: #fff;
}

.size-btn.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

/* Enhanced add to cart button */
#modal-add-to-cart {
  position: relative;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(220, 38, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: 100%;
}

#modal-add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

#modal-add-to-cart:hover::before {
  left: 100%;
}

#modal-add-to-cart:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(220, 38, 38, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#modal-add-to-cart:active {
  transform: translateY(0);
}

/* Quantity selector enhancement */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 0.5rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
  width: fit-content;
}

.quantity-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.quantity-btn:hover {
  background: rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.quantity-display {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 2.5rem;
  text-align: center;
  color: white;
}

@media (min-width: 768px) {
  .quantity-display {
    font-size: 1.25rem;
    min-width: 3rem;
  }
}

/* Mobile modal optimizations - fill all space */
@media (max-width: 640px) {
  .modal {
    z-index: 99999 !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    inset: 0 !important;
  }
  
  .modal.active {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .modal-content {
    max-height: 100vh !important;
    height: 100vh !important;
    max-width: 100vw !important;
    width: 100vw !important;
    border-radius: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  
  .modal-content .grid {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  
  .product-modal-image-container {
    flex: 1 !important;
    min-height: 35vh !important;
    max-height: 40vh !important;
    width: 100% !important;
  }
  
  .product-modal-image-container img#modal-main-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  
  .modal-product-info {
    flex: 1 !important;
    padding: 1rem !important;
    max-height: none !important;
    overflow-y: auto !important;
    width: 100% !important;
  }
  
  .product-thumb {
    width: 3rem !important;
    height: 4rem !important;
  }
  
  .product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  .color-btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
  }
  
  .size-btn {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 0.75rem !important;
  }
  
  #modal-add-to-cart {
    padding: 0.8rem 1rem !important;
    font-size: 0.8rem !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }
  
  .modal-close {
    width: 3rem !important;
    height: 3rem !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    z-index: 1000 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
  }
  
  .modal-close span {
    color: white !important;
    font-size: 2rem !important;
    line-height: 1 !important;
  }
  
  .modal-close:hover {
    background: rgba(220, 38, 38, 0.9) !important;
    border-color: white !important;
  }
  
  .modal-product-name {
    font-size: 1.1rem !important;
    padding-right: 2.5rem !important;
  }
  
  .modal-product-price {
    font-size: 1.25rem !important;
  }
  
  .modal-product-description {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }
  
  .modal-section-label {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .quantity-selector {
    gap: 0.5rem !important;
  }
  
  .quantity-btn {
    width: 2rem !important;
    height: 2rem !important;
  }
  
  .quantity-display {
    min-width: 2rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Thumbnails container adjustments */
  .product-modal-image-container > div.absolute {
    bottom: 0.5rem !important;
    padding: 0.5rem !important;
    gap: 0.5rem !important;
    max-width: 80% !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    z-index: 50 !important;
  }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
  .modal-content {
    max-width: 700px;
  }
  
  .product-modal-image-container {
    height: 400px;
  }
}


