@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);
}

.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 {
  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: none; /* Hide arrows on mobile, use touch scroll */
  }
  .gallery-item {
    width: 150px;
    height: 200px;
  }
}





/* News Section */
.news-section {
  padding: 120px 0;
  background: linear-gradient(to bottom, #ffffff, #fafafa);
  overflow: hidden;
  position: relative;
}

.news-container-full {
  width: 100%;
  padding: 0; 
}

@media (max-width: 768px) {
  .news-container-full {
    padding: 0 20px;
  }
  .news-card {
    min-width: 300px;
  }
}

.news-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 50px;
}

.news-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 100px;
  width: 100%;
  -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);
}

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

.news-card {
  min-width: 360px;
  max-width: 400px;
  flex-shrink: 0;
  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: 200px;
  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: 0; /* Let categories handle padding for a seamless look */
  overflow: hidden;
  background: white;
}

.category-group {
  width: 100%;
  position: relative;
  margin-top: 100px;
  padding: 60px 0;
  background: var(--bg); /* Unificado con el resto de la web */
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-top: none;
}

.category-group:nth-child(even) {
  background: #f5f5f5;
}

/* Curved Separator Aesthetic */
.category-group::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: var(--bg); /* Unificado */
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  z-index: 2;
}

.category-group-header {
  position: absolute;
  top: -85px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.category-group-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--secondary);
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

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

.category-group {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.category-group-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.category-group-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--secondary);
}

/* 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: none;
  }
  .product-grid.categorized-carousel {
    padding: 20px 20px 40px 20px;
    scroll-padding: 0 20px;
  }
}

.product-card {
  padding: 0;
  border: 2px solid transparent; /* Ready for offer border */
  box-shadow: none;
  border-radius: 25px; /* Back to rounded as requested */
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.product-card.on-offer {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 15px 35px rgba(243, 146, 0, 0.15);
}

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

.product-image-wrapper {
  background: var(--bg); /* Unificado con el fondo de la web */
  width: 100%;
  height: 340px;
  padding: 0;
  margin: 0;
  border-radius: 20px; /* Rounded corners for the container */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px; /* Match the container */
}

.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);
}

.card-favorite-btn:hover {
  transform: scale(1.1);
  color: var(--primary);
}

.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 h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

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

/* 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 {
  width: 800px;
  height: 600px;
  max-width: 95vw;
  max-height: 90vh;
  grid-template-columns: 1fr;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.lightbox-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

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



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

.main-image-viewport {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.main-image-viewport img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.thumbnail-strip {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 15px;
  /* Ocultar barra de desplazamiento */
  -ms-overflow-style: none;  /* IE y Edge */
  scrollbar-width: none;  /* Firefox */
}

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

.thumb {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  border: 3px solid transparent;
  cursor: pointer;
  object-fit: cover;
  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: 30px;
}

/* 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 {
  max-height: 0;
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.product-description.active {
  max-height: 1000px;
  padding-bottom: 20px;
  opacity: 1;
}


/* 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 {
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  color: var(--primary);
}

.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: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 90vh;
  }

  .modal-visuals {
    border-right: none;
    height: 45vh;
  }

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

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

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

  .selection-panel {
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 768px) {
  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 {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-image-wrapper {
    height: 180px;
    padding: 15px;
    border-radius: 25px 25px 0 0;
  }

  .product-info {
    padding: 15px;
    border-radius: 0 0 25px 25px;
  }

  .product-card {
    border-radius: 25px;
  }

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

  .product-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 {
    gap: 10px;
  }

  .product-image-wrapper {
    height: 160px;
  }

  .product-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: none;
    width: 50%;
  }

  .header-actions {
    flex: none;
    width: 50%;
  }

  .nav-center {
    flex: none;
    width: 100%;
    order: 3;
    max-width: none;
  }
  
  header {
    height: auto;
    padding-bottom: 10px;
  }
  
  body {
    padding-top: 140px; /* Adjusted for taller mobile header */
  }
}

@media (max-width: 480px) {
  .categories-btn span {
    display: none;
  }
  
  .btn-text {
    display: none;
  }
  
  .logo-container img {
    height: 40px;
  }
}
/* 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 (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 - RESET TO GRID */
.visual-categories {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  margin-bottom: 80px !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

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

.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;
  z-index: 2;
}

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

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

.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: 25px;
}

.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;
    }
}
