/* ========================================
   TEMPLATE MINIMAL - Estilo Lujo / Moda
   Blanco y negro, tipografía elegante, mucho aire
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Metropolis&family=Inter:wght@300;400;500&display=swap');

:root {
    --primary: #000000;
    --bg: #ffffff;
    --bg-card: #f9f9f9;
    --text: #1a1a1a;
    --text-muted: #666666;
    --border: #eeeeee;

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

    --spacing-container: 1400px;
}

/* ========== IDENTIDAD MINIMAL: blanco y negro, Playfair, editorial ========== */
body.theme-minimal {
    background: #ffffff !important;
    color: #1a1a1a !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    letter-spacing: 0.01em !important;
}
body.theme-minimal .site-header.store-header {
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
    padding: 28px 0 !important;
}
body.theme-minimal .site-header.store-header .logo a {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
}
body.theme-minimal .site-header.store-header .desktop-nav a,
body.theme-minimal .site-header.store-header .icon-link {
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    font-size: 0.8rem !important;
}
body.theme-minimal .site-header.store-header .desktop-nav a:hover {
    color: var(--primary) !important;
}
body.theme-minimal .btn,
body.theme-minimal button[type="submit"],
body.theme-minimal .product-card .btn {
    background: var(--primary) !important;
    color: #fff !important;
    border: 2px solid var(--primary) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border-radius: 0 !important;
    padding: 14px 28px !important;
}
body.theme-minimal .btn:hover,
body.theme-minimal button[type="submit"]:hover {
    background: var(--secondary) !important;
    color: #fff !important;
    border-color: var(--secondary) !important;
}
body.theme-minimal .section-title,
body.theme-minimal .hero-title,
body.theme-minimal h1, body.theme-minimal h2 {
    font-family: 'Playfair Display', serif !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
}
body.theme-minimal .product-card {
    border: 1px solid #eee !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.theme-minimal .product-card:hover {
    border-color: var(--primary) !important;
    box-shadow: none !important;
}
/* La config del cliente sobrescribe: sin !important para que los estilos inline ganen */
body.theme-minimal .announcement-bar {
    background: var(--primary);
    color: #fff;
}
/* Secciones, features, iconos - identidad Minimal */
body.theme-minimal .section {
    padding: 4rem 0 !important;
}
body.theme-minimal .product-detail-wrapper.section,
body.theme-minimal .product-detail-wrapper { padding-top: 0 !important; margin-top: 0 !important; }
body.theme-minimal .category-page-content.section,
body.theme-minimal .category-page-content { padding-top: 0 !important; margin-top: 0 !important; }
body.theme-minimal .section-title {
    color: var(--primary) !important;
    font-family: 'Playfair Display', serif !important;
}
body.theme-minimal .section-subtitle {
    color: #666 !important;
}
body.theme-minimal .section-tag {
    color: var(--primary) !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
}
/* Hero con imagen: no tapar .hero-bg en desktop (en móvil se usa .hero-bg-img) */
body.theme-minimal .hero.has-image {
    background-color: transparent !important;
    background-image: none !important;
}
body.theme-minimal .features-section {
    background: #f9f9f9 !important;
    padding: 4rem 0 !important;
}
body.theme-minimal .features-section .container {
    max-width: var(--spacing-container, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
body.theme-minimal .features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem !important;
    justify-content: center !important;
    align-items: start !important;
}
body.theme-minimal .feature-card {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 0 !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: 280px !important;
    margin: 0 auto !important;
}
body.theme-minimal .feature-card:hover {
    border-color: var(--primary) !important;
}
body.theme-minimal .feature-card .icon-box {
    background: var(--primary) !important;
    color: #fff !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
}
body.theme-minimal .feature-card h4 {
    font-family: 'Playfair Display', serif !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
}
body.theme-minimal .feature-card p {
    color: #666 !important;
}
body.theme-minimal .cat-card-img {
    border-color: #eee !important;
}
body.theme-minimal .cat-card-item:hover .cat-card-img {
    border-color: var(--primary) !important;
}
body.theme-minimal .product-detail-title {
    font-family: 'Playfair Display', serif !important;
    color: var(--primary) !important;
}
body.theme-minimal .product-detail-price {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    font-weight: 300;
}

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

/* HEADER */
.store-header {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    position: sticky;
    top: 0;
    z-index: 100;
}

.store-header.scrolled {
    border-bottom-color: var(--border);
    padding: 20px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #000;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    transition: opacity 0.2s;
}

.main-nav a:hover {
    opacity: 0.6;
}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #000;
    color: #fff;
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HERO */
.hero {
    height: 85vh;
    /* Casi pantalla completa */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
    position: relative;
    overflow: hidden;
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.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-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(244, 244, 244, 0.3);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    position: relative;
    z-index: 2;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-style: italic;
}

.btn {
    padding: 16px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: 1px solid #000;
    display: inline-block;
}

.btn:hover {
    background: #fff;
    color: #000;
}

.btn-outline {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

/* FEATURES - solo minimal (base.css ya define grid y centrado) */
body.theme-minimal .features-section {
    border-bottom: 1px solid var(--border);
}
body.theme-minimal .feature-card h3,
body.theme-minimal .feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 10px;
}
body.theme-minimal .feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* PRODUCTS */
.products-section {
    padding: 100px 0;
}

.section-header-wrap {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 400;
}

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

.product-card {
    transition: opacity 0.3s;
}

.product-card:hover {
    opacity: 0.9;
}

.product-img-wrap {
    height: 450px;
    background: #f9f9f9;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

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

.product-info {
    text-align: center;
}

.product-title {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.product-price-dual-card,
.product-price-dual {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* CONTACT */
.contact-section {
    padding: 100px 0;
    background: #f9f9f9;
    text-align: center;
}

.contact-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-whatsapp {
    border-color: #000;
    background: transparent;
    color: #000;
}

.btn-whatsapp:hover {
    background: #000;
    color: #fff;
}

/* FOOTER */
.store-footer {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
}


/* CAROUSEL FIX */
.products-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.products-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.products-carousel .carousel-item {
    flex: 0 0 320px;
    min-width: 320px;
}

/* CAROUSEL NAVIGATION */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #000;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.carousel-nav-btn:hover {
    background: #000;
    color: #fff;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* FEATURES (SHIPPING BAR) OVERRIDE - solo minimal, mantiene grid centrado */
body.theme-minimal .features-section {
    background: #fff;
    padding: 80px 0;
    border-top: 1px solid #000;
    border-bottom: 2px solid #000;
    margin: 40px 0;
}
body.theme-minimal .features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem !important;
    justify-content: center !important;
}
body.theme-minimal .feature-card {
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
}
body.theme-minimal .feature-card .icon-box {
    background: none !important;
    color: #000 !important;
    border-radius: 0 !important;
    font-size: 1.2rem;
    margin-bottom: 15px;
    height: auto !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}
body.theme-minimal .feature-card h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
    font-weight: 700;
}
body.theme-minimal .feature-card p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* FAQ OVERRIDE */
.faq-item {
    border-bottom: 1px solid #000;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.faq-answer p {
    font-family: var(--font-body);
    font-style: italic;
}

/* NEWSLETTER OVERRIDE */
.newsletter-section {
    background: #000;
    border: 10px solid #fff;
    outline: 1px solid #000;
}

.newsletter-box {
    background: transparent;
}

.newsletter-form input {
    border-radius: 0;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
}

.newsletter-form button {
    border-radius: 0;
    background: #fff;
    color: #000;
}

/* CTA OVERRIDE */
.cta-fullwidth-section {
    border-top: 5px solid #000;
}

.cta-fullwidth-section .hero-overlay {
    background: rgba(255, 255, 255, 0.7);
}

.cta-fullwidth-section .container {
    color: #000 !important;
}

/* TESTIMONIALS OVERRIDE */
.testimonial-card {
    border-radius: 0;
    border: 1px solid #000;
    background: #fff;
}

.testimonial-avatar {
    border-radius: 0;
    border: 1px solid #000;
}

/* 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;
    }
    body.theme-minimal .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    body.theme-minimal .feature-card {
        max-width: 100% !important;
    }
}

/* Product badges (descuento %, promo 3x2) - soporte en todos los temas */
body.theme-minimal .product-badges-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 10;
}
body.theme-minimal .product-badges-wrap .product-badge { position: static; }
body.theme-minimal .product-badge.badge-sale { background: var(--primary, #000); color: #fff; }
body.theme-minimal .product-badge.badge-promo { color: #fff; }
body.theme-minimal .product-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}