/* ========================================
   TEMPLATE BOLD - Impacto y llamados a la acción
   Rojo y negro, tipografía fuerte. Ideal: deportes, ofertas, eventos.
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;600;700&display=swap');

:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --secondary: #171717;

    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-dark: #171717;

    --text: #171717;
    --text-muted: #525252;
    --text-light: #737373;

    --border: #e5e5e5;
    --border-light: #f5f5f5;

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 14px rgba(220, 38, 38, 0.15);
    --shadow-lg: 0 10px 28px rgba(220, 38, 38, 0.2);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);

    --font: 'Inter', -apple-system, sans-serif;

    --container-width: 1280px;
    --transition: all 0.2s ease;
    --transition-slow: all 0.25s ease;
}

/* ========== IDENTIDAD BOLD: impacto real, no solo variables ========== */
body.theme-bold {
    background: #fafafa !important;
    color: #171717 !important;
    font-family: 'Oswald', 'Inter', sans-serif !important;
}
/* Barra de anuncio y header en negro para Bold */
/* La config del cliente sobrescribe: sin !important para que los estilos inline ganen */
body.theme-bold .announcement-bar {
    background: #171717;
    color: #fff;
}
body.theme-bold .announcement-bar p {
    color: inherit;
}
body.theme-bold .site-header.store-header {
    background: #171717 !important;
    border-bottom: 3px solid #171717 !important;
    padding: 12px 0 !important;
}
body.theme-bold .site-header.store-header .logo a,
body.theme-bold .site-header.store-header .desktop-nav a,
body.theme-bold .site-header.store-header .icon-link {
    color: #fff !important;
}
body.theme-bold .site-header.store-header .desktop-nav a:hover,
body.theme-bold .site-header.store-header .logo a:hover {
    color: var(--secondary) !important;
}
body.theme-bold .site-header.store-header .mobile-menu-toggle {
    color: #fff !important;
}
body.theme-bold .site-header.store-header .header-wrapper {
    border: none !important;
}

/* Desplegable del header: contraste alto (fondo claro, texto oscuro) */
body.theme-bold .site-header.store-header .desktop-nav .dropdown {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18) !important;
}
body.theme-bold .site-header.store-header .desktop-nav .dropdown a {
    color: #171717 !important;
    font-weight: 500 !important;
}
body.theme-bold .site-header.store-header .desktop-nav .dropdown a:hover {
    background: #f0f0f0 !important;
    color: var(--primary) !important;
}

body.theme-bold .btn,
body.theme-bold button[type="submit"],
body.theme-bold .product-card .btn {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
}
body.theme-bold .btn:hover,
body.theme-bold button[type="submit"]:hover {
    background: var(--secondary) !important;
    color: #fff !important;
}
body.theme-bold .section-title,
body.theme-bold .hero-title,
body.theme-bold h1, body.theme-bold h2 {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
}
body.theme-bold .product-card {
    border: 2px solid #e5e5e5 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
}
body.theme-bold .product-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}
body.theme-bold .announcement-bar {
    background: var(--primary);
    color: #fff;
}
/* Secciones, features, iconos, categorías - identidad Bold */
body.theme-bold .section {
    padding: 3.5rem 0 !important;
}
body.theme-bold .product-detail-wrapper.section,
body.theme-bold .product-detail-wrapper { padding-top: 0 !important; margin-top: 0 !important; }
body.theme-bold .category-page-content.section,
body.theme-bold .category-page-content { padding-top: 0 !important; margin-top: 0 !important; }
body.theme-bold .section-title {
    color: #171717 !important;
    margin-bottom: 0.5rem !important;
}
body.theme-bold .section-subtitle {
    color: #525252 !important;
}
body.theme-bold .section-tag {
    color: var(--primary) !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600 !important;
}
body.theme-bold .features-section {
    background: #f5f5f5 !important;
    padding: 3.5rem 0 !important;
}
body.theme-bold .feature-card {
    background: #fff !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 4px !important;
    padding: 1.5rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
body.theme-bold .feature-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 6px 20px rgba(220,38,38,0.15) !important;
}
body.theme-bold .feature-card .icon-box {
    background: var(--primary) !important;
    color: #fff !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
}
body.theme-bold .feature-card h4 {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: #171717 !important;
}
body.theme-bold .feature-card p {
    color: #525252 !important;
}
body.theme-bold .categories-section {
    background: #fff !important;
}
body.theme-bold .cat-card-item {
    color: #171717 !important;
}
body.theme-bold .cat-card-img {
    border-color: #e5e5e5 !important;
}
body.theme-bold .cat-card-item:hover .cat-card-img {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 16px rgba(220,38,38,0.2) !important;
}
body.theme-bold .product-detail-title {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #171717 !important;
}
body.theme-bold .product-detail-price {
    color: var(--primary) !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
}
body.theme-bold .related-products-section .section-title {
    font-family: 'Oswald', sans-serif !important;
    color: #171717 !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 */
.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(240px, 1fr));
    gap: 30px;
}

.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: 48px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    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: 80px 0;
}

.products-section-alt {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.02));
}

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

/* 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-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;
    gap: 10px;
}

.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;
    }

    .hero {
        min-height: 70vh;
        padding: 60px 20px;
    }

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

    .features {
        margin-top: -40px;
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card {
        padding: 20px;
    }

    .products-section {
        padding: 60px 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .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 {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .product-info {
        padding: 16px;
    }

    .product-title {
        font-size: 1rem;
    }
}

/* Carousel Styles */

/* ========================================
   PRODUCTS CAROUSEL / FAVORITOS
======================================== */
.products-carousel-wrapper {
    position: relative;
    padding: 0 40px;
}

.products-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0 30px;
    /* Padding for shadow */
    scrollbar-width: none;
}

.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;
    }
}