@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #F39200;
  --primary-dark: #cc7b00;
  --secondary: #1a1a1a;
  --text: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --bg: #f8f9fa;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  --radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 100px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container img {
  height: 60px;
  width: auto;
  transition: var(--transition);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Slightly reduced gap */
  flex: 1.4;
}

.categories-dropdown {
  position: relative;
}

.categories-btn {
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 12px;
  transition: var(--transition);
}

.categories-btn:hover {
  background: #f1f3f5;
  color: var(--primary);
}

.header-nav-link {
  text-decoration: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 12px;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.header-nav-link:hover {
  background: #f1f3f5;
  color: var(--primary);
  transform: translateY(-2px);
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.header-nav-link:hover::after {
  width: 15px;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Triangle indicator */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 25px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid rgba(0, 0, 0, 0.04);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.categories-dropdown:hover .dropdown-content,
.dropdown-content.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.dropdown-content .nav-link {
  padding: 14px 18px;
  border-radius: 16px;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: var(--transition);
}

.dropdown-content .nav-link ion-icon {
  font-size: 1.25rem;
  color: var(--text-light);
  transition: var(--transition);
}

.dropdown-content .nav-link:hover {
  background: #f8f9fa;
  color: var(--primary);
  transform: translateX(5px);
}

.dropdown-content .nav-link:hover ion-icon {
  color: var(--primary);
}

.dropdown-content .nav-link.active {
  background: #fffaf0;
  color: var(--primary);
  font-weight: 700;
}

.dropdown-content .nav-link.active ion-icon {
  color: var(--primary);
}

.nav-center {
  flex: 1.6;
  display: flex;
  justify-content: center;
  max-width: 500px;
}

.search-bar {
  width: 100%;
  background: #f1f3f5;
  border-radius: 30px;
  padding: 12px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.search-bar:focus-within {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-bar ion-icon {
  color: var(--text-light);
  font-size: 1.2rem;
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
}

.config-btn-header {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.config-btn-header:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(243, 146, 0, 0.2);
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
}

.selection-trigger {
  position: relative;
  width: 45px;
  height: 45px;
  background: #f1f3f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: var(--transition);
}

.selection-trigger:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.faq-trigger {
  border: none;
  color: inherit;
}

.selection-trigger.pulse {
  animation: heartbeat 0.4s ease;
}

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

  50% {
    transform: scale(1.3);
  }

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

/* Offer Badge Stylized */
.offer-badge {
  position: absolute;
  top: 10px;
  left: -5px;
  /* "Corta" el borde */
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 15px;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(243, 146, 0, 0.3);
  text-transform: uppercase;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid white;
}

/* Configurator Hero Light Theme */
.configurator-hero {
  background: #ffffff;
  border: 1px solid rgba(243, 146, 0, 0.15);
  border-radius: 40px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
}

.configurator-hero:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(243, 146, 0, 0.15);
}

.configurator-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(243, 146, 0, 0.08) 100%);
  pointer-events: none;
}

.config-hero-content {
  color: var(--secondary);
  z-index: 2;
}

.tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.config-hero-content h1 {
  font-size: 4.2rem;
  letter-spacing: -0.04em;
  margin-bottom: 30px;
}

.config-hero-content p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 500px;
}

.action-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(243, 146, 0, 0.2);
}

.action-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(243, 146, 0, 0.3);
}

.config-hero-img {
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

.config-hero-img img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 40px;
  transform: rotate(4deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.configurator-hero:hover .config-hero-img img {
  transform: rotate(0deg) scale(1.05);
}

/* Inspiration Gallery */
.inspiration-gallery {
  margin-bottom: 100px;
}

.inspiration-header {
  margin-bottom: 50px;
  text-align: center;
}

.inspiration-header .section-title {
  text-align: center;
}

.inspiration-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Inspiration Gallery Manual Carousel */
.inspiration-gallery {
  margin-bottom: 100px;
}

.carousel-wrapper,
.news-carousel-wrapper,
.fabrics-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 20px 100px;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 100px;
  /* Efecto de desvanecimiento lateral */
  -webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
  mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
}

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

.gallery-item {
  width: 250px;
  /* Slightly larger as requested */
  height: 310px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 2px solid transparent;
  /* Prepare for hover border */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(243, 146, 0, 0.2);
  border-color: var(--primary);
  /* Orange border on hover */
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: white;
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.carousel-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
  left: 20px;
}

.carousel-arrow.next {
  right: 20px;
}

@media (max-width: 768px) {
  .carousel-wrapper {
    padding: 0;
  }

  .carousel-container {
    padding: 20px;
    scroll-padding: 0 20px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
  }

  .carousel-arrow {
    display: flex;
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  }

  .carousel-arrow.prev {
    left: 5px;
  }

  .carousel-arrow.next {
    right: 5px;
  }

  .gallery-item {
    width: 150px;
    height: 200px;
  }

  .news-carousel-wrapper .carousel-arrow,
  .fabrics-carousel-wrapper .carousel-arrow {
    display: none !important;
  }
}





/* News Section */
.news-section {
  padding: 100px 0;
  background: white;
  /* Unified with other sections */
}

.news-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  margin-top: 40px;
}

