/* ============================================
   TEMA: LUCA PADDLE
   Version: 2026.07.29-1
   Colores: navy #0B2A4A, lima #C4E538, teal #2BB8A8, fondo #F4F1EA
   (Sin grid bento móvil — ver theme-bento-store.css)
   ============================================ */

:root {
    --bg-color: #F4F1EA;
    --accent-color: #C4E538;
    --secondary-color: #2BB8A8;
    --text-color: #0B2A4A;
    /* Superficies claras (no blanco puro) — contraste AA con navy #0B2A4A */
    --card-bg: #FBF8F2;
    --surface-raised: #F7F2E8;
    --surface-muted: #EFE9DD;

    --color-bg-body: #F4F1EA;
    --color-bg-category: #FBF8F2;
    --color-bg-card: #FBF8F2;
    --color-bg-header: transparent;
    --color-bg-nav: #FBF8F2;

    --color-text-primary: #0B2A4A;
    --color-text-secondary: #3d5a73;
    --color-text-description: #5a7389;

    --color-border-category: rgba(11, 42, 74, 0.14);
    --color-border-accent: #C4E538;

    --color-price: #0B2A4A;
    --color-price-old: #8a9bab;
    --color-price-promo: #2BB8A8;

    --color-promo-badge: #2BB8A8;
    --color-promo-bg: linear-gradient(135deg, #FBF8F2 0%, #e8f8f6 100%);
    --color-featured-bg: linear-gradient(135deg, #0B2A4A 0%, #16406a 100%);

    --color-btn-primary: #0B2A4A;
    --color-btn-text: #ffffff;

    --font-primary: 'Nexa', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --border-radius-card: 14px;
    --border-radius-category: 16px;

    --shadow-card: 0 4px 18px rgba(11, 42, 74, 0.07);
    --shadow-category: 0 8px 28px rgba(11, 42, 74, 0.09);
}

body {
    background: var(--color-bg-body);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
}

body.theme-luca-paddle .menu-header {
    text-align: center;
    padding: 16px 20px 8px;
}

body.theme-luca-paddle .menu-header h1,
body.theme-luca-paddle .category-title,
body.theme-luca-paddle .product-name,
body.theme-luca-paddle .featured-product-name,
body.theme-luca-paddle .super-featured-name {
    color: var(--color-text-primary);
}

body.theme-luca-paddle .menu-header h1 {
    margin: 0 0 4px;
}

body.theme-luca-paddle .menu-header .subtitle {
    margin: 0 0 14px;
    color: var(--color-text-secondary);
}

body.theme-luca-paddle .menu-header .lang-selector,
body.theme-luca-paddle .header-logo {
    display: flex;
    justify-content: center;
}

/* Caja superior (buscador + botonera): redondeada, crema clara */
body.theme-luca-paddle .nav-container {
    background: var(--color-bg-nav);
    border: 1px solid var(--color-border-category);
    border-radius: 18px;
    box-shadow: var(--shadow-category);
    margin: 8px 12px 20px;
    padding: 14px 16px 16px;
    overflow: hidden;
}

body.theme-luca-paddle .info-bar {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 12px;
    padding: 14px 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1em;
    line-height: 1.45;
    color: #fff;
    background: var(--color-text-primary);
    box-shadow: 0 4px 14px rgba(11, 42, 74, 0.12);
}

body.theme-luca-paddle .info-bar b,
body.theme-luca-paddle .info-bar strong,
body.theme-luca-paddle .info-bar span {
    background: transparent !important;
}

body.theme-luca-paddle .category {
    background: var(--color-bg-category);
    border: 1px solid var(--color-border-category);
    border-radius: var(--border-radius-category);
    box-shadow: var(--shadow-category);
}

body.theme-luca-paddle .product-card,
body.theme-luca-paddle .featured-product-card,
body.theme-luca-paddle .super-featured-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(11, 42, 74, 0.1);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-card);
}

body.theme-luca-paddle .menu-search-bar input,
body.theme-luca-paddle .menu-search-input {
    background: #fffef9;
    border-color: rgba(11, 42, 74, 0.16);
    color: var(--color-text-primary);
}

