/* ============================================
   ZAIKA - Full Responsive (All Devices)
   ============================================ */

/* =============================================
   BREAKPOINTS:
   - 480px  → Small phones (SE, Mini)
   - 768px  → Mobile / Tablet portrait
   - 1024px → Tablets / iPad
   - 1200px → Small laptops
   - 1440px → Desktops
   - 1920px → Ultra-wide
   ============================================= */

/* ============================================
   1920px+ — Ultra-wide Desktop
   ============================================ */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 80px;
    }

    .section-title {
        font-size: 52px;
    }

    .featured-card {
        height: 380px;
    }

    .category-card {
        height: 260px;
    }

    .menu-card-image {
        width: 220px;
        height: 220px;
    }
}

/* ============================================
   1440px — Standard Desktop
   ============================================ */
@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 72px;
    }

    .section-title {
        font-size: 48px;
    }

    .featured-card {
        height: 360px;
    }

    .category-card {
        height: 240px;
    }
}

/* ============================================
   1200px — Small Desktops / Laptops
   ============================================ */
@media (min-width: 1025px) and (max-width: 1439px) {
    .container {
        max-width: 1140px;
    }

    .hero-title {
        font-size: 60px;
    }

    .section-title {
        font-size: 42px;
    }

    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .featured-card {
        height: 320px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .category-card {
        height: 200px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-card-image {
        width: 180px;
        height: 180px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

/* ============================================
   1025px — Desktop hover effects
   ============================================ */
@media (min-width: 1025px) {
    .cursor-glow {
        position: fixed;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: opacity 0.3s;
    }

    .featured-card:hover {
        transform: translateY(-12px) scale(1.02);
    }

    .category-card:hover {
        transform: translateY(-12px) scale(1.02);
    }

    .menu-card:hover {
        transform: translateY(-6px);
    }

    .contact-card:hover {
        transform: translateY(-8px);
    }
}

/* ============================================
   1024px — Tablets / iPad
   ============================================ */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 24px;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 38px;
    }

    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .featured-card {
        height: auto;
        min-height: 300px;
    }

    .featured-card-image {
        height: 180px;
    }

    .featured-card-body {
        padding: 14px;
    }

    .featured-card-category {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .featured-card-name {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .featured-card-desc {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .featured-card-price {
        font-size: 18px;
    }

    .featured-card-footer .btn-add {
        width: 34px;
        height: 34px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .category-card {
        height: 180px;
    }

    .category-name {
        font-size: 16px;
    }

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

    .menu-card-image {
        width: 160px;
        height: 160px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }

    .dish-detail {
        gap: 40px;
    }

    .dish-image {
        width: 45%;
        height: 400px;
    }

    .dish-info {
        width: 55%;
        padding: 0 20px;
    }

    .cart-drawer {
        width: 380px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* ============================================
   768px — Mobile / Tablet portrait
   ============================================ */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .container {
        padding: 0 20px;
    }

    /* Nav */
    .nav-links {
        display: none;
    }

    .nav-actions {
        display: flex;
        gap: 8px;
    }

    .nav-map {
        display: none;
    }

    .nav-phone span {
        display: none;
    }

    .nav-cart {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-primary);
        z-index: 998;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-nav-links {
        list-style: none;
        text-align: center;
    }

    .mobile-nav-links li {
        margin: 20px 0;
    }

    .mobile-nav-links a {
        font-size: 24px;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.3s;
    }

    .mobile-nav-links a:hover {
        color: var(--gold);
    }

    .mobile-phone {
        margin-top: 40px;
        font-size: 16px;
        color: var(--gold);
        text-decoration: none;
    }

    /* Bottom Nav */
    .bottom-nav {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 24px;
        justify-content: center;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* Categories */
    .categories-grid {
        display: none !important;
    }

    .mobile-categories {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 4px 0 16px 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

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

    .mobile-cat-card {
        flex: 0 0 auto;
        width: 110px;
        text-decoration: none;
        scroll-snap-align: start;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-cat-card:active {
        transform: scale(0.95);
    }

    .mobile-cat-img {
        width: 110px;
        height: 110px;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        border: 1px solid var(--border);
        background: var(--bg-surface);
    }

    .mobile-cat-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .mobile-cat-card:active .mobile-cat-img img {
        transform: scale(1.05);
    }

    .mobile-cat-img::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
        border-radius: 20px;
    }

    .mobile-cat-name {
        display: block;
        text-align: center;
        font-size: 11px;
        font-weight: 600;
        color: var(--text-primary);
        margin-top: 8px;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }

    .mobile-cat-count {
        display: block;
        text-align: center;
        font-size: 10px;
        color: var(--text-muted);
        margin-top: 2px;
    }

    .section.categories .section-header {
        margin-bottom: 12px;
    }

    .section.categories .section-title {
        font-size: 22px;
    }

    /* Featured */
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .featured-card {
        height: auto;
        min-height: 260px;
    }

    .featured-card-image {
        height: 150px;
    }

    .featured-card-body {
        padding: 10px;
    }

    .featured-card-name {
        font-size: 13px;
    }

    .featured-card-desc {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .featured-card-price {
        font-size: 15px;
    }

    .featured-card-badge {
        font-size: 8px;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
    }

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

    .menu-card {
        flex-direction: column;
        height: auto;
    }

    .menu-card-image {
        width: 100%;
        height: 180px;
    }

    .menu-card-content {
        padding: 16px;
    }

    .menu-filters {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }

    .about-content {
        text-align: center;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 24px;
    }

    .map-wrapper iframe {
        height: 280px;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Cart Float */
    .cart-float {
        position: fixed !important;
        bottom: 68px !important;
        right: 12px !important;
        left: auto !important;
        width: auto !important;
        min-width: 44px !important;
        height: 44px !important;
        border-radius: 22px !important;
        padding: 0 14px !important;
        gap: 6px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.5);
        z-index: 998 !important;
        overflow: hidden;
        box-sizing: border-box;
        transform: none !important;
        animation: none !important;
    }

    .cart-float-text {
        display: inline;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .cart-float svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .cart-float-count {
        position: absolute;
        top: -4px;
        right: -4px;
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    /* Cart Drawer */
    .cart-drawer {
        width: 100% !important;
        bottom: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
    }

    /* Checkout Modal */
    .checkout-modal {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        max-height: none;
    }

    /* Dish Page */
    .dish-page {
        padding-top: 100px;
    }

    .dish-detail {
        flex-direction: column;
        gap: 24px;
    }

    .dish-image {
        width: 100%;
        height: 250px;
    }

    .dish-info {
        width: 100%;
        padding: 0 16px;
    }

    .main-header {
        padding-bottom: 0;
    }

    body {
        padding-bottom: 60px;
    }
}

/* ============================================
   480px — Small Phones
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-stat-value {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .featured-card {
        height: 260px;
    }

    .featured-card-title {
        font-size: 18px;
    }

    .mobile-cat-card {
        width: 90px;
    }

    .mobile-cat-img {
        width: 90px;
        height: 90px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .menu-card-image {
        height: 160px;
    }

    .dish-image {
        height: 220px;
    }

    .about-content h3 {
        font-size: 22px;
    }

    .footer-brand p {
        font-size: 13px;
    }

    .cart-float {
        bottom: 64px !important;
        right: 10px !important;
        height: 40px !important;
        padding: 0 12px !important;
    }

    .cart-float svg {
        width: 16px;
        height: 16px;
    }

    .cart-float-text {
        font-size: 12px;
    }

    .nav-phone span {
        display: none;
    }
}

/* ============================================
   360px — Extra Small Phones
   ============================================ */
@media (max-width: 360px) {
    .hero-title {
        font-size: 28px;
    }

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

    .mobile-cat-card {
        width: 80px;
    }

    .mobile-cat-img {
        width: 80px;
        height: 80px;
    }

    .mobile-cat-name {
        font-size: 10px;
    }

    .bottom-nav-item {
        font-size: 9px;
        padding: 4px 4px;
    }

    .bottom-nav-item svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   Landscape Phones
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .bottom-nav {
        height: 50px;
    }

    body {
        padding-bottom: 50px;
    }
}
