/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Poppins", sans-serif;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(255,183,77,.12),
            transparent 25%
        ),
        #f8f2e7;

    color: #171717;

    padding-bottom: 115px;
}


button,
a {
    font-family: inherit;
}


button {
    border: none;
    cursor: pointer;
}


a {
    text-decoration: none;
    color: inherit;
}


/* =====================================================
   HEADER
===================================================== */

.top-header {
    width: 100%;

    background: rgba(255,255,255,.94);

    backdrop-filter: blur(12px);

    position: sticky;

    top: 0;

    z-index: 1000;

    border-bottom:
        1px solid rgba(100,50,0,.08);
}


.header-inner {
    max-width: 1200px;

    min-height: 100px;

    margin: auto;

    padding: 10px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.brand img {
    width: 250px;
    height: 82px;

    object-fit: contain;

    display: block;
}


.notification-btn {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: white;

    color: #5b250e;

    font-size: 24px;

    position: relative;

    box-shadow:
        0 8px 25px rgba(0,0,0,.08);

    transition: .25s ease;
}


.notification-btn:hover {
    transform: translateY(-3px);
}


.notification-dot {
    width: 8px;
    height: 8px;

    background: #e52525;

    border-radius: 50%;

    position: absolute;

    top: 13px;
    right: 13px;

    border: 2px solid white;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    max-width: 1140px;

    height: 390px;

    margin: 0 auto 24px;

    border-radius: 28px;

    overflow: hidden;

    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(20,8,2,.98) 0%,
            rgba(35,13,3,.90) 42%,
            rgba(35,13,3,.20) 80%
        ),
        url("Img/hero-sate.jpg");

    background-size: cover;

    background-position: center;

    box-shadow:
        0 15px 40px rgba(67,32,7,.18);
}


.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 75% 40%,
            transparent,
            rgba(0,0,0,.25)
        );
}


.hero-content {
    position: relative;

    z-index: 2;

    padding: 70px 60px;

    color: white;
}


.hero-small {
    display: block;

    color: #ffd229;

    font-size: 21px;

    font-weight: 600;

    margin-bottom: 4px;
}


.hero h1 {
    font-family: Georgia, serif;

    font-size: clamp(48px,6vw,76px);

    line-height: .95;

    letter-spacing: -2px;

    margin-bottom: 15px;
}


.hero h1 strong {
    display: block;

    color: #f15a13;
}


.hero p {
    font-size: 19px;

    line-height: 1.45;

    margin-bottom: 24px;
}


.hero-button {
    display: inline-flex;

    align-items: center;

    gap: 18px;

    background:
        linear-gradient(
            135deg,
            #ffd331,
            #f4a91c
        );

    color: #1a1207;

    padding: 11px 12px 11px 25px;

    border-radius: 50px;

    font-size: 17px;

    font-weight: 700;

    box-shadow:
        0 8px 20px rgba(0,0,0,.2);

    transition: .25s ease;
}


.hero-button:hover {
    transform: translateY(-3px);
}


.hero-button span {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #8b350d;

    color: white;
}


/* =====================================================
   CATEGORY
===================================================== */

.category-section {
    max-width: 1140px;

    margin: 0 auto 25px;

    overflow: hidden;
}


.category-scroll {
    display: flex;

    gap: 12px;

    overflow-x: auto;

    padding: 5px;

    scrollbar-width: none;
}


.category-scroll::-webkit-scrollbar {
    display: none;
}


.category {
    min-width: 140px;

    height: 64px;

    border-radius: 18px;

    background: rgba(255,255,255,.88);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    color: #321609;

    font-weight: 600;

    box-shadow:
        0 7px 20px rgba(80,35,5,.08);

    transition: .25s ease;
}


.category i {
    font-size: 22px;
}


.category:hover {
    transform: translateY(-3px);
}


.category.active {
    color: white;

    background:
        linear-gradient(
            135deg,
            #c83f0b,
            #ed5b0e
        );

    box-shadow:
        0 10px 25px rgba(201,61,9,.25);
}


/* =====================================================
   MENU SECTION
===================================================== */

.menu-section {
    max-width: 1140px;

    margin: 0 auto 28px;

    padding: 24px 22px 25px;

    border-radius: 28px;

    background: rgba(255,255,255,.78);

    border:
        1px solid rgba(120,70,20,.07);

    box-shadow:
        0 8px 30px rgba(77,40,10,.07);
}


.section-heading {
    display: flex;

    align-items: center;

    gap: 17px;

    margin-bottom: 18px;
}


.section-number {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #f15b0c,
            #ff7b17
        );

    color: white;

    font-size: 30px;

    font-weight: 700;
}


