/* CSS Variables */
:root {
    --primary-color: #4a5d23;
    --primary-dark: #3a4a1b;
    --secondary-color: #d4a017;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #fcfcfc;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;

    /* Aliases para checkout y formularios (todos los temas los reciben) */
    --primary: var(--primary-color);
    --text: var(--text-color);
    --border: var(--border-color);
    --radius: var(--border-radius);
    --font: var(--font-body);
    --bg-card: var(--white);
    --text-muted: var(--light-text);
    --border-light: #eee;
    --bg: var(--background-color);
    --shadow: var(--shadow-sm);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-lg: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Announcement Bar - valores por defecto; la config del cliente (panel) sobrescribe con estilos inline */
.announcement-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Header */
.site-header {
    height: var(--header-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.desktop-nav {
    flex: 1;
    min-width: 0;
    overflow: visible;
    position: relative;
}
.desktop-nav ul {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.desktop-nav li {
    flex-shrink: 0;
    white-space: nowrap;
}

.desktop-nav a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 8px 10px;
    border-radius: 6px;
    transition: color .2s, background .2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.desktop-nav a:hover {
    color: var(--primary-color);
    background: rgba(0,0,0,0.04);
}

/* Header: overflow visible for dropdowns */
.site-header.store-header,
.header-wrapper {
    overflow: visible;
}

/* Desktop Dropdown (categories with children & "Más") */
.desktop-nav li.has-dropdown {
    position: relative;
}
.desktop-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 200px;
    background: var(--white, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    z-index: 1100;
    display: block;
}
.desktop-nav li.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}
.desktop-nav .dropdown li { margin: 0; }
.desktop-nav .dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 0;
}
.desktop-nav .dropdown a:hover {
    background: var(--light-gray, #f5f5f5);
    color: var(--primary-color);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    font-size: 1.2rem;
    color: var(--text-color);
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
}

/* Mobile: collapsible dropdowns */
.mobile-nav-links .has-dropdown .dropdown {
    display: none !important;
    padding-left: 16px;
    margin-top: 8px;
    margin-bottom: 8px;
    border-left: 2px solid var(--border, #e2e8f0);
    list-style: none;
    padding-top: 0;
}
.mobile-nav-links .has-dropdown.expanded .dropdown {
    display: block !important;
}
.mobile-nav-links .has-dropdown.expanded > a .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}
.mobile-nav-links .has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav-links .has-dropdown > a .fa-chevron-down {
    transition: transform 0.3s ease;
}
.mobile-nav-links .dropdown a {
    font-size: 1rem;
    padding: 6px 0;
    color: var(--text-light, #666);
}
.mobile-nav-links .dropdown a:hover {
    color: var(--primary-color);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero.hero-no-overlay .hero-overlay,
.hero.hero-no-overlay::after {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-content.hero-content-left { align-items: flex-start; text-align: left; padding-left: 2rem; }
.hero-content.hero-content-center { align-items: center; text-align: center; }
.hero-content.hero-content-right { align-items: flex-end; text-align: right; padding-right: 2rem; }

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Featured Products */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 50px;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 20px;
    text-align: center;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

/* Product Badges - z-index alto para que queden SOBRE las fotos */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.badge-sale {
    background: var(--secondary-color);
    color: #fff;
}

.badge-new {
    background: var(--primary-color);
    color: #fff;
}

.badge-bestseller {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.badge-eco {
    background: #10b981;
    color: #fff;
}

/* Sin stock / Agotado: tarjeta en gris en todas las tiendas y temas */
.product-card.out-of-stock {
    opacity: 0.88;
    pointer-events: auto;
}
.product-card.out-of-stock .product-image {
    position: relative;
    filter: grayscale(0.85);
}
.product-card.out-of-stock .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 2;
}
.badge-out-of-stock {
    background: #555 !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Botón Consultar (WhatsApp) cuando sin stock o precio 0 */
.btn-whatsapp-consultar {
    text-decoration: none;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}
.btn-whatsapp-consultar:hover {
    color: #fff;
}
.product-card .btn-whatsapp-consultar {
    width: 100%;
}
.product-card.out-of-stock .btn,
.product-card.out-of-stock .btn-secondary {
    background: #e5e5e5 !important;
    color: #888 !important;
    border-color: #ddd !important;
    cursor: not-allowed;
}

/* Estado vacío (sin productos en categoría) */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
}
.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-color);
}
.empty-state p {
    color: var(--light-text);
    margin-bottom: 24px;
}

/* Price Styles */
.product-price-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-price-old {
    font-size: 0.95rem;
    color: var(--light-text);
    text-decoration: line-through;
    opacity: 0.7;
}

.product-price-wrap .product-price {
    color: var(--primary-color);
    margin-bottom: 0;
}

/* About Section */
.about-section {
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content {
    padding: 20px;
}

.about-image {
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-logo {
    color: var(--white) !important;
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white) !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-list i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.credit a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: underline;
}

.credit a:hover {
    color: var(--white);
}

/* (Mobile styles moved to end of file) */

/* Split Section (Image + Text) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 600px;
}

.split-image {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 400px;
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    background-color: var(--white);
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.section-tag {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    padding: 20px 0;
    /* Full width feel */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #0f172a;
}

/* Formatos de galería (relación de aspecto) */
.gallery-section.gallery-aspect-1-1 .gallery-item { aspect-ratio: 1 / 1; }
.gallery-section.gallery-aspect-3-4 .gallery-item { aspect-ratio: 3 / 4; }
.gallery-section.gallery-aspect-4-3 .gallery-item { aspect-ratio: 4 / 3; }
.gallery-section.gallery-aspect-9-16 .gallery-item { aspect-ratio: 9 / 16; }
.gallery-section.gallery-aspect-16-9 .gallery-item { aspect-ratio: 16 / 9; }
.gallery-section.gallery-aspect-2-3 .gallery-item { aspect-ratio: 2 / 3; }
.gallery-section.gallery-aspect-3-2 .gallery-item { aspect-ratio: 3 / 2; }
.gallery-section.gallery-aspect-free .gallery-item { aspect-ratio: auto; height: 280px; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

/* Galería en carrusel (una línea, loop infinito) */
.gallery-section.gallery-carousel-wrap {
    overflow: hidden;
}
.gallery-carousel {
    overflow: hidden;
}
.gallery-carousel .gallery-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 0;
    width: max-content;
    animation: scrollGallery 50s linear infinite;
    will-change: transform;
}
.gallery-carousel .gallery-item {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
}
@keyframes scrollGallery {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Newsletter / CTA */
.newsletter-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.newsletter-section h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.newsletter-form {
    max-width: 500px;
    margin: 40px auto 0;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    outline: none;
}

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

.btn-white:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
}

.review-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--secondary-color);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.2;
    line-height: 1;
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 20px;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Categories Page */
.categories-header {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.filters-bar {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ========================================
   SECCIONES GLOBALES (logo carousel, image carousel, FAQ, CTA, countdown, brands, contact map, separator)
   Todas las tiendas y todos los temas las cargan desde base.
   ======================================== */

/* --- Logo carousel --- */
.logo-carousel-section.section {
    padding: 50px 0;
}
.logo-carousel {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}
.logo-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 60px;
    padding: 20px 0;
    width: max-content;
}
.logo-carousel.autoplay .logo-track {
    animation: scrollLogos 40s linear infinite;
    will-change: transform;
}
.logo-item {
    flex-shrink: 0;
    height: 60px;
    display: flex;
    align-items: center;
}
.logo-item img {
    max-height: 100%;
    max-width: 150px;
    object-fit: contain;
}
.logo-carousel.grayscale .logo-item img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}
.logo-carousel.grayscale .logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Image carousel --- */
.image-carousel-section {
    position: relative;
    overflow: hidden;
}
.image-carousel {
    position: relative;
}
.image-carousel-section .carousel-track {
    position: relative;
    height: 400px;
}
@media (min-width: 769px) {
    .image-carousel-section .carousel-track { height: 500px; }
}
.image-carousel-section .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.image-carousel-section .carousel-slide.active {
    opacity: 1;
}
.image-carousel-section .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-carousel-section .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.image-carousel-section .carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}
.image-carousel-section .carousel-prev { left: 20px; }
.image-carousel-section .carousel-next { right: 20px; }
.image-carousel-section .carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.image-carousel-section .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
}
.image-carousel-section .carousel-dot.active {
    background: #fff;
}

/* --- FAQ accordion --- */
.faq-accordion-section.section {
    padding: 60px 0;
}
.faq-accordion-section .faq-header {
    margin-bottom: 32px;
}
.faq-accordion-section .faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-accordion-section .faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}
.faq-accordion-section .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s;
}
.faq-accordion-section .faq-question:hover {
    background: var(--light-gray);
}
.faq-accordion-section .faq-question i {
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.3s;
}
.faq-accordion-section .faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-accordion-section .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-accordion-section .faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-accordion-section .faq-answer-inner {
    padding: 0 20px 20px;
    color: var(--light-text);
    line-height: 1.6;
}

