/* css/cupcake-bloom-box.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff8fb;
    color: #35152b;
}

.hero {
    min-height: 82vh;
    padding: 28px 7%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(135deg, #702459, #e36aa5 55%, #ffd36e);
    background-size: 42px 42px, 42px 42px, cover;
    color: #ffffff;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    font-size: 42px;
}

.brand h1 {
    font-size: 26px;
}

.brand p {
    color: #ffe6f2;
}

.nav-btn,
.hero-btn {
    background: #ffffff;
    color: #9c2f72;
    text-decoration: none;
    font-weight: 900;
    padding: 13px 20px;
    border-radius: 999px;
}

.cupcake-wall-hero {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr 260px;
    gap: 30px;
    align-items: center;
    padding: 62px 0 38px;
}

.eyebrow {
    color: #fff0b8;
    font-weight: 900;
    letter-spacing: 1.5px;
    font-size: 13px;
}

.wall-title h2 {
    font-size: clamp(34px, 4.8vw, 62px);
    line-height: 1.04;
    margin: 16px 0 28px;
}

.cupcake-wall {
    background: rgba(255, 255, 255, 0.24);
    border: 10px solid rgba(255, 255, 255, 0.35);
    border-radius: 36px;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    box-shadow: 0 28px 70px rgba(80, 20, 70, 0.28);
}

.cupcake-tile {
    background: #ffffff;
    color: #9c2f72;
    border-radius: 24px;
    min-height: 125px;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(80, 20, 70, 0.16);
}

.cupcake-tile span {
    display: block;
    font-size: 13px;
    color: #70435f;
}

.hero-note {
    background: #ffffff;
    color: #702459;
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 22px 46px rgba(80, 20, 70, 0.22);
}

.hero-note strong {
    font-size: 24px;
}

.hero-note p {
    margin-top: 12px;
    color: #76506f;
    line-height: 1.6;
}

.intro {
    text-align: center;
    padding: 52px 7% 24px;
}

.intro span {
    color: #c74489;
    font-weight: 900;
    letter-spacing: 1.5px;
    font-size: 13px;
}

.intro h2 {
    margin-top: 8px;
    font-size: 34px;
    color: #9c2f72;
}

.intro p {
    margin-top: 8px;
    color: #7a6172;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px;
    padding: 20px 7% 72px;
    align-items: start;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(199, 68, 137, 0.12);
    box-shadow: 0 14px 34px rgba(199, 68, 137, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-body p {
    color: #725c6c;
    font-size: 14px;
    line-height: 1.45;
    flex: 1;
}

.price {
    font-size: 20px;
    color: #c74489;
    font-weight: 900;
    margin: 16px 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #edc2df;
    border-radius: 999px;
    overflow: hidden;
}

.qty-control button {
    width: 34px;
    height: 34px;
    border: none;
    background: #ffe7f5;
    color: #9c2f72;
    font-weight: 900;
    cursor: pointer;
}

.qty-control span {
    width: 34px;
    text-align: center;
    font-weight: 900;
}

.add-btn {
    flex: 1;
    border: none;
    background: #9c2f72;
    color: #ffffff;
    border-radius: 999px;
    padding: 11px;
    font-weight: 900;
    cursor: pointer;
}

.cart-panel {
    position: sticky;
    top: 20px;
    background: #35152b;
    color: #ffffff;
    border-radius: 26px;
    padding: 22px;
}

.cart-panel h3 {
    color: #fff0b8;
    margin-bottom: 16px;
}

.empty-cart {
    color: #edd2e6;
    font-size: 14px;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 14px;
}

.cart-summary {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 16px;
}

.cart-summary div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-btn {
    width: 100%;
    margin-top: 12px;
    border: none;
    background: #fff0b8;
    color: #35152b;
    padding: 14px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.buildframe-float {
    position: fixed;
    right: 18px;
    bottom: 58px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #062f3a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.65);
    z-index: 50;
}

.buildframe-float img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.buildframe-footer {
    background: #062f3a;
    color: #eaffff;
    text-align: center;
    padding: 14px 20px;
    font-size: 14px;
}

.buildframe-footer a {
    color: #7ef6ff;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .cupcake-wall-hero {
        grid-template-columns: 1fr 1fr;
    }

    .hero-note {
        grid-column: 1 / -1;
    }

    .products {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .cart-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .hero {
        padding: 22px 5%;
    }

    .topbar,
    .cupcake-wall-hero {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cupcake-wall {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .shop-layout {
        padding: 20px 5% 72px;
    }
}