/* ==========================================
   RESET & SYSTEM VARIABLES
   ========================================== */
:root {
    --primary-dark: #0f172a;
    --primary-blue: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-teal: #0d9488;
    --accent-orange: #f97316;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================
   TOP BAR (DESKTOP)
   ========================================== */
.top-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    color: #64748b;
    padding: 6px 0;
}

.top-bar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar a {
    color: #0284c7;
    text-decoration: none;
}

.top-bar-right a {
    color: #64748b;
    text-decoration: none;
}

.top-bar .divider {
    color: #cbd5e1;
}

/* ==========================================
   MAIN HEADER (DESKTOP)
   ========================================== */
header,
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    padding: 16px 0; /* Padding desktop ditingkatkan */
}

.header-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-desktop {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-mobile {
    display: none;
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* SEARCH BAR */
.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px 10px;
    border: 1px solid #e2e8f0;
}

.search-bar input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #1e293b;
    padding: 8px 0;
}

.search-bar button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

/* ACTIONS (CART & PROFILE) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
}

/* BADGE CART MELAYANG DI ATAS ICON */
.cart-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-item .icon {
    font-size: 20px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1.5px solid #ffffff;
}

.btn-user-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

/* ==========================================
   RESPONSIVE MOBILE (SESUAI REQUEST FOTO)
   ========================================== */
@media (max-width: 768px) {
    /* TOP BAR MOBILE: Hanya Munculkan Jabodetabek (Kiri) & Service Center (Kanan) */
    .top-bar {
        display: block;
        padding: 5px 0;
    }

    .hide-mobile {
        display: none !important;
    }

    .top-bar-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* MAIN HEADER MOBILE: Logo -> Search -> Cart -> Profile */
    .main-header {
        padding: 14px 0; /* Ukuran padding diperbesar agar header lebih tinggi */
        min-height: 64px; /* Menjamin batas minimal tinggi header */
    }

    /* 2. Mengatur Flex Container Mobile */
    .header-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between;
        gap: 8px !important;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        order: 1 !important;
        display: block;
        width: 40px;
    }

    .search-bar {
        order: 2 !important;
        flex: 1 !important;
        margin: 0 4px;
        padding: 4px 10px;
        border-radius: 8px;
        height: 38px; /* Menyesuaikan tinggi input search */
    }

    .search-bar input {
        font-size: 12px;
    }

    .header-actions {
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        flex-shrink: 0;
    }

    /* Hilangkan teks nama & label di HP */
    .action-item .label,
    .btn-user-dropdown .user-name,
    .btn-user-dropdown .arrow-down {
        display: none;
    }

    /* Pengaturan Badge Cart di Mobile */
    .cart-item {
        order: 1 !important; /* Didalam header-actions, Cart tampil pertama */
        position: relative;
    }

    .user-dropdown-container {
        order: 2 !important; /* Didalam header-actions, Profile tampil kedua */
    }

    /* Menyembunyikan Label Teks pada Mobile */
    .action-item .label,
    .btn-user-dropdown .user-name,
    .btn-user-dropdown .arrow-down {
        display: none !important;
    }

    .cart-badge {
        top: -5px;
        right: -6px;
    }

    .btn-user-dropdown .user-icon,
    .action-item .icon {
        font-size: 20px;
    }
}

/* ==========================================
   HERO BANNER GRID LAYOUT (PERSIS FOTO)
   ========================================== */
.hero-section {
    width: 100%;
    max-width: 1700px;
    margin: 16px auto;
    padding: 0 12px;
    box-sizing: border-box;
}

.hero-grid-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.banner-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* MAIN SLIDER */
.hero-main-slider {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.banner-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* SIDE BANNERS GRID */
.hero-side-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.side-banner-item {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.side-banner-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Side 3 memanjang 2 kolom */
.side-banner-wide {
    grid-column: span 2;
}

/* Navigasi Swiper Melayang */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.4);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 12px;
    font-weight: bold;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #ffffff;
    width: 18px;
    border-radius: 4px;
}

/* DESKTOP LAYOUT (Rasio Presisi) */
@media (min-width: 992px) {
    .hero-grid-container {
        display: grid;
        /* Main Banner (1280px) vs Side (640px) -> Proporsi ~ 2 : 1 */
        grid-template-columns: 2fr 1fr;
        gap: 12px;
    }

    .hero-main-slider {
        /* Menyesuaikan rasio 1280x500 */
        aspect-ratio: 1280 / 500;
        height: 100%;
    }

    .hero-side-banners {
        /* Grid 2 baris x 2 kolom untuk side banner */
        grid-template-rows: 1fr 1fr;
        height: 100%;
    }
}

