/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: #f8f8f8;
    color: #333;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #bf0000;
}

.search-bar {
    flex-grow: 1;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #666;
}

.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-actions a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Currency Dropdown */
.currency-selector {
    position: relative;
    display: inline-block;
}

.currency-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
}

.currency-btn:hover {
    background-color: #f5f5f5;
}

.currency-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    padding: 5px 0;
}

.currency-dropdown a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.currency-dropdown a:hover {
    background-color: #f5f5f5;
}

.currency-selector:hover .currency-dropdown {
    display: block;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    font-weight: 500;
}

/* Main Content Styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Promo Banner */
.promo-banner {
    background-color: #f0f0f0;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Slider */
.slider {
    height: 400px;
    background-color: #ddd;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.slider-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 150px;
}

/* Brand Slider */
.brand-slider {
    margin: 30px 0;
}

.section-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.brand-slider-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 15px 0;
}

.brand-item {
    min-width: 120px;
    height: 80px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
}

/* Categories */
.categories {
    margin: 30px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 28px;
    margin-bottom: 10px;
    color: #bf0000;
}

/* Products */
.product-section {
    margin: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 180px;
    background-color: #eee;
    position: relative;
    background-size: cover;
    background-position: center;
}

.product-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #bf0000;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-price {
    font-weight: bold;
    color: #bf0000;
    font-size: 16px;
}

.product-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}

.product-rating {
    color: #ffc107;
    font-size: 12px;
    margin-top: 8px;
}

/* Stores */
.stores-section {
    margin: 40px 0;
}

.store-slider-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 0;
}

.store-card {
    min-width: 180px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}

.store-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #eee;
    margin: 0 auto 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.store-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.store-rating {
    color: #ffc107;
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: #2d2d2d;
    color: white;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 18px;
}

/* Auth Page Styles */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #bf0000, #ff6b6b);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    color: #666;
    font-size: 16px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.auth-form input:focus {
    border-color: #bf0000;
    box-shadow: 0 0 0 3px rgba(191, 0, 0, 0.1);
    outline: none;
}

.auth-form button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #bf0000, #e63946);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-form button:hover {
    background: linear-gradient(135deg, #a00000, #d62839);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191, 0, 0, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: #bf0000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: #666;
    position: relative;
    margin-bottom: 20px;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #eee;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #555;
    font-size: 18px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
    padding: 20px 0;
}

.modal .auth-container {
    animation: fadeIn 0.4s ease-out;
    position: relative;
    margin: 5% auto;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.modal .close:hover {
    color: #333;
}

/* Responsive Modal */
@media (max-width: 576px) {
    .modal .auth-container {
        margin: 20px auto;
        width: 95%;
        padding: 30px 20px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .category-grid, .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .profile-info, .product-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .category-grid, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
        margin: 10px 0;
    }
    
    .nav-menu {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .category-grid, .footer-grid, .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links, .social-icons {
        justify-content: center;
    }
    
    .auth-container {
        padding: 30px 20px;
        margin: 30px 15px;
    }
}

/* Form Camera Styles */
.btn-camera {
    padding: 10px 15px;
    background-color: #bf0000;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: all 0.3s;
}

.btn-camera:hover {
    background-color: #a00000;
    transform: translateY(-2px);
}

#selfie-container {
    border: 2px dashed #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#selfie-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
}

/* Form Select Styles */
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    margin-bottom: 20px;
    background-color: white;
}

.form-control:focus {
    border-color: #bf0000;
    box-shadow: 0 0 0 3px rgba(191, 0, 0, 0.1);
    outline: none;
}

/* Alert Styles */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .btn-camera {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    #selfie-buttons {
        display: flex;
        flex-direction: column;
    }
}

/* Account Popup Styles */
.account-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.account-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.4s ease-out;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.close-popup:hover {
    color: #333;
    transform: scale(1.1);
}

/* Account Dropdown */
.account-dropdown {
    position: relative;
    display: inline-block;
}

.account-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #bf0000;
}

.dropdown-menu i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.account-dropdown:hover .dropdown-menu {
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* EVENT BANNER STYLES */
/* ==================== */
.event-banner-section {
    padding: 40px 0;
    background-color: #f9f9f9;
    margin: 40px 0;
}

.event-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.event-banner-item {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-banner-item:hover {
    transform: translateY(-5px);
}

.event-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
}

.event-banner-content h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.event-banner-content p {
    margin: 0 0 15px;
    font-size: 0.9rem;
}

.event-banner-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3dece4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.event-banner-button:hover {
    background-color: #ffe600;
    transform: translateY(-2px);
}

/* ==================== */
/* FOOTER STRUCTURE */
/* ==================== */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about {
    margin-bottom: 20px;
}

.footer-logo img {
    margin-bottom: 15px;
    height: 40px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #aaa;
}

.footer-links-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-links-section h3, 
.footer-social-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #3dece4;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #3dece4;
}

.social-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #aaa;
    margin-top: 15px;
}

/* ==================== */
/* SLIDER ENHANCEMENTS */
/* ==================== */
.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 8px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.slide.active {
    opacity: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 150px;
}

/* ==================== */
/* RESPONSIVE ADJUSTMENTS */
/* ==================== */
@media (max-width: 992px) {
    .event-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-links-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .event-banner-grid {
        grid-template-columns: 1fr;
    }
    
    .event-banner-item {
        height: 160px;
    }
}

/* ==================== */
/* UTILITY CLASSES */
/* ==================== */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3dece4;
}

/* ==================== */
/* DROPDOWN ENHANCEMENTS */
/* ==================== */
.dropdown-container {
    position: relative;
}

.currency-dropdown, 
.account-dropdown .dropdown-menu {
    position: absolute;
    right: 0;
    z-index: 1000;
    min-width: 200px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.currency-dropdown.show, 
.account-dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

/* ==================== */
/* NOTIFICATION BADGE */
/* ==================== */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #bf0000;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-wrapper {
    position: relative;
}