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

html{
    scroll-behavior: smooth;
}

body{
    font-family: Arial, sans-serif;
    background: #fffaf6;
    color: #2b1d18;
    line-height: 1.6;
    overflow-x: hidden;
}

img{
    max-width: 100%;
    display: block;
}

/* Navbar */
.navbar{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 8%;
    position: relative;
}

.logo{
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.nav-menu{
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.nav-links a{
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

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

.cart-link{
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
}

#cart-count{
    display: inline-block;
    min-width: 24px;
    text-align: center;
    margin-left: 8px;
    background: #d4a373;
    color: white;
    border-radius: 999px;
    padding: 2px 8px;
}

/* Toggle button */
.menu-toggle{
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.dark-toggle{
    color: #2b1d18;
}

/* Light navbar */
.light-nav{
    background: white;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.dark-logo{
    color: #2b1d18;
}

.dark-links a{
    color: #2b1d18;
}

.dark-cart{
    color: #2b1d18;
    border: 1px solid rgba(43,29,24,0.15);
}

/* Mobile navbar */
@media (max-width: 768px){
    .menu-toggle{
        display: block;
    }

    .nav-menu{
        display: none;
        position: absolute;
        top: 100%;
        right: 8%;
        width: 260px;
        background: rgba(43, 29, 24, 0.96);
        border-radius: 20px;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 12px 30px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .nav-menu.active{
        display: flex;
    }

    .nav-links{
        width: 100%;
        flex-direction: column;
        gap: 14px;
    }

    .nav-links a{
        color: white;
    }

    .cart-link{
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .dark-links a{
        color: white;
    }

    .dark-cart{
        color: white;
        border: 1px solid rgba(255,255,255,0.3);
    }

    .light-nav .nav-menu{
        background: #fff7f2;
    }

    .light-nav .dark-links a{
        color: #2b1d18;
    }

    .light-nav .dark-cart{
        color: #2b1d18;
        border: 1px solid rgba(43,29,24,0.15);
    }
}

.dark-logo{
    color: #2b1d18;
}

.dark-links a{
    color: #2b1d18;
}

.dark-cart{
    color: #2b1d18;
    border: 1px solid rgba(43,29,24,0.15);
}

/* Hero */
.hero{
    min-height: 100vh;
    background: url("backdrop.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.hero-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    padding: 40px 8%;
    color: white;
}

.eyebrow{
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.hero-content h1{
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p{
    font-size: clamp(1rem, 2vw, 1.1rem);
    max-width: 620px;
    margin-bottom: 30px;
}

.btn{
    display: inline-block;
    text-decoration: none;
    background: #d4a373;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.btn:hover{
    background: #b08968;
}

/* Sections */
.section{
    padding: 80px 8%;
}

.section h2{
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 18px;
}

.intro p{
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #6d5a52;
}

/* Display image section */
.display-section{
    padding: 20px 8% 60px;
}

.display-section img{
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Products */
.product-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.card{
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.card img{
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: 0.4s;
}

.card:hover img{
    transform: scale(1.05);
}

.card-body{
    padding: 22px;
}

.card-body h3{
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.card-body p{
    color: #6f5f58;
    margin-bottom: 18px;
}

.product-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price{
    font-size: 1.2rem;
    font-weight: 700;
    color: #b08968;
}

.card button{
    border: none;
    background: #d4a373;
    color: white;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover{
    background: #b08968;
}

/* Checkout */
.checkout-page{
    background: linear-gradient(to bottom, #fff8f5, #fdf1eb);
    color: #5c3d32;
}

.cozy-nav{
    background: rgba(255, 250, 246, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f1ddd2;
}

.checkout-section{
    padding-top: 60px;
}

.checkout-subtitle{
    text-align: center;
    font-family: "Brush Script MT", cursive;
    font-size: 2rem;
    color: #c9907e;
    margin-bottom: 8px;
}

.checkout-title{
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #7a4f35;
    margin-bottom: 35px;
}

.cozy-panel,
.cozy-form{
    background: #fffaf8;
    border: 1px solid #f1dfd6;
    border-radius: 28px;
    box-shadow: 0 14px 35px rgba(181, 138, 117, 0.12);
}

.cozy-panel h2,
.cozy-form h2{
    color: #7a4f35;
    font-family: "Brush Script MT", cursive;
    font-size: 2rem;
    margin-bottom: 18px;
}

.checkout-layout{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.cart-panel,
.checkout-form{
    padding: 28px;
}

.cart-item{
    background: #fff3ee;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #f2ddd4;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.cart-item:last-child{
    margin-bottom: 0;
}

.cart-item-info h4{
    color: #6c4638;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.cart-item-info p{
    color: #9b7463;
}

.cart-controls{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-summary{
    margin-top: 16px;
    padding: 18px 20px;
    background: #fff0ea;
    border-radius: 18px;
    border: 1px solid #f1d8cc;
    color: #b06f57;
    font-weight: 700;
}

.checkout-form{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea{
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 1rem;
    outline: none;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus{
    border-color: #d8a58d;
    box-shadow: 0 0 0 4px rgba(216, 165, 141, 0.15);
}

.full-btn{
    width: 100%;
    margin-top: 8px;
}

.qty-btn,
.remove-btn{
    border: none;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 700;
}

.qty-btn{
    width: 32px;
    height: 32px;
    background: #f6ddd1;
    color: #7a4f35;
}

.remove-btn{
    background: #8b5e4b;
    color: white;
    padding: 9px 14px;
}

.remove-btn:hover{
    background: #744a39;
}

.order-message{
    margin-top: 16px;
    text-align: center;
    color: #b26f59;
    font-family: "Brush Script MT", cursive;
    font-size: 1.6rem;
}

/* Cute popup */
.cute-popup{
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 320px;
    background: #fff0f5;
    color: #7a4f35;
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    font-family: "Brush Script MT", cursive;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
    z-index: 1000;
}

.cute-popup.show{
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer{
    text-align: center;
    padding: 26px;
    background: #2b1d18;
    color: #f5e7da;
}

/* Large tablets */
@media (max-width: 992px){
    .product-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-layout{
        grid-template-columns: 1fr;
    }

    .display-section img{
        height: 400px;
    }
}

/* Tablets and phones */
@media (max-width: 768px){
    .navbar{
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .nav-links{
        justify-content: center;
        gap: 16px;
    }

    .hero{
        background-position: center;
    }

    .hero-content{
        align-items: center;
        text-align: center;
        padding: 60px 8%;
    }

    .btn{
        width: 100%;
        max-width: 260px;
    }

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

    .product-row{
        flex-direction: column;
        align-items: flex-start;
    }

    .display-section img{
        height: 320px;
    }

    .cart-item{
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-controls{
        width: 100%;
    }

    .cute-popup{
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 480px){
    .navbar{
        padding: 18px 5%;
    }

    .hero-content{
        padding: 40px 5%;
    }

    .section{
        padding: 60px 5%;
    }

    .display-section{
        padding: 10px 5% 50px;
    }

    .card-body{
        padding: 18px;
    }

    .checkout-form,
    .cart-panel{
        padding: 20px;
    }

    .checkout-subtitle{
        font-size: 1.5rem;
    }

    .cozy-panel h2,
    .cozy-form h2{
        font-size: 1.6rem;
    }
}