/* Icon fix */
:where([class^="ri-"])::before {
  content: "\f3c2";
} 

/* Font */
.handwritten {
  font-family: "Winky Rough";
}
 
/* Gradient effects */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #c0c0c0 50%, #808080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gradient-bg-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(192, 192, 192, 0.05) 50%, rgba(128, 128, 128, 0.08) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Touch effects */
.touch-ripple {
  position: relative;
  overflow: hidden;
}

.touch-ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.3s;
  border-radius: inherit;
  left: 0;
  top: 0;
}

.touch-ripple:active::after {
  transform: scale(2);
  opacity: 0;
}

/* Header styles */
#main-header {
  background: transparent;
}

#main-header.scrolled {
  background: rgba(26, 26, 26, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Mobile navigation */
#mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
}

#mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

#mobile-nav nav a {
  font-size: 1.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-nav.active nav a {
  opacity: 1;
  transform: translateY(0);
}

/* Animation delays for mobile nav items */
#mobile-nav.active nav a:nth-child(1) { transition-delay: 0.1s; }
#mobile-nav.active nav a:nth-child(2) { transition-delay: 0.2s; }
#mobile-nav.active nav a:nth-child(3) { transition-delay: 0.3s; }
#mobile-nav.active nav a:nth-child(4) { transition-delay: 0.4s; }
#mobile-nav.active nav a:nth-child(5) { transition-delay: 0.5s; }
#mobile-nav.active nav a:nth-child(6) { transition-delay: 0.6s; }

/* Utility classes */
.touch-scale {
  transition: transform 0.3s ease;
}

/* Scroll Indicator Styles */
#scroll-indicator {
  -webkit-user-select: none;
  user-select: none;
}

#scroll-indicator #scroll-down,
#scroll-indicator #go-to-top {
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scroll-indicator #scroll-down:hover,
#scroll-indicator #go-to-top:hover {
  transform: scale(1.1);
}

/* Pulse animation for scroll down indicator */
@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

#scroll-down .w-12 {
  animation: pulse-subtle 2s infinite;
}

/* Hide scroll indicator on very small screens */
@media (max-width: 480px) {
  #scroll-indicator {
    bottom: 1rem;
    right: 1rem;
  }
  
  #scroll-indicator .w-12 {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  #scroll-indicator .text-xs {
    font-size: 0.6rem;
  }
}

/* Read More functionality styles */
#about-mobile-expandable {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  overflow: hidden;
  max-height: 0;
}

#about-mobile-expandable.expanding {
  opacity: 1;
}

#read-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#read-more-icon {
  transition: transform 0.3s ease;
}

/* Mobile text optimization */
@media (max-width: 768px) {
  #about p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #e8e8e8;
  }
  
  /* Mobile Explore Products Button */
  .mobile-explore-btn {
    background: linear-gradient(135deg, #404040 0%, #b0b0b0 50%, #404040 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
  }
  
  .mobile-explore-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
  }
  
  .mobile-explore-btn:hover {
    background-position: right center;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .mobile-explore-btn:hover::before {
    animation: shimmer 0.5s;
  }
  
  @keyframes shimmer {
    to { transform: rotate(45deg) translateX(100%); }
  }
}

/* Gradient animation for mobile button */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Adjust scroll indicator position for mobile to avoid WhatsApp overlap */
@media (max-width: 768px) {
  #scroll-indicator {
    bottom: 5.5rem; /* Position above WhatsApp button */
    right: 1rem;
  }
  
  /* When go-to-top is active, move it to avoid WhatsApp */
  #scroll-indicator #go-to-top {
    margin-bottom: 0;
  }
  
  /* Alternative positioning - move to left side on mobile when overlapping */
  #scroll-indicator.avoid-overlap {
    right: auto;
    left: 1rem;
  }
}

.touch-scale:active {
  transform: scale(0.95);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  #mobile-menu-btn {
    position: relative;
    z-index: 10000;
  }
}

/* Fade in animation */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}