.news-card {
  background: #ffffff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(243, 146, 0, 0.1);
}

.news-card-img {
  height: 250px;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card-img img {
  transform: scale(1.1);
}

.news-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-card h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--secondary);
  font-weight: 700;
}

.news-card p {
  color: var(--text-light);
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* News Detail Modal */
.news-detail-modal {
  max-width: 900px !important;
  height: auto !important;
  max-height: 90vh !important;
}

.news-detail-content {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.news-detail-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.news-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-detail-text {
  padding: 50px;
}

.news-detail-text h2 {
  font-size: 2.5rem;
  margin: 15px 0 25px 0;
  line-height: 1.2;
}

.news-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
}

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

  .news-detail-text {
    padding: 30px;
  }

  .news-detail-text h2 {
    font-size: 1.8rem;
  }

  .news-detail-image {
    height: 250px;
  }
}

/* Product Section */
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 50px;
  text-align: center;
  /* Centered as per new aesthetic */
  color: var(--secondary);
  position: relative;
}

.section-subtitle {
  text-align: center;
  margin-top: -30px;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
}

.products-section {
  padding: 40px 0 80px;
  overflow: hidden;
  background: #fff;
}

.products-section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.products-section .section-title {
  margin-bottom: 40px;
  text-align: left;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.category-group {
  width: 100%;
  margin-top: 48px;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.category-group:first-child {
  margin-top: 0;
}

.category-group::before {
  display: none;
}

.category-group-header {
  position: static;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.category-group-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #666;
  line-height: 1.3;
}

.category-group-title .category-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
}

.product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid.categorized {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.product-grid.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  border-top: 1px solid #ebebeb;
}

.product-lifestyle-banner {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  margin-top: 8px;
}

.product-lifestyle-banner img {
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Category Carousel Styles */
.category-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  /* Eliminamos el padding de aquí */
  overflow: hidden;
  /* Evitamos que las tarjetas salgan del contenedor */
}

.category-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: white;
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-carousel-nav:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.category-carousel-nav.prev {
  left: 20px;
}

.category-carousel-nav.next {
  right: 20px;
}

.product-grid.categorized-carousel {
  display: flex;
  grid-template-columns: none;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 20px 100px 40px 100px;
  width: 100%;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 100px;
  /* Efecto de desvanecimiento lateral premium */
  -webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
  mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent);
}

.product-grid.categorized-carousel::-webkit-scrollbar {
  display: none;
}

.product-grid.categorized-carousel .product-card {
  flex: 0 0 340px;
  max-width: 340px;
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .product-grid.categorized-carousel {
    padding: 20px 50px 40px 50px;
    scroll-padding: 0 50px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 50px, black calc(100% - 50px), transparent);
    mask-image: linear-gradient(to right, transparent, black 50px, black calc(100% - 50px), transparent);
  }
}

@media (max-width: 768px) {
  .category-carousel-nav {
    display: flex !important;
    width: 35px !important;
    height: 35px !important;
    font-size: 1.1rem !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10) !important;
  }

  .category-carousel-nav.prev {
    left: 5px !important;
  }

  .category-carousel-nav.next {
    right: 5px !important;
  }

  .category-carousel-nav:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
  }

  .product-grid.categorized-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    padding: 20px 0 40px 0 !important;
    width: 100% !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding: 0 !important;
    gap: 15px !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .product-grid.categorized-carousel::-webkit-scrollbar {
    display: none !important;
  }

  .product-grid.categorized-carousel .product-card {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    scroll-snap-align: center !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease !important;
    opacity: 0.45 !important;
    transform: scale(0.82) !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    text-align: center !important;
  }

  .product-grid.categorized-carousel .product-card .product-image-wrapper {
    height: 220px !important;
    border-radius: 0 !important;
  }

  .product-grid.categorized-carousel .product-card.active-card {
    opacity: 1 !important;
    transform: scale(1) !important;
    box-shadow: none !important;
  }
}

