@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
    --color-primary: #143624;       /* Deep Forest Green */
    --color-primary-light: #1f4f36;
    --color-primary-dark: #0c2216;
    --color-secondary: #c88d51;     /* Warm Terracotta / Gold */
    --color-secondary-hover: #b47a40;
    --color-bg-linen: #fbfaf7;       /* Soft Organic Linen Background */
    --color-bg-card: #ffffff;
    --color-text-dark: #2c3531;     /* Deep Charcoal */
    --color-text-muted: #6b7770;    /* Grey-green */
    --color-border: #e2e8e5;
    --color-error: #a73a3a;
    --color-success: #2b704e;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 8px 30px rgba(20, 54, 36, 0.08);
    --shadow-heavy: 0 16px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --border-radius-large: 16px;
    --max-width: 1200px;
    --header-height: 80px;
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition-smooth);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* --- REUSABLE UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 54, 36, 0.2);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 141, 81, 0.2);
}

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

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

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

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

header.scrolled {
    background-color: #ffffff;
    height: 70px;
    box-shadow: var(--shadow-subtle);
    border-bottom: 1px solid var(--color-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

header.scrolled .logo img {
    height: 44px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
    padding: 6px 0;
}

header:not(.scrolled) .nav-links a {
    color: var(--color-primary-dark);
}

/* For hero pages header overlay text can be light */
header.hero-overlay:not(.scrolled) .nav-links a,
header.hero-overlay:not(.scrolled) .logo-text,
header.hero-overlay:not(.scrolled) .nav-icon-btn {
    color: #ffffff;
}

header.hero-overlay:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

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

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

.nav-links a.active {
    color: var(--color-secondary);
    font-weight: 600;
}

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

.nav-icon-btn {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-icon-btn:hover {
    background-color: rgba(20, 54, 36, 0.05);
    color: var(--color-primary);
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--color-secondary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

/* --- RESPONSIVE MOBILE MENU --- */
@media (max-width: 768px) {
    header.hero-overlay {
        background-color: #ffffff !important;
        box-shadow: var(--shadow-subtle) !important;
        border-bottom: 1px solid var(--color-border) !important;
        height: 70px !important;
    }
    
    header.hero-overlay:not(.scrolled) .nav-links a,
    header.hero-overlay:not(.scrolled) .logo-text,
    header.hero-overlay:not(.scrolled) .nav-icon-btn {
        color: var(--color-text-dark) !important;
    }
    
    header.hero-overlay:not(.scrolled) .logo img {
        filter: none !important;
        height: 44px !important;
    }
    
    header.hero-overlay:not(.scrolled) .hamburger span {
        background-color: var(--color-primary) !important;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        box-shadow: var(--shadow-heavy);
        transition: var(--transition-smooth);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }
    
    header.hero-overlay:not(.scrolled) .nav-links a {
        color: var(--color-text-dark);
    }
}

/* --- FOOTER SECTION --- */
footer {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 70px 0 30px 0;
    border-top: 4px solid var(--color-secondary);
}

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

.footer-info .logo-text {
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 320px;
}

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

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-links-col h4,
.footer-newsletter h4 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

.footer-links-col h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-links-col ul {
    list-style: none;
}

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

.footer-links-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links-col ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- CART DRAWER OVERLAY --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2001;
    box-shadow: var(--shadow-heavy);
    display: flex;
    flex-direction: column;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.cart-overlay.active .cart-drawer {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.cart-close-btn {
    font-size: 1.5rem;
    color: var(--color-text-dark);
}

.cart-close-btn:hover {
    color: var(--color-error);
    transform: rotate(90deg);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-cart-message {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 50px;
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--color-border);
}

.cart-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    object-fit: cover;
    background-color: #f4f6f5;
    border: 1px solid var(--color-border);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.cart-item-price {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.qty-control button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8faf9;
    font-size: 0.9rem;
}

.qty-control button:hover {
    background-color: var(--color-border);
}

.qty-control span {
    width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-remove {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.cart-item-remove:hover {
    color: var(--color-error);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--color-border);
    background-color: #fcfdfc;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
}

.cart-summary-line.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    margin-bottom: 20px;
}

.cart-checkout-btn {
    width: 100%;
}

/* --- MODAL DIALOGS --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 550px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    transform: translateY(30px);
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.4rem;
}

.modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
}

.modal-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
}

/* --- CHECKOUT FORM --- */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
    background-color: #fbfdfc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 54, 36, 0.08);
}

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

.checkout-policy-notice {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 10px;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    font-size: 2rem;
    transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

/* Back to top button styling */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-primary);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}