@media (max-width: 991px) {

    /* HERO CONTAINER */
    .hero-section {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }

    .hero-grid-container {
        width: 100%;
        display: block;
    }

    /* MAIN BANNER */
    .hero-main-slider {
        width: 100%;
        aspect-ratio: 1280 / 500;
        overflow: hidden;
    }

    .hero-main-slider .swiper,
    .hero-main-slider .swiper-wrapper,
    .hero-main-slider .swiper-slide {
        width: 100%;
        height: 100%;
    }

    .hero-main-slider .banner-full-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* SIDE BANNER */
    .hero-side-banners {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 8px;
    }

    /* SIDE 1 & SIDE 2 */
    .side-banner-item:not(.side-banner-wide) {
        width: 100%;
        aspect-ratio: 320 / 250;
        overflow: hidden;
    }

    .side-banner-item:not(.side-banner-wide) .banner-full-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* SIDE 3 DISEMBUNYIKAN */
    .side-banner-wide {
        display: none !important;
    }
}

/* ==========================================
   ICON MENU BAR
   ========================================== */
.icon-menu-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin: 30px 0;
}

.icon-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.icon-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

.icon-box {
    font-size: 24px;
    margin-bottom: 6px;
}

/* ==========================================
KARTU PRODUK FLASH SALE (8 Item di Desktop)
   ========================================== */
.fs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 36px;
}

.fs-title-box {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fs-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Arial Black', 'Impact', sans-serif; /* Font tegas dan tebal */
  color: #f04d26; /* Warna merah-oranye sesuai gambar */
  line-height: 1;
}

/* Ukuran dan Posisi Ikon */
.fs-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Kata FLASH (Tebal, Miring, Padat) */
.text-flash {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
}

/* Kata SALE (Tipis/Normal, Tegak) */
.text-sale {
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.5px;
}

.fs-timer-box {
    font-size: 15px; /* Ukuran text diperbesar */
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fs-timer-digit {
    background: #ef4444; /* Background diubah menjadi MERAH */
    color: #ffffff;      /* Angka berwarna putih */
    padding: 4px 8px;   /* Ukuran box angka diperbesar */
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;     /* Font angka diperbesar */
    min-width: 28px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* --- CONTAINER CAROUSEL & TOMBOL MELAYANG --- */
.fs-carousel-container {
    position: relative;
    width: 100%;
}

/* Horizontal Scroll Container */
.fs-carousel-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 2px 14px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab; /* Indikator cursor saat bisa digeser */
    user-select: none;
}

.fs-carousel-wrapper.active {
    cursor: grabbing; /* Indikator cursor saat sedang ditarik */
    scroll-behavior: auto; /* Hilangkan animasi saat dipaksa drag cepat */
}

.fs-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

/* KARTU PRODUK FLASH SALE */
.fs-product-card {
    /* Formula: (100% - Total Gap untuk 7.5 item) / 7.5 */
    /* Dengan gap 10px, total gap antar 7.5 item adalah (10px * 7) = 70px */
    flex: 0 0 calc((100% - (10px * 7)) / 7.5);
    min-width: calc((100% - (10px * 7)) / 7.5);
    
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fs-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fs-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fs-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.fs-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Mencegah bentrok gambar saat di-drag */
}

.fs-discount-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
}

.fs-product-info {
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.fs-product-title {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 28px;
    margin-bottom: 4px;
}

.fs-price-wrapper {
    margin-top: auto;
}

.fs-product-price {
    font-size: 15px;
    font-weight: 800;
    color: #ef4444;
}

.fs-old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.btn-load-more {
    display: block;
    margin: 40px auto;
    padding: 12px 35px;
    background: #fff;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background: var(--primary-blue);
    color: #fff;
}

.fs-img-container {
    position: relative;
    overflow: hidden;
}
.fs-sold-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.20);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 5;

    pointer-events: none;
}
.fs-sold-overlay span {
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-align: center;

    background: rgba(0, 0, 0, 0.65);

    padding: 6px 10px;

    border-radius: 4px;

    white-space: nowrap;
}
.fs-sold-out {
    opacity: 0.95;
}
.fs-sold-out .fs-discount-badge {
    display: none;
}