.product-card.shop-card {
  padding: 0;
  border: none;
  border-right: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  box-shadow: none;
  border-radius: 0;
  background: #fff;
  transition: transform 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}

.product-card.shop-card:nth-child(2n) {
  border-right: none;
}

.product-card.shop-card:hover {
  transform: none;
}

.category-product-count {
  margin-right: 6px;
}

.product-card.shop-card .product-image-wrapper {
  background: #f3f3f3;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 220px;
  padding: 24px;
  margin: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card.shop-card .product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #3f5d47;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  z-index: 3;
  line-height: 1.2;
}

.card-cart-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 3;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card-cart-btn:hover {
  transform: scale(1.05);
  border-color: #b8b8b8;
}

.product-card.shop-card .product-info {
  padding: 12px 14px 16px;
  background: #fff;
  text-align: left;
}

.product-colors {
  margin-top: 10px;
  margin-bottom: 0;
}

.product-colors-label {
  display: block;
  font-size: 0.72rem;
  color: #8a8a8a;
  margin-bottom: 6px;
}

.product-color-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-color-swatch {
  width: 22px;
  height: 22px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  padding: 0;
}

.product-color-swatch.active {
  outline: 2px solid #1a1a1a;
  outline-offset: 1px;
}

.product-card.shop-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0;
}

.product-card.shop-card .price-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.product-card.shop-card .price {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
}

.product-card.shop-card .price.old-price {
  font-size: 0.85rem;
  color: #aaa;
  text-decoration: line-through;
}

/* Legacy card styles for modals / other views */
.product-card:not(.shop-card) {
  padding: 0;
  border: 2px solid transparent;
  box-shadow: none;
  border-radius: 25px;
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.product-card:not(.shop-card):hover {
  transform: translateY(-5px);
}

.product-card:not(.shop-card) .product-image-wrapper {
  background: var(--bg);
  width: 100%;
  height: 340px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card:not(.shop-card) .product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.card-favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 5;
  transition: var(--transition);
}

.product-info {
  padding: 15px 10px;
  background: transparent;
  text-align: center;
}

.desde-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.product-card:not(.shop-card) h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.product-card:not(.shop-card) .price {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 5px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .products-section {
    padding: 24px 0 48px;
  }

  .products-section-inner {
    padding: 0;
    max-width: none;
  }

  .products-section .section-title,
  .category-group-header {
    padding: 0 16px;
  }

  .products-section .section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }

  .category-group {
    margin-top: 32px;
    gap: 0;
  }

  .category-group-title {
    font-size: 0.95rem;
  }

  .category-group-title .category-name {
    font-size: 1.1rem;
  }

  .product-grid.shop-grid,
  .category-group .product-grid.shop-grid,
  #productGrid.shop-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }

  .product-card.shop-card .product-image-wrapper {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 10px;
  }

  .product-card.shop-card .product-info {
    padding: 10px 12px 14px;
  }

  .product-card.shop-card h3 {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .product-card.shop-card .price {
    font-size: 0.8rem;
  }

  .product-card.shop-card .price.old-price {
    font-size: 0.72rem;
  }

  .product-badge {
    top: 8px;
    left: 8px;
    font-size: 0.62rem;
    padding: 5px 8px;
  }

  .card-cart-btn {
    width: 34px;
    height: 34px;
    right: 8px;
    bottom: 8px;
    font-size: 0.95rem;
  }

  .product-colors-label {
    font-size: 0.62rem;
    margin-bottom: 4px;
  }

  .product-color-swatch {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 380px) {
  .product-card.shop-card h3 {
    font-size: 0.76rem;
  }
}

@media (min-width: 992px) {
  .product-grid.shop-grid,
  .category-group .product-grid.shop-grid,
  #productGrid.shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card.shop-card:nth-child(2n) {
    border-right: 1px solid #ebebeb;
  }

  .product-card.shop-card:nth-child(3n) {
    border-right: none;
  }

  .product-card.shop-card .product-info {
    padding: 12px 14px 16px;
  }

  .product-card.shop-card h3 {
    font-size: 0.92rem;
  }
}

@media (min-width: 1280px) {
  .product-grid.shop-grid,
  .category-group .product-grid.shop-grid,
  #productGrid.shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-card.shop-card:nth-child(3n) {
    border-right: 1px solid #ebebeb;
  }

  .product-card.shop-card:nth-child(4n) {
    border-right: none;
  }
}

