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

html {
    scroll-behavior: smooth;
}

body {
    background: #FDDDE6;
    color: #111;
   font-family: "Raleway", sans-serif;
}


/* HEADER */

header {
    height: 80px;
    border-bottom: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    font-family: "Cinzel Decorative", serif;
}

.logo {
    font-size: 20px;
    font-weight:500;
    letter-spacing: -2px;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: #111;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: "Cinzel Decorative", serif;
}

.cart {
    background: transparent;
    border: 1px solid #111;
    padding: 10px 15px;
}


/* HERO */

.hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 70px 6%;
    gap: 70px;
    align-items: center;
}


.issue {
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.hero h1 {
    font-family: "Cinzel Decorative", serif;
    font-weight: 500;
    font-size: clamp(80px, 11vw, 170px);
    line-height: 1;
    letter-spacing: -4px;
    margin: 0 0 25px 0;
}

.shop-button {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 25px;
    background: #111;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}


/* MAGAZINE COVER */

.cover {
    height: 650px;
    background: #F2BDCD;
    border: 1px solid #111;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.cover-label {
    font-family: "Cinzel Decorative", serif;
    font-size: 55px;
    font-weight: 500;
    line-height: .85;
    letter-spacing: -3px;
}


/* SHOP */

.shop {
    border-top: 1px solid #111;
    padding: 120px 6%;
}

.section-heading p,
.stories > p,
.archive > p,
.about > p {
    font-size: 12px;
    letter-spacing: 3px;
}

.section-heading h2,
.stories h2,
.archive h2 {
    font-family: "Cinzel Decorative", serif;
    font-size: 90px;
    font-weight: 500;
    line-height: .85;
    letter-spacing: -6px;
    margin-top: 25px;
}

.products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 80px;
}

.product-image {
    height: 550px;
    background: #F2BDCD;
    border: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: 500;
}

.product-type {
    margin-top: 20px;
    font-size: 11px;
    letter-spacing: 2px;
}

.product h3 {
    font-size: 25px;
    margin-top: 8px;
}

.price {
    margin-top: 10px;
}

.product button {
    margin-top: 20px;
    padding: 15px 25px;
    background: #111;
    color: white;
    border: none;
    cursor: pointer;
}


/* STORIES */

.stories {
    border-top: 1px solid #111;
    padding: 120px 6%;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 80px;
}

.story-image {
    height: 400px;
    background: #F2BDCD;
    border: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.story-grid article p {
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 15px;
}

.story-grid h3 {
    font-size: 25px;
    margin-top: 8px;
}


/* ARCHIVE */

.archive {
    border-top: 1px solid #111;
    padding: 120px 6%;
}

.archive-box {
    margin-top: 70px;
    padding: 30px;
    border: 1px solid #111;
    display: flex;
    justify-content: space-between;
    background: #F2BDCD;
}


/* ABOUT */

.about {
    border-top: 1px solid #111;
    padding: 120px 6%;
}

.about h2 {
    max-width: 1000px;
    font-family: "Cinzel Decorative", serif;
    font-size: 80px;
    font-weight: 500;
    line-height: .9;
    letter-spacing: -5px;
    margin-top: 30px;
}


/* FOOTER */

footer {
    border-top: 1px solid #111;
    padding: 40px 6%;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    line-height: 1.0;
    font-family: "Cinzel Decorative", serif;
}


/* MOBILE */

@media (max-width: 700px) {

    header {
        padding: 0 20px;
    }

    nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 75px;
        letter-spacing: -5px;
    }

    .cover {
        height: 500px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .stories h2,
    .archive h2 {
        font-size: 60px;
    }

    .about h2 {
        font-size: 55px;
    }

    footer {
        flex-direction: column;
        gap: 30px;
    }
}

/* SHOPPING BAG */

.bag-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: #FDDDE6;
    border-left: 1px solid #111;
    z-index: 1000;
    padding: 35px;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bag-panel.open {
    right: 0;
}

.bag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #111;
    padding-bottom: 20px;
}

.bag-header h2 {
    font-family: "Cinzel Decorative", serif;
    font-size: 25px;
}

.bag-header button {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.bag-items {
    flex: 1;
    padding-top: 25px;
}

.bag-items p {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.bag-total {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 20px;
}

.checkout {
    width: 100%;
    padding: 16px;
    background: #111;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
}

@media (max-width: 700px) {
    .bag-panel {
        width: 100%;
        right: -100%;
    }
}

/* BAG PANEL */

.bag-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: #FDDDE6;
    border-left: 1px solid #111;
    z-index: 1000;
    padding: 35px;
    transition: right 0.3s ease;
}

.bag-panel.open {
    right: 0;
}

.bag-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #111;
    padding-bottom: 20px;
}

.bag-top h2 {
    font-family: "Cinzel Decorative", serif;
    font-size: 24px;
}

.close-bag {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.bag-content {
    padding-top: 25px;
    font-size: 12px;
    letter-spacing: 1px;
}

.bag-item {
    border-bottom: 1px solid #111;
    padding: 20px 0;
}

.bag-item p:first-child {
    font-weight: bold;
    margin-bottom: 8px;
}

.bag-item p:last-child {
    font-size: 11px;
}

.bag-total {
    font-weight: bold;
    margin-top: 25px;
    font-size: 13px;
}

footer a {
    color: #111;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* HEADINGS */

.hero h1,
.section-heading h2,
.stories h2,
.archive h2,
.about h2,
.bag-top h2 {
    font-family: "Cinzel Decorative", serif;
    font-weight: 500;
}

.product h3,
.story-grid h3 {
    font-family: "Raleway", sans-serif;
    font-weight: 500;
}
/* HEADINGS */

.hero h1,
.section-heading h2,
.stories h2,
.archive h2,
.about h2,
.bag-top h2 {
    font-family: "Cinzel Decorative", serif;
    font-weight: 500;
}

.product h3,
.story-grid h3 {
    font-family: "Raleway", sans-serif;
    font-weight: 500;
}
/* CHECKOUT */

.checkout-page {
    display: none;
    position: fixed;
    inset: 0;
    background: #FDDDE6;
    z-index: 2000;
    overflow-y: auto;
    padding: 35px 6%;
}

.checkout-page.open {
    display: block;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #111;
    padding-bottom: 20px;
}

.checkout-header p {
    font-size: 11px;
    letter-spacing: 2px;
}

.checkout-header button {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    padding-top: 80px;
}

.checkout-form h1 {
    font-family: "Cinzel Decorative", serif;
    font-weight: 500;
    font-size: 90px;
    line-height: .9;
    margin: 20px 0 60px;
}

.checkout-label {
    font-size: 11px;
    letter-spacing: 3px;
}

.checkout-form label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 25px;
    margin-bottom: 8px;
}

.checkout-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #111;
    background: transparent;
    font-family: "Raleway", sans-serif;
}

.place-order {
    margin-top: 35px;
    padding: 17px 25px;
    background: #111;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.checkout-summary {
    background: #F2BDCD;
    border: 1px solid #111;
    padding: 30px;
    height: fit-content;
}

.checkout-items {
    margin-top: 30px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #111;
    padding: 15px 0;
    font-size: 11px;
}

.checkout-total {
    margin-top: 30px;
    font-weight: bold;
    font-size: 13px;
}

/* CHECKOUT MOBILE FIX */

.checkout-page {
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.checkout-layout {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 60px;
}

.checkout-form {
    min-width: 0;
}

.checkout-form h1 {
    font-size: clamp(55px, 15vw, 90px);
    letter-spacing: -4px;
    word-break: normal;
}

.checkout-form input {
    box-sizing: border-box;
    width: 100%;
}

.checkout-summary {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {

    .checkout-page {
        padding: 25px 25px 60px;
    }

    .checkout-layout {
        display: block;
        padding-top: 50px;
    }

    .checkout-form h1 {
        font-size: 58px;
        line-height: .9;
        margin-bottom: 50px;
    }

    .checkout-summary {
        margin-top: 50px;
    }

    .bag-panel {
        width: 100%;
        box-sizing: border-box;
    }
}

.bag-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    background: #FDDDE6;
    border: 1px solid #222;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;

    opacity: 0;
    transform: translate(-50%, -60%);
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.bag-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}


/* ADD TO BAG BUTTON */

.product button {
    font-family: "Cinzel Decorative", serif;
}