/* CREATE VARIABLES FOR COLORS AND FONTS */

:root {
    --color-bg: {{ config.style['--color-bg'] || '#181e29' }};
    --color-surface: {{ config.style['--color-surface'] || '#232a3a' }};
    --color-accent: {{ config.style['--color-accent'] || '#2196f3' }};
    --color-accent-hover: {{ config.style['--color-accent-hover'] || '#05729a' }};
    --color-accent-alt: {{ config.style['--color-accent-alt'] || '#00baff' }};
    --color-accent-yellow: {{ config.style['--color-accent-yellow'] || '#ffe600' }};
    --color-text: {{ config.style['--color-text'] || '#fff' }};
    --color-text-secondary: {{ config.style['--color-text-secondary'] || '#bfcfff' }};
    --color-badge: {{ config.style['--color-badge'] || '#181e29' }};
    --color-shadow: {{ config.style['--color-shadow'] || '#0003' }};
    --color-shadow-strong: {{ config.style['--color-shadow-strong'] || '#0006' }};
    --color-shadow-navbar: {{ config.style['--color-shadow-navbar'] || '#0005' }};
    --color-shadow-badge: {{ config.style['--color-shadow-badge'] || '#0004' }};
    --color-border: {{ config.style['--color-border'] || '#666' }};
    --font-main: {{ config.style['--font-main'] || "'Montserrat', Arial, sans-serif" }};
}

html, body {
    overflow-x: hidden;
}

/* Reset and base styles */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
}

/* Dynamic background image controlled by dashboard */
body.has-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.slider-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    left: 0;
    top: 0;
    line-height: 48px;
    height: 48px;
    transform: translateX(100%);
    transition: 
        opacity 0.5s cubic-bezier(.77,0,.18,1),
        transform 0.5s cubic-bezier(.77,0,.18,1);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
}

.slide.out {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 0;
}

/* Centered logo below slider */
.logo-center {
    margin-top: 64px; /* 48px slider + 16px space */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    padding: 6px;
    background-color: #16243d;
    box-shadow: 0 10px 12px var(--color-shadow);
}

/* Bottom navbar styles */
.navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0 15px 0;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -22px 16px var(--color-shadow-navbar);
    z-index: 100;
}

.nav-button {
  position: relative; /* Make badge positioning relative to each button */
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  cursor: pointer;
  outline: none;
  transition: color 0.2s;
  text-decoration: none;
}

/* .nav-button {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    cursor: pointer;
    outline: none;
    transition: color 0.2s;
} */
.navigation a,
.nav-button {
    text-decoration: none;
}
.nav-button.active,
.nav-button:focus {
    color: var(--color-accent-alt);
}

.nav-button:hover:not(.active) {
    color: var(--color-accent-hover);
}

/* Products Header with Count and Filter Button */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto 16px auto;
    max-width: 500px;
    padding: 0 16px;
}

.products-count span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

/* Filter Toggle Button - Compact Style */

.filter-toggle-btn {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    opacity: 0.8;
    gap: 6px;
    box-shadow: 0 2px 8px var(--color-shadow);
    white-space: nowrap;
}

.filter-toggle-btn:hover {
    opacity: 1;
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-surface);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--color-shadow);
}

.filter-toggle-btn.active {
    opacity: 1;
    border-color: var(--color-accent);
    color: var(--color-text);
    background: var(--color-accent);
}

.filter-toggle-btn i.fas.fa-filter {
    font-size: 0.8rem;
}

.toggle-arrow {
    font-size: 0.7rem !important;
    transition: transform 0.3s ease;
}

/* Enhanced Filters Section - Retro Style (Compact) */
.filters-section {
    margin: 12px auto 20px auto;
    max-width: 500px;
    padding: 0 12px;
    animation: slideDown 0.3s ease-out;
}



/* Filter Section - Retro Style (Compact) */
.filter-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px var(--color-shadow);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.filter-header > div {
    display: flex;
    align-items: center;
}