/* --- CTA fullwidth --- */
.cta-fullwidth-section {
    position: relative;
    overflow: hidden;
}
.cta-fullwidth-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.cta-fullwidth-section .container {
    position: relative;
    z-index: 2;
}

/* --- Countdown --- */
.countdown-section.section {
    padding: 60px 20px;
}
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 30px;
}
.countdown-grid .cd-num {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}
@media (max-width: 480px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 280px;
    }
    .countdown-grid .cd-num { font-size: 1.6rem; }
}

/* --- Brands --- */
.brands-section.section {
    padding: 50px 0;
}
.brands-section .section-title {
    margin-bottom: 30px;
}
.brands-grid {
    display: grid;
    gap: 24px;
    align-items: center;
    padding: 30px 0;
}
.brands-grid > div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
}
.brands-grid img {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .brands-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 16px; }
}
@media (max-width: 480px) {
    .brands-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- Contact map --- */
.contact-map-section.section {
    padding: 60px 0;
}
.contact-map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-map-section .contact-info-block {
    padding: 30px 0;
}
.contact-map-section .map-embed {
    min-height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
}
@media (max-width: 768px) {
    .contact-map-layout {
        grid-template-columns: 1fr;
        display: block;
    }
    .contact-map-section .map-embed { margin-top: 20px; }
}

/* --- Separator --- */
.separator-section {
    box-sizing: border-box;
    width: 100%;
}

/* ========================================
   CHECKOUT Y CALCULAR ENVÍO - Estilo fijo para todos los temas
   ======================================== */

/* Tarjeta genérica para bloques de la página producto */
.product-detail-card {
    padding: 20px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light, #eee);
}
.product-detail-card:last-of-type {
    border-bottom: none;
}

/* Calcular envío (producto y checkout) */
.product-shipping-calculator {
    padding: 20px 0;
    margin-bottom: 24px;
}
.product-shipping-calculator.product-detail-card {
    padding-top: 20px;
    padding-bottom: 20px;
}
.shipping-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}
.shipping-title i {
    color: var(--primary-color);
    font-size: 1rem;
}
.shipping-input-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.shipping-zip-input {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    color: var(--text-color);
}
.shipping-zip-input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.shipping-input-wrap .btn {
    flex-shrink: 0;
}
.shipping-result {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-color);
}
@media (max-width: 768px) {
    .product-shipping-calculator {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Product features (misma página producto) */
.product-features {
    padding: 20px 0;
}
.product-features.product-detail-card {
    padding-top: 20px;
    padding-bottom: 20px;
}
.product-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
}
.product-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-features-list i {
    color: var(--primary-color);
    flex-shrink: 0;
    font-size: 1rem;
}
@media (max-width: 768px) {
    .product-features-list {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Checkout: layout y formularios (todos los temas) */
.checkout-wrapper {
    padding: 40px 0 80px;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}
.form-section {
    margin-bottom: 40px;
}
.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-section-title i {
    color: var(--primary-color);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--white);
    color: var(--text-color);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 93, 35, 0.15);
}
.payment-methods-grid {
    display: grid;
    gap: 16px;
}
.payment-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    position: relative;
}
.payment-card:hover {
    border-color: var(--primary-color);
}
.payment-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(74, 93, 35, 0.06);
    box-shadow: 0 0 0 1px var(--primary-color);
}
.payment-card-radio {
    margin-top: 4px;
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}
.payment-card-content { flex: 1; }
.payment-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    display: block;
}
.payment-desc {
    font-size: 0.85rem;
    color: var(--light-text);
    line-height: 1.5;
    margin: 0;
}
.order-summary-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}
.summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.summary-items {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 5px;
}
.summary-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.summary-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.summary-item-info { flex: 1; }
.summary-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}
.summary-item-meta {
    font-size: 0.8rem;
    color: var(--light-text);
}
.summary-item-price {
    font-weight: 600;
    font-size: 0.95rem;
}
.summary-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--light-text);
}
.summary-row.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}
.btn-checkout {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
}
.back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.9rem;
}
.back-link:hover {
    color: var(--primary-color);
}
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .order-summary-card {
        position: static;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .checkout-wrapper {
        padding-top: 20px;
    }
}