/* ==========================================
   PRODUCT GRID & CARDS (8 COLUMNS / FULL IMAGE)
   ========================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35px 0 20px 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* Mengubah dari 4 kolom menjadi 8 kolom */
    gap: 10px; /* Menyesuaikan jarak antar kartu agar lebih rapat & rapi */
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 0 0 10px 0; /* Padding atas dibuat 0 agar gambar menempel ke tepi kartu */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    overflow: hidden; /* Memastikan sudut gambar terpotong mengikuti border-radius kartu */
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Mengatur container informasi di bawah gambar agar memiliki padding sendiri */
.product-info {
    padding: 8px 8px 0 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Memastikan gambar berbentuk persegi sempurna */
    height: auto;
    object-fit: cover; /* Mengisi penuh area gambar tanpa background putih/sisa margin */
    margin-bottom: 0;
    border-radius: 0; /* Menyesuaikan dengan batas overflow kartu */
    display: block;
}

.product-title {
    font-size: 12px; /* Dikecilkan sedikit agar muat di grid 8 */
    font-weight: 600;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    min-height: 32px;
    line-height: 1.3;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-dark);
}

.old-price {
    font-size: 15px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 4px;
}

.discount-badge {
    background: #fee2e2;
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
}

/* ==========================================
   CATEGORY SECTION - MODERN CAROUSEL CARD
   ========================================== */

.category-section {
    background: transparent;
    margin: 20px 0;
    position: relative;
    overflow: visible;
}

/* HEADER SECTION */
.category-header {
    padding: 0 0 16px 4px;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    font-size: 18px;
}

/* CAROUSEL WRAPPER */
.category-carousel-wrapper {
    position: relative;
    width: 100%;
}

/* NAV BUTTONS */
.cat-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #334155;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    user-select: none;
}

.cat-nav-btn:hover {
    background-color: #ffffff;
    color: #0284c7;
    border-color: #0284c7;
    transform: translateY(-50%) scale(1.08);
}

.cat-nav-prev {
    left: -16px;
}

.cat-nav-next {
    right: -16px;
}

/* CONTAINER & TRACK GRID */
.category-grid-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    padding: 4px; /* Memberi ruang bayangan border */
}

.category-grid-container::-webkit-scrollbar {
    display: none;
}

.category-grid-container.active {
    cursor: grabbing;
}

.category-grid {
    display: flex;
    flex-direction: row;
    width: max-content;
    gap: 12px; /* Jarak rapi antarkartu */
}

/* CARD DESIGN (Sesuai Gambar Sample) */
.category-card {
    flex: 0 0 135px;
    width: 135px;
    height: 165px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px; /* Sudut melengkung halus */
    padding: 16px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* WRAPPER GAMBAR KATEGORI */
.category-img-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Agar gambar tidak terpotong atau terdistorsi */
    display: block;
}

/* NAMA KATEGORI */
.category-name {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 32px;
    word-break: break-word;
}

/* ==========================================
   RESPONSIVE (MOBILE & TABLET)
   ========================================== */

@media (max-width: 768px) {
    .category-section {
        margin: 14px 0;
    }

    .category-title {
        font-size: 19px;
    }

    .category-grid {
        gap: 10px;
    }

    /* Ukuran Kartu Di-Mobile */
    .category-card {
        flex: 0 0 115px;
        width: 115px;
        height: 145px;
        padding: 12px 8px 10px 8px;
        border-radius: 12px;
    }

    .category-img-wrapper {
        width: 65px;
        height: 65px;
    }

    .category-name {
        font-size: 11px;
        height: 28px;
    }

    /* Tombol Navigasi Mobile */
    .cat-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .cat-nav-prev {
        left: -8px;
    }

    .cat-nav-next {
        right: -8px;
    }
}

@media (max-width: 480px) {
    .category-card {
        flex: 0 0 105px;
        width: 105px;
        height: 135px;
    }

    .category-img-wrapper {
        width: 55px;
        height: 55px;
    }
}
/* ==========================================
   VALUE PROPOSITION & SEO
   ========================================== */
.feature-bar-section {
    width: 100%;
    padding: 24px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.feature-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 12px;
}

.feature-icon-wrap {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7; /* Warna aksen biru elegan */

}

.feature-icon-wrap svg {
    width: 50px;
    height: 50px;
    stroke-width: 1.8;
}

.feature-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.feature-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
    font-weight: 400;
}

/* Responsif Mobile */
@media (max-width: 900px) {
    .feature-bar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .feature-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .feature-bar-section {
        padding: 16px 10px;
    }
}
.seo-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.seo-content h3 {
    font-size: 15px;
    margin: 15px 0 5px 0;
}

.seo-content p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================
   FOOTER STYLES & RESPONSIVE
   ========================================== */
