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

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fffaf8;
    color: #555;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
header {
    width: calc(100% - 24px);
    max-width: 1500px;
    margin: 12px auto;
    padding: 18px 20px;
    background: #f8edf5;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.logo {
    font-size: 34px;
    font-weight: bold;
    color: #8b5d7d;
    flex-shrink: 0;
}

/* hide checkbox */
#menu-toggle {
    display: none;
}

/* hamburger label – visible only on mobile */
.hamburger {
    display: none;
    font-size: 34px;
    cursor: pointer;
    color: #8b5d7d;
    user-select: none;
    flex-shrink: 0;
    margin-left: 10px;
}

/* navigation — inline on desktop */
nav {
    display: flex;
    gap: 25px;
    margin-left: auto;
    margin-right: 18px;
    align-items: center;
    order: 1;
}

nav a {
    text-decoration: none;
    color: #6f6071;
    font-weight: bold;
    white-space: nowrap;
}

nav a:hover {
    color: #b86ca3;
}

/* cart link – stays inline */
.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 42px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: #845b7b;
    background: white;
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: .3s;
    flex-shrink: 0;
    order: 2;
    margin-left: 0;
}

.cart-link:hover {
    background: #fdf4f8;
}

/* ===== CONTENT ===== */
.content {
    flex: 1;
    width: calc(100% - 24px);
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ===== FOOTER ===== */
footer {
    margin-top: auto;
    background: #f6eef6;
    text-align: center;
    padding: 25px;
}

/* ===== MOBILE (≤768px) ===== */
@media (max-width: 1040px) {
    header {
        padding: 18px 20px;
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .logo {
        font-size: 28px;
        order: 0;
    }

    /* show hamburger */
    .hamburger {
        display: block;
        order: 2;
        margin-left: auto;
    }

    /* cart link – appears next to hamburger */
    .cart-link {
        order: 3;
        margin-left: 12px;
        min-width: 48px;
        height: 38px;
        font-size: 16px;
    }

    /* nav hidden by default, becomes flex when checkbox checked */
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 6px;
        margin: 12px 0 0 0;
        padding-top: 14px;
        border-top: 1px solid #e5d4e5;
        order: 10;
        flex-basis: 100%;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        white-space: normal;
    }

    /* when checkbox is checked, show nav */
    #menu-toggle:checked~nav {
        display: flex;
    }
}

/* small extra tweak for very narrow screens */
@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }
    .hamburger {
        font-size: 28px;
    }
    .cart-link {
        min-width: 40px;
        height: 34px;
        font-size: 15px;
        padding: 0 10px;
    }
}