/* CSS Khusus MDJ Store */
.artikel-page { background: #f8fafc; }

.artikel-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f172a;
}
.artikel-hero-media { position: absolute; inset: 0; z-index: 0; }
.artikel-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 8s ease;
}
.artikel-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .95) 0%, rgba(15, 23, 42, .78) 45%, rgba(15, 23, 42, .55) 100%);
}
.artikel-hero-content { position: relative; z-index: 2; padding: 90px 0; }
.artikel-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}
.artikel-hero-kicker i { color: #fbbf24; }
.artikel-hero-title {
    max-width: 850px;
    margin: 0 auto 18px;
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.1;
}
.artikel-hero-title span { color: #fbbf24; }
.artikel-hero-description {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1.7;
}
.artikel-hero-line {
    width: 70px;
    height: 4px;
    margin: 26px auto 0;
    border-radius: 999px;
    background: #fbbf24;
}

.artikel-content { padding: 60px 0 90px; }
.artikel-filter-wrapper {
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 35px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .03);
}
.artikel-search-form .input-group {
    border: 1px solid #d9dee7;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.artikel-search-form .form-control {
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    color: #172033;
    box-shadow: none !important;
}

.artikel-section-header { margin-bottom: 30px; }
.artikel-section-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.artikel-section-label i { color: #2563eb; }
.artikel-section-title {
    margin: 0;
    color: #0f172a;
    font-family: "Barlow", sans-serif;
    font-size: 30px;
    font-weight: 800;
}
.artikel-section-desc { margin: 6px 0 0; color: #64748b; font-size: 14px; }

/* KARTU KATALOG STORE */
.store-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

/* CONTAINER GAMBAR KARTU (RASIO 1:1) */
.store-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Aspect Ratio 1:1 */
    overflow: hidden;
    background: #f8fafc;
}
.store-card-image img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.store-card:hover .store-card-image img {
    transform: scale(1.05);
}

/* BADGE DISKON PADA KARTU (KIRI ATAS) */
.store-card-image .badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #ffffff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    line-height: 1;
}

/* BADGE STOK PADA KARTU (KANAN ATAS GAMBAR) */
.store-card-image .badge-stok-status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    line-height: 1;
}

.store-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.store-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
}
.store-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-card-description {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-card-price-box {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}
.price-asli {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.75rem;
}
.price-akhir {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a8a;
}
.stok-info {
    font-size: 0.75rem;
    color: #475569;
}

/* ACTION BUTTONS PADA KARTU */
.store-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.btn-detail-modal {
    background: #f1f5f9;
    color: #334155;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 8px 10px;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-detail-modal:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.btn-order-wa {
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    text-decoration: none;
    flex-grow: 1;
}
.btn-order-wa:hover {
    background: #1eb857;
    color: #fff;
}

/* TAMPILAN PRODUK / ARTIKEL KOSONG (RATA TENGAH PRESISI SEPERTI FOTO 2) */
.artikel-empty {
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
}

.artikel-empty-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #64748b;
    font-size: 28px;
}

.artikel-empty h4 {
    color: #1e293b;
    font-family: "Barlow", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.artikel-empty p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    max-width: 500px;
    line-height: 1.6;
}

/* MODAL DETAIL PRODUK STYLING */
.bg-gallery-wrapper {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.btn-close-modal-custom {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 8px;
    opacity: 0.85;
}
.btn-close-modal-custom:hover {
    opacity: 1;
}

.modal-gallery-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background-color: #ffffff;
}

#modalDetailProduk .badge {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: inline-block !important;
    width: auto !important;
    z-index: 1 !important;
}

.thumb-item {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    background-color: #fff;
}

.thumb-item.active, .thumb-item:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

.btn-whatsapp-pro {
    background: #25d366;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-whatsapp-pro:hover {
    background: #1eb857;
    color: #ffffff;
}

.font-barlow {
    font-family: 'Barlow', sans-serif;
}

.modal-info-container {
    max-height: 85vh;
    overflow-y: auto;
}

.description-scroll::-webkit-scrollbar {
    width: 4px;
}
.description-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.berita-pagination {
    margin-top: 55px;
}

.berita-pagination .pagination {
    gap: 7px;
    margin: 0;
}

.berita-pagination .page-item .page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 9px !important;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
    transition: all .20s ease;
}

.berita-pagination .page-item .page-link:hover,
.berita-pagination .page-item.active .page-link {
    border-color: #172033;
    background: #172033;
    color: #fff;
}

/* RESPONSIVE DESIGN FOR MOBILE */
@media (max-width: 767.98px) {
    .bg-gallery-wrapper {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .modal-gallery-img {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .store-card-body { padding: 10px; }
    .store-card-title { font-size: 0.85rem; }
    .store-card-description { font-size: 0.75rem; -webkit-line-clamp: 1; margin-bottom: 6px; }
    .price-akhir { font-size: 0.95rem; }
    .btn-detail-modal, .btn-order-wa { font-size: 0.72rem; padding: 6px 8px; }
}