.section-title {
    flex: 1;
}


.section-title h2 {
    font-size: 27px;

    line-height: 1.1;

    color: #10131d;
}


.section-title p {
    margin-top: 3px;

    color: #777;

    font-size: 15px;
}


.see-all {
    display: flex;

    align-items: center;

    gap: 12px;

    background:
        linear-gradient(
            135deg,
            #ffd44a,
            #f8b927
        );

    color: #28190a;

    border-radius: 50px;

    padding: 12px 14px 12px 20px;

    font-weight: 700;

    white-space: nowrap;

    transition: .25s ease;
}


.see-all:hover {
    transform: translateX(3px);
}


.see-all i {
    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #87330d;

    color: white;
}


/* =====================================================
   PRODUCT GRID
===================================================== */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 12px;
}


.product-card {
    background: white;

    border-radius: 18px;

    overflow: hidden;

    position: relative;

    box-shadow:
        0 5px 17px rgba(0,0,0,.07);

    transition: .25s ease;
}


.product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 25px rgba(0,0,0,.12);
}


/* =====================================================
   IMAGE
===================================================== */

.product-image {
    width: 100%;

    height: 135px;

    position: relative;

    overflow: hidden;

    background: #eee;
}


.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: .4s ease;
}


.product-card:hover
.product-image img {
    transform: scale(1.06);
}


/* =====================================================
   FAVORITE
===================================================== */

.favorite {
    position: absolute;

    top: 9px;
    right: 9px;

    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,.92);

    color: #8e2f0b;

    box-shadow:
        0 3px 10px rgba(0,0,0,.1);
}


/* =====================================================
   PRODUCT CONTENT
===================================================== */

.product-content {
    min-height: 105px;

    padding: 10px 13px 13px;

    position: relative;
}


.product-content h3 {
    font-size: 16px;

    line-height: 1.25;

    min-height: 40px;

    padding-right: 35px;
}


.price {
    margin-top: 5px;

    color: #e84b08;

    font-size: 20px;

    font-weight: 800;
}


.unit {
    color: #777;

    font-size: 12px;
}


.add-btn {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #f04d08,
            #e83b06
        );

    color: white;

    position: absolute;

    right: 11px;
    bottom: 12px;

    font-size: 17px;

    transition: .2s ease;
}


.add-btn:hover {
    transform: scale(1.1);
}


.add-btn.clicked {
    transform: scale(1.2);
}


/* =====================================================
   CART
===================================================== */

.cart-floating {
    position: fixed;

    right: 25px;
    bottom: 95px;

    z-index: 1500;

    min-width: 300px;

    padding: 12px 15px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #4d1b08,
            #762a09
        );

    color: white;

    display: flex;

    align-items: center;

    gap: 12px;

    box-shadow:
        0 12px 30px rgba(70,25,3,.25);

    transform: translateY(130px);

    opacity: 0;

    pointer-events: none;

    transition: .35s ease;
}


.cart-floating.show {
    transform: translateY(0);

    opacity: 1;

    pointer-events: auto;
}


.cart-icon {
    width: 43px;
    height: 43px;

    border-radius: 12px;

    background: #f4510c;

    display: grid;

    place-items: center;

    position: relative;
}


.cart-icon span {
    position: absolute;

    top: -7px;
    right: -7px;

    min-width: 20px;

    height: 20px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #ffd329;

    color: #4b1c07;

    font-size: 11px;

    font-weight: 800;
}


.cart-info {
    flex: 1;

    display: flex;

    flex-direction: column;
}


.cart-info small {
    font-size: 10px;

    opacity: .7;
}


.cart-info strong {
    font-size: 15px;
}


#cartButton {
    background: #ffd13a;

    color: #341605;

    padding: 9px 13px;

    border-radius: 12px;

    font-weight: 700;
}


/* =====================================================
   BOTTOM NAVIGATION
===================================================== */

.bottom-nav {
    position: fixed;

    left: 50%;

    bottom: 12px;

    transform: translateX(-50%);

    width: min(95%,1140px);

    height: 80px;

    padding: 7px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #4a1806,
            #722807
        );

    display: grid;

    grid-template-columns:
        repeat(5,1fr);

    z-index: 2000;

    box-shadow:
        0 15px 40px rgba(54,20,3,.3);
}


.nav-item {
    color: rgba(255,255,255,.95);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 4px;

    border-radius: 22px;

    font-size: 12px;

    transition: .25s ease;
}


.nav-item i {
    font-size: 22px;
}


.nav-item:hover {
    background: rgba(255,255,255,.08);

    transform: translateY(-2px);
}


/* AKTIF SATE */

