/**
* 2007-2026 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2026 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */
.pdfcatalog-container {
    margin: 30px 0;
}

.pdfcatalog-description {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

/* ========================================
   SECCIONES DE MARCAS
   ======================================== */
.brand-section {
    margin-bottom: 60px;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #333;
    position: relative;
}

.brand-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #21a5e3;
}

.mixed-brands .brand-title {
    color: #555;
    border-bottom-color: #999;
}

.catalogs-row {
    margin-left: -10px;
    margin-right: -10px;
}

.catalog-item-wrapper {
    padding: 10px;
    margin-bottom: 20px;
}

/* ========================================
   TARJETAS DE CATÁLOGOS
   ======================================== */
.catalog-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: relative;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: #ccc;
}

/* Badge de marca para items mezclados */
.catalog-brand-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

/* ========================================
   IMAGEN DEL CATÁLOGO
   ======================================== */
.catalog-image-wrapper {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.catalog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-image {
    transform: scale(1.05);
}

.catalog-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    color: #999;
}

.catalog-no-image i {
    font-size: 4rem;
}

/* ========================================
   INFORMACIÓN DEL CATÁLOGO
   ======================================== */
.catalog-info {
    flex-grow: 1;
    margin-bottom: 15px;
}

.catalog-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-year {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
}

.catalog-year i {
    font-size: 1rem;
}

/* ========================================
   BOTÓN DE DESCARGA
   ======================================== */
.catalog-actions {
    margin-top: auto;
}

.catalog-download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.catalog-download-btn i {
    font-size: 1.3rem;
}

.catalog-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .brand-title {
        font-size: 1.6rem;
    }
    
    .catalog-card {
        padding: 15px;
    }
    
    .catalog-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .pdfcatalog-container {
        margin: 20px 0;
    }
    
    .brand-section {
        margin-bottom: 40px;
    }
    
    .brand-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .catalog-item-wrapper {
        margin-bottom: 15px;
    }
    
    .catalog-image-wrapper {
        height: 180px;
    }
    
    .catalog-title {
        font-size: 1.1rem;
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .catalog-brand-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .catalog-image-wrapper {
        height: 160px;
    }
    
    .catalog-download-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

/* ========================================
   MENSAJE SIN CATÁLOGOS
   ======================================== */
.pdfcatalog-container .alert-info {
    text-align: center;
    padding: 30px;
    font-size: 1.1rem;
    margin-top: 40px;
}
#module-pdfcatalog-catalog .card {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  #module-pdfcatalog-catalog .footer-container {
    padding: 0;
    margin: 0;
  }
  
  #module-pdfcatalog-catalog .footer-container {
    padding: 0;
    margin: 0;
  }

  #module-pdfcatalog-catalog #footer {
    padding: 0;
  }