/* Modal Styling - COMPLETELY REDESIGNED */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 1200px;
  height: 85vh;
  max-height: 800px;
  border-radius: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 450px;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.modal-content.lightbox-modal {
  max-width: 650px;
  width: 90%;
  aspect-ratio: 4 / 3;
  grid-template-columns: 1fr;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.lightbox-img-container {
  width: 100%;
  height: 100%;
  padding: 0;
  position: relative;
}

.lightbox-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  background: transparent;
  padding: 0;
}



.modal-visuals {
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-right: 1px solid #eee;
}

.main-image-viewport {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
}

.main-image-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.thumbnail-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.thumbnail-strip {
  display: flex;
  gap: 15px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 5px 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.thumbnail-strip::-webkit-scrollbar {
  display: none;
}

.thumb-arrow {
  background: white;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  z-index: 5;
}

.thumb-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

.thumb {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  border: 3px solid transparent;
  cursor: pointer;
  object-fit: contain;
  background: white;
  flex-shrink: 0;
  transition: var(--transition);
}

.thumb.active {
  border-color: var(--primary);
  transform: scale(1.1);
}

.modal-info {
  padding: 40px;
  overflow-y: auto !important;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  /* Crucial for grid overflow */
  word-wrap: break-word;
  overflow-wrap: break-word;
}


/* Custom Scrollbar for Modal Info */
.modal-info::-webkit-scrollbar {
  width: 8px;
}

.modal-info::-webkit-scrollbar-track {
  background: #f1f3f5;
  border-radius: 10px;
}

.modal-info::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
  border: 2px solid #f1f3f5;
}

.modal-info::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}


.modal-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.modal-price {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0;
}

/* Description Accordion */
.product-description-container {
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f3f5;
}

.description-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-light);
  font-size: 1.1rem;
  transition: var(--transition);
}

.description-header:hover {
  color: var(--primary);
}

.description-header ion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.description-header.active {
  color: var(--text);
}

.description-header.active ion-icon {
  transform: rotate(180deg);
}

.product-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  padding-bottom: 20px;
  display: none;
  /* Plegada por defecto */
}

.product-description.active {
  display: block;
  /* Desplegada cuando está activa */
}


/* Color Selectors */
.color-selector-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-text-btn {
  padding: 10px 20px;
  border: 1px solid var(--primary);
  background: white;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border-radius: 4px;
  /* Slight rounding or none, image has sharp/slight rounded corners */
}

.color-text-btn:hover {
  background: #fffdfa;
  box-shadow: 0 4px 10px rgba(243, 146, 0, 0.1);
}

.color-text-btn.active {
  border-width: 2px;
  font-weight: 700;
  color: var(--primary);
  padding: 9px 19px;
  /* Adjust padding to compensate for thicker border so size stays same */
  background: #fffaf0;
}

/* Variations */
.variation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.variation-chip {
  padding: 10px 20px;
  background: white;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--primary);
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
}

.variation-chip:hover {
  background: #fffdfa;
  box-shadow: 0 4px 10px rgba(243, 146, 0, 0.1);
}

.variation-chip.selected {
  background: #fffaf0;
  border-width: 2px;
  color: var(--primary);
  font-weight: 700;
  padding: 9px 19px;
  box-shadow: 0 5px 15px rgba(243, 146, 0, 0.1);
}

