/* Styles for Zapatería Alejandro Oseguera */

/* Custom Color Variables & Typography */
:root {
    --primary: #1a1a1a;        /* Elegant Matte Black */
    --primary-light: #333333;  
    --accent: #d4af37;         /* Luxury Gold */
    --accent-hover: #bda02b;
    --bg-light: #faf8f5;       /* Warm Cream White */
    --bg-card: #ffffff;
    --text-main: #2b2b2b;
    --text-muted: #707070;
    --border-color: #e5dfd5;
    --success: #2e7d32;        /* Elegant Forest Green */
    --success-light: #e8f5e9;
    --danger: #c62828;
    --shadow-soft: 0 4px 20px rgba(26, 26, 26, 0.05);
    --shadow-hover: 0 12px 30px rgba(26, 26, 26, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', sans-serif;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Helper Classes */
.hidden {
    display: none !important;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: #ffffff;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.top-bar i {
    margin-right: 6px;
    color: var(--accent);
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.brand-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-first {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    letter-spacing: 0.5px;
}

.brand-last {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Wholesale Badge */
.wholesale-badge {
    background-color: var(--success-light);
    border: 1px solid var(--success);
    color: var(--success);
    border-radius: 4px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: fadeIn 0.4s ease;
}

.btn-deactivate {
    background: none;
    border: none;
    color: var(--success);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-deactivate:hover {
    color: var(--danger);
    transform: scale(1.15);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 320px;
    background-image: url('https://images.unsplash.com/photo-1549298916-b41d501d3772?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0.6) 0%, rgba(26,26,26,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.5px;
    color: #e5dfd5;
}

/* Controls Panel (Search & Filters) */
.controls-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-top: -40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.search-box {
    flex: 2;
    min-width: 280px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.search-box input:focus {
    border-color: var(--accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.filters-group {
    flex: 3;
    display: flex;
    gap: 16px;
    min-width: 320px;
}

.filter-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-wrapper label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.filter-wrapper select {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-wrapper select:focus {
    border-color: var(--accent);
    background-color: #ffffff;
}

/* Alert Banner */
.alert-banner {
    background-color: var(--success-light);
    border-left: 4px solid var(--success);
    color: #1b5e20;
    padding: 16px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-soft);
    animation: slideDown 0.4s ease;
}

.alert-banner i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Products Grid */
.products-grid-section {
    margin-bottom: 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.error-icon {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 16px;
}

/* Product Card */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card:hover .card-img {
    transform: scale(1.05);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    background-color: #ffffff;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(26, 26, 26, 0.85);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    line-height: 1.3;
}

.card-sizes {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.pricing-area {
    display: flex;
    flex-direction: column;
}

.price-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.price-public {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.price-public.slashed {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.price-wholesale {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-action-indicator {
    color: var(--accent);
    font-size: 0.9rem;
    transition: var(--transition);
}

.product-card:hover .card-action-indicator {
    transform: translateX(4px);
}

/* Modal Core Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background-color: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: scaleUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.modal-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-instructions {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--accent);
}

.input-with-icon input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--primary);
}

.validation-error {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

.modal-footer {
    padding: 16px 24px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Detail Modal Custom Style */
.detail-modal-card {
    max-width: 850px;
    position: relative;
}

.detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--text-muted);
    z-index: 10;
}

.detail-close:hover {
    color: var(--primary);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
}

.detail-image-container {
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    min-height: 400px;
}

.detail-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.detail-info-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-tag {
    align-self: flex-start;
    background-color: var(--accent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.detail-info-container h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.detail-code {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.detail-pricing {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.price-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 90px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.price-box.active-tier {
    background-color: var(--success-light);
    border-color: var(--success);
}

.price-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.price-value.slashed {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

.wholesale-box {
    animation: fadeIn 0.4s ease;
}

.price-box.active-tier .price-value {
    color: var(--success);
}

.detail-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 24px;
}

.detail-spec {
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sizes-list {
    display: flex;
    gap: 8px;
}

.size-item {
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    background-color: var(--bg-light);
    font-weight: 500;
}

.wholesale-locked-promo {
    background-color: #fff9e6;
    border: 1px dashed var(--accent);
    border-radius: 4px;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8a6d07;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer Section */
.main-footer {
    background-color: var(--primary);
    color: #ffffff;
    padding: 40px 0;
    border-top: 3px solid var(--accent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-info {
    text-align: right;
    font-size: 0.85rem;
}

.footer-info p {
    margin-bottom: 6px;
    color: rgba(255,255,255,0.7);
}

.footer-info i {
    color: var(--accent);
    margin-right: 6px;
}

.copyright {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.75rem;
    margin-top: 10px;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Media Queries */
@media (max-width: 800px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-image-container {
        min-height: 250px;
    }
    .detail-info-container {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    .controls-panel {
        flex-direction: column;
        align-items: stretch;
        margin-top: -20px;
    }
    .filters-group {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info {
        text-align: center;
    }
}

/* Estilos para el código en pantalla */
.card-code {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

/* Cabecera oculta por defecto en pantalla */
.print-header {
    display: none;
}

/* Reglas de Impresión / PDF */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    /* Ocultar elementos innecesarios */
    .top-bar,
    .main-header,
    .hero-section,
    .controls-panel,
    .alert-banner,
    .main-footer,
    .modal-overlay,
    .cart-drawer-overlay,
    .floating-wa-widget,
    .card-tag,
    .card-action-indicator,
    .card-footer,
    .card-sizes,
    .card-content h3 {
        display: none !important;
    }
    
    /* Mostrar cabecera de impresión */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 10px;
        border-bottom: 2px solid #000000;
    }
    
    .print-header h1 {
        font-family: var(--font-serif);
        font-size: 2.5rem;
        margin-bottom: 5px;
    }
    
    .print-header p {
        font-family: var(--font-sans);
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    /* Contenedores principales */
    .catalog-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Forzar cuadrícula de impresión de 3 columnas */
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    /* Ajustes de tarjetas */
    .product-card {
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        break-inside: avoid;
        cursor: default;
    }
    
    .card-content {
        padding: 12px !important;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .card-code {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #000000 !important;
        margin: 0 !important;
    }
}

/* --- ESTILOS DE DRAWER DEL CARRITO --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 0.3s ease;
}

.cart-drawer {
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(26, 26, 26, 0.15);
    animation: slideLeft 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-drawer-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-drawer-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1.3rem;
    transition: var(--transition);
}

.cart-drawer-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-drawer-footer {
    padding: 24px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

/* Cart Item Cards */
.cart-item {
    display: flex;
    gap: 16px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--bg-light);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-item-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-weight: 700;
    color: var(--success);
    font-size: 0.95rem;
}

.cart-item-qty-badge {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-empty-message {
    text-align: center;
    margin: auto;
    color: var(--text-muted);
}

.cart-empty-message i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 12px;
    display: block;
}

@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Estilo para el Pop-up flotante de WhatsApp (abajo a la izquierda) */
.floating-wa-widget-container {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Botón flotante redondo con el logo */
.wa-icon-button {
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    outline: none;
}

.wa-icon-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Ventana de Chat al estilo del screenshot */
.wa-chat-window {
    width: 320px;
    background-color: #121212;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    margin-bottom: 16px;
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
    border: 1px solid #2c2c2e;
    animation: slideUpWidget 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Encabezado del Chat */
.wa-chat-header {
    background-color: #0b6656;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.wa-chat-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.wa-chat-info {
    display: flex;
    flex-direction: column;
}

.wa-chat-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.wa-chat-status {
    font-size: 0.75rem;
    color: #a3e635; /* Color verde claro */
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #22c55e;
}

.wa-chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.wa-chat-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Cuerpo del Chat */
.wa-chat-body {
    padding: 16px;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Burbuja del Mensaje del Agente */
.wa-chat-bubble {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agent-bubble {
    background-color: #2c2c2e;
    color: #f3f4f6;
    align-self: flex-start;
    border-top-left-radius: 4px;
    border: 1px solid #3a3a3c;
}

.wa-chat-bubble-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.wa-chat-time {
    font-size: 0.65rem;
    color: #a1a1aa;
    align-self: flex-end;
}

/* Contenedor del Input de Usuario */
.wa-chat-input-container {
    background-color: #121212;
    border: 1px solid #2c2c2e;
    border-radius: 8px;
    padding: 8px 12px;
}

.wa-chat-textarea {
    width: 100%;
    height: 60px;
    background: none;
    border: none;
    resize: none;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    line-height: 1.4;
}

/* Pie del Chat */
.wa-chat-footer {
    padding: 12px 16px 16px;
    background-color: #1a1a1a;
}

.wa-chat-btn {
    background-color: #25d366;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: var(--transition);
}

.wa-chat-btn:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.wa-chat-btn i {
    font-size: 1.15rem;
}

@keyframes slideUpWidget {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Wholesale Shortcuts Header */
.wholesale-links {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.wholesale-link-item {
    text-decoration: none;
    color: var(--primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.wholesale-link-item:hover {
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    transform: translateY(-3px);
}

/* Individual brand hover colors */
.wholesale-link-item[title="Instagram"]:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    border-color: transparent;
}

.wholesale-link-item[title="Facebook"]:hover {
    background-color: #1877f2;
    border-color: transparent;
}

.wholesale-link-item[title="TikTok"]:hover {
    background-color: #000000;
    border-color: transparent;
}

.wholesale-link-item i {
    transition: transform 0.3s ease;
}

.wholesale-link-item:hover i {
    transform: scale(1.1);
}

/* Optimizaciones premium para celulares y pantallas pequeñas */
@media (max-width: 580px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .wholesale-links {
        gap: 8px;
        width: 100%;
        justify-content: center;
        margin-top: 4px;
        margin-bottom: 4px;
    }
    .wholesale-link-item {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .logo-area {
        justify-content: center;
        width: 100%;
        margin-bottom: 4px;
    }
    .brand-logo {
        align-items: center;
    }
    .brand-first, .brand-last {
        font-size: 1.5rem;
    }
    .wholesale-toggle-container {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 8px !important;
    }
    .btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Cuadrícula de 2 columnas en móvil */
        gap: 12px;
    }
    .product-card {
        border-radius: 6px;
    }
    .card-content {
        padding: 12px;
    }
    .card-content h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    .card-sizes {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    .price-wholesale {
        font-size: 0.9rem;
    }
    .price-value {
        font-size: 1.15rem;
    }
    /* Modal de detalles a pantalla completa en móviles */
    .detail-modal-card {
        max-width: 100% !important;
        height: 100%;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    .detail-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    .detail-image-container {
        min-height: 300px;
        max-height: 400px;
    }
    .detail-info-container {
        padding: 24px;
    }
    .detail-info-container h2 {
        font-size: 1.6rem;
    }
    /* Chat de WhatsApp adaptado */
    .wa-chat-window {
        width: calc(100vw - 32px);
    }
    .floating-wa-widget-container {
        left: 16px;
        bottom: 16px;
    }
    .wa-icon-button {
        width: 54px;
        height: 54px;
        font-size: 1.8rem;
    }
}

/* ==========================================
   TEMA DORADO MAYORISTA (COLOR ORO)
   ========================================== */
.theme-gold .modal-card {
    border-top: 5px solid var(--accent) !important;
}

.theme-gold .validation-error {
    color: var(--accent) !important;
}

.theme-gold #whatsappWelcomeModal .fa-whatsapp {
    color: var(--accent) !important;
}

.theme-gold #whatsappWelcomeModal .btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--primary) !important;
}

.theme-gold #whatsappWelcomeModal .btn-primary:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

.theme-gold .wa-chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border-bottom: 2px solid var(--accent) !important;
}

.theme-gold .wa-chat-profile .wa-chat-avatar {
    color: var(--accent) !important;
}

.theme-gold .wa-chat-btn {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2) !important;
}

.theme-gold .wa-chat-btn:hover {
    background-color: var(--accent-hover) !important;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3) !important;
}

.theme-gold .wa-icon-button {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
}

.theme-gold .wa-icon-button:hover {
    background-color: var(--accent-hover) !important;
}

/* Posición lateral derecha central para el widget de WhatsApp en modo mayoreo */
.theme-gold .floating-wa-widget-container {
    left: auto !important;
    right: 24px !important;
    bottom: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    align-items: flex-end !important;
}

.theme-gold .wa-chat-window {
    margin-bottom: 12px !important;
}

/* Encabezado dorado de alto contraste */
.theme-gold .main-header {
    background-color: var(--accent) !important;
    border-bottom: 1px solid var(--accent-hover) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

/* Asegurar legibilidad del texto del logo (negro sobre fondo oro) */
.theme-gold .main-header .brand-first,
.theme-gold .main-header .brand-last {
    color: var(--primary) !important;
}

.theme-gold .main-header .brand-sub {
    color: rgba(26, 26, 26, 0.7) !important;
}

/* Redes sociales en modo dorado */
.theme-gold .wholesale-link-item {
    color: var(--primary) !important;
    border-color: rgba(26, 26, 26, 0.2) !important;
}

/* Botones secundarios del encabezado (negro mate sobre fondo oro) */
.theme-gold .main-header .btn-secondary {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

.theme-gold .main-header .btn-secondary:hover {
    background-color: var(--primary-light) !important;
    transform: translateY(-2px);
}

.theme-gold .main-header #cartBtn #cartCount {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
}

/* Override para móvil en la posición del widget */
@media (max-width: 580px) {
    .theme-gold .floating-wa-widget-container {
        left: auto !important;
        right: 16px !important;
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}

