/* CSS Variables */
:root {
    --primary-color: #4a5d23;
    --primary-dark: #3a4a1b;
    --secondary-color: #d4a017;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #fcfcfc;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Header */
.site-header {
    height: var(--header-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    font-size: 1.2rem;
    color: var(--text-color);
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Featured Products */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

/* About Section */
.about-section {
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content {
    padding: 20px;
}

.about-image {
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-family: var(--font-body);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a,
.footer-col li {
    color: #aaa;
}

.footer-col a:hover {
    color: var(--white);
}

.contact-list i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 30px 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.credit a {
    color: #888;
}

/* (Mobile styles moved to end of file) */

/* Split Section (Image + Text) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 600px;
}

.split-image {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 400px;
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    background-color: var(--white);
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.section-tag {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    padding: 20px 0;
    /* Full width feel */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-item {
    height: 300px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Newsletter / CTA */
.newsletter-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.newsletter-section h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.newsletter-form {
    max-width: 500px;
    margin: 40px auto 0;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
}

.review-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--secondary-color);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.2;
    line-height: 1;
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 20px;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Categories Page */
.categories-header {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.filters-bar {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Product Detail */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 50px 0;
}

.product-detail-image {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
    font-weight: 600;
}

.product-description {
    color: var(--light-text);
    margin-bottom: 30px;
}

/* Mobile Responsive (Moved to End for Priority) */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
        order: -1;
    }

    .split-section {
        display: flex;
        flex-direction: column;
    }

    .split-image {
        height: 300px;
        width: 100%;
    }

    .split-content {
        padding: 40px 20px !important;
        width: 100%;
    }

    .split-content.reverse {
        order: 1;
    }

    /* Fix product detail grid on mobile */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }


}

/* Cart Modal Styles */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: flex-end;
    /* Slide from right */
}

.cart-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cart-modal {
    background: white;
    width: 100%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-modal-overlay.active .cart-modal {
    transform: translateX(0);
}

.cart-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-modal-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-modal-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-modal-item-info {
    flex: 1;
}

.cart-modal-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.cart-modal-item-price {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.btn-link {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem;
}