.selection-panel {
  position: fixed;
  right: -500px;
  top: 0;
  width: 500px;
  height: 100%;
  background: white;
  z-index: 3000;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
  padding: 50px;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.selection-panel.active {
  right: 0;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(243, 146, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  color: var(--text);
}

.close-btn:hover {
  background: #f8f9fa;
  transform: rotate(90deg);
  border-color: var(--primary);
  color: var(--primary);
}

/* Selection Panel Items */
.selection-list {
  flex-grow: 1;
  overflow-y: auto;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.selection-item {
  display: flex;
  gap: 15px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 20px;
  align-items: center;
}

.selection-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
  padding: 5px;
}

.selection-item-info {
  flex-grow: 1;
}

.selection-item-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.selection-item-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.delete-btn {
  background: none;
  border: none;
  color: #ff4757;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 5px;
}

.whatsapp-btn {
  background: #25D366;
  color: white;
  border: none;
  padding: 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

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

/* Configurator Modal Refinements */
.modal-content.configurator-mode {
  grid-template-columns: 1fr;
  max-width: 800px;
  height: auto;
  min-height: 500px;
  padding: 60px;
  text-align: center;
}

.config-steps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.config-progress {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.step-indicator {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #adb5bd;
  transition: var(--transition);
  border: 2px solid transparent;
}

.step-indicator.active {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(243, 146, 0, 0.15);
}

.step-indicator.completed {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.config-steps-container h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  width: 100%;
  margin-bottom: 40px;
}

.option-card {
  background: #f8f9fa;
  padding: 30px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.option-card ion-icon,
.option-card svg,
.option-card .option-icon {
  font-size: 2.5rem;
  width: 100%;
  height: 80px;
  color: var(--primary);
  object-fit: contain;
  display: block;
}

.option-card p {
  font-weight: 700;
  font-size: 1.1rem;
}

.option-card:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.option-card.selected {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(243, 146, 0, 0.15);
}

.config-footer {
  margin-top: 20px;
  width: 100%;
}

.input-group {
  margin-bottom: 30px;
  text-align: left;
}

.input-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 16px 25px;
  border-radius: 18px;
  border: 2px solid #e9ecef;
  background-color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  -webkit-appearance: none;
}

.input-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f08b1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 20px;
  padding-right: 50px;
  cursor: pointer;
}

.input-group input:hover,
.input-group select:hover {
  border-color: #dee2e6;
  background-color: #fcfcfc;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.1);
  transform: translateY(-1px);
}

.config-nav-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  width: 100%;
}

.config-summary {
  background: #fff9f0;
  padding: 30px;
  border-radius: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.config-summary h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.config-summary ul {
  list-style: none;
}

.config-summary li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--text-light);
}

.config-summary li strong {
  color: var(--secondary);
}

/* Footer Styling */
.main-footer {
  background: white;
  padding: 80px 0 40px;
  border-top: 1px solid #f1f3f5;
  margin-top: 100px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  height: 100px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #f1f3f5;
  width: 100%;
}

.footer-bottom p {
  color: #adb5bd;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 1100px) {
  .modal-content {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
    height: 90vh;
    max-height: none;
    border-radius: 25px;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .modal-content::-webkit-scrollbar {
    display: none;
  }

  .modal-visuals {
    border-right: none;
    height: auto;
    min-height: auto;
    flex-shrink: 0;
    padding: 20px;
    overflow: visible;
  }

  .main-image-viewport {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 15px;
    flex-grow: 0;
    min-height: auto;
  }

  .main-image-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
  }

  .thumbnail-carousel-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .thumbnail-strip {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding: 5px 8px;
  }

  .thumb {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    border-width: 2px;
  }

  .thumb.active {
    transform: none;
  }

  .thumb-arrow {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .modal-info {
    overflow-y: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
    flex-shrink: 0;
    padding: 25px 20px 40px;
  }

  .modal-info h2 {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }

  .modal-price,
  .modal-price.offer {
    font-size: 1.35rem;
  }

  .modal-price.old {
    font-size: 1rem;
  }

  .modal-info .tag {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .modal-option-section {
    margin-bottom: 16px;
  }

  .modal-section-label {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
  }

  .modal-info .color-selector-container {
    gap: 8px;
  }

  .modal-info .color-text-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
    border-radius: 8px;
    border-width: 1px;
  }

  .modal-info .color-text-btn.active {
    padding: 5px 11px;
    border-width: 2px;
  }

  .modal-info .variation-list {
    gap: 8px;
    margin-bottom: 16px;
  }

  .modal-info .variation-chip {
    padding: 7px 10px;
    font-size: 0.72rem;
    border-radius: 8px;
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    border-width: 1px;
  }

  .modal-info .variation-chip.selected {
    padding: 6px 9px;
    border-width: 2px;
  }

  .modal-info .btn-primary {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
    width: 100%;
  }

  .modal-content.lightbox-modal {
    display: block !important;
    height: auto !important;
    max-height: 80vh !important;
    aspect-ratio: 4 / 3 !important;
    width: 90% !important;
    margin: auto !important;
    overflow: visible !important;
  }

  .modal-content.lightbox-modal .lightbox-img-container {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
  }

  .modal-content.lightbox-modal img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px !important;
  }
}

.configurator-hero {
  grid-template-columns: 1fr;
  padding: 40px;
}

.config-hero-img {
  display: none;
}

.config-hero-content h1 {
  font-size: 2.5rem;
}


@media (max-width: 768px) {
  .selection-panel {
    width: 100%;
    right: -100%;
    padding: 30px 20px; /* Add slightly smaller padding for mobile */
  }

  nav {
    padding: 0 20px;
  }

  .logo-container img {
    height: 60px;
  }

  .configurator-hero {
    padding: 40px 25px;
    border-radius: 30px;
  }

  .config-hero-content h1 {
    font-size: 2.2rem;
  }

  .config-hero-content p {
    font-size: 1.1rem;
  }

  .product-grid:not(.shop-grid) {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-card:not(.shop-card) .product-image-wrapper {
    height: 180px;
    padding: 15px;
    border-radius: 25px 25px 0 0;
  }

  .product-card:not(.shop-card) .product-info {
    padding: 15px;
    border-radius: 0 0 25px 25px;
    text-align: center !important;
  }

  .product-card:not(.shop-card) {
    border-radius: 25px;
  }

  .product-card:not(.shop-card) h3 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .product-card:not(.shop-card) .price {
    font-size: 1.1rem;
  }

  /* Modal refinements for mobile */
  .modal-content.configurator-mode {
    padding: 40px 20px;
    border-radius: 25px;
  }

  .options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .option-card {
    padding: 20px 10px;
    border-radius: 20px;
  }

  .option-card ion-icon {
    font-size: 1.8rem;
  }

  .option-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .product-grid:not(.shop-grid) {
    gap: 10px;
  }

  .product-card:not(.shop-card) .product-image-wrapper {
    height: 160px;
  }

  .product-card:not(.shop-card) h3 {
    font-size: 0.9rem;
  }
}

/* Customization Section */
.customization-section {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #eee;
  text-align: left;
}

.customization-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 1.1rem;
}

.thread-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
  gap: 10px;
  margin-bottom: 25px;
}