/* Botonera principal: mobile grid, desktop fila centrada */
body.theme-luca-paddle .categories-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px auto;
    width: 100%;
    justify-items: center;
}

@media (min-width: 769px) {
    body.theme-luca-paddle .categories-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin: 18px auto 24px;
    }

    body.theme-luca-paddle .categories-buttons .category-button {
        flex: 0 1 auto;
    }

    body.theme-luca-paddle .subcategories-buttons {
        justify-content: center;
    }
}

body.theme-luca-paddle .category-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--surface-raised);
    color: var(--color-text-primary);
    border: 1px solid rgba(11, 42, 74, 0.16);
    border-radius: 999px;
    padding: 12px 18px;
    min-width: 96px;
    text-align: center;
}

body.theme-luca-paddle .category-button .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 36px;
    height: 36px;
    line-height: 0;
}

body.theme-luca-paddle .category-button .btn-icon img {
    display: block;
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
}

body.theme-luca-paddle .category-button .btn-label {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.2;
}

@media (min-width: 769px) {
    body.theme-luca-paddle .category-button {
        flex-direction: column;
    }
}

body.theme-luca-paddle .category-button.active,
body.theme-luca-paddle .category-button:hover {
    background: var(--color-text-primary);
    color: #fff;
    border-color: var(--color-text-primary);
}

body.theme-luca-paddle .category-button.active {
    box-shadow: 0 0 0 2px var(--accent-color);
}

/* Catálogo ecommerce: imagen grande + hover a 2ª foto */
body.theme-luca-paddle .product-card .product-image-wrap {
    float: none;
    width: 100%;
    height: 220px;
    margin: 0 0 12px;
    border-radius: 12px;
}

body.theme-luca-paddle .product-card .product-image-wrap .product-image {
    float: none !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 12px !important;
    object-fit: cover !important;
}

body.theme-luca-paddle .product-price,
body.theme-luca-paddle .featured-product-price,
body.theme-luca-paddle .multi-price-value {
    color: var(--color-price);
    font-weight: 700;
}

/* Precio alineado con el nombre (desktop + mobile) */
body.theme-luca-paddle .product-name-row,
body.theme-luca-paddle .super-featured-name-row,
body.theme-luca-paddle .featured-product-name-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

body.theme-luca-paddle .product-name-row .product-name,
body.theme-luca-paddle .product-name-row .product-name-link,
body.theme-luca-paddle .super-featured-name-row .super-featured-name,
body.theme-luca-paddle .featured-product-name-row .featured-product-name {
    flex: 1 1 auto;
    min-width: 0;
}

body.theme-luca-paddle .product-name-row .price-container,
body.theme-luca-paddle .super-featured-name-row .price-container,
body.theme-luca-paddle .featured-product-name-row .price-container {
    margin-top: 0;
    margin-left: auto;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 8px;
}

body.theme-luca-paddle .product-name-row .product-price,
body.theme-luca-paddle .super-featured-name-row .product-price {
    line-height: 1.2;
    white-space: nowrap;
}

/* Multiprecios: fila propia y opciones envolventes dentro de la tarjeta */
body.theme-luca-paddle .product-name-row:has(.multi-price),
body.theme-luca-paddle .super-featured-name-row:has(.multi-price),
body.theme-luca-paddle .featured-product-name-row:has(.multi-price) {
    flex-wrap: wrap;
}

body.theme-luca-paddle .price-container:has(.multi-price) {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    white-space: normal;
    overflow: hidden;
}

