:root {
    --bg-color: #0c121e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-color: #f39c12;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(12, 18, 30, 0.8);
}

[data-theme="light"] {
    --bg-color: #f7fafc;
    --card-bg: rgba(255, 255, 255, 0.75);
    --accent-color: #d35400;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --glass-border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.9);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] .text-white-50, 
[data-theme="light"] .text-white-25 {
    color: rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .glass-panel h5,
[data-theme="light"] .glass-panel h6,
[data-theme="light"] .glass-panel p,
[data-theme="light"] .glass-panel span,
[data-theme="light"] .glass-panel small {
    color: var(--text-primary) !important;
}

.form-control, .form-select {
    color: var(--text-primary) !important;
}

[data-theme="light"] input::placeholder, 
[data-theme="light"] textarea::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.8;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .navbar-dark {
    background: var(--nav-bg) !important;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.glass-panel:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
    transform: translateY(-5px);
}

.btn-premium {
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-premium:hover {
    transform: scale(1.05);
    background: #e67e22;
}

.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

[data-theme="light"] .navbar .nav-link,
[data-theme="light"] .navbar-brand {
    color: var(--text-primary) !important;
}

.category-card {
    cursor: pointer;
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
}

.category-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.company-card {
    overflow: hidden;
}

.company-card .card-img-top {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
    }
    
    .store-banner {
        height: 250px !important;
    }
    
    .store-banner h1 {
        font-size: 1.5rem !important;
    }
    
    .glass-panel {
        padding: 1.5rem !important;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
    
    .main-content {
        margin-top: 4.5rem;
    }
}

.main-content {
    margin-top: 6rem;
    position: relative;
    z-index: 10;
}

/* Hero Carousel Styling */
.hero-carousel {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: -1rem; /* Subtle overlap only */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero-item {
    height: 220px; /* Reduced from 350px */
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-color) 40%, transparent);
    display: flex;
    align-items: center;
    padding: 0 8%;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to right, rgba(255,255,255,0.95) 40%, transparent);
}

.hero-content {
    max-width: 550px;
    padding: 0; /* Removed card padding */
}

/* Light theme content visibility adjustment if needed */
[data-theme="light"] .hero-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-content h1 {
    font-size: 1.8rem; /* Reduced from 2.5rem */
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 0.95rem; /* Reduced from 1.1rem */
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-item {
        height: 180px;
        padding-top: 10px;
    }
    .hero-content h1 {
        font-size: 1.2rem;
    }
    .hero-content p {
        display: none; /* Hide p on mobile to keep it super compact */
    }
    .hero-overlay {
        padding: 0 5%;
    }
}

.news-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Home Icon specific (kept from previous step) */
.home-icon-modern {
    background: linear-gradient(135deg, var(--accent-color), #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    margin-right: 10px;
    font-size: 1.4rem;
}

.product-card {
    position: relative;
}

.badge-count {
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
}

/* Checkout Logo Filters */
.filter-invert { filter: invert(1) brightness(1.5); }
[data-theme="light"] .filter-invert { filter: none; }
.filter-invert-ap { filter: brightness(0) invert(1); }
[data-theme="light"] .filter-invert-ap { filter: none; }
.hover-instagram:hover {
    color: #E4405F !important;
    transform: scale(1.2);
    transition: all 0.3s ease;
}
.hover-instagram { transition: all 0.3s ease; }

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.payment-selector .btn-check:checked + label {
    border-color: var(--accent-color) !important;
    background-color: rgba(243, 156, 18, 0.1);
}

[data-theme="light"] .text-dark-mode-only {
    color: #1a202c !important;
}

/* CTA Section (Store Administration) */
.cta-section {
    background: rgba(243, 156, 18, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid var(--accent-color);
    padding: 0;
    overflow: hidden;
    margin-top: 5rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(243, 156, 18, 0.1);
}

.cta-content {
    padding: 3.5rem;
    position: relative;
    z-index: 2;
}

[data-theme="light"] .cta-section {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(243, 156, 18, 0.2);
}

.cta-img-container {
    height: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
    opacity: 0.7;
}

[data-theme="light"] .cta-img-container::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), transparent);
}

.cta-section i.fa-shop-lock {
    filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.4));
    animation: pulseIcon 2.5s infinite ease-in-out;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 991px) {
    .cta-content {
        padding: 2.5rem 1.5rem;
        text-align: center;
    }
    .cta-content .d-flex {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    .cta-content i {
        margin-right: 0 !important;
        margin-bottom: 1.5rem;
    }
    .cta-img-container {
        min-height: 250px;
    }
}