:root {
    --primary-color: #d4af37;
    /* 1. Gold (Original) - Premium, Clásico */

    /* OPCIONES DE COLORES (Descomenta la línea que quieras probar y comenta la de arriba) */

    /* --primary-color: #2ecc71; */
    /* 2. Emerald Green - Fresco, Saludable */
    /* --primary-color: #3498db; */
    /* 3. Royal Blue - Confianza, Profesional */
    /* --primary-color: #e74c3c; */
    /* 4. Crimson Red - Pasión, Apetito */
    /* --primary-color: #f39c12; */
    /* 5. Orange - Energía, Diversión */
    /* --primary-color: #9b59b6; */
    /* 6. Amethyst - Creativo, Lujo */
    /* --primary-color: #1abc9c; */
    /* 7. Turquoise - Moderno, Limpio */
    /* --primary-color: #ff7f50; */
    /* 8. Coral - Cálido, Amigable */
    /* --primary-color: #e056fd; */
    /* 9. Neon Pink - Atrevido, Vibrante */
    /* --primary-color: #badc58; */
    /* 10. Lime - Zesty, Llamativo */

    --bg-dark: #0f0f0f;
    --card-bg: rgba(30, 30, 30, 0.7);
    --text-main: #f0f0f0;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    /* background-image:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(66, 133, 244, 0.05) 0%, transparent 20%); */
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-gold {
    color: var(--primary-color) !important;
}

/* Custom Header */
.hero-section {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Navigation */
.nav-pills .nav-link {
    color: var(--text-main);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    background: rgba(128, 128, 128, 0.12);
    border: 1px solid rgba(128, 128, 128, 0.2);
    font-weight: 500;
}

.nav-pills .nav-link:hover {
    color: var(--text-main);
    background: rgba(128, 128, 128, 0.22);
}

.nav-pills .nav-link.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

/* Product Cards */
.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

.product-img-wrapper {
    height: 300px;
    position: relative;
    padding-top: 60%;
    /* Aspect Ratio */
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1/1;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.bestseller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #f7b500, #e67e22);
    color: #1f1f1f;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.bestseller-badge i {
    font-size: 0.8rem;
}

.card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.price-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
    display: inline-block;
}

/* Floating Cart Button */
.fab-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
}

.fab-cart:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--bg-dark);
}

/* Modal Customization */
.modal-content {
    background: #1a1a1a;
    border: var(--glass-border);
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 2rem;
    border-radius: 12px;
}

.btn-primary:hover {
    background: #ff0202;
    color: #000;
}

.bg-metodo-pago {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Quantity Controls (Capsule / Pill Shape as shown in reference) */
.qty-pill-container {
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: fit-content !important;
    max-width: fit-content !important;
    background-color: #e9ecef !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.qty-pill-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    border: none !important;
    background-color: var(--primary-color, #dc3545) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease;
}

.qty-pill-btn:first-child {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
}

.qty-pill-btn:last-child {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

.qty-pill-btn i {
    color: #ffffff !important;
    font-size: 0.8rem !important;
}

.qty-pill-btn:hover {
    opacity: 0.9 !important;
}

.qty-pill-count {
    min-width: 26px !important;
    height: 28px !important;
    line-height: 28px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    background-color: #e9ecef !important;
    color: #111111 !important;
    padding: 0 4px !important;
    display: inline-block !important;
}

/* Loading Overlay */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: var(--primary-color);
    color: black;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* Footer & Dynamic Theme Rules */
footer.tenant-footer {
    background-color: var(--footer-bg, var(--card-bg, #141414)) !important;
    color: var(--footer-text, var(--text-main, #f0f0f0)) !important;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease;
}

footer.tenant-footer .footer-brand-title {
    color: var(--primary-color) !important;
}

footer.tenant-footer .footer-text {
    color: var(--footer-text, var(--text-main, #f0f0f0)) !important;
}

/* Responsive Mobile Layout (1 per row) */
@media (max-width: 575.98px) {
    .product-img-wrapper {
        height: 220px;
        padding-top: 0;
    }

    .store-card-img-wrapper {
        height: 180px;
    }

    .hero-landing {
        padding: 2.5rem 1rem 1.5rem;
    }

    .hero-logo {
        width: 130px;
        height: 130px;
        margin-bottom: 0.75rem;
    }

    .product-card {
        border-radius: 16px;
        margin-bottom: 0.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .fab-cart {
        bottom: 20px;
        right: 20px;
        width: 58px;
        height: 58px;
        font-size: 1.35rem;
    }

    .price-tag {
        font-size: 1rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Custom Form Input Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
    background-color:rgb(255 255 255 / 40%) !important;
    color: #6c757d !important;
}

#inputVerificationCode:focus {
    border-color: #ffc107 !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4) !important;
    /* background-color: #181818 !important; */
}

#deliveryAddress {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Select & Payment Method Form Control Improvements */
select.form-select.bg-dark {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

select.form-select.bg-dark option {
    background-color: #6c757d !important;
    color: #ffffff !important;
    padding: 10px;
}

/* Mobile Responsiveness for Modal & Checkout Elements */
@media (max-width: 575.98px) {
    .btn-group label.btn {
        font-size: 0.82rem;
        padding: 0.5rem 0.35rem;
    }

    #paymentFields .card {
        padding: 0.75rem !important;
    }

    .modal-dialog {
        margin: 0.5rem auto;
    }
}