/* Variables & Reset */
:root {
    --color-primary: #1A4D2E;
    /* Deep Green */
    --color-secondary: #D9381E;
    /* Spicy Red */
    --color-accent: #FFC107;
    /* Mustard Yellow */
    --color-bg: #F9F7F2;
    /* Off-White */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #b92b14;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 56, 30, 0.3);
}

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-text {
    color: var(--color-secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    gap: 12px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icons a {
    font-size: 18px;
    color: var(--color-primary);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* For navbar */
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 100px;
}

.hero-content {
    width: 45%;
    /* Strictly take up less than half the screen */
    margin-left: 5%;
    /* Add left spacing */
    margin-right: auto;
    /* Push to the left */
    padding-right: 20px;
    position: relative;
    z-index: 1;
}

.hero-content>* {
    max-width: 100%;
    /* Let parent control width */
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.hero-title {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-title em {
    font-style: italic;
    color: var(--color-secondary);
}

.hero-text {
    font-size: 18px;
    color: var(--color-text);
    /* Darker text for better visibility */
    margin-bottom: 40px;
    /* max-width: 450px; Removed as parent limits it */
    line-height: 1.8;
    font-weight: 500;
    /* Make text slightly bolder */
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    /* Add glow to ensure readability */
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 15px;
}

/* Products */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 14px;
}

.section-title {
    font-size: 48px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 300px;
    background-color: #f4f4f4;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    height: 80%;
    width: auto;
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-white);
    color: var(--color-primary);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.product-info {
    padding: 25px;
}

.product-rating {
    color: var(--color-accent);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.product-desc {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Story */
.story-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.story-image {
    flex: 1;
    position: relative;
}

.story-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.story-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    border: 5px solid var(--color-bg);
}

.story-badge span {
    font-size: 14px;
    color: var(--color-text-light);
}

.story-badge strong {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-primary);
    line-height: 1;
}

.story-content {
    flex: 1;
}

.story-content p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

/* Testimonials */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-slider::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 40px;
    font-family: var(--font-heading);
    font-size: 100px;
    color: rgba(26, 77, 46, 0.1);
    line-height: 1;
}

.stars {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--color-text);
}

.customer-name {
    color: var(--color-secondary);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    padding-top: 80px;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    color: var(--color-white);
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #999;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-secondary);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-links ul li a {
    color: #999;
}

.footer-links ul li a:hover {
    color: var(--color-secondary);
}

.footer-contact p {
    color: #999;
    margin-bottom: 10px;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 60px;
    }

    .features-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-container {
        flex-direction: column;
    }

    .story-image {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .nav-links,
    .nav-icons {
        display: none;
        /* Mobile menu to be implemented if needed, for now simple hide */
    }

    .hamburger {
        display: block;
    }

    .hero {
        flex-direction: column-reverse;
        height: auto;
        padding-bottom: 60px;
    }

    .hero-bg {
        position: relative;
        width: 100%;
        height: 400px;
        margin-bottom: 40px;
    }

    .hero-bg img {
        border-radius: 0 0 50px 50px;
    }

    .hero-content {
        width: 100%;
        padding: 0 20px;
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }


}

/* Auth Page Styles */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Navbar height */
    background-color: var(--color-bg);
}

.auth-card {
    display: flex;
    background-color: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 600px;
}

.auth-image {
    flex: 1;
    position: relative;
    display: none;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
}

.image-overlay h3 {
    color: var(--color-white);
    font-size: 32px;
    margin-bottom: 10px;
}

.auth-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.auth-form-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--color-text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.forgot-link {
    color: var(--color-secondary);
    font-weight: 500;
}

.btn-block {
    width: 100%;
    border: none;
    font-size: 16px;
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ddd;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-social:hover {
    background-color: var(--color-bg);
    border-color: var(--color-text);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Checkbox Style */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
}

.checkbox-container input:checked+.checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-container input:checked+.checkmark::after {
    content: '\2713';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

@media (min-width: 768px) {
    .auth-image {
        display: block;
    }
}

/* Checkout Styles */
.checkout-section {
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: var(--color-bg);
    min-height: 100vh;
}

.checkout-header {
    text-align: center;
    margin-bottom: 50px;
}

.checkout-header h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-block {
    background: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.checkout-block h3 {
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Payment Options */
.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.payment-option input {
    display: none;
}

.payment-card {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.payment-option input:checked+.payment-card {
    border-color: var(--color-primary);
    background-color: rgba(26, 77, 46, 0.05);
}

.payment-option input:checked+.payment-card .payment-icon {
    color: var(--color-primary);
}

.payment-details {
    display: none;
    animation: fadeIn 0.3s ease;
}

.payment-details.active {
    display: block;
}

/* Order Summary */
.order-summary {
    background: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-info img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 8px;
}

.item-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.item-info p {
    font-size: 12px;
    color: var(--color-text-light);
}

.summary-totals {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--color-text-light);
}

.summary-row.total {
    color: var(--color-text);
    font-weight: 700;
    font-size: 18px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.place-order-btn {
    margin-top: 20px;
    padding: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Styles */
.contact-hero {
    background-color: var(--color-bg);
    padding-top: 160px;
    padding-bottom: 60px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(26, 77, 46, 0.1);
    color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--color-text-light);
    font-size: 15px;
}

.contact-form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    resize: vertical;
    transition: var(--transition);
}

.contact-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

.map-section {
    width: 100%;
    height: 450px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.map-section:hover {
    filter: grayscale(0%);
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-hero {
        padding-top: 120px;
    }
}