@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', Arial, sans-serif;
    color: #22122d;
    background:
        radial-gradient(circle at 10% 0%, rgba(196, 91, 255, .22), transparent 32%),
        radial-gradient(circle at 90% 20%, rgba(255, 202, 88, .18), transparent 28%),
        linear-gradient(180deg, #fff7ff 0%, #f4e9ff 45%, #fff7fb 100%);
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 430px;
    padding: 40px 18px 90px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(61, 13, 96, .98), rgba(126, 37, 174, .96), rgba(194, 89, 255, .92));
    color: #fff;
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 42px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero-blur {
    position: absolute;
    border-radius: 999px;
    filter: blur(20px);
    opacity: .8;
}

.blur-one {
    width: 260px;
    height: 260px;
    background: rgba(255, 194, 73, .35);
    top: -70px;
    left: -60px;
}

.blur-two {
    width: 280px;
    height: 280px;
    background: rgba(255, 101, 196, .28);
    right: -90px;
    bottom: -70px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 30px;
    align-items: center;
}

.hero-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(12px);
    font-weight: 700;
    font-size: .9rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.3rem);
    line-height: .95;
    letter-spacing: -3px;
    text-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.hero p {
    max-width: 540px;
    margin-top: 18px;
    color: rgba(255,255,255,.88);
    font-size: 1.06rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-btn {
    border: 0;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 18px;
    font-weight: 800;
    background: #fff;
    color: #6d1b9a;
    box-shadow: 0 18px 35px rgba(0,0,0,.18);
}

.hero-btn.ghost {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
}

.hero-plate {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255,255,255,.42), rgba(255,255,255,.12) 50%, transparent 70%);
    box-shadow: 0 30px 80px rgba(0,0,0,.18);
}

.food-item {
    position: absolute;
    display: grid;
    place-items: center;
    width: 145px;
    height: 145px;
    border-radius: 42px;
    font-size: 5rem;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 60px rgba(0,0,0,.22);
    animation: floatFood 3.4s ease-in-out infinite;
}

.food-item.burger {
    width: 185px;
    height: 185px;
    font-size: 7rem;
    z-index: 2;
}

.food-item.fries {
    right: 42px;
    top: 20px;
    width: 122px;
    height: 122px;
    font-size: 4.3rem;
    animation-delay: .4s;
}

.food-item.drink {
    left: 36px;
    bottom: 18px;
    width: 112px;
    height: 112px;
    font-size: 3.6rem;
    animation-delay: .8s;
}

@keyframes floatFood {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-18px) rotate(3deg); }
}

.categories-shell {
    position: sticky;
    top: 0;
    z-index: 15;
    max-width: 1120px;
    margin: -52px auto 28px;
    padding: 0 16px;
}

.categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(126, 37, 174, .12);
    box-shadow: 0 20px 50px rgba(80, 21, 116, .18);
    backdrop-filter: blur(18px);
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 18px;
    padding: 13px 17px;
    background: #fff;
    color: #5b2478;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(102, 35, 145, .1);
    transition: .2s ease;
}

.category-btn:hover,
.category-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #6d1b9a, #b53ae8);
    transform: translateY(-2px);
}

.container {
    max-width: 1120px;
    margin: auto;
    padding: 0 16px 90px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.section-title > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(103, 40, 143, .16);
    font-size: 1.7rem;
}

.section-title h2 {
    color: #2a1237;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.section-title p {
    color: #7d668c;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(126, 37, 174, .08);
    box-shadow: 0 16px 36px rgba(83, 33, 115, .12);
    transition: .22s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(83, 33, 115, .2);
}

.product-image {
    min-height: 142px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.85), transparent 28%),
        linear-gradient(135deg, #efe0ff, #ffdff5);
    font-size: 3.8rem;
}

.product-image span {
    filter: drop-shadow(0 12px 16px rgba(80, 21, 116, .18));
}

.product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-info small {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    color: #7a209f;
    background: #f4e7ff;
    font-weight: 800;
    font-size: .72rem;
}

.product-info h3 {
    margin-top: 8px;
    font-size: 1.07rem;
    color: #281136;
}

.product-info p {
    margin-top: 6px;
    color: #735f80;
    font-size: .86rem;
    line-height: 1.45;
}

.product-bottom {
    margin-top: auto;
    padding-top: 12px;
}

.product-bottom strong {
    display: block;
    margin-bottom: 11px;
    color: #711e9e;
    font-size: 1.12rem;
}

.product-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.quantity-box {
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: 15px;
    background: #f2e5ff;
    overflow: hidden;
}

.quantity-box button {
    width: 36px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #7420a0;
    font-size: 1.15rem;
    font-weight: 900;
}

.quantity-box span {
    min-width: 26px;
    text-align: center;
    font-weight: 900;
    color: #351248;
}

.add-cart {
    height: 40px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #6d1b9a, #b83ae9);
    box-shadow: 0 12px 24px rgba(109, 27, 154, .26);
}