.filter-header i {
    margin-right: 6px;
    color: var(--color-accent);
    font-size: 0.8rem;
}

.reset-filters-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.reset-filters-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    opacity: 1;
    transform: translateY(-1px);
}

.reset-filters-btn i {
    font-size: 0.65rem;
}

.reset-filters-btn span {
    font-weight: 600;
}

.filter-group {
    margin-bottom: 12px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    opacity: 0.9;
}

.filter-select {
    width: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 14px;
    padding-right: 32px;
    box-shadow: 0 2px 6px var(--color-shadow);
}

.filter-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.filter-select:hover {
    border-color: var(--color-accent);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 6px 8px;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    border-color: var(--color-accent);
    background: var(--color-surface);
}

.filter-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-accent);
    border-radius: 3px;
}

.checkbox-text {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Mobile responsiveness for filters (Extra Compact) */
@media (max-width: 480px) {
    .products-header {
        padding: 0 12px;
        margin: 16px auto 12px auto;
    }
    
    .products-count span {
        font-size: 0.9rem;
    }
    
    .filter-toggle-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .filters-section {
        margin: 8px auto 16px auto;
        padding: 0 8px;
    }
    
    .filter-section {
        padding: 12px;
    }
    
    .filter-header {
        margin-bottom: 12px;
        font-size: 0.8rem;
    }
    
    .filter-group {
        margin-bottom: 10px;
    }
    
    .sort-btn {
        padding: 6px 2px;
        font-size: 0.65rem;
        min-height: 38px;
    }
    
    .sort-btn i {
        font-size: 0.8rem;
        margin-bottom: 1px;
    }
    
    .filter-select {
        padding: 6px 10px;
        font-size: 0.8rem;
        padding-right: 28px;
        background-size: 12px;
        background-position: right 8px center;
    }
    
    .checkbox-label {
        padding: 4px 6px;
    }
    
    .checkbox-text {
        font-size: 0.75rem;
    }
    
    .filter-label {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
}


/* Products container styles */
.products-container {
    margin-top: 160px; /* Space for slider and logo */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
    gap: 18px;
    margin: 32px auto 60px auto;
    max-width: 500px;
    box-sizing: border-box;
    padding: 0 12px;
    width: 100%;
}

/* No Products Found Message - Retro Style */
.no-products-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: var(--color-surface);
    border-radius: 18px;
    border: 1px solid var(--color-border);
    margin: 20px 0;
    box-shadow: 0 4px 16px var(--color-shadow);
}

.no-products-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid rgba(33, 150, 243, 0.2);
}

.no-products-icon i {
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0.7;
}

.no-products-message h3 {
    color: var(--color-text);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.no-products-message p {
    color: var(--color-text-secondary);
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0 0 24px 0;
    max-width: 300px;
    line-height: 1.5;
}

.reset-filters-btn-main {
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.reset-filters-btn-main:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.reset-filters-btn-main i {
    font-size: 0.8rem;
}

/* Remove or comment out this media query block: */
@media (max-width: 600px) {
    .products-container {
        gap: 10px;
    }
    .product-card {
        max-width: 95vw;
    }
}

.product-card {
    background: var(--color-surface);
    border-radius: 18px;
    box-shadow: 0 4px 24px var(--color-shadow);
    padding: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s cubic-bezier(.4,2,.6,1);
    will-change: transform, box-shadow;
    box-sizing: border-box;
    min-height: 280px; /* Ensure consistent height */
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 32px var(--color-shadow-strong);
    z-index: 2;
}

.product-card:hover .product-image {
    transform: scale(1.07);
    filter: brightness(1.08) saturate(1.2);
}

.product-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    background: var(--color-bg);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), filter 0.3s cubic-bezier(.4,2,.6,1);
}

/* Default product badge style (white text for index.html) */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-badge);
    color: #fff; /* white text by default */
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 3px 10px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px var(--color-shadow-badge);
    z-index: 3;
}

/* Promo page badge style (red text for promo.html) */
body.promo-page .product-badge {
    color: #ff4c4c; /* eye-catching red for discounts */
}