/* Hero section background */
.hero-bg {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(40, 40, 40, 0.4), rgba(0, 0, 0, 0.8)), url('../imgs/bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Slide in animation for hero content */
.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Button hover effects */
.transform {
  transition: transform 0.3s ease;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* Rounded button override */
/* .!rounded-button {
  border-radius: 20px !important;
} */

/* Additional responsive styles for hero section */
@media (max-width: 768px) {
  .hero-bg {
    padding-top: 6rem;
  }
  
  h1.text-4xl {
    font-size: 2.5rem;
  }
}



/* Hero section background */
.hero-bg {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(64, 64, 64, 0.3)), url('../imgs/bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Section background */
/* .section-bg, 
.gradient-bg-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b69 100%);
} */

body{
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  background-attachment: fixed;
}

/* Footer background */
footer.bg-black {
  background: #000000;
  position: relative;
  z-index: 1;
}

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}

.whatsapp-float a {
  transition: all 0.3s ease;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Add hover animation for WhatsApp button */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float a {
  animation: pulse 2s infinite;
}

/* Ensure WhatsApp button is visible on mobile */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}

/* Product sections - responsive handling */
#premium-section,
#products-section {
  border-radius: 8px;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
}

/* Responsive heights */
@media (min-width: 768px) and (max-width: 1024px) {
  #premium-section,
  #products-section {
    padding: 40px 16px;
  }
}

@media (min-width: 1024px) {
  #premium-section,
  #products-section {
    padding: 60px 16px;
  }
}

/* Enhanced mobile navigation for external links */
@media (max-width: 767px) {
  #premium-section,
  #products-section {
    display: none !important;
  }
  
  /* Style mobile nav links differently for external pages */
  /* #mobile-nav a[href^="/car_"] { */
    /* background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(128, 128, 128, 0.1)); */
    /* padding: 0.75rem 1.5rem; */
    /* border-radius: 8px; */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    /* transition: all 0.3s ease; */
  }
  
  #mobile-nav a[href^="/car_"]:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(128, 128, 128, 0.2));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
  }


