:root {
    --bg: #FAF4F1;
    --text: #2a2a2a;
    --cat: #FFD0D0;
    --catText: #7A2C39;
    --primary: #E37F90;
    --desc: #000;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 18px 70px
}


/* ================= MELTY CATEGORY BAR ================= */

.catbar {
    position: relative;
    margin: 0 auto 44px;
    min-height: 120px;
    margin-top: 112px;
}

.catbar-bg {
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 18px 26px rgb(255, 254, 254))
}

.catbar-svg {
    width: 100%;
    height: 120px;
    display: block
}

.tabs {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 14px 22px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch
}

.tabs::-webkit-scrollbar {
    display: none
}

.tab-btn {
    border: 0;
    background: transparent;
    padding: 10px 16px;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: .4px;
    color: var(--catText);
    transition: transform .18s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.tab-btn:hover {
    transform: translateY(-1px)
}

.tab-btn.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 9px 12px rgba(227, 127, 144, .25)
}


/* ================= PRODUCTS GRID ================= */

.grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 0 20px
}

.cat-panel {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 46px;
}

.cat-panel.is-active {
    display: grid
}

.card-menu {
    text-align: center
}

.product-card {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    overflow: visible;
    background: transparent;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .09));
    transition: transform .35s ease, filter .35s ease;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(0 28px 30px rgba(0, 0, 0, .13))
}


/* blob holder */

.blob-svg {
    position: absolute;
    inset: 28px;
    width: calc(100% - 56px);
    height: calc(100% - 56px);
    z-index: 0;
    pointer-events: none;
    animation: blobFloat 5.2s ease-in-out infinite;
    animation-delay: var(--floatDelay, 0s);
    transform-origin: 50% 52%;
}

@keyframes blobFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1)
    }
    50% {
        transform: translateY(-8px) rotate(-1.4deg) scale(1.015)
    }
}

.product-card::after {
    content: "";
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 62%);
    opacity: 0;
    transform: scale(.92);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::after {
    opacity: 1;
    transform: scale(1.05)
}

.image-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .12));
    transform: translateY(-14px);
    background: none !important;
}

.product-label-menu {
    font-weight: 800;
    font-size: 1.8rem;
    color: #e37f90;
    z-index: 5;
    pointer-events: none;
    position: absolute;
    top: 15rem;
}

.product-desc {
    margin-top: 46px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    font-size: .92rem;
    line-height: 1.35;
    color: var(--desc);
}

@media (max-width:980px) {
    .cat-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 768px) {
    .catbar {
        width: 100%;
        min-height: 150px !important;
        margin-left: auto;
        margin-right: auto;
        margin-top: 70px;
    }
    .tabs {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        padding: 12px 14px 10px !important;
        gap: 12px !important;
        scrollbar-width: thin !important;
        transform: rotateX(180deg);
    }
    .tabs>* {
        flex: 0 0 auto;
        transform: rotateX(180deg);
    }
    .tabs::-webkit-scrollbar {
        height: 4px !important;
        display: block !important;
    }
    .tabs::-webkit-scrollbar-thumb {
        background: rgba(252, 203, 211, 0.35);
        border-radius: 999px;
    }
    .tabs::-webkit-scrollbar-track {
        background: rgba(250, 225, 225, 0.06);
        border-radius: 999px;
    }
    .tab-btn {
        font-size: 14px !important;
        padding: 10px 14px !important;
        line-height: 1.1;
    }
    .grid {
        margin-left: auto;
        margin-right: auto;
    }
    .cat-panel {
        justify-items: center;
    }
}

@media (max-width: 420px) {
    .cat-panel {
        grid-template-columns: 1fr !important;
        gap: 42px 0 !important;
    }
}

@media (max-width: 520px) {
    .cat-panel {
        grid-template-columns: 1fr !important;
        gap: 42px 0 !important;
        justify-items: center;
        margin-top: -86px;
    }
}