/* 
 * Jati Prime - Products Page Styles
 * Separated from products.html for better maintainability
 */

:root {
    --brand-primary: #0d6b6b;
    --brand-accent: #c5a059;
    --brand-dark: #052e2e;
    --text-main: #333333;
    --text-muted: #777777;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-lux: 0 15px 45px rgba(0, 0, 0, 0.08);
}

/* === Hero & Layout === */
.products-hero {
    height: 400px; 
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/1350789/pexels-photo-1350789.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
}

.hero-title {
    font-family: 'Times New Roman', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 300;
}

.catalog-layout-wrapper {
    display: flex !important;
    gap: 30px !important;
    padding: 20px 0 !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

/* === Sidebar Styles Diet Ketat Pak Pak === */
.sidebar-lux {
    width: 200px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lux);
    overflow: hidden;
    position: sticky;
    top: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    flex-shrink: 0;
    transition: var(--transition);
}

.sidebar-main-header {
    background: #0d6b6b;
    color: white;
    padding: 10px 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-body.collapsed { display: none; }

.sb-section-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fdfdfd;
}

.sb-section-body {
    padding: 5px 0;
    transition: var(--transition);
}

.sb-section-body.collapsed { display: none; }

.cat-item-vertical {
    padding: 8px 15px;
    font-size: 0.75rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
}

.cat-item-vertical:hover, .cat-item-vertical.active {
    background: #f0f8f5;
    color: #0d6b6b;
    font-weight: 700;
    border-left-color: #0d6b6b;
}

/* === Filter & Sort Bar === */
.filter-bar-standalone {
    margin-bottom: 40px;
    display: none; /* Desktop uses Sidebar */
}

/* Responsive Overrides - KUNCI MATI INDEPENDEN PAK ✅ */
.catalog-layout-wrapper { 
    display: flex;
    gap: 30px;
}

