/* ==========================================================================
   produk.css - Styling Katalog Produk FULL CARD & Modal Lightbox Zoom
   PT ASTHA DWI ASTHA (828) - Aerospace & Tactical Defense Systems
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & DASAR HALAMAN PRODUK
   -------------------------------------------------------------------------- */
body {
    background-color: var(--bg-dark, #080d1a);
    color: var(--text-main, #e2e8f0);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   2. HERO SECTION PRODUK & FILTER BAR
   -------------------------------------------------------------------------- */
.products-hero-section {
    padding-top: 130px;
    padding-bottom: 32px;
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(250, 204, 21, 0.08) 0%, transparent 68%);
}

body.light-theme .products-hero-section {
    background: radial-gradient(circle at 50% 20%, rgba(202, 138, 4, 0.06) 0%, transparent 70%);
}

.products-hero-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #facc15;
    margin-bottom: 16px;
    text-transform: uppercase;
}

body.light-theme .hero-badge {
    background: rgba(202, 138, 4, 0.08);
    border-color: rgba(202, 138, 4, 0.25);
    color: #b45309;
}

.hero-badge .pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #facc15;
    border-radius: 50%;
    box-shadow: 0 0 10px #facc15;
    animation: radarPulse 2s infinite ease-in-out;
}

@keyframes radarPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 auto 16px;
    max-width: 900px;
}

body.light-theme .hero-title {
    color: #0f172a;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #94a3b8;
    max-width: 820px;
    margin: 0 auto 32px;
}

body.light-theme .hero-subtitle {
    color: #475569;
}

/* Filter Bar Kategori (Panjang ke Kanan & Geser di PC + HP) */
.filter-outer-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    box-sizing: border-box;
}

.filter-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(250, 204, 21, 0.35);
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.filter-nav-btn:hover {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #080d1a;
    border-color: #facc15;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.45);
}

.filter-nav-btn:active {
    transform: scale(0.95);
}

.filter-nav-btn.is-hidden {
    opacity: 0.15;
    pointer-events: none;
    cursor: not-allowed;
}

.filter-scroll-viewport {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    border-radius: 999px;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    overscroll-behavior-x: contain;
}

.filter-scroll-viewport::-webkit-scrollbar {
    display: none;
}

.filter-scroll-viewport.is-dragging {
    cursor: grabbing;
}

.category-filter-bar {
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.65);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    width: max-content;
    min-width: min-content;
    flex-shrink: 0;
}

body.light-theme .filter-nav-btn {
    background: #ffffff;
    border-color: rgba(202, 138, 4, 0.4);
    color: #b45309;
}

body.light-theme .filter-nav-btn:hover {
    background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
    color: #ffffff;
}

body.light-theme .category-filter-bar {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #94a3b8;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.filter-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.filter-pill.active {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    border-color: #facc15;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(202, 138, 4, 0.35);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.filter-pill.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Light Mode Filter */
body.light-theme .filter-pill {
    color: #64748b;
}

body.light-theme .filter-pill:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .filter-pill.active {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    border-color: #ca8a04;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(202, 138, 4, 0.25);
}

/* --------------------------------------------------------------------------
   3. GRID PRODUK FULL CARD (4 KOLOM DESKTOP)
   -------------------------------------------------------------------------- */
.products-grid-section {
    padding-bottom: 90px;
    flex: 1;
}

.products-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --------------------------------------------------------------------------
   4. KARTU PRODUK FULL CARD (PHOTO FILLS THE WHOLE CARD)
   -------------------------------------------------------------------------- */
.product-card {
    height: 470px;
    min-height: 470px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #0a1122;
    border: 1.5px solid rgba(250, 204, 21, 0.42);
    /* Shadow warna kuning / gold yang bersinar elegan */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(250, 204, 21, 0.25), 
                0 0 6px rgba(250, 204, 21, 0.18);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                opacity 0.25s ease;
    user-select: none;
    /* Virtual rendering untuk performa super mulus & anti lag */
    content-visibility: auto;
    contain-intrinsic-size: 0 470px;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: #facc15;
    /* Efek shadow kuning lebih bersinar tajam saat di-hover */
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 
                0 0 36px rgba(250, 204, 21, 0.5), 
                0 0 12px rgba(250, 204, 21, 0.35);
}

/* Tombol Muat Lebih Banyak (Load More Batching 5 Baris) */
.btn-load-more-prd {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    background: rgba(250, 204, 21, 0.12);
    border: 1.5px solid rgba(250, 204, 21, 0.45);
    border-radius: 999px;
    color: #facc15;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-load-more-prd:hover {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #080d1a;
    border-color: #facc15;
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4);
    transform: translateY(-3px);
}

