/* Base Styles */
:root {
    --primary-color: #0a2540;
    --secondary-color: #d4af37;
    --accent-color: #b8860b;
    --light-color: #f8f8f8;
    --dark-color: #1a1a1a;
    --text-color: #333333;
    --light-text: #ffffff;
    --gray-light: #e6e6e6;
    --gray-medium: #cccccc;
    --gray-dark: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
    padding: 8px 16px;
}

.btn-outline:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    align-items: center;
}

.header-icons a {
    margin-left: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.header-icons a:hover {
    color: var(--secondary-color);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(10, 37, 64, 0.7), rgba(10, 37, 64, 0.7)), 
                      url('https://images.unsplash.com/photo-1605100804763-247f67b3557e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--light-text);
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Feature Highlights */
.feature-highlights {
    padding: 80px 0;
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--gray-dark);
}

/* Flash Sale Section */
.flash-sale {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.flash-sale .section-header h3,
.flash-sale .section-header p {
    color: var(--light-text);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 80px;
}

.timer-segment span:first-child {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timer-segment span:last-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

.sale-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-color);
    position: relative;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card h4 {
    padding: 15px 20px 5px;
    font-size: 1.2rem;
}

.price {
    padding: 0 20px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.sale-price {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.product-card .btn-primary {
    display: block;
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* Product Categories */
.product-categories {
    padding: 80px 0;
    background-color: var(--light-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px;
    color: white;
}

.category-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-rating {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -15px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -25px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.newsletter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    margin-bottom: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.privacy-text {
    font-size: 0.8rem;
    opacity: 0.7;
}

.newsletter-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.newsletter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand span {
    color: var(--secondary-color);
}

.footer-brand p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.links-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.links-column ul {
    list-style: none;
}

.links-column li {
    margin-bottom: 10px;
}

.links-column a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.links-column a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h2 {
        font-size: 3rem;
    }
    
    .newsletter-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-icons a:not(.cart-icon) {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 100px 0;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header h3 {
        font-size: 1.5rem;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .timer-segment {
        min-width: 60px;
        padding: 10px 15px;
    }
    
    .timer-segment span:first-child {
        font-size: 1.5rem;
    }
}