@media (max-width: 991px) {
    .catalog-layout-wrapper { 
        flex-direction: column !important; 
        padding: 0 10px !important;
    }
    
    .mobile-filter-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        padding: 6px 14px;
        background: #0d6b6b;
        color: white;
        font-weight: 500;
        border-radius: 6px;
        margin: 0 0 15px 0;
        font-size: 0.75rem;
        box-shadow: 0 4px 10px rgba(13,107,107,0.2);
        cursor: pointer;
    }
    
    .sidebar-mobile-close {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
    }

    .filter-bar-standalone { display: none !important; }
    .filter-header-mobile { display: none !important; }
}
    /* === KHUSUS MOBILE (768px ke bawah) - KUNCI MATI PAK ✅ === */
    @media (max-width: 768px) {
        .hero-title { 
            text-align: center !important;
            font-size: 1.6rem !important; 
            margin-bottom: 10px !important; 
            width: 100% !important;
        }
        .hero-subtitle { 
            text-align: center !important;
            font-size: 0.75rem !important; 
            max-width: 280px !important; 
            margin: 0 auto !important;
            line-height: 1.4 !important;
            display: block !important;
        }
        .products-hero { 
            height: 240px !important; 
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding-bottom: 0 !important;
        }
        .product-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 8px !important;
            width: 100% !important;
            padding: 0 5px !important;
        }
        .product-card {
            border-radius: 8px !important;
            border: 1px solid #eee !important;
            box-shadow: none !important;
        }
        .img-hover-zoom {
            height: 110px !important; /* Mungil Berkelas Pak */
        }
        .product-info {
            padding: 8px 5px !important;
            text-align: center !important;
        }
        .product-title {
            font-size: 0.75rem !important; 
            color: #0d6b6b !important;
            margin-bottom: 4px !important;
            height: 2.2rem !important;
            overflow: hidden !important;
            font-weight: 600 !important;
            line-height: 1.1 !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
        }
        .royal-price-text {
            font-size: 0.82rem !important;
        }
        .product-actions {
            display: flex !important;
            flex-direction: row !important;
            gap: 6px !important;
            justify-content: center !important;
            margin-top: 8px !important;
        }
        .btn-cart-card {
            height: 26px !important;
            padding: 0 8px !important;
            font-size: 0.6rem !important;
            min-width: 0 !important;
        }
        .btn-wa-card {
            width: 26px !important;
            height: 26px !important;
            font-size: 0.9rem !important;
            border-radius: 6px !important;
        }
    }

    /* === KHUSUS TABLET (769px - 1100px) - KUNCI MATI PAK ✅ === */
    @media (min-width: 769px) and (max-width: 1100px) {
        .products-hero {
            height: 320px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        .hero-title {
            font-size: 2.8rem !important;
            text-align: center !important;
            width: 100% !important;
            margin-bottom: 15px !important;
        }
        .hero-subtitle {
            font-size: 1.1rem !important;
            max-width: 550px !important;
            margin: 0 auto !important;
            text-align: center !important;
        }
        .product-grid {
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 15px !important;
        }
        .img-hover-zoom {
            height: 180px !important;
        }
        .product-title {
            font-size: 0.92rem !important; /* UKURAN PAS TABLET PAK ✅ */
            height: 2.5rem !important; /* KUNCI TINGGI BIAR KARTUNYA RATA PAK ✅ */
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
            margin-bottom: 8px !important;
        }
    }

/* === MARQUEE FULL WIDTH HACK === */
.service-display {
    width: 100% !important;
    background: #0d6b6b !important;
    height: 40px !important;
    overflow: hidden !important;
    z-index: 100;
    display: flex !important;
    align-items: center !important;
}

.scrolling-wrapper {
    display: flex !important;
    width: max-content !important;
    animation: marquee-infinite 40s linear infinite !important;
    animation-direction: normal !important;
}

.marquee-group {
    display: flex !important;
    gap: 50px !important;
    padding-right: 50px !important;
}

.marquee-group span {
    color: white !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.85rem !important;
    line-height: 38px !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
}

/* === Marquee Container Precision === */
.service-display .container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.marquee-content-box {
    position: relative !important;
    z-index: 10 !important; /* Di depan watermark pak pak */
    width: 100% !important;
}

/* === Info Label DISPLAY Ke Tengah Pak Pak (Watermark Style) === */
.info-label {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.9rem !important; /* Dikit lebih gede agar tegas pak pak */
    letter-spacing: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    pointer-events: none !important;
    z-index: 1 !important; /* Di belakang teks berjalan pak */
    width: auto !important;
    white-space: nowrap !important;
}

@keyframes marquee-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Grid & Cards === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.product-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-hover-zoom {
    height: 220px;
    overflow: hidden;
}

.img-hover-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .img-hover-zoom img {
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
    text-align: left;
}

.product-cat-tiny {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0d6b6b;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    height: 80px;
    overflow: hidden;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.royal-price-text {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d6b6b;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-cart-card {
    flex: 1;
    background: #0d6b6b;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-wa-card {
    width: 35px;
    height: 35px;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
}

/* === Search Overlay === */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.search-overlay.active { display: flex; }

/* Modal Zoom */
.zoom-overlay-lux {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.zoom-overlay-lux.active { display: flex; }
.zoom-img-lux { max-width: 90%; max-height: 90%; border-radius: 8px; }

/* Mobile Adaptations */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .img-hover-zoom { height: 150px; }
    .hero-title { font-size: 1.8rem; }
}

/* === Trust Bar (Floating) === */
.trust-bar {
    background: #0d6b6b;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* AKTIFKAN WRAP PAK BIAR GAK KEPOTONG ✅ */
    margin: 0 auto 40px auto;
    width: 95%; /* LEBIH FLEKSIBEL PAK ✅ */
    max-width: fit-content;
    border-radius: 15px; /* BIAR RAPI SAAT WRAP PAK ✅ */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 20;
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.trust-bar-item:last-child {
    border-right: none;
}

.trust-bar-item i {
    font-size: 1rem;
    color: rgba(197, 160, 89, 0.9);
    flex-shrink: 0;
}

.trust-bar-item span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.trust-bar-item strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

/* === Sidebar Gaya Solid === */
.filter-sidebar {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 2px;
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-header-brand {
    background: #0d6b6b;
    color: white;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    max-height: 1000px;
}

.cat-item {
    border-bottom: 1px solid #eee;
}

.cat-link {
    display: block;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cat-link:hover {
    background: #fdfdfd;
    color: #0d6b6b;
}

.cat-link.active {
    background: #f0fff8;
    color: #0d6b6b;
    font-weight: 700;
    border-left: 4px solid #0d6b6b;
}

/* === Detail Sidebar & Filter === */
.cat-list.closed {
    max-height: 0;
}

.cat-item {
    border-bottom: 1px solid #f5f5f5;
}

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    font-family: 'Outfit', sans-serif;
}

.cat-link:hover,
.cat-link.active {
    background: #f0f8f5;
    color: #0a4f4f;
    font-weight: 600;
    padding-left: 25px;
}

.filter-widget {
    padding: 20px;
}

.filter-widget h4 {
    font-size: 0.7rem;
    margin-bottom: 15px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.price-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.price-range input {
    padding: 10px;
    border: 1px solid #eee;
    background: #fff;
    font-size: 0.78rem;
    width: 100%;
    outline: none;
    border-radius: 6px;
}

/* === Filter & Info Bar Details === */
.btn-filter-apply {
    width: 100%;
    padding: 12px;
    background: #0d6b6b;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s;
    border-radius: 6px;
}

.btn-filter-apply:hover {
    background: #052e2e;
}

.highlight-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #666;
    font-family: 'Outfit', sans-serif;
}

.highlight-option input {
    accent-color: #0d6b6b;
    width: 15px;
    height: 15px;
}

.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.count-text {
    font-size: 0.8rem;
    color: #999;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}


.count-text span {
    color: #0d6b6b;
    font-weight: 700;
}

/* === Utilities & Breadcrumb === */
.sort-wrapper span {
    font-size: 0.65rem;
    font-weight: 600;
    color: #ffffff !important;
    letter-spacing: 0.3px;
}

#sort-select {
    padding: 8px 16px;
    border: 1px solid #eee;
    background: #fff;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    color: #333;
    font-family: 'Outfit', sans-serif;
    border-radius: 4px;
}

.pulse-gold {
    color: var(--brand-accent);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
}


.breadcrumb a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
}

/* === Product Card Royal Style === */
.breadcrumb span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.breadcrumb i {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.35);
}

.info-notice {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.product-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.royal-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1px 7px;
    font-size: 0.52rem;
    font-weight: 500;
    color: white;
    /* PENTING PAK: Radius 0 di kanan atas agar mepet sempurna tanpa lubang ✅ */
    border-radius: 0 0 0 10px; 
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: -1px 1px 4px rgba(0,0,0,0.03);
}

.badge-gold {
    background: var(--brand-accent);
}


.badge-premium {
    background: var(--brand-primary);
    border: 1px solid var(--brand-accent);
}

/* === Zoom & Card Footer Details === */
.zoom-close-lux {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

.card-footer-lux {
    padding: 2px 10px 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border-top: none !important;
}


.card-img-box {
    position: relative;
}

/* === Zoom Hint & Trust === */
.zoom-hint-lux {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #0d6b6b;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.product-card:hover .zoom-hint-lux {
    opacity: 1;
}

.premium-trust {
    padding: 120px 0;
    background: #fff;
    margin-top: 80px;
}

.trust-grid-lux {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-box i {
    display: block;
    font-size: 3rem;
    color: var(--brand-accent);
    margin-bottom: 25px;
    transition: var(--transition);
}

.trust-box h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--brand-primary);
}

.trust-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Modal & Pagination LUX === */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-lux {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 45px 100px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1000px;
    position: relative;
    animation: modalFadeIn 0.5s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.pagination-lux .page-link {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    background: white;
    color: var(--brand-primary);
    text-decoration: none;
    display: block;
    font-weight: 700;
    border: 1px solid #eee;
    transition: var(--transition);
}


.pagination-lux .page-link.active,
.pagination-lux .page-link:hover {
    background: var(--brand-accent);
    color: white;
    border-color: var(--brand-accent);
}

/* === Desktop Overrides & Laptop Precision === */
@media (min-width: 992px) {
    .main-catalog-content {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .filter-header-mobile {
        display: none !important; /* Desktop ngumpet pak pak */
    }
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        width: 100% !important;
        margin: 0 !important;
        gap: 25px !important;
    }
    .filter-bar-standalone, .info-bar {
        width: 100% !important;
        max-width: 1040px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .product-card {
        min-width: 0 !important;
        width: 100% !important;
    }
    .info-bar {
        margin-bottom: 6px !important;
    }
    .products-view {
        padding-top: 0 !important;
    }
    .img-hover-zoom {
        height: 160px !important;
        border-radius: 8px 8px 0 0 !important;
    }
    .product-info {
        padding: 8px 10px !important;
    }
    .product-title {
        font-size: 0.88rem !important; 
        height: auto !important;
        max-height: 2.2rem !important;
        margin-bottom: 2px !important;
    }
    .royal-price-text {
        font-size: 1.05rem !important;
    }
    .btn-cart-card {
        height: 32px !important;
        font-size: 0.65rem !important;
    }
    .btn-wa-card {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
}






@media (min-width: 992px) {
    .mobile-filter-btn { display: none !important; }
    .sidebar-mobile-close { display: none !important; }
}

/* Akhir dari file products.css */
