﻿/* ========================================
   TEMPLATE MODERN - DiseÃƒÂ±o Premium 2025
   Estilo limpio, moderno y profesional
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colores principales */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #A5B4FC;
    --secondary: #EC4899;

    /* Backgrounds */
    --bg: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-dark: #0F172A;

    /* Textos */
    --text: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Bordes y sombras */
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Radios */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* TipografÃ­a - redonda y moderna */
    --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Container */
    --container-width: 1280px;

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ========== IDENTIDAD MODERN: fondos claros, Nunito, redondeado ========== */
body.theme-modern,
body.theme-default {
    --bg: #FAFAFA;
    --bg-card: #FFFFFF;
    --white: #FFFFFF;
    --light-gray: #F1F5F9;
    --text: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    background: #FAFAFA !important;
    color: #1E293B !important;
    font-family: 'Nunito', sans-serif !important;
}
body.theme-modern .site-header.store-header,
body.theme-default .site-header.store-header {
    background: rgba(255,255,255,0.98) !important;
    border-bottom: 1px solid var(--border, #F1F5F9) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
body.theme-modern .site-header.store-header .logo a,
body.theme-modern .site-header.store-header .desktop-nav a,
body.theme-default .site-header.store-header .logo a,
body.theme-default .site-header.store-header .desktop-nav a {
    color: #1E293B !important;
}
body.theme-modern .site-header.store-header .desktop-nav a:hover,
body.theme-modern .site-header.store-header .logo a:hover,
body.theme-default .site-header.store-header .desktop-nav a:hover,
body.theme-default .site-header.store-header .logo a:hover {
    color: var(--primary) !important;
}
body.theme-modern .btn,
body.theme-modern button[type="submit"],
body.theme-modern .product-card .btn,
body.theme-default .btn,
body.theme-default button[type="submit"],
body.theme-default .product-card .btn {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    padding: 12px 24px !important;
}
body.theme-modern .btn:hover,
body.theme-modern button[type="submit"]:hover,
body.theme-default .btn:hover,
body.theme-default button[type="submit"]:hover {
    background: var(--secondary) !important;
    color: #fff !important;
}
body.theme-modern .section-title,
body.theme-modern .hero-title,
body.theme-default .section-title,
body.theme-default .hero-title {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 800 !important;
    color: #1E293B !important;
}
/* Hero con imagen: respetar colores del panel (título blanco sobre banner oscuro) */
body.theme-modern .hero.has-image .hero-content .hero-title,
body.theme-modern .hero.has-image .hero-content .hero-subtitle,
body.theme-default .hero.has-image .hero-content .hero-title,
body.theme-default .hero.has-image .hero-content .hero-subtitle {
    color: inherit !important;
}
body.theme-modern .product-card,
body.theme-default .product-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
}
body.theme-modern .product-card:hover,
body.theme-default .product-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important;
    border-color: var(--primary) !important;
}
/* Secciones, features, iconos - identidad Modern */
body.theme-modern .section,
body.theme-default .section {
    padding: 1.75rem 0 !important;
}
body.theme-modern .product-detail-wrapper.section,
body.theme-modern .product-detail-wrapper,
body.theme-default .product-detail-wrapper.section,
body.theme-default .product-detail-wrapper { padding-top: 0 !important; margin-top: 0 !important; }
body.theme-modern .category-page-content.section,
body.theme-modern .category-page-content,
body.theme-default .category-page-content.section,
body.theme-default .category-page-content { padding-top: 0 !important; margin-top: 0 !important; }
body.theme-modern .section:nth-of-type(even),
body.theme-default .section:nth-of-type(even) {
    background: #FFFFFF !important;
}
body.theme-modern .section-title,
body.theme-default .section-title {
    color: #1E293B !important;
}
body.theme-modern .section-subtitle,
body.theme-default .section-subtitle {
    color: #64748B !important;
}
body.theme-modern .section-tag,
body.theme-default .section-tag {
    color: var(--primary) !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
}
body.theme-modern .features-section,
body.theme-default .features-section {
    background: #F8FAFC !important;
}
@media (min-width: 769px) {
    body.theme-modern .features-section,
    body.theme-default .features-section {
        padding: 2rem 0 !important;
    }
    body.theme-modern .feature-card,
    body.theme-default .feature-card {
        background: #FFFFFF !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 20px !important;
        padding: 1.75rem !important;
    }
    body.theme-modern .feature-card:hover,
    body.theme-default .feature-card:hover {
        border-color: var(--primary) !important;
        box-shadow: 0 8px 28px rgba(0,0,0,0.12) !important;
    }
    body.theme-modern .feature-card .icon-box,
    body.theme-default .feature-card .icon-box {
        background: var(--primary) !important;
        color: #fff !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.35rem !important;
    }
    body.theme-modern .feature-card h4,
    body.theme-default .feature-card h4 {
        font-family: 'Nunito', sans-serif !important;
        font-weight: 700 !important;
        color: #1E293B !important;
    }
    body.theme-modern .feature-card p,
    body.theme-default .feature-card p {
        color: #64748B !important;
    }
}
body.theme-modern .cat-card-img,
body.theme-default .cat-card-img {
    border-color: #E2E8F0 !important;
}
body.theme-modern .cat-card-item:hover .cat-card-img,
body.theme-default .cat-card-item:hover .cat-card-img {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}
body.theme-modern .products-grid .product-card .product-title,
body.theme-modern .product-card .product-title,
body.theme-default .products-grid .product-card .product-title,
body.theme-default .product-card .product-title {
    color: #1E293B !important;
}
body.theme-modern .product-detail-title,
body.theme-default .product-detail-title {
    color: #1E293B !important;
}
body.theme-modern .product-detail-price,
body.theme-default .product-detail-price {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER / NAVIGATION
======================================== */
.store-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--primary);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--text);
    background: var(--bg-card);
}