.nav-item.active-sate {
    background:
        rgba(106,40,7,.9);

    color: #ffd21c;
}


.nav-item.active-sate i {
    color: #ffd21c;
}


/* =====================================================
   TOAST
===================================================== */

.toast {
    position: fixed;

    top: 110px;

    right: 25px;

    z-index: 3000;

    background: white;

    border-radius: 15px;

    padding: 13px 17px;

    display: flex;

    align-items: center;

    gap: 12px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.15);

    transform: translateX(130%);

    transition: .35s ease;
}


.toast.show {
    transform: translateX(0);
}


.toast-icon {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #e94b09;

    color: white;

    display: grid;

    place-items: center;
}


.toast strong,
.toast span {
    display: block;
}


.toast strong {
    font-size: 14px;
}


.toast span {
    color: #777;

    font-size: 12px;
}


/* =====================================================
   FILTER
===================================================== */

.product-card.hidden {
    display: none;
}


.menu-section.hidden {
    display: none;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .header-inner {
        min-height: 82px;

        padding: 8px 20px;
    }


    .brand img {
        width: 205px;
        height: 65px;
    }


    .hero {
        margin-left: 18px;
        margin-right: 18px;

        height: 350px;
    }


    .hero-content {
        padding: 60px 40px;
    }


    .product-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    body {
        padding-bottom: 100px;
    }


    /* HEADER */

    .header-inner {
        min-height: 75px;

        padding: 5px 15px;
    }


    .brand img {
        width: 170px;
        height: 58px;
    }


    .notification-btn {
        width: 46px;
        height: 46px;

        font-size: 19px;
    }


    /* HERO */

    .hero {
        height: 315px;

        margin:
            8px 12px 18px;

        border-radius: 22px;

        background-position:
            63% center;
    }


    .hero-content {
        padding:
            45px 25px;
    }


    .hero-small {
        font-size: 14px;
    }


    .hero h1 {
        font-size: 46px;
    }


    .hero p {
        font-size: 14px;
    }


    .hero-button {
        padding:
            8px 9px 8px 18px;

        font-size: 14px;
    }


    .hero-button span {
        width: 35px;
        height: 35px;
    }


    /* CATEGORY */

    .category-section {
        margin-bottom: 15px;
    }


    .category-scroll {
        padding-left: 12px;
        padding-right: 12px;
    }


    .category {
        min-width: 105px;

        height: 57px;

        border-radius: 16px;

        font-size: 13px;
    }


    .category i {
        font-size: 17px;
    }


    /* SECTION */

    .menu-section {
        margin:
            0 12px 17px;

        padding:
            17px 12px 15px;

        border-radius: 22px;
    }


    .section-heading {
        gap: 10px;

        flex-wrap: wrap;
    }


    .section-number {
        width: 46px;
        height: 46px;

        flex-basis: 46px;

        font-size: 23px;
    }


    .section-title {
        min-width:
            calc(100% - 65px);
    }


    .section-title h2 {
        font-size: 21px;
    }


    .section-title p {
        font-size: 11px;
    }


    .see-all {
        margin-left: auto;

        padding:
            8px 9px 8px 13px;

        font-size: 11px;

        gap: 7px;
    }


    .see-all i {
        width: 25px;
        height: 25px;
    }


    /* GRID */

    .product-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: 8px;
    }


    .product-image {
        height: 105px;
    }


    .product-content {
        padding:
            8px 9px 11px;

        min-height: 103px;
    }


    .product-content h3 {
        font-size: 13px;

        min-height: 34px;
    }


    .price {
        font-size: 17px;
    }


    .unit {
        font-size: 10px;
    }


    .add-btn {
        width: 33px;
        height: 33px;

        right: 8px;
        bottom: 9px;
    }


    .favorite {
        width: 27px;
        height: 27px;

        font-size: 11px;
    }


    /* CART */

    .cart-floating {
        right: 12px;
        left: 12px;

        bottom: 85px;

        min-width: unset;
    }


    /* BOTTOM NAV */

    .bottom-nav {
        width:
            calc(100% - 20px);

        height: 68px;

        bottom: 7px;

        border-radius: 22px;
    }


    .nav-item {
        font-size: 9px;
    }


    .nav-item i {
        font-size: 18px;
    }


    /* TOAST */

    .toast {
        left: 12px;
        right: 12px;

        top: 90px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 39px;
    }


    .category {
        min-width: 92px;
    }


    .section-title h2 {
        font-size: 18px;
    }


    .product-content h3 {
        font-size: 12px;
    }


    .price {
        font-size: 15px;
    }


    .nav-item span {
        font-size: 8px;
    }

}