footer,
.site-footer {
    background: var(--primary-dark, #0f172a);
    color: #94a3b8;
    padding: 50px 0 0 0;
    margin-top: 50px;
    font-family: inherit;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* LEFT SIDE: LINKS & NEWSLETTER */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.s-icon {
    font-size: 12px;
}

/* NEWSLETTER */
.newsletter-box {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.newsletter-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.newsletter-input {
    display: flex;
    gap: 8px;
    max-width: 420px;
}

.newsletter-input input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #ffffff;
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.newsletter-input input:focus {
    border-color: var(--primary-blue, #0284c7);
}

.newsletter-input button {
    background: var(--primary-blue, #0284c7);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.newsletter-input button:hover {
    background: #0369a1;
}

/* RIGHT SIDE: CONTACT CARD WIDGET */
.contact-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 24px;
    color: #cbd5e1;
    border: 1px solid #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-header {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 16px;
    border-bottom: 1px solid #334155;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-body {
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item strong {
    color: #f8fafc;
    display: block;
    margin-bottom: 4px;
}

.contact-item p {
    margin: 0;
    color: #94a3b8;
}

.wa-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.wa-link:hover {
    text-decoration: underline;
}

.badge-closed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* FOOTER BOTTOM / COPYRIGHT */
.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

/* ==========================================
   RESPONSIVE LAYOUT (MOBILE & TABLET)
   ========================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr; /* Jadi 1 kolom di HP agar tidak berdempetan */
        gap: 24px;
    }

    .newsletter-input {
        flex-direction: column; /* Tombol pindah ke bawah input di HP kecil */
        width: 100%;
    }

    .newsletter-input button {
        width: 100%;
    }

    .contact-card {
        padding: 18px;
    }
}

/* ==========================================
   MODALS (AUTH & ALERT)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 2000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    position: relative;
    box-sizing: border-box;
}

.modal-alert-card {
    text-align: center;
    padding: 32px 24px;
    max-width: 360px !important;
}

.error-icon-wrap {
    width: 64px;
    height: 64px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.error-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 8px 0;
}

.error-modal-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary-dark);
}

.modal-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-right: 20px;
}

.modal-header-nav h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.modal-header-nav .sub-link {
    font-size: 12px;
    color: var(--text-muted);
}

.modal-header-nav .sub-link a {
    color: #0083c9;
    font-weight: 700;
}

.social-login-wrap {
    margin-bottom: 20px;
}

.btn-google-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 11px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-google-login:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.divider-text {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider-text::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.divider-text span {
    position: relative;
    background: #ffffff;
    padding: 0 12px;
    font-size: 12px;
    color: #94a3b8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: var(--primary-dark);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #0083c9;
}

.password-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-group input {
    width: 100%;
    padding-right: 42px; 
}

.password-group .btn-toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.form-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.forgot-link {
    font-size: 12px;
    color: #0083c9;
    font-weight: 600;
}

.btn-submit-blue {
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-blue:hover {
    background: var(--primary-hover);
}

.btn-full {
    width: 100%;
    padding: 12px;
}

.forgot-header {
    text-align: center;
    margin-bottom: 20px;
}

.forgot-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 6px 0;
}

.forgot-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.btn-cancel-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
}

/* ==========================================
   CUSTOM VERIFICATION POPUP
   ========================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-in-out;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 440px;
    border-radius: 12px;
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.custom-modal-card.align-left {
    text-align: left;
}

.custom-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.custom-modal-close:hover {
    color: var(--primary-dark);
}

.custom-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.custom-modal-title.left-align { text-align: left; }

.custom-modal-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 20px;
}

.custom-modal-desc.left-align { text-align: left; }

.btn-inline-link {
    color: #0088ff;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.btn-inline-link:hover {
    text-decoration: underline;
}

/* ==========================================
   REGISTER PAGE STYLES
   ========================================== */
body.register-page {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.register-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 15px 0;
}

.register-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-back-arrow {
    font-size: 20px;
    color: #475569;
    font-weight: 600;
}

.register-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.header-spacer {
    width: 20px;
}

.register-main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.register-card-grid {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.register-info-side {
    text-align: center;
    padding-right: 20px;
}

.illustration-box img {
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.info-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.info-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto 20px auto;
}

.register-form-side {
    max-width: 420px;
    width: 100%;
}

.form-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.form-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.login-redirect {
    font-size: 12px;
    color: var(--text-muted);
}

.login-redirect a {
    color: #0083c9;
    font-weight: 700;
}

.social-btn-group {
    display: grid;
    margin-bottom: 20px;
}

.btn-social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-social-item:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.divider-line {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.divider-line span {
    position: relative;
    background: #ffffff;
    padding: 0 12px;
    font-size: 12px;
    color: #94a3b8;
}

.form-register-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-field-group {
    display: flex;
    flex-direction: column;
}

.input-field-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: var(--primary-dark);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-field-group input:focus {
    border-color: #0083c9;
}

.field-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.password-field {
    position: relative;
}

.btn-toggle-eye {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.terms-text {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    margin: 4px 0 8px 0;
}

.terms-text a {
    color: #0083c9;
}

.btn-submit-register {
    width: 100%;
    background: #0083c9;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-register:hover {
    background: #006da7;
}

.register-footer {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 18px 0;
}

.register-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-left {
    display: flex;
    gap: 16px;
}

.footer-link {
    color: #0083c9;
    font-weight: 600;
}

/* ==========================================
   USER DROPDOWN MENU
   ========================================== */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.btn-user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-user-dropdown:hover {
    background: #f1f5f9;
}

.btn-user-dropdown .user-icon {
    color: #0083c9;
    font-size: 16px;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 200px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    padding: 8px 0;
    z-index: 1000;
}

.user-dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-item .item-icon {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

.dropdown-item.logout-link {
    color: #ef4444;
    font-weight: 600;
}

.dropdown-item.logout-link:hover {
    background: #fef2f2;
}

/* ==========================================
   LOADING OVERLAY
   ========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.static-brand-logo {
    height: 28px;
    width: auto;
    margin-bottom: 16px;
    display: block;
}

.progress-bar-wrap {
    width: 180px;
    height: 4px;
    background-color: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}

.progress-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e11d48, #f97316);
    border-radius: 4px;
    animation: loadingLine 1.4s ease-in-out infinite;
}

.loading-text {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

@keyframes loadingLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================
   RESPONSIVE LAYOUT (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-section {
        grid-template-columns: 1fr;
    }
    .value-prop {
        grid-template-columns: repeat(3, 1fr);
    }
    .fs-product-card {
        flex: 0 0 calc((100% - (10px * 5)) / 6);
        min-width: calc((100% - (10px * 5)) / 6);
    }
}

@media (max-width: 768px) {
    .btn-menu-mobile {
        display: flex;
    }

    .logo-mobile {
        display: block;
    }

    .action-item .label {
        display: none;
    }

    .search-bar {
        order: 3;
        border-radius: 8px;
        padding: 0 4px 0 10px;
        max-width: 100%;
        width: 100%;
    }

    .search-bar input {
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .value-prop {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none;
    }

    .register-card-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .register-info-side {
        display: none;
    }

    .register-footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .fs-product-card {
        flex: 0 0 calc((100% - (10px * 3)) / 3);
        min-width: calc((100% - (10px * 3)) / 3);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card {
        padding: 10px;
    }
    .product-img {
        height: 130px;
    }
    .fs-product-card {
        flex: 0 0 125px;
        min-width: 125px;
    }
}

/* Unified catalog actions */
.catalog-add-cart{display:block;width:100%;height:0;max-height:0;margin:0;padding:0 8px;border:0;border-radius:7px;background:#1E88E5;color:#fff;font-size:12px;font-weight:800;cursor:pointer;overflow:hidden;opacity:0;transition:.18s ease}.product-card:hover .catalog-add-cart,.pc-card:hover .catalog-add-cart,.rec-card:hover .catalog-add-cart{height:35px;max-height:35px;margin-top:9px;padding:9px 8px;opacity:1}.catalog-add-cart:hover{background:#1565c0}.catalog-add-cart:disabled{background:#94a3b8;cursor:not-allowed}.catalog-toast{position:fixed;left:50%;top:84px;z-index:10050;transform:translate(-50%,-20px);opacity:0;pointer-events:none;padding:12px 18px;border-radius:9px;background:#0f172a;color:#fff;font-size:13px;font-weight:700;box-shadow:0 10px 30px rgba(15,23,42,.25);transition:.2s}.catalog-toast.show{opacity:1;transform:translate(-50%,0)}.catalog-toast.ok{background:#15803d}.catalog-toast.bad{background:#b91c1c}.sold-out-overlay{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.68);color:#b91c1c;font-weight:900;font-size:15px;text-transform:uppercase}
@media(max-width:700px){.catalog-add-cart{height:34px;max-height:34px;margin-top:8px;padding:8px 5px;opacity:1;font-size:11px}.catalog-toast{top:68px;width:max-content;max-width:calc(100vw - 30px);text-align:center}}
