:root {
    --color-primary: #D4AF37;
    /* Gold for headings/primary */
    --color-secondary: #C0C0C0;
    /* Silver for secondary text/borders */
    --color-accent: #E5C15D;
    /* Lighter Gold */
    --color-bg: #1E1B18;
    /* Dark Chocolate/Black */
    --color-text: #E0E0E0;
    /* Light Grey Text */
    --color-white: #2A2622;
    /* Card Background (Darker than white) */
    --color-white-text: #FFFFFF;
    /* Actual White */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Darker shadow */
    --radius: 8px;
    --transition: all 0.3s ease;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Darker shadow */
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-text);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--color-primary);
    color: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.main-header {
    background: var(--color-white);
    padding: var(--spacing-md) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav a {
    color: var(--color-text);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--color-text);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-accent);
    color: #000;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(30, 27, 24, 0.7), rgba(30, 27, 24, 0.5)), url('../assets/hero-placeholder.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white-text);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    color: var(--color-white-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #1a1a1a;
}

.btn-primary:hover {
    background: var(--color-accent);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #1a1a1a;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Common */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.product-img {
    height: 250px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: var(--transition);
}

.product-img:hover {
    opacity: 0.8;
}

.product-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.product-description {
    display: none;
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    flex-grow: 1;
}

.product-price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.add-to-cart {
    margin-top: auto;
    padding: 10px;
    background: var(--color-primary);
    color: #1a1a1a;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--color-accent);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: var(--color-white);
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.cart-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--spacing-sm);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 4px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-footer {
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Utilities */
.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* About & Farming Sections */
.about-grid,
.farming-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (max-width: 768px) {

    .about-grid,
    .farming-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-grid,
.farming-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.gallery-grid img,
.farming-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.gallery-grid img:hover,
.farming-gallery img:hover {
    transform: scale(1.05);
    z-index: 1;
}

.farming-text p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

/* Services Section */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.service-block.reverse {
    direction: rtl;
    /* Check if this is the best way, or just swap grid columns */
}

.service-block.reverse>* {
    direction: ltr;
}

@media (max-width: 768px) {
    .service-block {
        grid-template-columns: 1fr;
    }

    .service-block.reverse {
        direction: ltr;
    }
}

.service-text h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    font-size: 2rem;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Pricing Section */
.pricing-block {
    display: flex;
    justify-content: center;
    background: var(--color-white);
    /* Ensure background matches service blocks */
}

.pricing-content {
    width: 100%;
    max-width: 600px;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-md);
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.pricing-list li:last-child {
    border-bottom: none;
}

.pricing-list li.highlight {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-primary);
    font-weight: 700;
    color: var(--color-primary);
}

.price-label {
    text-align: left;
    color: var(--color-text);
}

.price-value {
    font-weight: 700;
    color: var(--color-primary);
}


/* Contact Section */
.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-item h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.contact-item p {
    color: var(--color-text);
}

.contact-item a {
    color: var(--color-primary);
    font-weight: 700;
}

.contact-item a:hover {
    color: var(--color-accent);
}

/* Footer improvements */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.social-links a {
    margin-left: var(--spacing-md);
    font-weight: 700;
    color: var(--color-text);
}


/* Checkout Modal Styles */
.checkout-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-modal.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: var(--color-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    color: #333;
}

.modal-body textarea {
    resize: vertical;
}

.shipping-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border: 1px solid #ffeeba;
}

.modal-body .btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Product Detail Modal */
.product-detail-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1100;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--color-text);
}

.product-detail-modal.active {
    display: block;
}

.product-detail-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.product-detail-img {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
}

.product-detail-info h2 {
    margin-bottom: var(--spacing-sm);
}

.product-detail-description {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    white-space: pre-line;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}