/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo h1 {
    color: #2c5aa0;
    font-size: 24px;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2c5aa0;
}

.btn-login {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #1e3f73;
}

.header-main {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.search-box {
    display: flex;
    background: #f5f5f5;
    border-radius: 25px;
    overflow: hidden;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    outline: none;
    font-size: 16px;
}

.search-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #1e3f73;
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
}

.category-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s;
}

.category-btn:hover {
    border-color: #2c5aa0;
}

.category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 250px;
    z-index: 100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.category-dropdown:hover .category-menu {
    display: block;
}

.category-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.category-item:hover {
    background: #f5f5f5;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #2c5aa0;
    text-decoration: none;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #666;
}

/* Page Title */
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.tab-btn:hover:not(.active) {
    border-color: #2c5aa0;
    color: #2c5aa0;
}

/* Promo Grid */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.promo-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.promo-card.featured {
    border: 2px solid #2c5aa0;
}

.promo-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #2c5aa0;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.promo-badge.discount {
    background: #e74c3c;
}

.promo-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.promo-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.promo-code {
    margin-bottom: 15px;
}

.show-code-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.show-code-btn:hover {
    background: #1e3f73;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.code-text {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 16px;
    color: #2c5aa0;
}

.copy-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #1e3f73;
}

.promo-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.applied-count {
    color: #27ae60;
    font-weight: 500;
}

.expiry-date {
    color: #e74c3c;
    font-weight: 500;
}

/* Load More Button */
.load-more-section {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.load-more-btn:hover {
    background: #1e3f73;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 40px 0 30px 0;
}

/* Reviews Section */
.reviews-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.reviews-form {
    max-width: 600px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stars {
    display: flex;
    gap: 5px;
}

.stars i {
    color: #ffd700;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.stars i:hover {
    color: #ffed4e;
}

.review-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 20px;
}

.review-textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.submit-review-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-review-btn:hover {
    background: #1e3f73;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.payment-methods {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-methods li {
    background: #34495e;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links h4 {
    color: #ecf0f1;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #ecf0f1;
}

.copyright {
    color: #95a5a6;
    font-size: 12px;
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    background: #2c5aa0;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.modal-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.auth-tab {
    background: none;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #2c5aa0;
    border-bottom-color: #2c5aa0;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.social-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.social-btn:hover {
    background: #e8e8e8;
}

.divider {
    text-align: center;
    color: #666;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.divider {
    background: white;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #2c5aa0;
}

.forgot-password {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.auth-submit-btn {
    width: 100%;
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-submit-btn:hover {
    background: #1e3f73;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .header-main {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-box {
        max-width: none;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .promo-card {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 20px;
    }
}
