* { 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;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    background-color: #fdfdfb;
}

/* --- Header --- */
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; 
}

.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: 0.3s;
}

.nav-links a:hover { 
    color: var(--light-green); 
}

.nav-right-group { 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
}

.cart-icon img { 
    width: 25px; 
    height: 25px; 
    cursor: pointer; 
    align-items: center; 
}

.cart-icon img { 
    width: 25px; 
    height: 25px; 
    display: block;
    cursor: pointer;
    filter: brightness(0) invert(1); /* Makes the icon white to match the theme */
}

/* --- Final Static 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; /* Stacks on mobile */
    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: 0.3s ease;
}

.footer-right img {
    height: 30px; /* Adjust this height to match your logo's look */
    width: auto;
    display: block;
    /* Uncomment the filter below if your icons are black and you want them white */
    /* filter: brightness(0) invert(1); */
}

.footer-right a:hover {
    opacity: 0.6;
}

/* Mobile Alignment */
@media (max-width: 500px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-right {
        justify-content: center;
    }
}

/* Cart overlay */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 998;
}

.cart-overlay.active {
    display: block;
}

/* Cart panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;          /* Hidden off screen */
    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;               /* Slide in */
}

/* Cart header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 1.5rem 0rem;
}

.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 */
.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-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;
}

/* Quantity buttons */
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #9ea894;
    background: #9ea894;
    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 */
.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: #9ea894;
    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: #9ea894;
    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;
}

/* Cart count badge */
.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #2f431f;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .cart-panel {
        width: 100%;
        right: -100%;
    }
}

.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;
}