.product-title-container {
    position: relative;
    margin: 14px 14px 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
    letter-spacing: 1px;
    flex: 1;
    padding-right: 8px;
}

.product-desc {
    font-size: 0.85rem; /* Reduced from 1.05rem */
    color: var(--color-text-secondary);
    margin: 0 14px;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
}

.product-info-tooltip {
    color: #2196f3;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 1;
    flex-shrink: 0;
}

.product-info-tooltip:hover {
    opacity: 1;
}

.product-prices {
    margin: 14px 14px 0 14px; /* Always at bottom with margin-top auto effect */
    font-size: 0.98rem;
    color: var(--color-text);
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; /* Push to bottom */
}

/* Product Action Container (replaces product-prices) */
.product-action {
    margin: 14px;
    margin-top: auto; /* Push to bottom */
}

/* Voir Détail Button */
.voir-detail-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
    font-family: var(--font-main);
}

.voir-detail-btn:hover {
    background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.voir-detail-btn:active {
    transform: translateY(0);
}

.voir-detail-btn i {
    font-size: 0.85rem;
}

/* Add to Cart Button (for product detail and checkout pages) */
.add-to-cart-btn {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Cart Badge Styles (for navigation) */
.nav-button {
    position: relative; /* Ensure badge positioning works */
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: 9px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  border: 2px solid var(--color-bg, #181e29);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
  z-index: 1000;
  transition: all 0.2s ease;
}

.cart-badge.show {
  display: flex;
}

.cart-badge:not(:empty) {
  display: flex;
}


/* Extra styles for product detail page */
.product-detail-card {
    background: var(--color-surface);
    border-radius: 18px;
    box-shadow: 0 4px 24px var(--color-shadow);
    max-width: 420px;
    margin: 0 auto 40px auto;
    padding: 24px 18px 28px 18px;
    color: var(--color-text);
}
.product-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.product-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
}
.product-detail-badge {
    background: var(--color-badge);
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 4px 12px;
    letter-spacing: 1px;
    margin-left: auto;
}
.product-detail-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}
.product-detail-desc {
    font-size: 1.08rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}
.product-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 24px;
    padding: 14px 0;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.product-detail-btn.telegram {
    background: var(--color-accent);
    color: var(--color-text);
}
.product-detail-btn.snapchat {
    background: var(--color-accent-yellow);
    color: var(--color-bg);
}

.product-detail-btn.crypto {
    background-color: #4caf50; /* green for crypto */
    color: #fff;
}

.product-detail-btn.potato {
    background-color: #c112f1; /* purple for potato */
    color: #fff;
}

.product-detail-btn.whatsapp {
    background-color: #25d366; /* WhatsApp green */
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
}

.product-detail-btn.signal {
    background-color: #00bcd4; /* Signal blue */
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
}

.product-detail-btn:hover {
    filter: brightness(0.95);
}

/* Improved delivery option buttons */
.delivery-option-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.delivery-option-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Modern messaging app buttons */
.messaging-app-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.messaging-app-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}
.product-detail-media {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 18px;
    background: var(--color-bg);
    object-fit: cover;
    max-height: 340px;
}

/* Floating Back Button */
.back-btn {
    position: fixed;
    top: 70px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--color-shadow);
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: var(--color-accent);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-shadow-strong);
}

.back-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}
.subtitle-with-marker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subtitle-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    display: inline-block;
    margin-right: 2px;
}

/* Discounted Product Styles */
.product-card.discounted {
    box-shadow: 0 4px 24px var(--color-shadow), 0 0 0 1px var(--color-accent-yellow);
}

.product-card.discounted:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 12px 40px var(--color-shadow-strong), 0 0 0 2px var(--color-accent-yellow);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-accent-yellow);
    color: var(--color-bg);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 4px 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px var(--color-shadow-badge);
    z-index: 3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Discounted Price Styles */
.original-price {
    text-decoration: line-through;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-right: 8px;
    opacity: 0.8;
}

