* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  margin: 0;
  color: #333;
}

/* TOP BAR */

.top-bar {
  background: linear-gradient(90deg, #4b006e, #7a4d8f);
  color: white;
  text-align: center;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.top-bar span {
  white-space: nowrap;
}

/* HEADER */

.main-header {
  background: white;
  padding: 8px 25px;
  display: block;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-bottom: 1px solid #eee;
}

.header-top {
  max-width: 1250px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.quick-categories {
  position: relative;
  flex-shrink: 0;
}

.category-menu-btn {
  background: #7a4d8f;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
}

.category-dropdown {
  display: none;
  position: absolute;
  top: 52px;
  left: 0;
  background: white;
  min-width: 250px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  padding: 10px;
  z-index: 1000;
}

.category-dropdown.show {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-dropdown button {
  border: none;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: bold;
  color: #4b006e;
  cursor: pointer;
}

.category-dropdown button:hover {
  background: #f7f2fa;
}

.search-box {
  display: flex;
  width: 100%;
  background: #f4f6f8;
  border: 1px solid #ddd;
  border-radius: 30px;
  overflow: hidden;
}

.search-box input {
  border: none;
  background: transparent;
  padding: 13px 18px;
  width: 100%;
  font-size: 15px;
  outline: none;
  margin: 0;
}

.search-box button {
  width: 55px;
  border: none;
  background: #7a4d8f;
  color: white;
  cursor: pointer;
  font-size: 18px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cart-shortcut,
.raffle-shortcut {
  background: #f7f2fa;
  color: #4b006e;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(0,0,0,0.07);
}

.cart-shortcut:hover,
.raffle-shortcut:hover {
  background: #7a4d8f;
  color: white;
}

#headerCartCount {
  background: #ffc107;
  color: #333;
  padding: 3px 7px;
  border-radius: 50%;
  margin-left: 4px;
  font-size: 12px;
}

.nav-right-logo img {
  width: 58px;
  height: auto;
  display: block;
}

/* BANNER */

.hero-slider {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.65);
}

/* CONTAINER */

.container {
  max-width: 1150px;
  margin: auto;
  padding: 25px;
}

h2 {
  text-align: center;
  margin-top: 35px;
  color: #4b006e;
}

/* CATEGORÍAS POPULARES */

.popular-categories-section {
  margin-top: 25px;
}

.popular-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin: 25px 0;
}

.popular-category {
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
}

.popular-category img {
  width: 115px;
  height: 115px;
  object-fit: cover;
  border-radius: 50%;
  background: white;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: 0.25s ease;
}

.popular-category span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #4b006e;
  font-size: 14px;
}

.popular-category:hover img {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 10px 24px rgba(122,77,143,0.25);
}

.popular-category:hover span {
  color: #7a4d8f;
}

/* PRODUCT SECTION */

.product-section {
  background: linear-gradient(135deg, #ffffff, #f7f2fa);
  padding: 25px;
  border-radius: 18px;
  margin-top: 35px;
  box-shadow: 0 0 14px rgba(0,0,0,0.06);
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-header h2 {
  margin-bottom: 5px;
}

.section-header p {
  color: #666;
  margin-top: 0;
}

.product-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.carousel-window {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 18px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #7a4d8f;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 3;
  transition: 0.2s;
}

.carousel-btn:hover {
  background: #5f3570;
  transform: scale(1.08);
}

/* PRODUCTS */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: white;
  padding: 15px;
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.14);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.product-card:hover img {
  transform: scale(1.03);
}

.carousel-track .product-card img {
  height: 220px;
}

.product-card h3 {
  font-size: 17px;
  min-height: 45px;
}

.product-card p {
  font-size: 14px;
  color: #666;
}

.price {
  font-size: 20px;
  color: #4b006e;
  font-weight: bold;
}

.old-price {
  color: #888;
  text-decoration: line-through;
  font-size: 14px;
}

.stock {
  font-size: 13px;
  color: #555;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: white;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

.badge.offer {
  background: #dc3545;
}

.badge.today {
  background: #25D366;
}

.badge.trending {
  background: #7a4d8f;
}

.badge.best {
  background: #ffc107;
  color: #333;
}

.product-card button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background: #7a4d8f;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.product-card button:hover {
  background: #5f3570;
}

/* CART */

.cart-section,
.checkout-section {
  background: white;
  padding: 22px;
  border-radius: 14px;
  margin-top: 25px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.cart-count {
  display: inline-block;
  background: #ffc107;
  color: #333;
  padding: 4px 9px;
  border-radius: 50%;
  font-size: 14px;
  margin-left: 6px;
}

.cart-bounce {
  animation: cartBounce 0.4s ease;
}

@keyframes cartBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.cart-item button {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.total {
  text-align: right;
  font-size: 20px;
}

/* CHECKOUT */

input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.file-upload {
  margin-top: 15px;
}

.file-label {
  display: block;
  width: 100%;
  background: #7a4d8f;
  color: white;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
}

.file-name {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.request-btn,
.whatsapp-mode {
  width: 100%;
  padding: 13px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

.request-btn {
  background: #25D366;
  color: white;
}

.whatsapp-mode {
  background: #ffc107 !important;
  color: #333 !important;
}

/* MESSAGES */

.message-box {
  display: none;
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

.message-box.success {
  display: block;
  background: #d4edda;
  color: #155724;
}

.message-box.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
}

/* FLOATING RAFFLE */

.raffle-floating-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(45deg, #7a4d8f, #ffc107);
  color: white;
  padding: 14px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
  animation: pulse 1.5s infinite;
  z-index: 999;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .header-top {
    flex-direction: column;
  }

  .header-left-group {
    width: 100%;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .popular-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .top-bar {
    font-size: 12px;
    gap: 8px;
  }

  .header-left-group {
    flex-direction: column;
  }

  .quick-categories,
  .search-box {
    width: 100%;
  }

  .category-menu-btn {
    width: 100%;
  }

  .hero-slider {
    height: 230px;
  }

  .slide img {
    height: 230px;
  }

  .container {
    padding: 12px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .popular-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .popular-category img {
    width: 95px;
    height: 95px;
  }

  .product-section {
    padding: 15px;
  }

  .carousel-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .cart-item {
    flex-direction: column;
  }

  .raffle-floating-btn {
    right: 12px;
    bottom: 12px;
    font-size: 14px;
  }
}
.store-logo {
  height: 100px;
  width: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-logo img {
  height: 150px;
  width: auto;
  display: block;
  transform: scale(1.25);
}
/* TODOS LOS PRODUCTOS */

.all-products-section {
  background: linear-gradient(135deg, #ffffff, #f4f6f8);
}

.all-products-section .carousel-track .product-card img {
  height: 170px;
}
.all-products-section .carousel-track {
  display: grid !important;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: calc((100% - 54px) / 4);
}

.all-products-section .product-card {
  width: 100%;
}
/* FOOTER */

.main-footer {
  margin-top: 50px;
  background: linear-gradient(135deg, #3d004f, #6b2f7a);
  color: white;
  padding-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  padding: 0 25px 35px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.footer-column h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-column p,
.footer-column a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-column a:hover {
  color: #ffc107;
}

.footer-store-logo {
  width: 220px;
  max-width: 100%;
  margin-bottom: 15px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  font-family: inherit;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

/* RESPONSIVE FOOTER */

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-store-logo {
    margin: auto auto 15px;
  }
}
/* FOOTER SOCIAL */

.footer-social-section {
  text-align: center;
  padding-bottom: 25px;
}

.footer-social-section h3 {
  margin-bottom: 18px;
  color: white;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-social-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  backdrop-filter: blur(6px);
}

.footer-social-circle:hover {
  transform: translateY(-5px) scale(1.08);
  background: rgba(255,255,255,0.22);
}

.footer-social-circle img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
i {
  margin-right: 6px;
}

.search-box button i,
.footer-social-circle i {
  margin-right: 0;
}
/* CATÁLOGO DIGITAL */

.catalog-section {
  margin-top: 40px;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f7f2fa);
  box-shadow: 0 0 18px rgba(0,0,0,0.08);
}

.catalog-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  perspective: 1800px;
}

.catalog-book {
  width: 1050px;
  max-width: 100%;
  height: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eee;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.22);
  position: relative;
}

.catalog-page {
  background: white;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.catalog-page-left {
  border-right: 1px solid #ddd;
  background: linear-gradient(135deg, #fff, #f9f4fc);
}

.catalog-page-right {
  background: linear-gradient(135deg, #fff, #f6f6f6);
}

.catalog-page-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.catalog-category-title {
  font-size: 26px;
  color: #4b006e;
  margin-bottom: 8px;
}

.catalog-category-subtitle {
  color: #666;
  margin-bottom: 18px;
}

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.catalog-product {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  text-align: center;
}

.catalog-product img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.catalog-product h4 {
  font-size: 16px;
  margin: 8px 0 4px;
  color: #333;
}

.catalog-product .catalog-price {
  color: #4b006e;
  font-weight: bold;
}

.catalog-cover {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catalog-cover h3 {
  font-size: 34px;
  color: #4b006e;
  margin-bottom: 10px;
}

.catalog-cover p {
  color: #666;
  font-size: 16px;
}

.catalog-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #7a4d8f;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.25s;
  flex-shrink: 0;
}

.catalog-nav-btn:hover {
  background: #5f3570;
  transform: scale(1.08);
}

.catalog-controls {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  color: #4b006e;
}

.catalog-flip-next {
  animation: flipNext 0.55s ease;
}

.catalog-flip-prev {
  animation: flipPrev 0.55s ease;
}

@keyframes flipNext {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(-8deg) scale(0.98);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes flipPrev {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(8deg) scale(0.98);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@media (max-width: 900px) {
  .catalog-book {
    height: auto;
    grid-template-columns: 1fr;
  }

  .catalog-page-left {
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .catalog-wrapper {
    gap: 8px;
  }

  .catalog-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .catalog-section {
    padding: 16px;
  }

  .catalog-wrapper {
    align-items: stretch;
  }

  .catalog-nav-btn {
    width: 38px;
    height: 38px;
  }

  .catalog-page {
    padding: 18px;
  }

  .catalog-products-grid {
    grid-template-columns: 1fr;
  }

  .catalog-product img {
    height: 150px;
  }
}
/* CATÁLOGO DIGITAL NUEVA PÁGINA */

.catalog-page-main {
  max-width: 1200px;
  margin: auto;
  padding: 35px 25px;
}

.catalog-hero {
  text-align: center;
  margin-bottom: 30px;
}

.catalog-hero h1 {
  color: #4b006e;
  font-size: 36px;
  margin-bottom: 8px;
}

.catalog-hero p {
  color: #666;
}

.digital-catalog-section {
  background: linear-gradient(135deg, #ffffff, #f7f2fa);
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 0 18px rgba(0,0,0,0.08);
}

.catalog-book-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  perspective: 1800px;
}

.single-product-book {
  width: 900px;
  max-width: 100%;
  min-height: 620px;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0,0,0,0.22);
  transform-style: preserve-3d;
}

.single-product-page {
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.04) 0%, transparent 6%, transparent 94%, rgba(0,0,0,0.04) 100%),
    white;
}

.single-product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

.single-product-image-area {
  position: relative;
  background: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.single-product-image-area img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 18px;
}

.single-product-info-area {
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catalog-category {
  color: #7a4d8f;
  font-weight: bold;
  margin-bottom: 10px;
}

.single-product-info-area h2 {
  text-align: left;
  margin: 0 0 15px;
  font-size: 34px;
  color: #4b006e;
}

.catalog-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 22px;
}

.catalog-price-area {
  margin-bottom: 12px;
}

.catalog-old-price {
  display: block;
  color: #888;
  text-decoration: line-through;
  font-size: 18px;
}

.catalog-current-price {
  display: block;
  color: #4b006e;
  font-size: 34px;
  font-weight: bold;
}

.catalog-stock {
  color: #555;
  margin-bottom: 25px;
}

.catalog-whatsapp-btn {
  display: inline-block;
  text-align: center;
  background: #25D366;
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

.catalog-whatsapp-btn:hover {
  background: #1ebe5d;
}

.catalog-offer-badge {
  position: absolute;
  top: 25px;
  left: 25px;
  background: #dc3545;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
}

.catalog-page-btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  border: none;
  background: #7a4d8f;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: 0.25s;
}

.catalog-page-btn:hover {
  background: #5f3570;
  transform: scale(1.08);
}

.catalog-bottom-controls {
  text-align: center;
  margin-top: 18px;
  color: #4b006e;
  font-weight: bold;
}

.catalog-loading {
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b006e;
  font-weight: bold;
  font-size: 20px;
}

.page-flip-next {
  animation: catalogFlipNext 0.55s ease;
}

.page-flip-prev {
  animation: catalogFlipPrev 0.55s ease;
}

@keyframes catalogFlipNext {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(-7deg) scale(0.985);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes catalogFlipPrev {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(7deg) scale(0.985);
  }
  100% {
    transform: rotateY(0deg);
  }
}

/* RESPONSIVE CATALOGO */

@media (max-width: 900px) {
  .single-product-content {
    grid-template-columns: 1fr;
  }

  .single-product-info-area h2 {
    text-align: center;
  }

  .single-product-info-area {
    padding: 30px;
    text-align: center;
  }

  .single-product-image-area img {
    max-height: 360px;
  }
}

@media (max-width: 520px) {
  .catalog-page-main {
    padding: 18px 12px;
  }

  .digital-catalog-section {
    padding: 15px;
  }

  .catalog-book-wrapper {
    gap: 8px;
  }

  .catalog-page-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .single-product-book {
    min-height: auto;
  }

  .single-product-page,
  .single-product-content {
    min-height: auto;
  }

  .single-product-info-area h2 {
    font-size: 24px;
  }

  .catalog-current-price {
    font-size: 26px;
  }
}
.category-dropdown.show {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* CATEGORY DROPDOWN LINKS */

.category-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #4b006e;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.2s;
}

.category-link:hover {
  background: #f7f2fa;
  color: #7a4d8f;
}

.category-link i {
  width: 18px;
  text-align: center;
}
/* PROMO BANNERS */

.promo-strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 35px;
  margin-bottom: 35px;
}

.promo-strip img {
  width: 100%;
  height: 750px;
  display: block;
}
.promo-video-strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 35px;
  margin-bottom: 50px;
  overflow: hidden;
}

.promo-video-strip video {
  width: 100%;
  display: block;
}
.cart-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #111;
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* CARRITO PAGE */

.cart-page-main {
  max-width: 1150px;
  margin: auto;
  padding: 30px 20px;
}

.cart-page-hero {
  text-align: center;
  margin-bottom: 25px;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 25px;
  align-items: start;
}

.cart-products-box,
.cart-summary-box {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.cart-page-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.cart-page-item:last-child {
  border-bottom: none;
}

.cart-page-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
  background: #f4f6f8;
}

.cart-page-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #4b006e;
}

.cart-page-item p {
  margin: 3px 0;
  color: #555;
  font-size: 14px;
}

.remove-cart-item {
  background: #f8d7da;
  color: #721c24;
  border: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.remove-cart-item:hover {
  background: #dc3545;
  color: white;
}

.cart-summary-box {
  position: sticky;
  top: 125px;
}

.cart-summary-box p {
  font-size: 20px;
  color: #4b006e;
}

.clear-cart-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #f8d7da;
  color: #721c24;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.clear-cart-btn:hover {
  background: #dc3545;
  color: white;
}

@media (max-width: 900px) {
  .cart-page-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-box {
    position: static;
  }
}

@media (max-width: 520px) {
  .cart-page-item {
    grid-template-columns: 70px 1fr;
  }

  .cart-page-item img {
    width: 70px;
    height: 70px;
  }

  .remove-cart-item {
    grid-column: 1 / -1;
    width: 100%;
  }
}
/* PÁGINA BUSCAR PRODUCTOS */

.products-page-main {
  max-width: 1250px;
  margin: auto;
  padding: 35px 25px;
}

.products-hero {
  text-align: center;
  margin-bottom: 30px;
}

.products-hero h1 {
  color: #4b006e;
  font-size: 36px;
  margin-bottom: 8px;
}

.products-hero p {
  color: #666;
}

/* LAYOUT */

.products-filter-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
  align-items: start;
}

/* FILTROS */

.products-filters {
  background: white;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  position: sticky;
  top: 125px;
}

.products-filters h2 {
  margin-top: 0;
  margin-bottom: 18px;
  text-align: left;
  color: #4b006e;
}

.products-filters label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: bold;
  color: #4b006e;
  font-size: 14px;
}

.products-filters input,
.products-filters select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f8f8f8;
  font-size: 14px;
  outline: none;
}

.products-filters input:focus,
.products-filters select:focus {
  border-color: #7a4d8f;
  background: white;
}

/* RESULTADOS */

.products-results {
  background: white;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.products-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.products-results-header h2 {
  margin: 0;
  color: #4b006e;
  text-align: left;
}

#productsCount {
  background: #f7f2fa;
  color: #4b006e;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

/* GRID PRODUCTOS FILTRADOS */

.filtered-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* REUTILIZA PRODUCT CARD */

.filtered-products-grid .product-card {
  min-height: 100%;
}

.filtered-products-grid .product-card img {
  height: 190px;
}

/* BOTÓN LIMPIAR FILTROS */

.products-filters .clear-cart-btn {
  margin-top: 20px;
}

/* SIN RESULTADOS */

.no-products-found {
  text-align: center;
  padding: 35px;
  color: #666;
  background: #f8f8f8;
  border-radius: 14px;
  grid-column: 1 / -1;
}

.no-products-found i {
  font-size: 34px;
  color: #7a4d8f;
  display: block;
  margin-bottom: 10px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .products-filter-layout {
    grid-template-columns: 1fr;
  }

  .products-filters {
    position: static;
  }

  .filtered-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .products-page-main {
    padding: 20px 12px;
  }

  .products-hero h1 {
    font-size: 28px;
  }

  .products-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filtered-products-grid {
    grid-template-columns: 1fr;
  }

  .filtered-products-grid .product-card img {
    height: 220px;
  }
}
/* GALERÍA EN CARRITO */

.cart-product-gallery {
  width: 110px;
}

.cart-product-main-image {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  background: #f4f6f8;
  display: block;
}

.cart-image-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
}

.cart-thumb-btn {
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
}

.cart-thumb-btn.active {
  border-color: #7a4d8f;
}

.cart-thumb-btn img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.cart-page-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 15px;
  align-items: center;
}

@media (max-width: 520px) {
  .cart-page-item {
    grid-template-columns: 1fr;
  }

  .cart-product-gallery {
    width: 100%;
  }

  .cart-product-main-image {
    width: 100%;
    height: 220px;
  }
}