/* ========================================
   PÁGINA PRODUCTO - Imagen + contenido (antes en master_php.css; ahora centralizado)
   ======================================== */
.product-detail-wrapper {
    padding: 24px 0 48px;
    overflow-x: hidden;
    max-width: 100%;
}
.product-detail-wrapper.section {
    opacity: 1 !important;
    transform: none !important;
}
.product-detail-wrapper img {
    max-width: 100%;
    height: auto;
}
.product-detail-wrapper .container {
    max-width: 100%;
    overflow-x: hidden;
}
@media (max-width: 768px) {
    .product-detail-wrapper {
        padding: 16px 12px 120px;
    }
}

.product-breadcrumb {
    font-size: 0.875rem;
    color: var(--light-text, #64748b);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light, #eee);
}
.product-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.product-breadcrumb a:hover,
.product-breadcrumb .product-category {
    color: var(--primary-color);
}
.product-breadcrumb .breadcrumb-sep {
    margin: 0 6px;
    opacity: 0.7;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
    overflow: hidden;
    max-width: 100%;
}
@media (min-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 48px;
        align-items: start;
    }
    .product-detail-image-col {
        position: sticky;
        top: 100px;
        max-width: 100%;
        min-width: 0;
    }
    .product-detail-content-col {
        min-width: 0;
        padding-left: 0;
    }
    .product-detail-title { font-size: 2rem; }
    .product-detail-price { font-size: 2rem; }
}
@media (max-width: 768px) {
    .product-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
        min-width: 0;
    }
    .product-detail-image-col { order: 1; min-width: 0; max-width: 100%; }
    .product-detail-content-col { order: 2; padding: 0 4px; min-width: 0; max-width: 100%; }
    .product-detail-content-col .product-detail-price { font-size: 1.5rem; }
}

