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

body {
    font-family: Inter, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    opacity: 1;
}

/* Make images scale responsively by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 1440px;
    height: 72px;
    background-color: rgba(252, 250, 248, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    padding: 0 24px; /* reduced side padding for small screens */
    margin: 0 auto;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    padding: 16px;
}

.logo {
    position: relative;
    width: 69.33px;
    height: 69.33px;
    top: 0;
    left: -8.67px;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('images/logo.png');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.brand {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: #000000;
    margin-left: -8px;
    margin-top: 2px;
}

.nav {
    margin-left: auto;
    margin-right: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    font-family: Inter, sans-serif;
    font-size: 15.38px;
    font-weight: 400;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Cart link and badge */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.cart-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: #ef4444; /* red badge */
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: none; /* hidden when zero */
    align-items: center;
    justify-content: center;
    line-height: 18px;
}

.nav-links a:hover {
    color: #6b7280;
}

.cta-button {
    background-color: #281d15;
    color: #ffffff;
    font-family: Inter, sans-serif;
    font-size: 15.25px;
    font-weight: 400;
    line-height: 24px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.cta-button:hover {
    background-color: #3d2a1f;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background-color: #1f2937;
    margin: 2px 0;
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .header {
        padding: 0 40px 0 60px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }
    
    .brand {
        font-size: 18px;
        margin-left: 4px;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(252, 250, 248, 0.95);
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        margin-left: 0;
        margin-right: 0;
        z-index: 1001;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    
    .nav-links a {
        font-size: 16px;
        padding: 8px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .cta-button {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 12px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-placeholder {
        width: 100%;
        height: 100%;
    }
    
    .brand {
        font-size: 16px;
    }
    
    .nav-links a {
        font-size: 15px;
    }
}