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

:root {
    --dark: #171717;
    --dark-light: #242424;
    --orange: #f47721;
    --orange-dark: #db5e0c;
    --white: #ffffff;
    --gray: #777777;
    --light: #f7f7f7;
    --border: #eeeeee;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* NAVBAR */

.navbar {
    height: 75px;
    padding: 0 8%;
    background: var(--dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 23px;
    font-weight: 800;
}

.logo-icon {
    margin-right: 7px;
}

.accent {
    color: var(--orange);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    color: #ddd;
    transition: .3s;
}

.nav-link:hover {
    color: var(--orange);
}

.cart-button {
    position: relative;
    background: var(--orange);
    color: white;
    border: none;
    padding: 11px 17px;
    border-radius: 9px;
    font-weight: 700;
    transition: .3s;
}

.cart-button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.cart-count {
    background: white;
    color: var(--orange-dark);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 4px;
}

/* HERO */

.hero {
    background: var(--dark);
    color: white;
    min-height: 510px;
    padding: 75px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
}

.hero-content {
    max-width: 540px;
    animation: fadeUp .8s ease both;
}

.hero-label,
.section-label {
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.08;
    margin: 20px 0;
}

.hero h1 span {
    color: var(--orange);
}

.hero-content p {
    color: #c4c4c4;
    max-width: 430px;
    line-height: 1.8;
    font-size: 15px;
}

.primary-button {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    background: var(--orange);
    padding: 14px 23px;
    border-radius: 8px;
    margin-top: 30px;
    font-weight: 700;
    transition: .3s;
}

.primary-button:hover {
    background: var(--orange-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px #f4772140;
}

.primary-button span {
    font-size: 20px;
}

.hero-image {
    position: relative;
    width: 350px;
    height: 350px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.hero-circle {
    position: absolute;
    width: 290px;
    height: 290px;
    background: var(--orange);
    border-radius: 50%;
    opacity: .18;
    animation: pulse 3s infinite;
}

.hero-food {
    position: relative;
    width: 280px;
    height: 280px;
    animation: floatFood 4s ease-in-out infinite;
}

.hero-food img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 20px 20px #0008);
}

.floating-label {
    position: absolute;
    bottom: 30px;
    right: -5px;
    background: white;
    color: var(--dark);
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    transform: rotate(-5deg);
}

/* MENU */

.menu-section,
.cart-section {
    max-width: 1150px;
    margin: auto;
    padding: 85px 25px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    margin-top: 8px;
}

.section-heading p {
    color: var(--gray);
    font-size: 13px;
}

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

.menu-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: .35s;
    animation: fadeUp .6s ease both;
}

.menu-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 15px 35px #00000010;
}

.menu-image {
    height: 175px;
    overflow: hidden;
    background: #fff0e5;
    display: grid;
    place-items: center;
    font-size: 85px;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.menu-card:hover .menu-image img {
    transform: scale(1.08);
}

.menu-info {
    padding: 20px;
}

.menu-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    margin-bottom: 8px;
}

.menu-info p {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.6;
    min-height: 38px;
}

.menu-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}

.menu-price {
    color: var(--orange-dark);
    font-weight: 800;
    font-size: 15px;
}

.add-button {
    width: 37px;
    height: 37px;
    border: none;
    border-radius: 9px;
    background: var(--dark);
    color: white;
    font-size: 22px;
    transition: .3s;
}

.add-button:hover {
    background: var(--orange);
    transform: rotate(90deg);
}

/* CART */

.cart-section {
    padding-top: 20px;
}

.cart-list {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border);
}

.empty-cart {
    text-align: center;
    padding: 35px;
    color: var(--gray);
}

.empty-cart span {
    font-size: 45px;
    display: block;
    margin-bottom: 12px;
}

.empty-cart p {
    font-weight: 700;
    color: var(--dark);
}

.empty-cart small {
    display: block;
    margin-top: 6px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeUp .3s ease both;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 12px;
    color: var(--gray);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-control button {
    width: 29px;
    height: 29px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 7px;
    transition: .2s;
}

.quantity-control button:hover {
    background: var(--orange);
}

.quantity-control span {
    font-weight: 700;
    min-width: 15px;
    text-align: center;
}

.cart-footer {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    margin-top: 15px;
    padding: 22px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cart-total strong {
    color: var(--orange-dark);
    font-size: 20px;
}

.checkout-button,
.submit-button {
    width: 100%;
    padding: 16px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 9px;
    font-weight: 800;
    transition: .3s;
}

.checkout-button:hover,
.submit-button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

/* MODAL */

.modal {
    position: fixed;
    inset: 0;
    background: #000b;
    z-index: 100;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    overflow-y: auto;
}

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

.modal-content {
    width: 100%;
    max-width: 510px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    padding: 30px;
    border-radius: 17px;
    position: relative;
    transform: translateY(30px) scale(.96);
    transition: .3s;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #eee;
    font-size: 22px;
}

.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    margin-top: 8px;
}

.modal-description {
    color: var(--gray);
    font-size: 13px;
    margin: 7px 0 20px;
}

/* FORM */

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 8px;
    outline: none;
    transition: .2s;
    font-size: 13px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 75px;
}