.thread-color-box {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.thread-color-box:hover {
  transform: scale(1.15);
  z-index: 2;
}

.thread-color-box.active {
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(243, 146, 0, 0.3);
  transform: scale(1.1);
}

.thread-color-box.active::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  font-weight: 900;
  font-size: 1.2rem;
}

.position-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.position-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.position-option:hover {
  background: #f1f3f5;
}

.position-option.active {
  background: #fff9f0;
  border-color: var(--primary);
}

.radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  position: relative;
  background: white;
}

.position-option.active .radio-circle {
  border-color: var(--primary);
}

.position-option.active .radio-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

/* Responsive Header */
@media (max-width: 1100px) {
  .header-left {
    gap: 15px;
  }

  .categories-btn {
    font-size: 0.9rem;
    padding: 8px 10px;
  }

  .nav-center {
    max-width: 300px;
  }

  .header-nav-link {
    font-size: 0.9rem;
    padding: 8px 10px;
  }
}

@media (max-width: 950px) {
  .header-nav-link {
    display: none;
  }
}

@media (max-width: 850px) {
  header nav {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 20px;
    gap: 15px;
  }

  .header-left {
    flex: 1;
    width: auto;
  }

  .header-actions {
    flex: 1;
    width: auto;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
  }

  .categories-dropdown,
  .config-btn-header,
  .selection-trigger:not(.faq-trigger) {
    display: none !important;
  }

  .nav-center {
    display: none;
  }

  .nav-center.active {
    display: flex;
    flex: none;
    width: 100%;
    order: 3;
    max-width: none;
  }

  header {
    height: auto;
    padding-bottom: 10px;
  }

  body {
    padding-top: 100px;
    /* Standard header height on mobile when search is collapsed */
  }
}

@media (max-width: 480px) {
  .categories-btn span {
    display: none;
  }

  .btn-text {
    display: none;
  }

  .logo-container img {
    height: 40px;
  }
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background: var(--white);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 50px;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  padding: 0 28px;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-answer p:last-child {
  padding-bottom: 24px;
}

.faq-answer p + p {
  margin-top: 12px;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }

  .faq-container {
    padding: 0 20px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 20px;
    font-size: 0.95rem;
  }
}

/* Fabrics Section */
.fabrics-section {
  padding: 100px 0;
  background: #f5f5f5;
  /* Elegant gray for contrast */
  border-top: none;
}

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