body.light-theme .btn-load-more-prd {
    background: rgba(202, 138, 4, 0.1);
    border-color: rgba(202, 138, 4, 0.4);
    color: #b45309;
}

body.light-theme .btn-load-more-prd:hover {
    background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
    color: #ffffff;
}

/* Light Theme Card */
body.light-theme .product-card {
    background: #ffffff;
    border: 1.5px solid rgba(234, 179, 8, 0.45);
    /* Shadow warna kuning di mode terang */
    box-shadow: 0 10px 30px rgba(234, 179, 8, 0.25), 
                0 0 18px rgba(234, 179, 8, 0.18);
}

body.light-theme .product-card:hover {
    border-color: #ca8a04;
    box-shadow: 0 18px 45px rgba(202, 138, 4, 0.35), 
                0 0 30px rgba(250, 204, 21, 0.4), 
                0 0 12px rgba(250, 204, 21, 0.25);
}

/* Layer Visual Foto yang Mengisi Kartu Secara Penuh */
.card-visual-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, #18233a 0%, #070d1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

body.light-theme .card-visual-layer {
    background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f1f5f9 100%);
}

.card-bg-img {
    position: absolute;
    top: 24px;
    width: 88%;
    height: 58%;
    object-fit: contain;
    border-radius: 14px;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-bg-img.img-cover {
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

.product-card:hover .card-bg-img {
    transform: scale(1.08) translateY(-4px);
}

.product-card:hover .card-bg-img.img-cover {
    transform: scale(1.06);
}

/* Overlay Gradasi Hitam Pekat di Bagian Bawah Kartu (Dark Mode) */
.card-content-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 48px 20px 20px 20px;
    background: linear-gradient(to top, 
        rgba(5, 10, 22, 0.98) 0%, 
        rgba(5, 10, 22, 0.94) 62%, 
        rgba(5, 10, 22, 0.52) 86%, 
        transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none; /* Klik tembus ke kartu */
}

/* Overlay Bersih Berwarna Putih di Mode Terang (Light Mode) */
body.light-theme .card-content-overlay {
    background: linear-gradient(to top, 
        #ffffff 0%, 
        rgba(255, 255, 255, 0.98) 64%, 
        rgba(255, 255, 255, 0.68) 86%, 
        transparent 100%) !important;
}

/* Kategori Produk (Tag Kuning Emas) */
.card-category-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #facc15 !important;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

body.light-theme .card-category-tag {
    color: #b45309 !important;
    text-shadow: none;
}

/* Judul Produk Tebal & Jelas */
.card-title {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff !important;
    margin: 2px 0 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

body.light-theme .card-title {
    color: #0b1329 !important;
    text-shadow: none;
}

/* Deskripsi Produk (Tampak Sangat Jelas di Mode Gelap & Terang) */
.card-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #f1f5f9 !important; /* Putih terang tajam dan jelas di mode gelap */
    font-weight: 500;
    margin: 6px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

body.light-theme .card-desc {
    color: #1e293b !important; /* Hitam slate pekat sangat kontras dan jelas di mode terang */
    font-weight: 600;
    text-shadow: none;
}

/* Bar Aksi di Bawah Kartu */
.card-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid rgba(250, 204, 21, 0.22);
}

body.light-theme .card-action-bar {
    border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
}

/* Badge Spesifikasi Unggulan */
.card-badge-spec {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(250, 204, 21, 0.15);
    color: #facc15 !important;
    border: 1px solid rgba(250, 204, 21, 0.45);
    white-space: nowrap;
}

body.light-theme .card-badge-spec {
    background: rgba(234, 179, 8, 0.14) !important;
    color: #b45309 !important;
    border: 1px solid rgba(234, 179, 8, 0.4) !important;
}

/* --------------------------------------------------------------------------
   5. MODAL LIGHTBOX ZOOM IN / ZOOM OUT & PAN (SUPER ISOLATED & RELIABLE)
   -------------------------------------------------------------------------- */
#product-zoom-lightbox.product-zoom-lightbox {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease !important;
}

#product-zoom-lightbox.product-zoom-lightbox.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.lightbox-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(3, 7, 16, 0.92) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

.lightbox-dialog {
    position: relative !important;
    width: 94% !important;
    max-width: 1140px !important;
    height: 90vh !important;
    max-height: 860px !important;
    background: #070d1a !important;
    border: 1.5px solid rgba(250, 204, 21, 0.45) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(250, 204, 21, 0.35) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 10 !important;
    transform: scale(0.96) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#product-zoom-lightbox.is-open .lightbox-dialog {
    transform: scale(1) !important;
}

/* Toolbar Header Modal */
.lightbox-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 20, 36, 0.96);
    gap: 16px;
    flex-shrink: 0;
}