.cart-floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 24px;
    color: #fff;
    font-size: 1.65rem;
    background: linear-gradient(135deg, #6d1b9a, #b83ae9);
    box-shadow: 0 20px 44px rgba(109, 27, 154, .36);
}

.cart-floating span {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ffcf37;
    color: #311042;
    font-size: .78rem;
    font-weight: 900;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(17, 7, 25, .48);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -430px;
    z-index: 40;
    width: 410px;
    max-width: 100%;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #fffaff;
    box-shadow: -24px 0 70px rgba(31, 9, 46, .24);
    transition: .28s ease;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #eadcf4;
}

.cart-header div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header h2 {
    color: #311243;
}

.cart-header button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    color: #6d1b9a;
    background: #f1e0ff;
    font-size: 1.55rem;
}

.cart-items {
    min-height: 115px;
    max-height: 235px;
    overflow-y: auto;
    padding: 10px 2px;
}

.empty-cart {
    padding: 24px 10px;
    text-align: center;
    color: #81698e;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0e5f6;
}

.cart-item h4 {
    font-size: .92rem;
    color: #2b1239;
}

.cart-item small {
    color: #7c6687;
}

.cart-item button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 11px;
    color: #a31344;
    background: #ffe7ef;
    font-weight: 900;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid #eadcf4;
    border-bottom: 1px solid #eadcf4;
}

.cart-total span {
    color: #725981;
    font-weight: 800;
}

.cart-total strong {
    color: #6d1b9a;
    font-size: 1.25rem;
}

.checkout-form {
    overflow-y: auto;
    padding-top: 14px;
}

.checkout-form h3 {
    margin: 12px 0 10px;
    color: #311243;
    font-size: .98rem;
}

.checkout-form label {
    display: block;
    margin-bottom: 10px;
    color: #51315f;
    font-size: .82rem;
    font-weight: 800;
}

.checkout-form input[type="text"] {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #e4d4ef;
    outline: 0;
    border-radius: 15px;
    padding: 13px 14px;
    background: #fff;
    color: #2b1239;
}

.payment-options {
    display: grid;
    gap: 9px;
}

.payment-card {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 17px;
    background: #f7edff;
    border: 1px solid #ead9f7;
}

.payment-card input {
    accent-color: #7b20a6;
}

.payment-card span {
    display: grid;
    gap: 2px;
}

.payment-card small {
    color: #7b6488;
}

.change-box {
    display: none !important;
}

.change-box.active {
    display: block !important;
}

.pix-alert {
    margin: 8px 0 12px;
    padding: 12px;
    border-radius: 17px;
    background: #f2e5ff;
    color: #4d176a;
    font-size: .83rem;
}

.pix-alert p {
    margin-top: 4px;
    color: #725280;
}

.pix-alert.hide {
    display: none;
}

.finish-order {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 15px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #22a447, #35c96c);
    box-shadow: 0 14px 30px rgba(34, 164, 71, .28);
}

@media (max-width: 820px) {
    .hero {
        min-height: auto;
        padding-bottom: 86px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-plate {
        min-height: 250px;
    }

    .food-item.burger {
        width: 150px;
        height: 150px;
        font-size: 5.6rem;
    }

    .food-item.fries {
        right: 80px;
    }

    .food-item.drink {
        left: 80px;
    }

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

@media (max-width: 560px) {
    .hero {
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
        padding-top: 28px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-plate {
        min-height: 210px;
    }

    .food-item.burger {
        width: 135px;
        height: 135px;
        font-size: 5rem;
    }

    .food-item.fries {
        width: 90px;
        height: 90px;
        font-size: 3.2rem;
        right: 22px;
    }

    .food-item.drink {
        width: 86px;
        height: 86px;
        font-size: 2.8rem;
        left: 18px;
    }

    .categories-shell {
        margin-top: -42px;
    }

    .categories {
        border-radius: 22px;
        padding: 10px;
    }

    .category-btn {
        padding: 11px 14px;
        border-radius: 15px;
        font-size: .86rem;
    }

    .section-title {
        align-items: flex-start;
    }

    .product-card {
        grid-template-columns: 86px 1fr;
        gap: 12px;
        padding: 11px;
        border-radius: 22px;
    }

    .product-image {
        min-height: 122px;
        font-size: 3rem;
        border-radius: 19px;
    }

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

    .quantity-box {
        width: 100%;
        justify-content: space-between;
    }

    .quantity-box button {
        flex: 1;
    }

    .add-cart {
        width: 100%;
    }

    .cart-floating {
        right: 16px;
        bottom: 16px;
    }
}

.group-title {
    grid-column: 1 / -1;
    margin: 26px 0 4px;
}

.group-title h2 {
    font-size: 1.7rem;
    color: #351247;
    padding-left: 14px;
    border-left: 6px solid #8e24aa;
}