/* ==========================================================================
   PT Nusantara Alkesindo Berdikari - Products Page Stylesheet
   ========================================================================== */

:root {
    --primary-blue: #0C2D57;
    --secondary-blue: #134074;
    --accent-blue: #0284C7;
    --accent-teal: #0284C7;
    --accent-teal-hover: #0369A1;
    --dark-text: #0F172A;
    --light-text: #475569;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background-color: var(--primary-blue);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-map-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.topbar-map-link:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-socials {
    display: flex;
    gap: 16px;
}

.topbar-socials a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.topbar-socials a:hover {
    color: var(--accent-teal);
}

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    color: white;
}

.lang-btn.active {
    background-color: var(--accent-teal);
    color: white;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-blue);
    line-height: 1.2;
    white-space: nowrap;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--light-text);
}

/* --- Navigation --- */
.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-teal);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-teal);
    border-radius: 2px;
}

.nav-arrow {
    font-size: 0.7rem;
}

/* --- Dropdown --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-text);
    font-size: 0.88rem;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--accent-teal);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    background-color: var(--bg-light);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--accent-teal);
}

.breadcrumb-item.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--light-text);
}

/* ============================================================
   PRODUCTS HEADER
   ============================================================ */
.products-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.products-header h1 {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.products-header p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================
   FILTER SECTION
   ============================================================ */
.filter-section {
    background-color: var(--bg-white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-title {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-container {
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    max-width: 600px;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-reset,
.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-reset {
    background-color: var(--bg-light);
    color: var(--dark-text);
    border: 1px solid var(--border-color);
}

.btn-reset:hover {
    background-color: #e2e8f0;
}

.btn-apply {
    background-color: var(--accent-teal);
    color: white;
}

.btn-apply:hover {
    background-color: var(--accent-teal-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -5px rgba(2, 132, 199, 0.4);
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.results-count {
    font-size: 0.9rem;
    color: var(--light-text);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--accent-teal);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.filter-tag i {
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag i:hover {
    color: #ef4444;
}

/* ============================================================
   URL FILTER BANNER (dari Featured Products Index)
   ============================================================ */
.url-filter-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-top: 24px;
    color: var(--primary-blue);
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 0.95rem;
    animation: bannerFadeIn 0.4s ease;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.url-filter-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.url-filter-banner-content i {
    color: var(--accent-teal);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.url-filter-banner-content strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.url-filter-banner-clear {
    background: var(--accent-teal);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.url-filter-banner-clear:hover {
    background: var(--accent-teal-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -5px rgba(2, 132, 199, 0.4);
}

.url-filter-banner-clear i {
    font-size: 0.8rem;
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-container {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    /* 4 kolom × 3 baris = 12 produk per halaman */
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-teal);
}

.product-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    min-width: 0;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 0.92rem;
    color: var(--primary-blue);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.product-model {
    font-size: 0.78rem;
    color: var(--light-text);
    margin-bottom: 4px;
}

.product-category {
    font-size: 0.78rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.btn-detail {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--accent-teal);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-detail:hover {
    background-color: var(--accent-teal-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -5px rgba(2, 132, 199, 0.4);
}

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-text);
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-prev,
.pagination-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: var(--primary-blue);
    color: white;
    border: 1px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.pagination-prev:hover,
.pagination-next:hover {
    background-color: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -5px rgba(2, 132, 199, 0.4);
}

.pagination-prev.disabled,
.pagination-next.disabled {
    opacity: 0.4;
    pointer-events: none;
    background-color: var(--light-text);
    border-color: var(--light-text);
}

.pagination-list {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background-color: var(--bg-white);
    color: var(--dark-text);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.pagination-link:hover {
    background-color: var(--bg-light);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.pagination-link.active {
    background-color: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
    box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.4);
}

/* ============================================================
   MODAL DETAIL PRODUK
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    z-index: 10;
}

.modal-header h3 {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--light-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: #ef4444;
}

.modal-body {
    padding: 24px;
}

.modal-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 20px;
    min-width: 0;
}

.modal-product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
}

/* --- Modal Gallery --- */
.modal-gallery {
    margin-bottom: 24px;
}

.gallery-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    min-width: 0;
    min-height: 0;
}

.gallery-item:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

.gallery-item.active {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    display: block;
}

/* --- Modal Details --- */
.modal-product-details h4 {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
    line-height: 1.4;
}

.modal-product-details > p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-features {
    margin-bottom: 20px;
}

.modal-features h5 {
    font-size: 0.95rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-features ul {
    list-style: disc;
    padding-left: 20px;
}

.modal-features ul li {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 6px;
    line-height: 1.5;
}

/* --- Modal Actions --- */
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* Tombol dasar untuk WhatsApp & Close */
.modal-btn-whatsapp,
.modal-btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

/* --- Tombol WhatsApp: ikon + teks --- */
.modal-btn-whatsapp {
    width: auto;
    height: auto;
    padding: 6px 18px 6px 8px;
    overflow: visible;
    background-color: #25D366;
    border-color: #25D366;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Lingkaran putih berisi ikon WhatsApp */
.modal-btn-whatsapp .wa-logo {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #25D366;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
}

.modal-btn-whatsapp .wa-logo i {
    display: block;
    line-height: 1;
}

.modal-btn-whatsapp:hover {
    background-color: #1eb955;
    border-color: #1eb955;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -5px rgba(37, 211, 102, 0.45);
}

/* --- Tombol Tutup --- */
.modal-btn-close {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
    width: auto;
    padding: 0 18px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-btn-close:hover {
    background-color: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -5px rgba(239, 68, 68, 0.4);
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: #081B33;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    margin-bottom: 16px;
    line-height: 1.4;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-teal);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links ul a:hover {
    color: var(--accent-teal);
}

.footer-contact p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact p i {
    margin-top: 4px;
    color: var(--accent-teal);
    flex-shrink: 0;
}

.copyright {
    background-color: #040E1A;
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* 4 kolom tetap sampai 1024px agar laptop 1280/1366px tampil 4×3 */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nav-list {
        gap: 20px;
    }
    .brand-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .topbar-contact span:nth-child(2),
    .topbar-map-link,
    .topbar-socials {
        display: none;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        overflow-y: auto;
        gap: 10px;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        margin-top: 6px;
        border-radius: var(--radius-sm);
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* 2 kolom untuk tablet portrait */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .modal-content {
        max-width: 100%;
    }

    .products-header h1 {
        font-size: 1.7rem;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    /* Banner URL filter tampil responsif */
    .url-filter-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .url-filter-banner-clear {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    /* 1 kolom untuk phone */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .products-header {
        padding: 40px 0;
    }

    .products-header h1 {
        font-size: 1.4rem;
    }

    .products-header p {
        font-size: 0.9rem;
    }

    .filter-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-actions {
        justify-content: center;
    }

    /* Tombol WhatsApp sedikit lebih kecil di mobile */
    .modal-btn-whatsapp {
        padding: 5px 14px 5px 6px;
        font-size: 0.82rem;
    }

    .modal-btn-whatsapp .wa-logo {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 20px;
    }

    .brand-name {
        font-size: 0.85rem;
        white-space: normal;
        line-height: 1.15;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }

    .logo-img {
        height: 40px;
    }

    .navbar-wrapper {
        height: 70px;
    }

    .nav-list {
        top: 70px;
        height: calc(100vh - 70px);
    }

    /* Pagination lebih compact di mobile */
    .pagination-prev,
    .pagination-next {
        padding: 10px 16px;
        font-size: 0.82rem;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    /* Banner URL filter versi mobile lebih compact */
    .url-filter-banner {
        padding: 12px 14px;
        font-size: 0.85rem;
        gap: 10px;
    }

    .url-filter-banner-clear {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}