.main-nav a.active {
    color: var(--bg-card);
    background: var(--text);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown>a::after {
    content: '';
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    padding: 2px;
    transform: rotate(45deg);
    margin-top: -2px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.dropdown-menu a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cart-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    color: var(--text);
    font-size: 1.1rem;
}

.cart-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 80px 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.hero-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel .carousel-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

/* Hero con imagen: opacidad puede venir del panel (inline style) */
.hero.has-image .hero-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.hero.has-image h1,
.hero.has-image p {
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-slow);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius);
}

/* ========================================
   FEATURES SECTION
======================================== */
.features-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #fff, var(--bg));
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 30px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.feature-card .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.08);
    /* Primary color low opacity */
    color: var(--primary);
    border-radius: 35% 65% 65% 35% / 35% 35% 65% 65%;
    /* Organic shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: all 0.5s ease;
}

.feature-card:hover .icon-box {
    border-radius: 50%;
    transform: rotate(10deg) scale(1.1);
    background: var(--primary);
    color: #fff;
}

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    padding: 100px 0;
    background: var(--bg-card);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content {
    max-width: 600px;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    opacity: 0.1;
}

/* ========================================
   CATEGORIES PREVIEW
======================================== */
.categories-preview {
    padding: 80px 0;
    background: var(--bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card-preview {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition-slow);
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card-preview:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.category-card-preview i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.category-card-preview h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card-preview p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-card);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.testimonial-stars {
    color: #FBBF24;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.testimonial-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   NEWSLETTER
======================================== */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.newsletter-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.newsletter-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    padding: 16px 32px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* ========================================
   SECTION HEADERS
======================================== */
.section-header-wrap {
    text-align: center;
    margin-bottom: 10px;
}

.section-header-wrap--compact {
    margin-bottom: 6px;
}

.section-header-wrap--compact .section-heading-inline .section-title {
    font-size: clamp(1.15rem, 2.8vw, 1.75rem);
    margin-bottom: 0;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-line {
    width: 50px;
    height: 4px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ========================================
   PRODUCTS SECTION
======================================== */
.products-section {
    padding: 20px 0;
}

.products-section-alt {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.02));
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.products-grid > .product-card {
    flex: 0 1 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    min-width: 0;
    box-sizing: border-box;
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 1px solid var(--border-light);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.product-img-wrap {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg);
}

.product-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

/* Product Badges - z-index alto para que queden SOBRE las fotos */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.badge-sale {
    background: var(--secondary);
    color: #fff;
}

.badge-promo {
    background: var(--secondary);
    color: #fff;
}

.badge-new {
    background: var(--primary);
    color: #fff;
}

/* Quick Add Button */
.quick-add {
    position: absolute;
    bottom: 12px;
    right: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .quick-add {
    opacity: 1;
    transform: translateY(0);
}

.quick-add-btn {
    background: var(--text);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.quick-add-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary);
}

.product-price-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.product-price-dual-card,
.product-price-dual {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-price-dual-card {
    align-items: center;
    gap: 3px;
    width: 100%;
}

.product-price-list-card {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    color: var(--text-muted, #64748B);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.25;
    opacity: 1;
    text-decoration: none;
}

.product-price-list-card small {
    color: var(--text-muted, #64748B);
    font-size: 0.76em;
    font-weight: 600;
    text-decoration: none;
}

.product-price-cash-card {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    color: var(--text, #1E293B);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.product-price-cash-card small {
    color: var(--text-muted, #64748B);
    font-size: 0.68em;
    font-weight: 700;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.product-compare-price {
    font-size: 0.95rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.view-all-wrap {
    text-align: center;
    margin-top: 48px;
}

/* ========================================
   FILTERS LAYOUT
======================================== */
.filters-container {
    margin-bottom: 40px;
}

.filters-row {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background-color: var(--bg);
    cursor: pointer;
    outline: none;
}

.filter-select:focus {
    border-color: var(--primary);
}

.filter-results {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    padding-bottom: 10px;
}

.filters-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Shop Hero */
.shop-hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: -1px;
    /* Overlap border */
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.shop-hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 16px;
}

.shop-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    padding: 80px 0;
}

.contact-box {
    background: var(--primary);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.contact-box h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    color: #fff;
}

.contact-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    position: relative;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
}

.btn-whatsapp {
    background: #fff;
    color: #25D366;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: #fff;
}

.btn-instagram {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-instagram:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   FOOTER (BLACK EDITION)
======================================== */
.store-footer {
    background: #111;
    padding: 60px 0 30px;
    border-top: none;
    color: #fff;
}

.footer-top {
    margin-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-col-main {
    max-width: 320px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-desc {
    color: #999;
    font-size: 0.95rem;
    max-width: 280px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #222;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links li a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #999;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-middle {
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 40px 0;
    margin-bottom: 30px;
}

.footer-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.footer-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-feature i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 4px;
    min-width: 24px;
}

.footer-feature div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-feature strong {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.footer-feature span {
    font-size: 0.875rem;
    color: #999;
}

.footer-contact-list li {
    margin-bottom: 10px;
}

.footer-contact-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    /* Fix for contact links */
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-legal-links {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
}

.footer-legal-links a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--primary);
}

.footer-bottom-right {
    text-align: right;
}

.powered-by a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ========================================
   CART SIDEBAR
======================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.close-cart {
    background: var(--bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-cart:hover {
    background: var(--border);
    color: var(--text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-qty button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.empty-cart-msg {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-cart-msg i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.3;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.cart-total-row span:last-child {
    font-weight: 700;
    font-size: 1.25rem;
}

.btn-checkout {
    width: 100%;
    background: var(--text);
    color: #fff;
    padding: 16px;
    font-size: 1rem;
}

.btn-checkout:hover {
    background: var(--primary);
}

/* ========================================
   LOADING STATES
======================================== */
.loading-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.loading-products i {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
    color: var(--primary);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin: 8px 16px;
        padding: 16px;
        flex-direction: column;
        box-shadow: var(--shadow-lg);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 12px 16px;
        border-radius: var(--radius);
    }

    .mobile-toggle {
        display: flex;
    }

    /* Con imagen, base.css (hero-mobile-fit) controla altura y padding */
    .hero:not(.hero-mobile-fit) {
        min-height: 70vh;
        padding: 60px 20px;
    }

    .hero.hero-mobile-fit.has-image {
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        display: block !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    .hero.hero-mobile-fit.has-image .hero-content {
        position: absolute !important;
        justify-content: flex-end !important;
    }

    .hero h1,
    .hero .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        letter-spacing: -0.02em;
    }

    .features,
    .features-section {
        margin-top: 0;
        padding: 28px 0;
    }

    .features-grid,
    .features-section .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .feature-card {
        padding: 14px 10px;
    }

    .feature-card .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .feature-card h4 {
        font-size: 0.8rem;
        margin-bottom: 4px;
        line-height: 1.25;
    }

    .feature-card p {
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .feature-card:hover {
        transform: none;
    }

    .products-section {
        padding: 24px 0;
    }

    .products-grid > .product-card {
        flex: 0 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    .contact-box {
        padding: 40px 24px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom-right {
        text-align: center;
    }

    .cart-sidebar {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-section .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .feature-card {
        padding: 12px 8px;
    }

    .feature-card .icon-box {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .feature-card h4 {
        font-size: 0.75rem;
    }

    .feature-card p {
        font-size: 0.65rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .product-info {
        padding: 16px;
    }

    .product-title {
        font-size: 1rem;
    }

    .products-grid > .product-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* Carousel Styles */

/* ========================================
   PRODUCTS CAROUSEL / FAVORITOS
======================================== */
.products-carousel-wrapper {
    position: relative;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.products-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0 30px;
    /* Padding for shadow */
    scrollbar-width: none;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.products-carousel .carousel-item {
    flex: 0 0 280px;
    /* Ancho fijo para las cards */
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

@media (max-width: 768px) {
    .products-carousel-wrapper {
        padding: 0;
    }

    .carousel-btn {
        display: none;
        /* En mÃƒÂ³vil se usa el dedo */
    }

    .products-carousel {
        padding-left: 20px;
        padding-right: 20px;
    }

    .products-carousel .carousel-item {
        flex: 0 0 80%;
        /* Cards mÃƒÂ¡s anchas en mÃƒÂ³vil */
    }
}

/* Sobre Nosotros: en mÃ³vil foto arriba, texto abajo (no apretado) */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-image {
        order: 1;
        max-height: 40vh;
    }
    .about-image img,
    .about-image .about-image-placeholder {
        max-height: 40vh;
        object-fit: cover;
    }
    .about-content {
        order: 2;
        padding: 0;
    }
}

/* ====== MOBILE NAV: hide desktop-nav, show hamburger ====== */
@media (max-width: 900px) {
    .desktop-nav {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block !important;
    }
}

/* Carrito: botones + / − visibles (no heredar texto claro del body/config) */
body.theme-modern .cart-td-qty .btn-qty,
body.theme-modern .btn-qty,
body.theme-default .cart-td-qty .btn-qty,
body.theme-default .btn-qty {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #1E293B !important;
}
body.theme-modern .cart-td-qty .btn-qty:hover,
body.theme-modern .btn-qty:hover,
body.theme-default .cart-td-qty .btn-qty:hover,
body.theme-default .btn-qty:hover {
    background: var(--primary, #6366F1) !important;
    border-color: var(--primary, #6366F1) !important;
    color: #FFFFFF !important;
}
body.theme-modern .cart-td-qty span,
body.theme-default .cart-td-qty span {
    color: #1E293B !important;
}

/* Catálogo / filtros: fondos claros y selects legibles */
body.theme-modern select.cl-sort-wrap,
body.theme-default select.cl-sort-wrap {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #1E293B !important;
}
body.theme-modern .cl-card,
body.theme-default .cl-card {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}
body.theme-modern .cl-card-name,
body.theme-default .cl-card-name {
    color: #1E293B !important;
}

/* Filtros sidebar (categories_listing + categoria.php) — texto oscuro en panel blanco */
body.theme-modern .cl-filters,
body.theme-default .cl-filters {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    color: #1E293B !important;
}
body.theme-modern .cl-filters-title,
body.theme-default .cl-filters-title {
    color: #64748B !important;
    opacity: 1 !important;
}
body.theme-modern .cl-filter-group h4,
body.theme-default .cl-filter-group h4 {
    color: #1E293B !important;
}
body.theme-modern .cl-cat-btn,
body.theme-default .cl-cat-btn {
    color: #1E293B !important;
}
body.theme-modern .cl-cat-btn:hover,
body.theme-default .cl-cat-btn:hover {
    background: #F1F5F9 !important;
    color: #1E293B !important;
}
body.theme-modern .cl-cat-btn.active,
body.theme-default .cl-cat-btn.active {
    color: #FFFFFF !important;
}
body.theme-modern .cl-cat-count,
body.theme-default .cl-cat-count {
    color: #64748B !important;
    opacity: 1 !important;
}
body.theme-modern .cl-cat-btn.active .cl-cat-count,
body.theme-default .cl-cat-btn.active .cl-cat-count {
    color: rgba(255, 255, 255, 0.9) !important;
}
body.theme-modern .cl-cat-expand,
body.theme-default .cl-cat-expand {
    color: #64748B !important;
    background: #F8FAFC !important;
}
body.theme-modern .cl-price-labels,
body.theme-default .cl-price-labels {
    color: #64748B !important;
    opacity: 1 !important;
}
body.theme-modern .cl-filters label,
body.theme-default .cl-filters label {
    color: #1E293B !important;
}
body.theme-modern .store-filters,
body.theme-default .store-filters {
    --sf-bg: #FFFFFF !important;
    --sf-border: #E2E8F0 !important;
    --sf-text: #1E293B !important;
    --sf-muted: #64748B !important;
    background: #FFFFFF !important;
    color: #1E293B !important;
}
body.theme-modern .store-filters__title,
body.theme-default .store-filters__title {
    color: #64748B !important;
}
body.theme-modern .store-filters__summary,
body.theme-modern .store-filters__pill,
body.theme-modern .store-filters__input,
body.theme-modern .store-filters__btn,
body.theme-modern .store-filters__select,
body.theme-default .store-filters__summary,
body.theme-default .store-filters__pill,
body.theme-default .store-filters__input,
body.theme-default .store-filters__btn,
body.theme-default .store-filters__select {
    color: #1E293B !important;
}
body.theme-modern .store-filters__pill,
body.theme-default .store-filters__pill {
    background: #FFFFFF !important;
}
body.theme-modern .store-filters__pill--active,
body.theme-default .store-filters__pill--active {
    color: #FFFFFF !important;
}
body.theme-modern select.cl-sort-wrap,
body.theme-default select.cl-sort-wrap {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #1E293B !important;
}

/* Catálogo: centrado sin sidebar (columnas configurables por sección) */
body.theme-modern .cl-inner--no-sidebar,
body.theme-default .cl-inner--no-sidebar {
    display: block;
    width: 100%;
}

body.theme-modern .cl-inner--no-sidebar > div,
body.theme-default .cl-inner--no-sidebar > div {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.theme-modern .cl-wrap .cl-grid.cl-grid--grid,
body.theme-default .cl-wrap .cl-grid.cl-grid--grid,
body.theme-modern .cl-grid--grid,
body.theme-default .cl-grid--grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.theme-modern .cl-wrap .cl-grid.cl-grid--grid > .cl-card,
body.theme-default .cl-wrap .cl-grid.cl-grid--grid > .cl-card,
body.theme-modern .cl-grid--grid > .cl-card,
body.theme-default .cl-grid--grid > .cl-card {
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    box-sizing: border-box !important;
}

/* ========================================
   PÁGINA PRODUCTO — texto oscuro legible
   (el body Modern usa color claro; el panel de compra es fondo blanco)
======================================== */
body.theme-modern .product-detail-wrapper,
body.theme-default .product-detail-wrapper {
    --text: #1e293b !important;
    --text-color: #1e293b !important;
    --color-text: #1e293b !important;
    --light-text: #64748b !important;
    color: #1e293b !important;
}

body.theme-modern .product-detail-wrapper .product-detail-content-col,
body.theme-default .product-detail-wrapper .product-detail-content-col {
    color: #1e293b !important;
}

body.theme-modern .product-detail-wrapper .product-description-title,
body.theme-default .product-detail-wrapper .product-description-title {
    color: #1e293b !important;
    border-bottom-color: #e2e8f0 !important;
}

body.theme-modern .product-detail-wrapper .product-description-content,
body.theme-default .product-detail-wrapper .product-description-content {
    color: #334155 !important;
}

body.theme-modern .product-detail-wrapper .product-description-content *,
body.theme-default .product-detail-wrapper .product-description-content * {
    color: inherit !important;
}

body.theme-modern .product-detail-wrapper .product-description-content a,
body.theme-default .product-detail-wrapper .product-description-content a {
    color: var(--primary, #6366f1) !important;
}

body.theme-modern .product-detail-wrapper .product-breadcrumb,
body.theme-default .product-detail-wrapper .product-breadcrumb {
    color: #64748b !important;
}

body.theme-modern .product-detail-wrapper .product-breadcrumb a,
body.theme-default .product-detail-wrapper .product-breadcrumb a {
    color: #64748b !important;
}

body.theme-modern .product-detail-wrapper .product-breadcrumb a:hover,
body.theme-default .product-detail-wrapper .product-breadcrumb a:hover,
body.theme-modern .product-detail-wrapper .product-breadcrumb .product-category,
body.theme-default .product-detail-wrapper .product-breadcrumb .product-category {
    color: var(--primary, #6366f1) !important;
}

body.theme-modern .product-detail-wrapper .product-qty-label,
body.theme-default .product-detail-wrapper .product-qty-label,
body.theme-modern .product-detail-wrapper .variant-label,
body.theme-default .product-detail-wrapper .variant-label,
body.theme-modern .product-detail-wrapper .product-variant-required-msg,
body.theme-default .product-detail-wrapper .product-variant-required-msg {
    color: #1e293b !important;
}

body.theme-modern .product-detail-wrapper .product-stock-msg,
body.theme-default .product-detail-wrapper .product-stock-msg {
    color: #64748b !important;
}

body.theme-modern .product-detail-wrapper .product-compare-price-old,
body.theme-default .product-detail-wrapper .product-compare-price-old {
    color: #64748b !important;
}

body.theme-modern .product-detail-wrapper .product-installments-box,
body.theme-default .product-detail-wrapper .product-installments-box {
    color: #1e293b !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: #e2e8f0 !important;
}

body.theme-modern .product-detail-wrapper .qty-selector,
body.theme-default .product-detail-wrapper .qty-selector {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

body.theme-modern .product-detail-wrapper .qty-btn,
body.theme-default .product-detail-wrapper .qty-btn {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: none !important;
}

body.theme-modern .product-detail-wrapper .qty-btn:hover,
body.theme-default .product-detail-wrapper .qty-btn:hover {
    background: var(--primary, #6366f1) !important;
    color: #ffffff !important;
}

body.theme-modern .product-detail-wrapper .qty-selector input[type="number"],
body.theme-default .product-detail-wrapper .qty-selector input[type="number"] {
    background: #ffffff !important;
    color: #1e293b !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
}

body.theme-modern .product-detail-wrapper .product-variant-btn,
body.theme-default .product-detail-wrapper .product-variant-btn {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #1e293b !important;
}

body.theme-modern .product-detail-wrapper .product-variant-btn:hover,
body.theme-default .product-detail-wrapper .product-variant-btn:hover,
body.theme-modern .product-detail-wrapper .product-variant-btn.selected,
body.theme-default .product-detail-wrapper .product-variant-btn.selected {
    border-color: var(--primary, #6366f1) !important;
    background: rgba(99, 102, 241, 0.08) !important;
    color: #1e293b !important;
}

body.theme-modern .product-detail-wrapper .shipping-title,
body.theme-default .product-detail-wrapper .shipping-title {
    color: #1e293b !important;
}

body.theme-modern .product-detail-wrapper .shipping-title i,
body.theme-default .product-detail-wrapper .shipping-title i {
    color: var(--primary, #6366f1) !important;
}

body.theme-modern .product-detail-wrapper .shipping-zip-input,
body.theme-default .product-detail-wrapper .shipping-zip-input {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

body.theme-modern .product-detail-wrapper .shipping-zip-input::placeholder,
body.theme-default .product-detail-wrapper .shipping-zip-input::placeholder {
    color: #94a3b8 !important;
}

body.theme-modern .product-detail-wrapper .shipping-result,
body.theme-default .product-detail-wrapper .shipping-result,
body.theme-modern .product-detail-wrapper .shipping-result ul,
body.theme-default .product-detail-wrapper .shipping-result ul,
body.theme-modern .product-detail-wrapper .shipping-result li,
body.theme-default .product-detail-wrapper .shipping-result li,
body.theme-modern .product-detail-wrapper .shipping-result li span,
body.theme-default .product-detail-wrapper .shipping-result li span,
body.theme-modern .product-detail-wrapper .shipping-result li strong,
body.theme-default .product-detail-wrapper .shipping-result li strong,
body.theme-modern .product-detail-wrapper .shipping-result p,
body.theme-default .product-detail-wrapper .shipping-result p {
    color: #1e293b !important;
}

body.theme-modern .product-detail-wrapper .product-features-list,
body.theme-default .product-detail-wrapper .product-features-list,
body.theme-modern .product-detail-wrapper .product-trust-item,
body.theme-default .product-detail-wrapper .product-trust-item {
    color: #475569 !important;
}

body.theme-modern .product-detail-wrapper .product-description-block,
body.theme-default .product-detail-wrapper .product-description-block,
body.theme-modern .product-detail-wrapper .product-description-block p,
body.theme-default .product-detail-wrapper .product-description-block p,
body.theme-modern .product-detail-wrapper .product-description-block li,
body.theme-default .product-detail-wrapper .product-description-block li {
    color: #1e293b !important;
}

body.theme-modern .product-detail-wrapper .product-financing-trigger,
body.theme-default .product-detail-wrapper .product-financing-trigger,
body.theme-modern .product-detail-wrapper .product-financing-plan-main,
body.theme-default .product-detail-wrapper .product-financing-plan-main,
body.theme-modern .product-detail-wrapper .product-financing-table-installment,
body.theme-default .product-detail-wrapper .product-financing-table-installment {
    color: #1e293b !important;
}

/* Beneficios (features) — móvil: anula padding/iconos grandes del preset modern */
@media (max-width: 768px) {
    body.theme-modern .features-section,
    body.theme-default .features-section {
        padding: 1.75rem 0 !important;
    }

    body.theme-modern .features-section .container,
    body.theme-default .features-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.theme-modern .features-section.product-page-extra-section,
    body.theme-default .features-section.product-page-extra-section {
        padding: 1.25rem 0 !important;
    }

    body.theme-modern .features-section .container,
    body.theme-default .features-section .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.theme-modern .features-grid,
    body.theme-default .features-grid,
    body.theme-modern .features-section .features-grid,
    body.theme-default .features-section .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.theme-modern .feature-card,
    body.theme-default .feature-card {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.theme-modern .feature-card:hover,
    body.theme-default .feature-card:hover {
        transform: none !important;
    }

    body.theme-modern .footer-features,
    body.theme-default .footer-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    body.theme-modern .footer-feature,
    body.theme-default .footer-feature {
        gap: 10px;
        align-items: center;
    }

    body.theme-modern .footer-feature i,
    body.theme-default .footer-feature i {
        font-size: 1.15rem;
        margin-top: 0;
    }

    body.theme-modern .footer-feature strong,
    body.theme-default .footer-feature strong {
        font-size: 0.8rem;
    }

    body.theme-modern .footer-feature span,
    body.theme-default .footer-feature span {
        font-size: 0.72rem;
        line-height: 1.35;
    }
}

@media (max-width: 480px) {
    body.theme-modern .features-grid,
    body.theme-default .features-grid,
    body.theme-modern .features-section .features-grid,
    body.theme-default .features-section .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}
