        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: #000;
            color: #fff;
            min-height: 100vh;
            line-height: 1.5;
        }
        
/* Header */
.header {
    background: #000;
    border-bottom: 1px solid #333;
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}
        
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
        
.brand {
    position: absolute;
    left: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Brand logo */
.brand-logo {
    height: 56px;
    width: auto;
}

.header-title {
    text-align: center;
}

.header-title h1 {
    color: #d4af37;
    font-size: 1.25rem;
    margin: 0;
    text-wrap: balance;
}

.header-title p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

/* WhatsApp icon in header — desktop hidden, mobile visible */
.header-whatsapp {
    position: absolute;
    right: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #25d366;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
}

.header-volver {
    position: absolute;
    right: 0;
    background: #d4af37;
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

@media (max-width: 640px) {
    .header-volver { display: none; }
}

.header-whatsapp:hover { opacity: 0.8; }
.header-whatsapp svg { width: 28px; height: 28px; fill: currentColor; }

        .staging-badge {
            background: #f59e0b;
            color: #000;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        
        /* Main */
main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            padding-top: 96px;
            padding-bottom: 160px;
        }

        .product-page-main {
            padding-top: 96px;
        }
        
        /* Page Header */
        .page-header {
            text-align: center;
            padding: 30px 20px;
        }
        
        .page-header h1 {
            font-size: 1.8rem;
            color: #d4af37;
            margin-bottom: 8px;
        }
        
        .page-header p {
            color: #888;
        }
        
        /* Tabs */
        .tab-radio { display: none; }
        
        .tabs-nav {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 18px;
        }
        
        .tab-label {
            background: #1a1a1a;
            border: 2px solid #333;
            color: #888;
            padding: 5px 10px;
            border-radius: 10px;
            font-weight: 100;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .tab-label:hover {
            border-color: #d4af37;
            color: #d4af37;
        }
        
        #tab-productos:checked ~ .tabs-nav .tab-label[for="tab-productos"],
        #tab-combos:checked ~ .tabs-nav .tab-label[for="tab-combos"] {
            background: #d4af37;
            border-color: #d4af37;
            color: #000;
        }
        
        .tab-content { display: none; }
        #tab-productos:checked ~ .content-area #content-productos { display: block; }
        #tab-combos:checked ~ .content-area #content-combos { display: block; }
        
        /* Discount Banner */
        .discount-banner {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            border: 1px solid #333;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 24px;
            text-align: center;
        }
        
        .discount-banner h3 {
            color: #d4af37;
            margin-bottom: 12px;
            font-size: 1.1rem;
        }
        
        .discount-tiers {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .discount-tier {
            background: #333;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 13px;
            color: #ccc;
        }
        
        .discount-tier strong {
            color: #22c55e;
        }
        
        .delivery-info {
            color: #3b82f6;
            font-size: 14px;
        }
        
        /* Items Grid */
        .items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 20px;
        }
        

        /* Filter Bar */
  .filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 20px;
            padding: 6px 16px;
            background: #1a1a1a;
            border: 1px solid #333;
            border-radius: 12px;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 50;
        }
        
        .filter-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .filter-group label {
            color: #888;
            font-size: 0.85rem;
            white-space: nowrap;
        }
        
        .filter-select {
            background: #2a2a2a;
            border: 1px solid #444;
            color: #fff;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            min-width: 140px;
        }
        
        .filter-select:hover {
            border-color: #d4af37;
        }
        
        .filter-select:focus {
            outline: none;
            border-color: #d4af37;
        }
        
        .filter-results {
            margin-left: auto;
            color: #888;
            font-size: 0.85rem;
        }
        
        .card.hidden {
            display: none;
        }
        
        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            color: #888;
        }
        
        .no-results-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }
        
        /* Cards */
        .card {
            background: #1a1a1a;
            border: 1px solid #333;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s;
            display: flex;
            flex-direction: column;
        }
        
        .card:hover {
            border-color: #d4af37;
            transform: translateY(-4px);
        }
        
        .card.featured {
            border-color: #d4af37;
        }
        
        .card.coming-soon {
            opacity: 0.7;
        }
        
        /* Variant Color Swatches */
        .variant-swatches {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }
        
        .variant-swatch {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 2px solid #444;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }
        
        .variant-swatch:hover {
            transform: scale(1.1);
            border-color: #888;
        }
        
        .variant-swatch.active {
            border-color: #d4af37;
            box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
        }
        
        .variant-swatch[title]:hover::after {
            content: attr(title);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: #fff;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            white-space: nowrap;
            margin-bottom: 4px;
            z-index: 10;
        }
        
        .variant-name {
            font-size: 0.75rem;
            color: #888;
            margin-bottom: 4px;
        }
        
        .card-image {
            position: relative;
            aspect-ratio: 1;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        
        .card-image img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
        }
        
        .card-placeholder {
            font-size: 64px;
        }
        
        .card-badges {
            position: absolute;
            top: 8px;
            left: 8px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 700;
        }
        
        .badge-discount { background: #22c55e; color: #fff; }
        .badge-delivery { background: #3b82f6; color: #fff; }
        .badge-soon { background: #8b5cf6; color: #fff; }
        
        .card-body {
            padding: 16px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        
        .card-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 4px;
            min-height: 3rem;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .card-subtitle {
            color: #d4af37;
            font-size: 0.8rem;
            margin-bottom: 8px;
        }
        
        .card-desc {
            color: #888;
            font-size: 0.8rem;
            margin-bottom: 4px;
            flex-grow: 1;
        }
        
        .card-pricing {
            margin-bottom: 12px;
        }
        
        .price-old {
            color: #666;
            text-decoration: line-through;
            font-size: 0.85rem;
            margin-right: 8px;
        }
        
        .price-current {
            color: #d4af37;
            font-size: 1.25rem;
            font-weight: 700;
            white-space: nowrap;
        }
        
        .savings {
            color: #22c55e;
            font-size: 0.8rem;
            margin-top: 4px;
        }
        
.card .btn-add {
            width: 100%;
            background: linear-gradient(135deg, #d4af37, #b8941f);
            color: #000;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
   .card .btn-add:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(212,175,55,0.4);
        }
.card .btn-add:disabled {
            background: #444;
            color: #888;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
/* Product card hover effects */
.product-card:hover .card-image img {
    transform: scale(1.05);
}

.product-card:hover .card-title {
    color: #d4af37;
}
        
/* =========================================================================
   CATEGORY DROPDOWN (moved from index.php inline styles)
   ========================================================================= */
.category-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 140px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.dropdown-toggle:hover {
    border-color: #d4af37;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    color: #888;
}
.btn-categorias { display: none; }
@media (max-width: 640px) {
    .btn-todas { display: none; }
    .btn-categorias { display: inline; }
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    min-width: 160px;
    z-index: 1200;
    margin-top: 4px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #fff;
}

.dropdown-item:hover {
    background: #3a3a3a;
}

.dropdown-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #d4af37;
}

.product-card.hidden {
    display: none !important;
}

/* =========================================================================
   BUNDLE CARD EXTRAS (moved from index.php inline styles)
   ========================================================================= */
.bundle-products-preview {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.4;
    flex-grow: 1;
}

.bundle-products-preview strong {
    color: #333;
}

.free-delivery-label {
    color: #16a34a;
    font-weight: 600;
}

.bundle-variant-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}        
/* Responsive */
        @media (max-width: 640px) {
            /* --- Header --- */
            .header { padding: 4px 16px; }
            .brand-logo { height: 40px; }
            .header-title h1 { font-size: 0.95rem; }
            .header-title p { display: none; }
            .header-whatsapp { display: flex; }
            .header-whatsapp svg { width: 24px; height: 24px; }
            .header-content { min-height: 56px; }

            /* --- Main padding --- */
            main { padding: 8px; padding-top: 72px; padding-bottom: 160px; }
            .product-page-main { padding-top: 72px; }

            /* --- Tabs --- */
            .tab-label { padding: 6px 11px; font-size: 0.8rem; }

            /* --- Filter bar: one row, no labels, dropdown escapes cards --- */
            .filter-bar {
                flex-direction: row;
                align-items: center;
                gap: 8px;
                padding: 6px 10px;
                flex-wrap: nowrap;
                overflow: visible;
            }
            .filter-group { flex: 1; min-width: 0; }
            .filter-group > label { display: none; }
            .category-dropdown { display: block; width: 100%; }
            .dropdown-toggle,
            .filter-select {
                width: 100%;
                min-width: 0;
                padding: 7px 8px;
                font-size: 0.8rem;
                box-sizing: border-box;
            }
            .dropdown-toggle { justify-content: space-between; }

            /* --- Items grid: tighter, full-width --- */
            .items-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

            /* --- Card body: compact --- */
            .card-body { padding: 8px 10px; }

            /* --- Card title: smaller --- */
            .card-title {
                font-size: 0.8rem;
                min-height: 2.4rem;
                margin-bottom: 2px;
            }

            /* --- Description: truncate to 2 lines --- */
            .card-desc {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                font-size: 0.75rem;
                margin-bottom: 2px;
            }

            /* --- Swatches: smaller, prevent 2 rows --- */
            .variant-swatch { width: 14px; height: 14px; }
            .variant-swatches { gap: 4px; margin-bottom: 4px; }
            .variant-name { font-size: 0.7rem; margin-bottom: 2px; }

            /* --- Price: smaller --- */
            .price-current { font-size: 1rem; }

            /* --- Add button: compact --- */
            .card .btn-add { padding: 8px 6px; font-size: 0.8rem; }

            /* --- Discount tiers --- */
            .discount-tiers { gap: 6px; }
            .discount-tier { font-size: 11px; padding: 4px 8px; }

            /* --- Floating WA: hidden on mobile (WA in header instead) --- */
            .floating-wa-btn { display: none; }
        }

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px;
}

.product-card .card-desc {
    flex-grow: 1;
}

.card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.bundle-products-preview {
    flex-grow: 1;
}

.card[data-bundle-id] .card-image {
    aspect-ratio: 4/3;   /* shorter than default 1:1 */
}

.card[data-bundle-id] .card-title {
    min-height: auto;
}

/* Bundle cards: fill the image area */
.card[data-bundle-id] .card-image img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Fills and crops */
}
/* Center bundle cards on desktop only */
@media (min-width: 641px) {
    #content-combos .items-grid {
        grid-template-columns: repeat(2, minmax(260px, 380px));
        justify-content: center;
        max-width: 800px;
        margin: 0 auto;
    }
}
/* Swatch pulse - prompt user to select variant */
.swatch-pulse .variant-swatch {
    animation: swatchPulse 0.5s ease 2;
}

@keyframes swatchPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

/* ── Floating WhatsApp: desktop only ── */
@media (max-width: 640px) {
    .floating-wa-btn { display: none !important; }
}
.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    left: 16px;
    width: 52px;
    height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.floating-wa-btn:hover { transform: scale(1.1); }

/* (mobile WA and header-content handled in main @media block above) */