/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f5f5e8;
    color: #2f3a44;
    overflow-x: hidden;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 100px;
}

/* Hero Banner */
.hero-banner {
    height: 70vh;
    background: linear-gradient(rgba(47, 58, 68, 0.7), rgba(47, 58, 68, 0.7)), 
                url('https://images.unsplash.com/photo-1489987707025-afc232f7ea0f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: #f5f5e8;
    padding: 0 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 400;
}

.cta-button {
    padding: 12px 30px;
    background: linear-gradient(45deg, #d4af37, #b8972e);
    color: #2f3a44;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background: linear-gradient(135deg, #004d00, #1a661a);
    color: #f5f5e8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.featured-section, .new-arrivals {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2f3a44;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    flex-grow: 1;
    height: 1px;
    background-color: #d4af37;
    margin: 0 20px;
}

.explore-all {
    color: #d4af37;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.explore-all:hover {
    color: #b8972e;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(47, 58, 68, 0.9), transparent);
    padding: 20px;
    color: #f5f5e8;
    text-align: center;
}

.category-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.category-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #f5f5e8;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fffef4;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #d4af37;
}

.wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.wishlist:hover {
    color: #d4af37;
}

.image-container {
    height: 200px;
    margin-bottom: 15px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.details h3 {
    font-size: 16px;
    color: #2f3a44;
    margin-bottom: 10px;
    font-weight: 600;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.sale-price {
    font-size: 16px;
    font-weight: 700;
    color: #2f3a44;
}

.regular-price {
    font-size: 14px;
    color: #c00000;
    text-decoration: line-through;
}

.quick-view-btn {
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(45deg, #d4af37, #b8972e);
    color: #2f3a44;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.quick-view-btn:hover {
    background: linear-gradient(135deg, #004d00, #1a661a);
    color: #f5f5e8;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: #2f3a44;
    padding: 40px 0;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.about-content {
    padding: 20px;
}

.about-content h2 {
    font-size: 28px;
    color: #2f3a44;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #2f3a44;
    margin-bottom: 25px;
}

.learn-more {
    color: #d4af37;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: #b8972e;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.quick-view-content {
    background: #fffef4;
    margin: 5% auto;
    padding: 25px;
    border: 2px solid #d4af37;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #d4af37;
}

.quick-view-content h2 {
    color: #2f3a44;
    margin-bottom: 12px;
    font-size: 20px;
}

.quick-view-img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.quick-view-content p {
    margin-bottom: 12px;
    color: #2f3a44;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
}

.view-details {
    background: linear-gradient(45deg, #d4af37, #b8972e);
    color: #2f3a44;
}

.view-details:hover {
    background: linear-gradient(135deg, #d4af37, #b8972e);
}

.close-btn {
    background: linear-gradient(135deg, #767675, #4c4b49);
    color: #fff;
}

.close-btn:hover {
    background: linear-gradient(135deg, #666, #444);
}

/* Referral Modal */
.referral-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(47, 58, 68, 0.8);
    overflow: auto;
}

.referral-modal-content {
    background: linear-gradient(135deg, #fffcf4, #f5f5e8);
    margin: 10% auto;
    padding: 40px;
    border: 3px solid #d4af37;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.referral-modal h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: #2f3a44;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.referral-modal p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #2f3a44;
    margin-bottom: 25px;
    line-height: 1.5;
}

.referral-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fff;
    color: #2f3a44;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.referral-input:focus {
    outline: none;
    border-color: #b8972e;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.referral-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.referral-submit, .referral-skip {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.referral-submit {
    background: linear-gradient(135deg, #d4af37, #b8972e);
    color: #2f3a44;
}

.referral-submit:hover {
    background: linear-gradient(135deg, #006400, #228B22);
    color: #f5f5e8;
    transform: scale(1.05);
}

.referral-skip {
    background: linear-gradient(135deg, #767675, #4c4b49);
    color: #fff;
}

.referral-skip:hover {
    background: linear-gradient(135deg, #666, #444);
    transform: scale(1.05);
}

/* Blur effect for background */
.blur-bg > *:not(.referral-modal):not(.toastify) {
    filter: blur(3px);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-banner {
        height: 50vh;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .divider {
        width: 100%;
        margin: 15px 0;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .main-container {
        padding-top: 80px;
    }
}