/* =====================================================
   MOBILE RESPONSIVE ONLY
   File ini berisi media query untuk mobile saja
   ===================================================== */

/* TABLET (1024px ke bawah) */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-title span:last-child {
        margin-left: 50px;
        font-size: 52px;
    }

    .menu-wrapper {
        flex-direction: column;
    }

    .menu-sidebar {
        flex: 0 0 auto;
        width: 100%;
        padding: 0 0 20px 0;
    }

    .menu-divider {
        display: none;
    }

    .menu-list {
        padding: 0;
    }

    .menu-section::before {
        display: none;
    }

    .category-list {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
    }

    .cat-link {
        padding: 10px 16px;
        font-size: 14px;
        border: 2px solid var(--orange);
        border-radius: 20px;
        font-weight: 700;
    }

    .cat-link.active {
        background: var(--orange);
        color: #fff;
    }

    .cat-link::before {
        display: none;
    }

    .cat-link:hover {
        padding: 10px 16px;
        background: var(--orange-light);
        color: #fff;
    }

    .items-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* MOBILE (768px ke bawah) */
@media (max-width: 768px) {
    /* HERO SECTION - MOBILE */
    .hero-section {
        padding: 60px 20px !important;
        min-height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible !important;
    }

    /* GRADIENT OVERLAY - MOBILE (LEBIH GELAP) */
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(200, 54, 29, 0.75) 30%,
            rgba(200, 54, 29, 0.75) 70%,
            rgba(0, 0, 0, 0.6) 100%
        ) !important;
    }

    .hero-content-wrapper {
        flex-direction: column !important;
        padding: 0 20px !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 10 !important;
        overflow: visible !important;
    }

    .hero-left {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        position: relative !important;
        z-index: 10 !important;
        overflow: visible !important;
    }

    .hero-title {
        font-size: 42px !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
        text-align: center !important;
        letter-spacing: -0.5px !important;
        position: relative !important;
        z-index: 10 !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }

    .hero-title span {
        display: block !important;
        overflow: visible !important;
        width: 100% !important;
        text-overflow: clip !important;
    }

    .hero-title span:first-child {
        margin-left: 0 !important;
        text-align: center !important;
    }

    .hero-title span:last-child {
        margin-left: 0 !important;
        margin-top: 8px !important;
        font-size: 38px !important;
        text-align: center !important;
    }

    .hero-tagline {
        font-size: 15px !important;
        text-align: center !important;
        max-width: 260px !important;
        line-height: 1.4 !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* GOFOOD BUTTON - MOBILE */
    .gofood-wrapper {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        bottom: 16px !important;
        transform: translateX(-50%) !important;
        justify-content: center !important;
        width: calc(100% - 32px) !important;
        max-width: 240px !important;
    }

    .gofood-btn {
        height: 38px !important;
        padding: 0 14px !important;
        gap: 8px !important;
        font-size: 11px !important;
        letter-spacing: .4px !important;
        width: 100% !important;
        justify-content: center !important;
        box-shadow: 0 6px 20px rgba(0,0,0,.2) !important;
    }

    .gofood-btn::after {
        opacity: .35 !important;
    }

    .gofood-btn img {
        height: 20px !important;
        width: 20px !important;
    }

    .gofood-btn:active {
        background: #01551d !important;
        transform: translateX(-50%) scale(0.97) !important;
    }

    /* MENU SECTION - MOBILE */
    .menu-section {
        overflow: hidden !important;
    }

    .menu-wrapper {
        padding: 30px 16px 100px 20px !important;
        margin-left: 0 !important;
    }

    .menu-sidebar {
        padding: 0 0 20px 0 !important;
        margin-bottom: 16px !important;
        margin-left: 0 !important;
        border-bottom: 2px solid #f0f0f0 !important;
        width: 100% !important;
    }

    .menu-list {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .category-list {
        gap: 8px !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding-bottom: 5px !important;
        padding-left: 2px !important;
    }

    .category-list::-webkit-scrollbar {
        display: none !important;
    }

    .cat-link {
        padding: 8px 14px !important;
        font-size: 13px !important;
        letter-spacing: 0.5px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .cat-link:active {
        transform: scale(0.95) !important;
    }

    .category-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
        letter-spacing: 0.8px !important;
    }

    .items-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .menu-item {
        gap: 12px !important;
        flex-direction: row !important;
    }

    .item-image {
        flex: 0 0 145px !important;
        height: 145px !important;
        border-radius: 10px !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    }

    .item-badge {
        top: -8px !important;
        left: -8px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .badge-icon {
        transform: scale(0.7) !important;
    }

    .item-name {
        font-size: 15px !important;
        letter-spacing: 0.6px !important;
        line-height: 1.3 !important;
    }

    .item-price {
        font-size: 14px !important;
        letter-spacing: 0.3px !important;
        margin-bottom: 6px !important;
    }

    /* ⬅️ PERBAIKAN: white-space: pre-line agar enter terbaca di mobile */
    .item-desc {
        font-size: 12px !important;
        line-height: 1.4 !important;
        overflow: visible !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        max-height: none !important;
        white-space: pre-line !important;   /* ⬅️ DIGANTI dari normal ke pre-line */
        text-overflow: unset !important;
    }
}

/* SMALL MOBILE (480px ke bawah) */
@media (max-width: 480px) {
    .hero-section {
        min-height: 380px !important;
        padding: 50px 16px !important;
    }

    .hero-content-wrapper {
        padding: 0 16px !important;
    }

    .hero-title {
        font-size: 38px !important;
    }

    .hero-title span:last-child {
        font-size: 34px !important;
        margin-top: 4px !important;
    }

    .hero-tagline {
        font-size: 14px !important;
        max-width: 240px !important;
    }

    .gofood-wrapper {
        width: calc(100% - 32px) !important;
        max-width: 300px !important;
        bottom: 14px !important;
    }

    .gofood-btn {
        font-size: 12px !important;
        height: 44px !important;
        padding: 0 18px !important;
        gap: 10px !important;
    }

    .gofood-btn img {
        height: 24px !important;
        width: 24px !important;
    }

    .menu-wrapper {
        padding: 28px 14px 90px 18px !important;
    }

    .menu-sidebar {
        margin-left: 0 !important;
    }

    .menu-list {
        margin-left: 0 !important;
    }

    .category-title {
        font-size: 22px !important;
        margin-bottom: 18px !important;
    }

    .cat-link {
        font-size: 12px !important;
        padding: 7px 12px !important;
    }

    .menu-item {
        gap: 10px !important;
    }

    .item-image {
        flex: 0 0 120px !important;
        height: 120px !important;
    }

    .item-badge {
        top: -6px !important;
        left: -6px !important;
        width: 32px !important;
        height: 32px !important;
    }

    .item-name {
        font-size: 14px !important;
    }

    .item-price {
        font-size: 13px !important;
    }

    /* ⬅️ PERBAIKAN: pre-line di 480px juga */
    .item-desc {
        font-size: 11px !important;
        white-space: pre-line !important;   /* ⬅️ DITAMBAH */
    }
}

/* VERY SMALL MOBILE (375px ke bawah) */
@media (max-width: 375px) {
    .hero-section {
        min-height: 360px !important;
        padding: 45px 14px !important;
    }

    .hero-content-wrapper {
        padding: 0 14px !important;
    }

    .hero-title {
        font-size: 34px !important;
    }

    .hero-title span:last-child {
        font-size: 30px !important;
    }

    .hero-tagline {
        font-size: 13px !important;
        max-width: 220px !important;
    }

    .gofood-wrapper {
        width: calc(100% - 28px) !important;
        max-width: 280px !important;
    }

    .gofood-btn {
        font-size: 11px !important;
        height: 42px !important;
        gap: 8px !important;
        padding: 0 16px !important;
    }

    .gofood-btn img {
        height: 22px !important;
        width: 22px !important;
    }

    .menu-wrapper {
        padding: 24px 12px 90px 16px !important;
    }

    .menu-sidebar {
        margin-left: 0 !important;
    }

    .menu-list {
        margin-left: 0 !important;
    }

    .category-title {
        font-size: 20px !important;
    }

    .item-image {
        flex: 0 0 115px !important;
        height: 115px !important;
    }

    .item-name {
        font-size: 13px !important;
    }

    .item-price {
        font-size: 12px !important;
    }

    /* ⬅️ PERBAIKAN: pre-line di 375px juga */
    .item-desc {
        font-size: 11px !important;
        white-space: pre-line !important;   /* ⬅️ DITAMBAH */
    }
}