/**
 * Diseño Minimalista para la Tienda
 * Estilo limpio, fondo blanco, pocas animaciones
 */

/* ========== VARIABLES SIMPLES ========== */
:root {
    --primary-yellow: #FFD700;
    --primary-yellow-hover: #FFC107;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-light: #e9ecef;
    --border-medium: #dee2e6;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.12);
    --border-radius: 6px;
    --transition: all 0.2s ease;
}

/* ========== RESET BÁSICO ========== */
* {
    box-sizing: border-box;
}

body {
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== HERO SECTION ========== */
.hero-section,
.bg-img1 {
    background: url('../images/heroTienda.png') center center/cover no-repeat;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding: 60px 15px;
}

.hero-section .container,
.bg-img1 .container {
    position: relative;
    z-index: 2;
}

.hero-title,
.bg-img1 h2,
.ltext-105 {
    font-size: 3rem;
    font-weight: 650;
    color: rgb(51, 51, 51);
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Overlay sutil para mejor legibilidad */
.hero-section::before,
.bg-img1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* ========== BREADCRUMB ========== */
.breadcrumb-section {
    background: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.custom-breadcrumb {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0;
}

.custom-breadcrumb a {
    color: var(--primary-yellow-hover);
    text-decoration: none;
}

.custom-breadcrumb a:hover {
    text-decoration: underline;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    background: var(--bg-white);
    min-height: calc(100vh - 200px);
    padding-top: 30px;
}

/* ========== SIDEBAR FILTROS ========== */
.filters-sidebar {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    accent-color: var(--primary-yellow);
}

.filter-option label {
    font-size: 14px;
    color: var(--text-medium);
    cursor: pointer;
    margin: 0;
}

.filter-option input[type="checkbox"]:checked + label {
    color: var(--text-dark);
}

/* ========== PRODUCTOS SECTION ========== */
.products-header {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.results-count {
    font-size: 14px;
    color: var(--text-medium);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 14px;
    color: var(--text-medium);
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    min-width: 160px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

/* ========== PRODUCT GRID ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ========== PRODUCT CARDS ========== */
.farmacity-product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.farmacity-product-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: var(--border-medium);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.product-favorite,
.product-compare {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-favorite:hover {
    background: #e74c3c;
}

.product-compare:hover {
    background: var(--primary-yellow);
}

.product-favorite.active {
    background: #e74c3c;
    color: white;
}

.product-compare.active {
    background: var(--primary-yellow);
    color: white;
}

.product-favorite i,
.product-compare i {
    font-size: 14px;
    color: var(--text-medium);
}

.product-favorite:hover i,
.product-favorite.active i,
.product-compare:hover i,
.product-compare.active i {
    color: white;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-pricing {
    margin-bottom: 15px;
}

.product-price-current {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
}

.product-price-old {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 5px;
}

.product-tax-info {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
}

.product-add-button {
    background: var(--primary-yellow);
    color: var(--text-dark);
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    width: 100%;
}

.product-add-button:hover {
    background: var(--primary-yellow-hover);
}

/* ========== LOAD MORE BUTTON ========== */
.load-more-btn {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-medium);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

/* ========== EMPTY STATE ========== */
.empty-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
}

.empty-products i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
    display: block;
}

.empty-products h4 {
    font-size: 1.3rem;
    color: var(--text-medium);
    margin-bottom: 10px;
    font-weight: 500;
}

.empty-products p {
    color: var(--text-light);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ========== BOTÓN FLOTANTE DE COMPARACIÓN ========== */
.compare-floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.compare-btn-content {
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: var(--transition);
    position: relative;
}

.compare-btn-content:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.compare-btn-content i {
    font-size: 20px;
    color: white;
}

.compare-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.compare-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.compare-floating-button:hover .compare-tooltip {
    opacity: 1;
}

/* ========== MODAL DE COMPARACIÓN ========== */
.compare-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    margin-bottom: 15px;
    position: relative;
}

.compare-product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.compare-product-name {
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
    font-size: 14px;
}

.compare-product-price {
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 16px;
}

.compare-remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    transition: var(--transition);
}

.compare-remove-btn:hover {
    transform: scale(1.1);
}

/* ========== ESTILOS PARA PÁGINAS NOSOTROS Y CONTACTO ========== */
.bg0 {
    background: var(--bg-white);
}

.mtext-111 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.stext-113 {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.cl2 {
    color: var(--text-dark);
}

.cl6 {
    color: var(--text-medium);
}

.p-t-75 {
    padding-top: 75px;
}

.p-b-120 {
    padding-bottom: 120px;
}

.p-b-16 {
    padding-bottom: 16px;
}

.p-b-26 {
    padding-bottom: 26px;
}

.p-t-104 {
    padding-top: 104px;
}

.p-b-116 {
    padding-bottom: 116px;
}

.how-bor1 {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hov-img0 img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.hov-img0:hover img {
    transform: scale(1.05);
}

/* Estilos para formulario de contacto */
.bor10 {
    border-radius: var(--border-radius);
}

.bor8 {
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
}

.size-116 {
    width: 100%;
    height: 50px;
}

.size-120 {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.size-121 {
    height: 50px;
    padding: 0 30px;
}

.stext-111 {
    font-size: 14px;
    padding: 12px 15px;
    border: none;
    outline: none;
    background: var(--bg-white);
    color: var(--text-dark);
}

.stext-111:focus {
    border-color: var(--primary-yellow);
}

.bg3 {
    background: var(--primary-yellow);
}

.bg3:hover {
    background: var(--primary-yellow-hover);
}

.mtext-105 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mtext-110 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.stext-115 {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

.cl5 {
    color: var(--primary-yellow-hover);
}

.fs-18 {
    font-size: 18px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .hero-title,
    .bg-img1 h2,
    .ltext-105 {
        font-size: 2rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sort-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Ajustes para páginas nosotros y contacto */
    .p-t-75 {
        padding-top: 50px;
    }
    
    .p-b-120 {
        padding-bottom: 80px;
    }
    
    .p-t-104 {
        padding-top: 60px;
    }
    
    .p-b-116 {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .bg-img1 {
        min-height: 200px;
        padding: 40px 15px;
    }
    
    .hero-title,
    .bg-img1 h2,
    .ltext-105 {
        font-size: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .filters-sidebar {
        padding: 15px;
    }
    
    .products-header {
        padding: 15px;
    }
    
    .product-image-container {
        height: 150px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .main-content {
        padding-top: 20px;
    }
    
    /* Ajustes específicos para nosotros y contacto */
    .mtext-111 {
        font-size: 1.3rem;
    }
    
    .mtext-105,
    .mtext-110 {
        font-size: 1.1rem;
    }
    
    .p-t-75,
    .p-t-104 {
        padding-top: 40px;
    }
    
    .p-b-120,
    .p-b-116 {
        padding-bottom: 60px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image-container {
        height: 120px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 13px;
        min-height: 35px;
    }
    
    .product-price-current {
        font-size: 1.1rem;
    }
    
    .product-add-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .hero-title,
    .bg-img1 h2,
    .ltext-105 {
        font-size: 1.3rem;
    }
    
    .filters-sidebar {
        padding: 12px;
    }
    
    .products-header {
        padding: 12px;
    }
    
    /* Ajustes móviles para nosotros y contacto */
    .hero-section,
    .bg-img1 {
        min-height: 180px;
        padding: 30px 15px;
    }
    
    .mtext-111 {
        font-size: 1.2rem;
    }
    
    .mtext-105,
    .mtext-110 {
        font-size: 1rem;
    }
    
    .stext-113,
    .stext-115 {
        font-size: 14px;
    }
    
    .p-t-75,
    .p-t-104 {
        padding-top: 30px;
    }
    
    .p-b-120,
    .p-b-116 {
        padding-bottom: 40px;
    }
}

/* ========== UTILIDADES ========== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.w-100 {
    width: 100%;
}

/* ========== FOCUS STATES ========== */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* ========== CART BUTTON STYLES ========== */
.cart-button {
    position: relative;
}

.cart-count-main {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* ========== FOOTER STYLES ========== */
footer.bg3 {
    background: var(--bg-dark) !important;
    color: #ffffff;
}

footer.bg3 h4,
footer.bg3 .stext-301 {
    color: #ffffff !important;
    font-weight: 600;
}

footer.bg3 .stext-107,
footer.bg3 .cl7,
footer.bg3 p {
    color: #cccccc !important;
}

footer.bg3 a {
    color: #cccccc !important;
    text-decoration: none;
}

/* Eliminar TODOS los efectos hover del footer */
footer.bg3 a:hover,
footer.bg3 .hov-cl1:hover,
footer.bg3 .trans-04:hover,
footer.bg3 a:focus,
footer.bg3 a:active {
    color: #cccccc !important;
    text-decoration: none !important;
    transform: none !important;
    transition: none !important;
    background: transparent !important;
}

/* Estilos del formulario de suscripción */
footer.bg3 .input1 {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: var(--border-radius);
    padding: 8px 15px !important;
    font-size: 14px !important;
    height: 40px !important;
}

footer.bg3 .input1::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer.bg3 .input1:focus {
    border-color: rgba(255, 255, 255, 0.4) !important;
    outline: none !important;
}

/* Arreglar el contenedor del input */
footer.bg3 .wrap-input1 {
    position: relative;
}

footer.bg3 .wrap-input1 .input1 {
    width: 100% !important;
    box-sizing: border-box !important;
}

footer.bg3 button,
footer.bg3 .bg1 {
    background: #2d2d2d !important;
    color: #ffffff !important;
    border: 1px solid #404040 !important;
    border-radius: var(--border-radius);
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

footer.bg3 button:hover,
footer.bg3 .hov-btn2:hover {
    background: #2d2d2d !important;
    color: #ffffff !important;
    transform: none !important;
    transition: none !important;
}

/* Iconos sociales sin hover */
footer.bg3 .fa {
    color: #cccccc !important;
}

footer.bg3 .fa:hover {
    color: #cccccc !important;
    transform: none !important;
}

/* Espaciado adicional para el footer */
footer.bg3 .p-t-75 {
    padding-top: 75px !important;
}

footer.bg3 .p-b-32 {
    padding-bottom: 32px !important;
}

footer.bg3 .p-b-50 {
    padding-bottom: 50px !important;
}

footer.bg3 .p-b-30 {
    padding-bottom: 30px !important;
}

/* Mejoras en el formulario */
footer.bg3 .w-full {
    width: 100% !important;
}

footer.bg3 .p-b-4 {
    padding-bottom: 4px !important;
}

footer.bg3 .p-t-18 {
    padding-top: 18px !important;
}

/* ========== PRINT STYLES ========== */
@media print {
    .filters-sidebar,
    .products-header .sort-controls,
    .load-more-btn,
    .product-favorite,
    .product-add-button {
        display: none;
    }
    
    .farmacity-product-card {
        border: 1px solid #000;
        break-inside: avoid;
        margin-bottom: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}