.product-gallery {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.product-detail-image-col {
    overflow: hidden;
    max-width: 100%;
}
.product-detail-image-col .main-image-frame {
    aspect-ratio: 1;
    min-height: 280px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-gray, #f8fafc);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.product-detail-image-col .main-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
@media (min-width: 992px) {
    .product-detail-image-col .main-image-frame { min-height: 400px; }
}
@media (max-width: 768px) {
    .product-detail-image-col .main-image-frame {
        min-height: 320px;
        aspect-ratio: 1;
        max-width: 100%;
    }
}

.product-image-zoom { cursor: zoom-in; }
.product-image-zoom.zoomed { cursor: zoom-out; }
.product-image-zoom img { transition: transform 0.3s ease; }
.product-image-zoom:hover img,
.product-image-zoom.zoomed img { transform: scale(1.5); }

.product-detail-image-col .product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.product-detail-image-col .product-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--light-gray, #f3f4f6);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.product-detail-image-col .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-detail-image-col .product-thumb:hover,
.product-detail-image-col .product-thumb.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}
@media (max-width: 768px) {
    .product-detail-image-col .product-thumbs { gap: 12px; padding: 8px 0 12px; }
    .product-detail-image-col .product-thumb { flex: 0 0 72px; width: 72px; height: 72px; min-width: 72px; }
}
@media (min-width: 992px) {
    .product-detail-image-col .product-thumb { flex: 0 0 72px; width: 72px; height: 72px; }
}

.product-detail-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-color);
}
.product-detail-title-mobile { display: block; }
.product-detail-title-desktop { display: none; }
@media (min-width: 992px) {
    .product-detail-title-mobile { display: none !important; }
    .product-detail-title-desktop { display: block !important; }
}
@media (max-width: 768px) {
    .product-detail-title-mobile { display: block !important; font-size: 1.35rem; margin: 0 0 16px 0; padding: 0 4px; font-weight: 700; }
    .product-detail-title-desktop { display: none !important; }
}

