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

:root {
    --dark-green:       #2f431f;
    --light-green:      #9ea894;
    --white-text:       #ffffff;
    --light-background: #e8e8e8;
    --frame-colour:     #d4d2ca;
    --dark-text:        #191919;
}


/* ── 2. Base / Body ── */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--dark-text);
    background-color: #fdfdfb;
}


/* ── 3. Header & Navigation (desktop) ── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--dark-green);
    padding: 1.2rem 4rem;
}

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

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo img {
    height: 20px;
    width: auto;
    display: block;
}

/* Desktop: horizontal pill list */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--light-background);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--light-green); }

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1001;
}

/* Cart icon */
.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-icon img {
    width: 25px;
    height: 25px;
    display: block;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

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

/* Hamburger — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 0.75rem;
}

.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--white-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X when nav is open */
nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .hamburger span:nth-child(2) { opacity: 0; }
nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dim overlay — injected via ::before on nav so no extra HTML needed */
nav::before {
    content: '';
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 997;
}

nav.open::before { display: block; }


/* ── 4. Cart Panel ── */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
}

.cart-overlay.active { display: block; }

.cart-panel {
    position: fixed;
    top: 0; right: -420px;
    width: 420px;
    height: 100vh;
    background: #d6d3c4;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.cart-panel.active { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 1.5rem 0;
}

.cart-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #2c2c2c;
    padding: 0.25rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-empty {
    font-family: "Source Sans 3", sans-serif;
    color: #888;
    text-align: center;
    margin-top: 2rem;
}

.cart-empty-link {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.85rem;
    color: #2f431f;
    text-decoration: underline;
}

.cart-empty-link:hover { color: #9ea894; }

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cart-item-img {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-name {
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.cart-item-price {
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid var(--light-green);
    background: var(--light-green);
    width: fit-content;
    border-radius: 2px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
}

.cart-item-qty span {
    color: white;
    font-size: 0.85rem;
    min-width: 1.5rem;
    text-align: center;
}

.cart-item-subtotal {
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.9rem;
    color: #2c2c2c;
    margin: 0;
    white-space: nowrap;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #bbb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.cart-total-label {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.cart-total-note {
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

.cart-total-amount {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.cart-checkout-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--light-green);
    color: white;
    border: none;
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.cart-checkout-btn:hover { background: #8a9480; }

.cart-continue-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--light-green);
    color: white;
    border: none;
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-continue-btn:hover { background: #8a9480; }


/* ── 5. Footer ── */
footer {
    background: var(--dark-green);
    color: var(--light-background);
    padding: 1.2rem 3rem;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    font-weight: 400;
    letter-spacing: 0.02em;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-right a {
    display: flex;
    transition: opacity 0.3s ease;
}

.footer-right img {
    height: 30px;
    width: auto;
    display: block;
}

.footer-right a:hover { opacity: 0.6; }


/* ── 6. Responsive ≤ 850px ── */
@media (max-width: 850px) {

    /* Header */
    header { padding: 1rem 1.5rem; }
    .logo img { height: 15px; }

    /* Show hamburger */
    .hamburger { display: flex; }

    /* Transform .nav-links into a slide-in drawer */
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        z-index: 999;
        position: fixed;
        top: 0; right: -100%;
        width: 75%; 
        max-width: 300px;
        height: 100vh;
        background: var(--dark-green);
        padding: 5rem 1.5rem 1.5rem;
        transition: right 0.3s ease;
    }

    /* Slide in when nav has .open */
    nav.open .nav-links { right: 0; }

    /* Mobile link style */
    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 0.9rem;
        opacity: 0.85;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transition: opacity 0.2s, padding-left 0.2s;
    }

    .nav-links a:hover {
        opacity: 1;
        padding-left: 0.5rem;
        color: var(--light-background);
    }
}


/* ── 7. Responsive ≤ 500px ── */
@media (max-width: 500px) {

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-right { justify-content: center; }
}