.lightbox-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lightbox-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #facc15;
    text-transform: uppercase;
}

.lightbox-heading {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Kontrol Zoom */
.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 31, 51, 0.95);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.zoom-ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #facc15;
}

.zoom-ctrl-btn.btn-close-x:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.ctrl-sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 2px;
}

.zoom-indicator-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #facc15;
    min-width: 48px;
    text-align: center;
    user-select: none;
}

/* Viewport Gambar */
.lightbox-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #111a2d 0%, #040710 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.lightbox-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}

#lightbox-img {
    max-width: 84%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));
    transition: transform 0.12s ease-out;
    transform-origin: center center;
    will-change: transform;
    pointer-events: none;
}

/* Navigasi Panah Kiri & Kanan */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.9rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-arrow:hover {
    background: rgba(202, 138, 4, 0.9);
    border-color: #facc15;
    transform: translateY(-50%) scale(1.1);
}

.arrow-left {
    left: 18px;
}

.arrow-right {
    right: 18px;
}

/* Tip Interaksi */
.lightbox-tip-pill {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 12, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.78rem;
    color: #94a3b8;
    backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

.lightbox-tip-pill b {
    color: #facc15;
}

/* Caption Footer */
.lightbox-footer-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    background: rgba(12, 20, 36, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.caption-info {
    flex: 1;
}

.lightbox-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #f1f5f9;
    font-weight: 500;
    margin: 0;
}

body.light-theme .lightbox-dialog {
    background: #ffffff !important;
    border: 1.5px solid rgba(234, 179, 8, 0.45) !important;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25), 0 0 45px rgba(234, 179, 8, 0.35) !important;
}

body.light-theme .lightbox-header-bar,
body.light-theme .lightbox-footer-caption {
    background: #f8fafc !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
}

body.light-theme .lightbox-heading {
    color: #0f172a !important;
}

body.light-theme .lightbox-desc {
    color: #1e293b !important;
    font-weight: 600;
}

body.light-theme .lightbox-tag {
    color: #b45309 !important;
}

.caption-cta {
    flex-shrink: 0;
}

/* Badge Total Foto di Kartu Grid Produk */
.card-photos-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(10, 17, 34, 0.88);
    border: 1px solid rgba(250, 204, 21, 0.5);
    color: #facc15;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 4;
}

body.light-theme .card-photos-badge {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(202, 138, 4, 0.5);
    color: #b45309;
}

/* Floating Photo Counter Badge in Lightbox Stage */
.lightbox-photo-counter-badge {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(8, 14, 26, 0.88);
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #facc15;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* Thumbnail Strip 4 Foto Produk di Lightbox */
.lightbox-thumbs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(7, 12, 22, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.lightbox-thumbs-container::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb-btn {
    width: 68px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: #0d1527;
    padding: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
    flex-shrink: 0;
}

.lightbox-thumb-btn:hover {
    opacity: 0.9;
    border-color: rgba(250, 204, 21, 0.7);
    transform: translateY(-2px);
}

.lightbox-thumb-btn.active {
    opacity: 1;
    border-color: #facc15;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.55);
    transform: translateY(-2px) scale(1.06);
}

.lightbox-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    background: #090e1a;
}

/* Lightbox Footer Actions & Navigasi Antar Produk */
.lightbox-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lightbox-product-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-product-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-product-switch:hover {
    background: rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.5);
    color: #facc15;
    transform: translateY(-1px);
}

body.light-theme .lightbox-thumbs-container {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .lightbox-thumb-btn {
    background: #ffffff;
    border-color: #cbd5e1;
}

body.light-theme .lightbox-thumb-btn.active {
    border-color: #ca8a04;
    box-shadow: 0 0 14px rgba(202, 138, 4, 0.4);
}

body.light-theme .btn-product-switch {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

body.light-theme .btn-product-switch:hover {
    background: rgba(202, 138, 4, 0.12);
    border-color: #ca8a04;
    color: #b45309;
}

.btn-lightbox-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    border: 1px solid #facc15;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(202, 138, 4, 0.3);
}

.btn-lightbox-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(202, 138, 4, 0.45);
    color: #ffffff;
}