body.theme-luca-paddle .multi-price {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.theme-luca-paddle .multi-price > span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

body.theme-luca-paddle .multi-price-separator {
    display: none;
}

body.theme-luca-paddle .promo-price,
body.theme-luca-paddle .product-price.promo-price {
    color: var(--color-price-promo);
}

body.theme-luca-paddle .low-stock-badge {
    background: var(--accent-color);
    color: var(--color-text-primary);
    font-weight: 700;
}

body.theme-luca-paddle .out-of-stock-badge {
    background: #0B2A4A;
    color: #fff;
}

body.theme-luca-paddle .coming-soon-badge {
    background: var(--accent-color);
    color: var(--color-text-primary);
}

body.theme-luca-paddle .presale-badge {
    background: var(--accent-color);
    color: var(--color-text-primary);
}

body.theme-luca-paddle .presale-section {
    background: var(--color-bg-category);
    border: 1px solid var(--color-border-category);
    border-radius: var(--border-radius-category);
    box-shadow: var(--shadow-category);
}

body.theme-luca-paddle .presale-title {
    color: var(--color-text-primary);
    border-bottom-color: var(--accent-color);
}

body.theme-luca-paddle .product-card.presale-card {
    border-color: rgba(196, 229, 56, 0.65);
}

body.theme-luca-paddle .catalog-footer-social-link {
    background: var(--color-text-primary);
    color: #fff;
}

body.theme-luca-paddle .catalog-footer-address i {
    color: var(--secondary-color);
}

body.theme-luca-paddle .cart-add-btn {
    background: var(--accent-color);
    color: var(--color-text-primary);
    border: none;
}

body.theme-luca-paddle .favorite-btn.is-active,
body.theme-luca-paddle .favorite-btn:hover {
    color: #C4E538;
    background: #0B2A4A;
}

body.theme-luca-paddle .floating-btn.favorites-float-btn {
    background: #0B2A4A;
    color: #C4E538;
}

body.theme-luca-paddle .cart-add-btn:hover {
    background: #b5d62e;
}

body.theme-luca-paddle .product-page-cta,
body.theme-luca-paddle .product-name-link:hover {
    color: var(--secondary-color);
}

body.theme-luca-paddle .product-page-cta {
    background: var(--color-text-primary);
    color: #fff;
}

body.theme-luca-paddle .product-page-cta:hover {
    background: #16406a;
}

body.theme-luca-paddle .nav-hamburger-btn {
    background: var(--color-text-primary);
    color: #fff;
}

body.theme-luca-paddle .nav-drawer-link.active {
    background: rgba(196, 229, 56, 0.35);
    color: var(--color-text-primary);
}

body.theme-luca-paddle .featured-products-title,
body.theme-luca-paddle a {
    color: var(--secondary-color);
}

body.theme-luca-paddle .category-title {
    border-bottom: 4px solid var(--accent-color);
    font-size: clamp(1.35em, 2.2vw, 1.85em);
    margin-bottom: 14px;
    padding-bottom: 10px;
    text-align: center;
}

/* Evitar doble línea por h2 anidado (renderCategoryTitle + wrapper) */
body.theme-luca-paddle h2.category-title > .category-title,
body.theme-luca-paddle h2.category-title > .dual-title {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: inherit;
    color: inherit;
    text-align: center;
}

@media (max-width: 768px) {
    body.theme-luca-paddle .category-title {
        font-size: 1.1em;
        margin-bottom: 10px;
        padding-bottom: 6px;
        line-height: 1.25;
        text-align: center;
    }

    body.theme-luca-paddle .menu-header h1 {
        font-size: 1.35em;
        line-height: 1.15;
    }

    body.theme-luca-paddle .categories-buttons .category-button {
        width: 100%;
        min-height: 64px;
        padding: 8px 6px;
        font-size: 0.82em;
        gap: 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    body.theme-luca-paddle .categories-buttons .btn-label {
        font-size: 0.78em;
        line-height: 1.2;
        font-weight: 700;
        text-align: center;
        width: 100%;
    }

    body.theme-luca-paddle .categories-buttons .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 1em;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.theme-luca-paddle .categories-buttons .btn-icon img {
        display: block;
        max-width: 28px;
        max-height: 28px;
        width: 28px;
        height: 28px;
        margin: 0 auto;
        object-fit: contain;
        object-position: center center;
    }

    /* Tarjetas de una columna: formato más alto para recortar menos el producto */
    body.theme-luca-paddle .product-card .product-image-wrap {
        height: clamp(280px, 72vw, 380px);
    }
}