.product-detail-price-block.price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light, #eee);
}
.price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.product-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
}
.product-price-promo { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.discount-badge {
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.product-compare-price-old {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 1.05rem;
}

.product-installments-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}
.product-installments-box i {
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.product-variant-block { margin-bottom: 24px; }
.variant-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.product-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-variant-btn {
    padding: 10px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.product-variant-btn:hover,
.product-variant-btn.selected {
    border-color: var(--primary-color);
    background: var(--light-gray);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}
.product-detail-buy-box.cart-actions {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light, #eee);
}
.product-qty-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.product-qty-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    min-width: 70px;
}
.product-stock-msg {
    font-size: 0.85rem;
    color: var(--light-text, #64748b);
}
.cart-buttons-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cart-buttons-row .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}
.cart-buttons-row .btn i {
    margin-right: 8px;
}
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: var(--light-gray);
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: var(--border-color); color: var(--primary-color); }
.qty-selector input[type="number"] {
    width: 52px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 1rem;
    padding: 10px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-color);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.product-sticky-bar.visible { display: flex; }
.product-sticky-price { font-size: 1.25rem; font-weight: 700; }
.product-sticky-btn { flex: 1; max-width: 200px; padding: 14px 20px; }
@media (min-width: 769px) {
    .product-sticky-bar { display: none !important; }
}

.product-out-of-stock-msg {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #10b981;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}
.cart-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Bloque Descripción del producto */
.product-description-block {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}
.product-description-block.product-detail-card {
    padding: 28px 0 32px;
    margin-bottom: 32px;
}
.product-description-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light, #eee);
}
.product-description-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light-text);
    max-width: 72ch;
}
.product-description-content p {
    margin-bottom: 1em;
}
.product-description-content p:last-child {
    margin-bottom: 0;
}
.product-description,
.product-description * {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.product-description img { max-width: 100%; height: auto; }
.product-description table { max-width: 100%; overflow-x: auto; display: block; }
.product-description-content img { max-width: 100%; height: auto; }
.product-description-content table { max-width: 100%; overflow-x: auto; display: block; }

/* Producto: relacionados */
.related-products-outer {
    width: 100%;
    margin-top: 0;
    padding-bottom: 48px;
}
.related-products-container {
    max-width: var(--container-width, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.related-products-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border, #e2e8f0);
}
.related-products-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--text-color);
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

/* Página categoría: cabecera (compatible con shared/sections) */
.category-page-content { padding-top: 4px; }

/* Layout categoría: filtros a la izquierda en desktop (todos los estilos) */
.category-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
.category-filters-sidebar {
    order: 1;
}
.category-products-main {
    order: 2;
    min-width: 0;
}
@media (min-width: 992px) {
    .category-page-layout {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
    .category-filters-sidebar {
        position: sticky;
        top: 100px;
    }
    .category-filters-sidebar .store-filters {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Carrito: tabla y controles básicos */
.cart-page-title { margin-bottom: 24px; }
.cart-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}
.cart-table thead th {
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}
.cart-table tbody tr { border-bottom: 1px solid var(--border-color); }
.cart-table tbody td { padding: 15px; vertical-align: middle; }
.cart-td-producto { display: flex; align-items: center; gap: 15px; }
.cart-td-producto img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.btn-qty {
    min-width: 40px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--light-gray);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-qty:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.btn-remove-cart {
    color: #dc2626;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
}

/* Mobile Responsive (Moved to End for Priority) */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        display: grid;
    }

    .about-image {
        order: 1;
        height: 260px;
        max-height: 40vh;
    }

    .about-content {
        order: 2;
        padding: 0 0 1rem;
    }

    .split-section {
        display: flex;
        flex-direction: column;
    }

    .split-image {
        height: 300px;
        width: 100%;
    }

    .split-content {
        padding: 40px 20px !important;
        width: 100%;
    }

    .split-content.reverse {
        order: 1;
    }
}

/* Cart Modal Styles */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: flex-end;
    /* Slide from right */
}

.cart-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cart-modal {
    background: white;
    width: 100%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-modal-overlay.active .cart-modal {
    transform: translateX(0);
}

.cart-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-modal-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-modal-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-modal-item-info {
    flex: 1;
}

.cart-modal-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.cart-modal-item-price {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.btn-link {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000000000 !important;
    /* Max Z-Index */
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white !important;
}

.whatsapp-float i {
    margin-top: 0;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }


    /* Estilos Footer Específicos movidos a master_php.css */