.discount-price {
    color: var(--color-accent-yellow);
    font-weight: 700;
    font-size: 1rem;
}

/* Out-of-Stock Styles */
.out-of-stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    z-index: 3;
}

.product-card.out-of-stock {
    position: relative;
    filter: grayscale(50%);
    opacity: 0.7;
}

.product-card.out-of-stock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.product-card.out-of-stock .product-image,
.product-card.out-of-stock .product-title,
.product-card.out-of-stock .product-desc,
.product-card.out-of-stock .product-prices {
    position: relative;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    
    
    .discount-badge {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .out-of-stock-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
        top: -8px;
        right: 9px;
    }
}

/* Credits Modal Styles */
.modal-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.credits-modal {
    background: var(--color-surface, #232a3a);
    padding: 24px;
    border-radius: 12px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: modalFadeIn 0.25s ease-out;
    position: relative;
    margin: auto;
}

.credits-modal h3 {
    margin: 0 0 12px 0;
    color: var(--color-accent, #2196f3);
    font-size: 1.1rem;
    font-weight: 600;
}

.credits-modal p {
    margin: 0 0 8px 0;
    color: var(--color-text, #fff);
    line-height: 1.5;
    font-size: 0.9rem;
}

.credits-modal .subtitle {
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-style: italic;
}

.credits-modal a {
    color: #0088cc;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.credits-modal a:hover {
    color: #00aaff;
    text-decoration: underline;
}

.credits-modal button {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.credits-modal button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.logo-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

/* WhatsApp Modal Styles */
.whatsapp-modal {
    animation: modalFadeIn 0.25s ease-out;
}

.whatsapp-modal input,
.whatsapp-modal textarea {
    font-family: inherit;
}

.whatsapp-modal input:focus,
.whatsapp-modal textarea:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.whatsapp-modal button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Loading bar styles */
.loading-container {
    position: fixed;
    top: 48px; /* Below the slider banner */
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
    overflow: hidden;
    display: none;
}

.loading-container.show {
    display: block;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
    width: 0%;
    animation: loadingProgress 2s ease-in-out infinite;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loadingShine 1.5s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
        opacity: 0.7;
    }
    50% {
        width: 70%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0.7;
    }
}

@keyframes loadingShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Products container loading state */
.products-container.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#product-detail-container.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#promo-container.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Filter Animation Keyframes */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* ===== PASSWORD PROTECTION MODAL STYLES ===== */
.password-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.password-modal-content {
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(35, 42, 58, 0.95) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.password-modal-header {
    margin-bottom: 30px;
}

.security-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.3);
}

.security-icon i {
    font-size: 32px;
    color: white;
}

.password-modal-header h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-text), var(--color-text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.password-modal-header p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.password-form {
    margin-bottom: 30px;
}

.password-input-group {
    position: relative;
    margin-bottom: 20px;
}

.password-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    font-size: 16px;
    z-index: 2;
}

#password-input {
    width: 100%;
    padding: 18px 24px 18px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-text);
    font-size: 16px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

#password-input:focus {
    border-color: var(--color-accent);
    background: rgba(33, 150, 243, 0.05);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

#password-input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.password-toggle-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.password-toggle-btn:hover {
    color: var(--color-accent);
}

.password-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
    border-left: 4px solid #f44336;
    padding: 12px 16px;
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.password-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-main);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
}

.password-submit-btn:hover {
    background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(33, 150, 243, 0.4);
}

.password-submit-btn:active {
    transform: translateY(0);
}

.password-submit-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.password-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.password-footer small {
    color: var(--color-text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .password-modal-content {
        padding: 30px 20px;
        margin: 10px;
        border-radius: 16px;
    }
    
    .security-icon {
        width: 70px;
        height: 70px;
    }
    
    .security-icon i {
        font-size: 28px;
    }
    
    .password-modal-header h2 {
        font-size: 22px;
    }
    
    .password-modal-header p {
        font-size: 14px;
    }
    
    #password-input {
        padding: 16px 20px 16px 45px;
        font-size: 15px;
    }
    
    .password-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}