/* ============================================================
   VORTEXSERIES — RESPONSIVE OVERRIDE
   Tambahkan file ini SETELAH vortexseries.css di app.blade.php
   <link rel="stylesheet" href="{{ asset('assets/css/responsive.css') }}">
   ============================================================ */

/* ============================================================
   MOBILE MENU (BURGER) — BASE STYLES
   ============================================================ */

/* Overlay backdrop mobile menu */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1098;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.is-open {
    opacity: 1;
}

/* Drawer mobile menu */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1099;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-nav-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.mobile-drawer-logo {
    height: 28px;
    width: auto;
    filter: brightness(0);
}
.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-drawer-close:hover { color: #111; }

.mobile-drawer-links {
    flex: 1;
    padding: 16px 0;
    list-style: none;
}
.mobile-drawer-links li a,
.mobile-drawer-links li span {
    display: block;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}
.mobile-drawer-links li a:hover { background: #f8f8f8; }
.mobile-drawer-links li a.active { color: #111; font-weight: 800; }

/* Support submenu dalam drawer */
.mobile-submenu {
    background: #f8f8f8;
    list-style: none;
    display: none;
}
.mobile-submenu.is-open { display: block; }
.mobile-submenu li a {
    padding: 11px 24px 11px 40px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #555 !important;
    border-bottom: 1px solid #efefef !important;
}

.mobile-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.mobile-drawer-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
}

/* Burger icon styling */
.burger-icon {
    width: 24px;
    cursor: pointer;
    display: none;
}

/* ============================================================
   TABLET: 769px – 1024px
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {

    /* === NAVBAR === */
    .nav-container { padding: 0 30px; }
    .nav-links { gap: 22px; }
    .nav-links a { font-size: 14px; }

    /* === CONTAINER === */
    .container { padding: 0 30px; }

    /* === HOME HERO === */
    .hero-container { max-width: 100%; }
    .hero { height: 820px; min-height: 820px; }
    .main-mouse { height: 560px; }
    .outline-text { font-size: 88px; }
    .video-box { width: 280px; height: 170px; }
    .details-box { width: 280px; height: 170px; right: 4%; }
    .left-content { left: 4%; top: 28%; }

    /* === PRODUCT SECTION === */
    .product-card { width: 280px; height: 400px; }
    .product-carousel {
        margin-left: -30px;
        margin-right: -30px;
        padding-left: 30px;
        padding-right: 30px;
    }

    /* === STORE PAGE === */
    .store-flex { gap: 30px; }
    .store-sidebar { width: 160px; }
    .product-regular-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .featured-bento-grid { grid-template-rows: 220px 220px; }

    /* === SHAPED SECTION === */
    .shaped-card { width: 560px; height: 360px; }

    /* === IG SECTION === */
    .ig-card { min-width: 260px; }

    /* === FOOTER === */
    .footer-main { gap: 20px; }
    .footer-col h3 { font-size: 14px; }
    .col-page { display: none; }

    /* === ABOUT === */
    .about-big-title { font-size: 64px; }
    .asym-title { font-size: 44px; }

    /* === WARRANTY === */
    .warranty-hero h1 { font-size: 36px; }
    .warranty-bg-text { font-size: 160px; }
    .tabs-footer { padding: 30px 40px; }
    .support-number { font-size: 20px; }

    /* === BLOG === */
    .blog-hero { padding: 120px 30px 50px; }
    .blog-posts-section { padding: 50px 30px 70px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }

    /* === SUPPORT HUB === */
    .support-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .support-hub-card { min-height: 300px; padding: 40px 30px; }

    /* === SUPPORT SOFTWARE/MANUAL/WEBDRIVER === */
    .software-grid,
    .manual-grid,
    .webdriver-grid { grid-template-columns: repeat(3, 1fr); }

    /* === CHECKOUT / CART === */
    .cart-layout { grid-template-columns: 1fr 300px; gap: 24px; }
}

/* ============================================================
   MOBILE: max-width 768px
   ============================================================ */
@media (max-width: 768px) {

    /* === BURGER & DRAWER === */
    .burger-icon { display: block; }
    .nav-links { display: none !important; }
    .mobile-nav-overlay { display: block; pointer-events: none; }
    .mobile-nav-overlay.is-open { pointer-events: all; }

    /* === CONTAINER === */
    .container { padding: 0 20px; }

    /* ── HERO DETAILS BOX — perbesar biar ga terlalu kecil ── */
    .details-box {
        width: 170px !important;
        height: 110px !important;
        right: 4% !important;
        bottom: 29% !important;
    }
    .details-preview { padding: 10px 12px !important; }
    .details-preview-header { margin-bottom: 8px !important; }
    .details-product-label { font-size: 13px !important; }
    .details-open-hint { display: none !important; }
    .details-specs-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 5px 8px !important;
    }
    .spec-label { font-size: 8px !important; }
    .spec-value { font-size: 10px !important; }

    /* Badge "Details" + garis di BAWAH kotak (z-index lebih rendah) */
    .mobile-connector {
        left: 5% !important;
        bottom: 40% !important;
        right: auto !important;
        z-index: 4 !important;
    }
    /* Garis: ujungnya harus tepat di bottom-left kotak */
    .connecting-line {
        z-index: 4 !important;
        width: 164px !important;
        height: 44px !important;
    }
    .details-box { z-index: 11 !important; }

    /* ── STORE / PRODUCT PAGE ── */
    .store-hero-banner { padding-top: 100px; padding-bottom: 40px; }
    .store-header-content { flex-direction: column; align-items: flex-start; gap: 16px; }
    .title-area h1 { font-size: 36px; letter-spacing: -1px; }
    .store-flex { flex-direction: column; gap: 0; }
    .store-sidebar { display: none !important; }

    /* Bento grid: satu kolom */
    .featured-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
        margin-bottom: 32px;
    }
    .item-large { height: 240px; }
    .item-dark,
    .item-accent { height: 180px; }
    .item-large h2 { font-size: 28px; }

    /* Filter & sort row */
    .filter-sort-row { flex-wrap: wrap; gap: 10px; }
    .btn-filter, .btn-sort { font-size: 13px; padding: 10px 16px; }

    /* Product grid: 2 kolom di mobile */
    .product-regular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-info-box { padding: 14px; }
    .card-info-box h4 { font-size: 14px; }
    .card-img-box { aspect-ratio: 1/1; }

    /* ── PRODUCT DETAIL PAGE (PDP) ── */
    .pdp-spacer { height: 80px; }
    .pdp-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .pdp-gallery { position: static !important; }
    .gallery-main { border-radius: 10px; overflow: hidden; }
    .gallery-thumbs {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px;
        margin-top: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .thumb-item {
        width: 64px !important;
        height: 64px !important;
        flex-shrink: 0;
    }
    .pdp-info { padding: 0; }
    .pdp-product-name { font-size: 24px !important; }
    .pdp-tabs { overflow-x: auto; }
    .pdp-tab-btn { font-size: 12px; padding: 10px 14px; white-space: nowrap; }
    .pdp-tab-panel { padding: 20px 0; }
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* ── CART PAGE ── */
    .cart-spacer { height: 80px; }
    .cart-header { padding: 24px 0 16px; }
    .cart-title { font-size: 28px; }
    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding-bottom: 60px;
    }
    .cart-summary { position: static; }
    .cart-item { flex-wrap: wrap; gap: 12px; }
    .cart-item-img { width: 70px; height: 70px; }
    .cart-item-actions { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }

    /* ── CHECKOUT SUCCESS PAGE ── */
    .checkout-spacer { height: 80px; }
    .success-wrapper { margin: 40px auto 80px; padding: 0 4px; }
    .success-title { font-size: 28px; }
    .bank-list { gap: 8px; }
    .bank-item { flex-direction: column; align-items: flex-start; gap: 4px; }

    /* ── TRACK ORDER PAGE ── */
    .track-wrapper { margin: 100px auto 80px; padding: 0 4px; }
    .track-title { font-size: 26px; }

    /* ── WARRANTY PAGE ── */
    .warranty-hero { padding: 120px 0 50px; }
    .warranty-hero h1 { font-size: 28px; }
    .warranty-bg-text { font-size: 80px; }

    /* Steps: 2x2 grid */
    .steps-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
        max-width: 100%;
    }
    .steps-wrapper::before { display: none; }
    .step-preview-img { width: 100%; height: 120px; }
    .step-icon { width: 60px; height: 60px; margin-bottom: 16px; }
    .step-name { font-size: 11px; }

    /* Tab panel */
    .tab-panel.active {
        flex-direction: column !important;
        padding: 24px 20px !important;
        gap: 24px !important;
    }
    .warranty-details .tabs-image img { height: 200px; }
    .warranty-details .tabs-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    .warranty-details .support-number { font-size: 18px; }
    .warranty-details .tab-btn {
        font-size: 10px;
        padding: 16px 10px;
        letter-spacing: 1px;
    }
    .btn-warranty-link { padding: 12px 20px; font-size: 11px; }

    /* ── ABOUT PAGE ── */
    .about-main-container { padding: 100px 20px 60px; }
    .about-big-title { font-size: 42px; margin-bottom: 36px; }
    .intro-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
    .intro-sidebar { display: none; }
    .about-full-image { margin-bottom: 60px; }
    .about-full-image video { height: 240px; }
    .about-split-section { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
    .split-quote h2 { font-size: 28px; }
    .split-image { order: -1; }
    .about-asym-section { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
    .asym-right-content { padding-top: 0; }
    .asym-title { font-size: 36px; }
    .img-chair, .img-tech { width: 100%; align-self: flex-start; }
    .about-stats-row { flex-wrap: wrap; gap: 20px; padding-top: 24px; margin-top: 32px; }
    .stat-item { width: calc(50% - 10px); }
    .stat-value { font-size: 28px; }
    .about-debut-section { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
    .debut-text h2 { font-size: 28px; }
    .about-forward-section { grid-template-columns: 1fr; gap: 24px; margin-bottom: 60px; }
    .forward-left h2 { font-size: 36px; }

    /* ── BLOG PAGE ── */
    .blog-hero { padding: 100px 20px 36px; }
    .blog-hero-title { font-size: 32px; margin-bottom: 24px; }
    .featured-card { min-height: 240px; }
    .featured-card-body { padding: 20px; }
    .featured-card-title { font-size: 20px; }
    .blog-posts-section { padding: 36px 20px 60px; }
    .blog-posts-header h2 { font-size: 18px; }
    .blog-grid { grid-template-columns: 1fr; gap: 28px; }
    .blog-filter-tabs { gap: 6px; }
    .filter-tab { font-size: 11px; padding: 6px 14px; }

    /* Blog detail */
    .blog-detail-hero { padding: 100px 0 40px; }
    .blog-detail-title { font-size: 26px !important; }
    .blog-detail-content { font-size: 15px; }

    /* ── SUPPORT HUB (index.blade.php) ── */
    .support-hero { padding: 140px 0 60px; }
    .support-hero h1 { font-size: 38px; letter-spacing: -2px; }
    .support-hero p { font-size: 14px; }
    .support-cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .support-hub-card { min-height: 240px; padding: 32px 24px 28px; }
    .card-title { font-size: 22px; }
    .card-desc { font-size: 13px; }
    .card-bg-num { font-size: 90px; }
    .support-contact-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 20px;
        border-radius: 12px;
        gap: 20px;
    }
    .contact-bar-heading { font-size: 20px; }
    .btn-contact-wa { width: 100%; justify-content: center; padding: 14px; }

    /* ── SOFTWARE / MANUAL / WEBDRIVER PAGES ── */
    .support-hero { padding: 120px 0 60px; }
    .support-hero h1 { font-size: 34px; }
    .support-hero p { font-size: 14px; }
    .search-container input { font-size: 14px; padding: 14px 20px 14px 46px; }

    /* ── FIX: SUPPORT TABS — tab pertama tidak terpotong ── */
    .manual-section .container,
    .webdriver-section .container,
    .software-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .manual-section .container > *:not(.support-tabs),
    .webdriver-section .container > *:not(.support-tabs),
    .software-section .container > *:not(.support-tabs) {
        padding-left: 20px;
        padding-right: 20px;
    }

    .support-tabs {
        gap: 0;
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .support-tabs::-webkit-scrollbar { display: none; }

    .tab-item { font-size: 12px; padding: 12px 16px; white-space: nowrap; flex-shrink: 0; }

    /* Tab terakhir dapat ruang di kanan saat di-scroll */
    .support-tabs .tab-item:last-child {
        margin-right: 20px;
    }

    .software-grid,
    .manual-grid,
    .webdriver-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .software-card,
    .manual-card,
    .webdriver-card {
        padding: 20px 16px;
    }
    .software-card-img,
    .manual-card-img,
    .webdriver-card-img {
        height: 160px;
        margin-bottom: 12px;
    }
    .software-card h3,
    .manual-card h3,
    .webdriver-card h3 { font-size: 14px; margin-bottom: 12px; }
    .btn-download-software,
    .btn-download-manual,
    .btn-open-driver { font-size: 12px; padding: 9px 16px; }

    /* ── CART / CHECKOUT SPACER ── */
    .checkout-spacer { height: 80px; }

    /* ── NAVBAR MOBILE CART ICON ── */
    .cart-nav-icon svg { width: 20px; height: 20px; }
    .cart-badge { width: 16px; height: 16px; font-size: 9px; top: -6px; right: -6px; }

    /* ── SEARCH PANEL ── */
    .search-panel { width: 100%; }
}

/* ============================================================
   EXTRA SMALL: max-width 480px
   ============================================================ */
@media (max-width: 480px) {
    /* Product grid: 2 kolom di HP kecil */
    .product-regular-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .item-large { height: 200px; }
    .item-large h2 { font-size: 22px; }
    .about-big-title { font-size: 36px; }
    .support-hero h1 { font-size: 28px; }
    .software-grid,
    .manual-grid,
    .webdriver-grid { grid-template-columns: 1fr; }

    /* Related products PDP: 1 kolom */
    .related-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   NAVBAR MOBILE — LIGHT PAGES (override scrolled state)
   Pages dengan background terang: cart-nav-icon hitam saat non-scroll
   ============================================================ */
@media (max-width: 768px) {
    .nav-container { max-width: 100% !important; padding: 0 20px !important; }

    /* Burger icon: selalu hitam di light pages sebelum scroll */
    .page-store .burger-icon,
    .page-warranty .burger-icon,
    .page-about .burger-icon,
    .page-support .burger-icon,
    .page-support-software .burger-icon,
    .page-support-webdriver .burger-icon,
    .page-support-manual .burger-icon,
    .page-blog .burger-icon,
    .page-pdp .burger-icon,
    .page-checkout .burger-icon,
    .page-cart .burger-icon {
        filter: brightness(0);
    }

    .page-store .navbar.scrolled .burger-icon,
    .page-warranty .navbar.scrolled .burger-icon,
    .page-about .navbar.scrolled .burger-icon,
    .page-support .navbar.scrolled .burger-icon,
    .page-support-software .navbar.scrolled .burger-icon,
    .page-support-webdriver .navbar.scrolled .burger-icon,
    .page-support-manual .navbar.scrolled .burger-icon,
    .page-blog .navbar.scrolled .burger-icon,
    .page-pdp .navbar.scrolled .burger-icon,
    .page-checkout .navbar.scrolled .burger-icon,
    .page-cart .navbar.scrolled .burger-icon {
        filter: brightness(10);
    }

    /* Home page: burger selalu putih (hero gelap) */
    .page-home .burger-icon { filter: brightness(10); }
    .page-home .navbar.scrolled .burger-icon { filter: brightness(10); }
}

/* ============================================================
   TABLET NAVBAR — tambahan gap fix
   ============================================================ */
@media (min-width: 769px) and (max-width: 900px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 13px; }
    .dropdown-content { min-width: 160px; }
}