.fabric-card {
  background: white;
  /* White on gray background for contrast */
  padding: 40px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fabric-card:hover {
  transform: translateY(-5px);
  background: white;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.fabric-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.fabric-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.fabric-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Helper in Configurator */
.fabric-info-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: -30px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.fabric-info-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

@media (min-width: 769px) {
  .fabrics-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    padding: 20px 100px !important;
    width: 100% !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding: 0 100px !important;
    gap: 30px !important;
    -webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent) !important;
    mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent) !important;
  }

  .fabrics-carousel::-webkit-scrollbar {
    display: none !important;
  }

  .fabrics-carousel .fabric-card {
    flex: 0 0 380px !important;
    max-width: 380px !important;
    scroll-snap-align: start !important;
  }

  .news-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    padding: 20px 100px !important;
    width: 100% !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding: 0 100px !important;
    gap: 30px !important;
    -webkit-mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent) !important;
    mask-image: linear-gradient(to right, transparent, black 100px, black calc(100% - 100px), transparent) !important;
  }

  .news-carousel::-webkit-scrollbar {
    display: none !important;
  }

  .news-carousel .news-card {
    flex: 0 0 360px !important;
    max-width: 360px !important;
    scroll-snap-align: start !important;
  }
}

@media (max-width: 768px) {
  .section-subtitle {
    margin-top: -30px;
    font-size: 1.1rem;
  }

  .fabric-card {
    padding: 30px;
  }
}

/* Color Selector in Modal */
.color-selector-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.color-text-btn {
  padding: 10px 18px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  text-align: center;
}

.color-text-btn:hover {
  background: #f1f3f5;
  transform: translateY(-2px);
}

.color-text-btn.active {
  background: #fff9f0;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(243, 146, 0, 0.1);
}

.search-bar ion-icon#clearSearch {
  font-size: 1.2rem;
  margin-left: 10px;
  color: #999;
  transition: var(--transition);
}

.search-bar ion-icon#clearSearch:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Search Results Dropdown */
.nav-center {
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 2000;
  display: none;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-results-dropdown.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.search-item:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.search-item img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.search-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--secondary);
}

.search-item-info p {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
}

.no-results-msg {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* Visual Categories Navigation */
.visual-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.category-card-visual {
  position: relative;
  height: 300px;
  border-radius: 40px;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
  transition: var(--transition);
}

.cat-img-wrapper {
  width: 100%;
  height: 100%;
  transition: var(--transition);
}

.cat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 35px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: white;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cat-text h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.cat-text span {
  font-size: 1rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.cat-text span ion-icon {
  font-size: 1.2rem;
  transition: var(--transition);
}

.category-card-visual:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.category-card-visual:hover .cat-img-wrapper {
  transform: scale(1.1);
}

.category-card-visual:hover .cat-text span ion-icon {
  transform: translateX(5px);
}

@media (max-width: 992px) {
  .visual-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-card-visual {
    height: 200px;
  }
}




/* --- Admin & Offers Enhancements --- */
.offer-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(243, 146, 0, 0.3);
  z-index: 10;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.price.old-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.9rem !important;
  opacity: 0.7;
}

.price.offer-price {
  color: var(--primary) !important;
  font-weight: 800;
}

.modal-price-container {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 0;
}

.modal-price.old {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 1.2rem;
  opacity: 0.6;
}

.modal-price.offer {
  color: #F39200;
  font-size: 2.2rem;
  font-weight: 800;
}

/* --- Advanced Offer Styles --- */
.product-card.on-offer {
  border: 2px solid var(--primary);
  position: relative;
  animation: subtle-glow 2s infinite;
}

@keyframes subtle-glow {
  0% {
    box-shadow: 0 5px 15px rgba(243, 146, 0, 0.05);
  }

  50% {
    box-shadow: 0 10px 30px rgba(243, 146, 0, 0.15);
  }

  100% {
    box-shadow: 0 5px 15px rgba(243, 146, 0, 0.05);
  }
}

.pulse-offer {
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(243, 146, 0, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(243, 146, 0, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(243, 146, 0, 0);
  }
}

/* Contact Modal Styles */
.modal-content.contact-modal {
  grid-template-columns: 1fr;
  max-width: 600px;
  height: auto;
  max-height: 90vh;
}

.contact-form-container {
  padding: 50px;
  overflow-y: auto;
}

.contact-form-container h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--secondary);
}

.contact-form-container p {
  color: var(--text-light);
  margin-bottom: 30px;
}

#contactForm .input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#contactForm label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

#contactForm input,
#contactForm textarea {
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fdfdfd;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.1);
}

.captcha-container {
  background: #fff8f0;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
  border: 1px dashed var(--primary);
}

.captcha-container label {
  display: block;
  margin-bottom: 10px;
}

#captchaQuestion {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.2rem;
}

.form-status {
  margin-top: 15px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #e6fffa;
  color: #2c7a7b;
  border: 1px solid #b2f5ea;
}

