  /*
 * Decor House - Category Subcategories Styling (Optimized)
 * Compatible with PrestaShop 1.7.x / Theme Akira
 */









 
/* ========================================
   BOTÓN FLOTANTE WHATSAPP
   ======================================== */

   .whatsapp-float {
    position: fixed !important;
    display: flex !important;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: auto;
    max-width: 280px;
    border-radius: 30px;
    padding: 0 20px 0 15px;
    text-decoration: none;
    color: #FFF;
    transform: translateY(-2px);
}

.whatsapp-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    flex-shrink: 0;
    fill: #FFF !important;
    display: block !important;
}

.whatsapp-text {
    white-space: nowrap;
    opacity: 0;
    width: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #FFF;
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
    margin-left: 0;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    width: auto;
    margin-left: 10px;
}

/* Animación de pulso */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

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

.whatsapp-float:hover {
    animation: none;
}

/* Responsive - Móviles */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        z-index: 99999 !important;
    }
    
    .whatsapp-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }
    
    .whatsapp-text {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .whatsapp-float {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}


/* ========================================
   OCULTAR BOTÓN SCROLL TO TOP
   ======================================== */
   #back-top,
   #scroll-top,
   .scroll-to-top,
   .back-to-top {
       display: none !important;
       visibility: hidden !important;
       opacity: 0 !important;
   }
   


/* ===== LAYOUT LIMPIO SIN SIDEBARS ===== */
body.category #left-column,
body.category #right-column,
body.page-category #left-column,
body.page-category #right-column {
  display: none !important;
}

body.category #content-wrapper,
body.page-category #content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
}

/* ===== CONTENEDOR DE PRODUCTOS CENTRADO ===== */
body.category #js-product-list,
body.page-category #js-product-list {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 20px 0 !important;
}

/* ===== GRID DE PRODUCTOS ===== */
body.category #js-product-list .products.row,
body.page-category #js-product-list .products.row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 0 -15px !important;
}

body.category #js-product-list .col-xs-12,
body.category .products .col-xs-12.col-sm-6.col-md-4,
body.page-category #js-product-list .col-xs-12,
body.page-category .products .col-xs-12.col-sm-6.col-md-4 {
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
  padding: 0 15px !important;
  margin-bottom: 30px !important;
}

/* ===== OCULTAR ELEMENTOS POR DEFECTO DE PRESTASHOP ===== */
body.category .breadcrumb,
body.page-category .breadcrumb,
body.category .page-header,
body.page-category .page-header,
body.category h1,
body.page-category h1,
/* Ocultar nav-products-list-top y otros elementos de listado */
body.category #js-product-list-top,
body.category #search_filters_wrapper,
body.category .block-category,
body.page-category #js-product-list-top {
    display: none !important;
}

/* MANTENER VISIBLE LA PAGINACIÓN */
body.category #js-product-list-bottom,
body.page-category #js-product-list-bottom {
    display: block !important;
}

/* Pero ocultar solo elementos específicos dentro de bottom si es necesario */
body.category #js-product-list-bottom .products-sort-order,
body.category #js-product-list-bottom .showing {
    display: none !important;
}


/* ===== OCULTAR MENSAJE "NO HAY PRODUCTOS" ===== */
#js-product-list .page-not-found,
#js-product-list .page-content.page-not-found,
section#content.page-not-found {
  display: none !important;
}

/* ===== SUBCATEGORÍAS VISIBLES ===== */
#category-only-subcategories {
  max-width: 1200px;
  margin: 50px auto;
  padding: 60px 20px;
  display: block;
  opacity: 1;
  visibility: visible;
}

/* ===== TÍTULO Y DESCRIPCIÓN ===== */
.category-title {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #2c3e50;
  letter-spacing: 2px;
}
#category-description {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin: 0 auto 50px;
  max-width: 800px;
}

/* ===== GRID SUBCATEGORÍAS ===== */
#subcategories .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
#subcategories .col-xs-12 {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  padding: 0 15px;
  margin-bottom: 40px;
}

/* ===== TARJETAS SUBCATEGORÍAS ===== */
.subcategory-miniature,
.subcategory-item {
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: fadeInUp 0.6s ease-out forwards;
  will-change: transform, opacity;
}
.subcategory-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.subcategory-miniature:hover,
.subcategory-item:hover {
  transform: translateY(-20px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border-color: #2c3e50;
}

/* ===== IMAGEN SUBCATEGORÍAS ===== */
.subcategory-image {
  position: relative;
  overflow: hidden;
  height: 350px;
  background: #f5f5f5;
}
.subcategory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.subcategory-miniature:hover .subcategory-image img {
  transform: scale(1.2);
}
.subcategory-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
}
.subcategory-miniature:hover .subcategory-image::after {
  background: rgba(0, 0, 0, 0.15);
}

/* ===== INFO SUBCATEGORÍAS ===== */
.subcategory-info {
  padding: 30px 20px;
  text-align: center;
  background: #fff;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 2px solid #f0f0f0;
  min-height: 100px;
}
.subcategory-name {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}
.subcategory-miniature:hover .subcategory-name {
  color: #3498db;
}

/* ===== EFECTO BRILLO SUBCATEGORÍAS ===== */
.subcategory-miniature::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
  z-index: 2;
}
.subcategory-miniature:hover::before {
  left: 100%;
}

/* ===== RESPONSIVE TABLET (991px) ===== */
@media (max-width: 991px) {
  #subcategories .col-xs-12 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  body.category #js-product-list .col-xs-12,
  body.category .products .col-xs-12.col-sm-6.col-md-4 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  .subcategory-image { height: 300px; }
  .category-title { font-size: 36px; }
  .subcategory-name { font-size: 22px; }
}

/* ===== RESPONSIVE MÓVIL (768px) ===== */
@media (max-width: 768px) {
  body.category #content-wrapper,
  body.page-category #content-wrapper {
    padding: 0 15px !important;
  }
  
  #subcategories .col-xs-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  body.category #js-product-list .col-xs-12,
  body.category .products .col-xs-12.col-sm-6.col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .subcategory-image {
    height: 400px;
  }
  .subcategory-image img {
    object-fit: contain !important;
    padding: 20px;
    background: #fff;
  }
  .category-title { font-size: 32px; }
  .subcategory-name { font-size: 20px; letter-spacing: 1px; }
  .subcategory-miniature:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.subcategory-miniature:nth-child(1) { animation-delay: 0.1s; }
.subcategory-miniature:nth-child(2) { animation-delay: 0.2s; }
.subcategory-miniature:nth-child(3) { animation-delay: 0.3s; }


/* Banner Envío Gratis - Estilo Elegante */
.free-shipping-top-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  border-bottom: 2px solid #c9a961;
  padding: 12px 0;
  position: relative;
  overflow: hidden;
}

.free-shipping-top-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.free-shipping-top-banner .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.banner-content svg {
  color: #c9a961;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.banner-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Arial', sans-serif;
}

/* Efecto hover */
.free-shipping-top-banner:hover {
  border-bottom-color: #d4af6a;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-text {
    font-size: 12px;
    letter-spacing: 1px;
  }
  
  .banner-content svg {
    width: 20px;
    height: 20px;
  }
  
  .free-shipping-top-banner {
    padding: 10px 0;
  }
}