[hidden] {
    display: none !important;
}

/* QRIS */

.qris-section {
    background: #fff8f2;
    border: 1px dashed #f3a46f;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.qris-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.qris-image {
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: white;
    border-radius: 8px;
}

.qris-section p {
    color: var(--gray);
    font-size: 12px;
    margin: 10px 0;
}

.payment-instruction {
    margin-top: 15px;
    padding: 15px;
    background: #fff0e5;
    border-radius: 10px;
    text-align: left;
    border: 1px solid #f5d1b8;
}

.payment-instruction strong {
    display: block;
    color: #db5e0c;
    font-size: 13px;
    margin-bottom: 7px;
}

.payment-instruction p {
    color: #666;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

/* PRICE */

.price-details {
    padding: 18px;
    background: #f7f7f7;
    border-radius: 10px;
    margin: 20px 0;
}

.price-details > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.price-details > div:last-child {
    margin-bottom: 0;
}

.final-total {
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 16px !important;
    font-weight: 800;
}

.final-total strong {
    color: var(--orange-dark);
}

/* TOAST */

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 100px);
    opacity: 0;
    background: var(--dark);
    color: white;
    padding: 13px 22px;
    border-radius: 9px;
    z-index: 200;
    font-size: 13px;
    transition: .4s;
    white-space: nowrap;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* FLYING FOOD */

.flying-food {
    position: fixed;
    z-index: 300;
    pointer-events: none;
    font-size: 35px;
    transition:
        top .75s cubic-bezier(.2,.8,.3,1),
        left .75s cubic-bezier(.2,.8,.3,1),
        transform .75s ease,
        opacity .75s ease;
}

/* ANIMATIONS */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatFood {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-18px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}


/* ================================
   RESPONSIVE TABLET
================================ */
@media (max-width: 900px) {
    .container {
        width: 90%;
        max-width: 760px;
        margin: auto;
    }

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

    .hero {
        gap: 25px;
    }
}

/* ================================
   RESPONSIVE HP
================================ */
@media (max-width: 600px) {
    body {
        font-size: 13px;
        overflow-x: hidden;
    }

    .container {
        width: 88%;
        max-width: 430px;
        margin: auto;
    }

    /* NAVBAR */
    .navbar {
        padding: 12px 0;
    }

    .navbar .container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
    }

    .logo {
        font-size: 17px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .cart-button {
        padding: 7px 10px;
        font-size: 11px;
    }

    /* HERO */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 35px 0 30px;
        gap: 18px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 12px;
        line-height: 1.7;
        max-width: 300px;
        margin: auto;
    }

    .hero-food {
        width: 175px;
        height: 175px;
        margin: auto;
    }

    /* MENU */
    .menu-section {
        padding: 28px 0;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .section-description {
        font-size: 11px;
        margin-bottom: 20px;
    }

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

    .menu-card {
        border-radius: 12px;
    }

    .menu-image {
        height: 110px;
        font-size: 32px;
    }

    .menu-info {
        padding: 10px;
    }

    .menu-info h3 {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .menu-info p {
        font-size: 10px;
        line-height: 1.5;
    }

    .menu-price {
        font-size: 13px;
    }

    .add-button {
        padding: 8px;
        font-size: 10px;
        border-radius: 7px;
    }

    /* KERANJANG */
    .cart-section {
        padding: 28px 0;
    }

    .cart-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cart-box {
        padding: 14px;
        border-radius: 12px;
    }

    .cart-item {
        gap: 8px;
    }

    .cart-item h4 {
        font-size: 12px;
    }

    .cart-item p {
        font-size: 11px;
    }

    /* CHECKOUT */
    .modal {
        padding: 15px;
    }

    .modal-content {
        width: 100%;
        max-width: 390px;
        max-height: 88vh;
        overflow-y: auto;
        padding: 17px;
        border-radius: 14px;
    }

    .modal-content h2 {
        font-size: 19px;
    }

    .checkout-form input,
    .checkout-form select,
    .checkout-form textarea {
        width: 100%;
        padding: 10px;
        font-size: 12px;
    }

    .checkout-form label {
        font-size: 12px;
    }

    .qris-image {
        display: block;
        width: 190px;
        max-width: 100%;
        height: auto;
        margin: 12px auto;
        object-fit: contain;
    }

    .payment-instruction {
        font-size: 11px;
        line-height: 1.6;
    }

    .checkout-button,
    .submit-button {
        width: 100%;
        padding: 11px;
        font-size: 12px;
    }

    /* FOOTER */
    footer {
        padding: 20px 0;
        font-size: 11px;
        text-align: center;
    }
}

/* ================================
   HP LAYAR KECIL
================================ */
@media (max-width: 380px) {
    .container {
        width: 86%;
    }

    .logo {
        font-size: 15px;
    }

    .nav-links {
        gap: 7px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .hero-content h1 {
        font-size: 27px;
    }

    .hero-food {
        width: 155px;
        height: 155px;
    }

    .menu-grid {
        gap: 11px;
    }

    .menu-image {
        height: 95px;
    }

    .menu-info {
        padding: 8px;
    }
}

/* GAMBAR */
.menu-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-food img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

/* Elemen hidden */
[hidden] {
    display: none !important;
}