.form-status.error {
  display: block;
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

@media (max-width: 768px) {
  .contact-form-container {
    padding: 30px 20px;
  }

  .contact-form-container h2 {
    font-size: 1.8rem;
  }
}

/* Cookies Banner Styles */
.cookies-banner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 5000;
  width: 400px;
  max-width: calc(100vw - 60px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 25px;
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookies-banner.active {
  transform: translateY(0);
}

.cookies-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookies-icon {
  width: 50px;
  height: 50px;
  background: #fff8f0;
  color: var(--primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cookies-text {
  flex-grow: 1;
}

.cookies-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--secondary);
}

.cookies-text p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

.cookies-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.cookies-banner .btn-primary {
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: 0;
  white-space: nowrap;
}

@media (max-width: 500px) {
  .cookies-banner {
    bottom: 15px;
    right: 15px;
    width: auto;
    padding: 15px;
  }

  .cookies-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .cookies-banner .btn-primary {
    width: 100%;
  }
}

/* Legal Modal Styles */
.modal-content.legal-modal {
  grid-template-columns: 1fr;
  max-width: 800px;
  height: auto;
  max-height: 90vh;
}

.legal-content {
  padding: 50px;
  overflow-y: auto;
}

.legal-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 5px;
}

.legal-url {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.legal-text {
  color: var(--text-light);
  line-height: 1.8;
}

.legal-text p {
  margin-bottom: 20px;
}

.legal-text h3 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin: 30px 0 15px 0;
  font-weight: 700;
}

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

  .legal-content h2 {
    font-size: 1.6rem;
  }
}

/* Full-width Hero Slider Section */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 650px;
  background: #1a1a1a;
  overflow: hidden;
  margin-bottom: 80px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  display: flex;
  align-items: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.slide.active img {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.4) 50%, rgba(26, 26, 26, 0.1) 100%);
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  color: white;
  max-width: 600px;
  /* Reducido a 600px para no tapar el centro de la imagen */
  padding: 0 40px;
}

@media (min-width: 993px) {
  .slide-content.container {
    margin-left: 120px !important;
    /* Alineación exacta al lado de la flecha izquierda */
    margin-right: auto !important;
  }
}

.slide-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  max-width: 550px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.slide-content .tag {
  background: var(--primary);
  color: white;
  margin-bottom: 20px;
  text-shadow: none;
}

/* Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev {
  left: 40px;
}

.slider-arrow.next {
  right: 40px;
}

/* Dots Indicator */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 10px;
}

/* Slide Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.active .animate-fade-in {
  opacity: 1;
  transform: translateY(0);
}

.slide.active .animate-fade-in:nth-child(1) {
  transition-delay: 0.2s;
}

.slide.active .animate-fade-in:nth-child(2) {
  transition-delay: 0.4s;
}

.slide.active .animate-fade-in:nth-child(3) {
  transition-delay: 0.6s;
}

.slide.active .animate-fade-in:nth-child(4) {
  transition-delay: 0.8s;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-slider-section {
    height: 500px;
  }

  .slide-content h1 {
    font-size: 2.8rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-slider-section {
    height: 420px;
  }

  .slider-arrow {
    display: none;
  }

  .slide-content h1 {
    font-size: 2.2rem;
  }

  .slide-content p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .slide-content {
    padding: 0 25px;
  }
}

/* Mobile Menu Overlay Styles */
.mobile-menu-backdrop {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 2999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 3000;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  padding: 40px;
}

.mobile-menu-overlay.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-menu-logo {
  height: 50px;
  width: auto;
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: var(--transition);
}

.close-menu-btn:hover {
  background: #f1f3f5;
  color: var(--primary);
  transform: rotate(90deg);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 16px;
  transition: var(--transition);
}

.mobile-nav-link ion-icon {
  font-size: 1.4rem;
  color: var(--text-light);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: #f8f9fa;
  color: var(--primary);
  transform: translateX(5px);
}

.mobile-nav-link:hover ion-icon {
  color: var(--primary);
}

.mobile-nav-link.highlight-link {
  background: #fffaf0;
  border: 1px solid rgba(243, 146, 0, 0.2);
  color: var(--primary);
}

.mobile-nav-link.highlight-link ion-icon {
  color: var(--primary);
}

.mobile-nav-link.highlight-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.mobile-nav-link.highlight-link:hover ion-icon {
  color: white;
}

.mobile-menu-divider {
  border: none;
  border-top: 1px solid #f1f3f5;
  margin: 15px 0;
}

.mobile-menu-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 5px;
  padding-left: 20px;
}

/* Ensure mobile-menu-btn and mobile search display correctly on mobile screens */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}