.cta-arrow {
    transition: transform 0.2s ease;
}

.btn-lightbox-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE BREAKPOINTS (DESKTOP -> TABLET -> MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    .product-card {
        height: 450px;
        min-height: 450px;
    }
}

@media (max-width: 1023px) {
    .products-hero-section {
        padding-top: 110px;
    }

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

    .product-card {
        height: 440px;
        min-height: 440px;
    }

    /* Filter Bar scroll horizontal di tablet/mobile */
    .filter-outer-wrapper {
        padding: 0 8px;
        gap: 8px;
        margin-bottom: 28px;
    }

    .filter-nav-btn {
        width: 32px;
        height: 32px;
    }

    .lightbox-dialog {
        width: 96% !important;
        height: 94vh !important;
    }

    .lightbox-header-bar {
        padding: 12px 16px;
    }

    .lightbox-heading {
        font-size: 1.05rem;
    }

    .lightbox-footer-caption {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        gap: 12px;
    }

    .btn-lightbox-cta {
        width: 100%;
        justify-content: center;
    }

    .lightbox-tip-pill {
        display: none;
    }
}

@media (max-width: 600px) {
    .products-hero-section {
        padding-top: 96px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        height: 430px;
        min-height: 430px;
    }

    .card-bg-img {
        width: 85%;
        height: 55%;
        top: 20px;
    }

    .card-content-overlay {
        padding: 36px 16px 16px 16px;
    }

    .card-title {
        font-size: 1.15rem;
    }

    .zoom-ctrl-btn {
        width: 32px;
        height: 32px;
    }

    .zoom-indicator-badge {
        font-size: 0.72rem;
        min-width: 38px;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .arrow-left {
        left: 8px;
    }

    .arrow-right {
        right: 8px;
    }

    /* Lightbox Modal Tampilan HP (Sangat Rapi, Ringkas & Presisi) */
    .lightbox-dialog {
        width: 95% !important;
        max-width: 440px !important;
        height: 88vh !important;
        max-height: 88vh !important;
        border-radius: 18px !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(250, 204, 21, 0.3) !important;
    }

    .lightbox-header-bar {
        padding: 10px 14px;
        gap: 8px;
    }

    .lightbox-identity {
        flex: 1;
        min-width: 0;
    }

    .lightbox-tag {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
        margin-bottom: 2px;
    }

    .lightbox-heading {
        font-size: 0.96rem;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lightbox-controls {
        padding: 2px 6px;
        gap: 3px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .zoom-ctrl-btn {
        width: 28px;
        height: 28px;
    }

    .zoom-indicator-badge {
        font-size: 0.7rem;
        min-width: 32px;
    }

    #btn-zoom-reset,
    .ctrl-sep {
        display: none !important;
    }

    .lightbox-viewport {
        min-height: 0;
        flex: 1;
    }

    #lightbox-img {
        max-width: 90%;
        max-height: 84%;
    }

    .lightbox-photo-counter-badge {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .lightbox-thumbs-container {
        padding: 8px 10px;
        gap: 8px;
    }

    .lightbox-thumb-btn {
        width: 50px;
        height: 36px;
        border-radius: 6px;
    }

    .lightbox-footer-caption {
        padding: 10px 14px max(14px, env(safe-area-inset-bottom, 14px)) 14px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
        background: rgba(10, 16, 30, 0.98);
    }

    .caption-info {
        width: 100%;
    }

    .lightbox-desc {
        font-size: 0.78rem;
        line-height: 1.35;
        color: #cbd5e1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    .lightbox-footer-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .lightbox-product-nav-group {
        display: flex;
        width: 100%;
        gap: 8px;
    }

    .btn-product-switch {
        flex: 1;
        justify-content: center;
        padding: 6px 8px;
        font-size: 0.74rem;
        border-radius: 8px;
    }

    .caption-cta {
        width: 100%;
    }

    .btn-lightbox-cta {
        width: 100%;
        justify-content: center;
        padding: 9px 14px;
        font-size: 0.84rem;
        border-radius: 8px;
    }
}