/* Product Carousel Styles */
.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.category-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.category-btn.active {
  background: linear-gradient(135deg, #606060 0%, #303030 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.subcategory-filters {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.subcategory-filters.visible {
  display: flex;
  opacity: 1;
}

.subcategory-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.subcategory-btn.active {
  background: linear-gradient(135deg, #505050 0%, #303030 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.carousel-container {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.15) 100%);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: max-content;
  scroll-behavior: smooth;
}

/* Force mobile vertical layout with higher specificity */
@media (max-width: 768px) {
  .carousel-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.product-card {
  min-width: 416px;
  max-width: 416px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(128, 128, 128, 0.03) 50%, rgba(0, 0, 0, 0.2) 100%);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 26px;
  margin: 0 13px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.product-image {
  width: 100%;
  height: 234px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #000000 100%);
  border-radius: 15px;
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.05),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  animation: imageGlow 4s ease-in-out infinite;
}

@keyframes imageGlow {
  0%, 100% { opacity: 0.3; transform: rotate(0deg); }
  50% { opacity: 0.1; transform: rotate(180deg); }
}

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

.product-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #f0f0f0;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.product-specs {
  display: grid;
  gap: 8px;
  width: 100%;
  overflow: hidden;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  width: 100%;
  gap: 8px;
  align-items: flex-start;
}

.spec-label {
  color: #e0e0e0;
  font-weight: 600;
  flex: 0 0 auto;
  max-width: 60%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.spec-value {
  color: #f5f5f5;
  flex: 1 1 auto;
  text-align: right;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  max-width: 40%;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(128, 128, 128, 0.2) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.8rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(192, 192, 192, 0.3) 100%);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-btn.prev {
  left: 15px;
}

.nav-btn.next {
  right: 15px;
}

/* Dots Indicator */
.dots-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot.active {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  transform: scale(1.3);
  border-color: #ffffff;
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.7),
    0 0 40px rgba(255, 255, 255, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.8);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(255, 255, 255, 0.7),
      0 0 40px rgba(255, 255, 255, 0.3),
      inset 0 0 5px rgba(255, 255, 255, 0.8);
  }
  50% { 
    box-shadow: 
      0 0 30px rgba(255, 255, 255, 0.9),
      0 0 60px rgba(255, 255, 255, 0.4),
      inset 0 0 10px rgba(255, 255, 255, 1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-container {
    padding: 10px;
    margin: 0 -5px;
  }
  
  .product-card {
    min-width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 10px auto;
    padding: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    min-height: 0;
    box-shadow: 
      0 6px 20px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .product-image {
    height: 200px;
    margin-bottom: 15px;
  }
  
  .product-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    padding: 0 5px;
  }
  
  .spec-row {
    font-size: 0.85rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .spec-label {
    max-width: 65%;
    font-size: 0.75rem;
  }
  
  .spec-value {
    max-width: 35%;
    font-size: 0.75rem;
  }
  
  .nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }
  
  .nav-btn.prev {
    left: 10px;
  }
  
  .nav-btn.next {
    right: 10px;
  }
  
  .category-filters {
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .category-btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .subcategory-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    min-height: 40px;
    display: flex;
    align-items: center;
  }
}

/* Extra small mobile screens */
@media (max-width: 375px) {
  .carousel-container {
    padding: 8px;
    margin: 0 -3px;
  }
  
  .product-card {
    min-width: 290px;
    max-width: 290px;
    margin: 0 6px;
    padding: 16px;
  }
  
  .product-image {
    height: 160px;
  }
  
  .nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-card {
    min-width: 300px;
    max-width: 300px;
  }
  
  .product-image {
    height: 170px;
  }
}

@media (min-width: 1025px) {
  .carousel-container {
    padding: 25px;
  }
  
  .product-card {
    min-width: 340px;
    max-width: 340px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  max-width: 1000px;
  margin: 50px auto;
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: #cccccc;
  transform: scale(1.1);
}

.modal-title {
  font-size: 2rem;
  font-weight: bold;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.modal-images {
  position: relative;
  margin-bottom: 30px;
}

.modal-images-container {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #1a1a2e 0%, #000000 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-image {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.modal-image.active {
  display: block;
}

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

.modal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.modal-nav-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.6rem;
  font-weight: bold;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  -webkit-user-select: none;
  user-select: none;
}

.modal-nav-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.modal-nav-btn:active {
  transform: scale(0.9);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.modal-nav-dots {
  display: flex;
  gap: 8px;
}

.modal-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-nav-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

.modal-specs {
  display: grid;
  gap: 20px;
}

.modal-spec-group {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal-spec-label {
  color: #e0e0e0;
  font-weight: 600;
  flex: 1;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.modal-spec-value {
  color: white;
  flex: 1;
  text-align: right;
}

@media (max-width: 768px) {
  /* Mobile container fixes */
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Override base carousel wrapper styles for mobile vertical layout */
  .carousel-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: 80vh !important;
    gap: 15px !important;
    padding: 5px 0 !important;
    margin: 0 !important;
  }
  
  /* Additional class for JavaScript controlled mobile layout */
  .carousel-wrapper.mobile-vertical {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Mobile product card styles */
  .product-card {
    min-width: 95% !important;
    max-width: 95% !important;
    width: 95% !important;
    margin: 8px auto !important;
    padding: 12px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    box-sizing: border-box !important;
  }
  
  /* Hide carousel navigation on mobile */
  .nav-btn {
    display: none !important;
  }
  
  .dots-container {
    display: none !important;
  }
  
  .modal-content {
    margin: 20px;
    padding: 20px;
  }
  
  .modal-images-container {
    height: 250px;
  }
  
  .modal-spec-row {
    flex-direction: column;
    gap: 5px;
  }
  
  .modal-spec-value {
    text-align: left;
  }
}









































