:root {
  font-family: 'Poppins';
  line-height: 1.5;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* --- PALETTE WARNA STATIS (Warna Asli) --- */
  --color-white: #ffffff;
  --color-grey: #dcdbdb;
  --color-black: #242424;
  --color-primary: #56b9ff;
  --color-primary-hover: #3a8ed4;
  --color-light-red: #ff6b6b;
  /* ... tambahkan warna dasar lain jika perlu */
}

/* --- TEMA LIGHT (Default atau dipilih) --- */
[data-theme="light"] {
  --main-bg: #fdfdfd;
  --card-bg: #ffffff;
  --hover-bg: #f9f9f9;
  --placeholder-bg: #f0f0f0;
  --secondary-bg: #ebf7ff;
  --dark-secondary-bg: #daeefb;

  --primary-text: #3f3f3f;
  --secondary-text: #7c7c7c;
  --inverted-text: #ffffff;
  /* Teks untuk background gelap */

  --border-color: rgb(206, 206, 206);
  --light-border-color: rgb(232, 232, 232);
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Override spesifik */
  color-scheme: light;
}

/* --- TEMA DARK --- */
[data-theme="dark"] {
  --main-bg: #242424;
  /* Warna background utama dark */
  --card-bg: #2d2d2d;
  --hover-bg: #333333;
  --placeholder-bg: #3a3a3a;
  /* Warna kartu/elemen dark */
  --secondary-bg: #363636;
  --dark-secondary-bg: #222222;

  --primary-text: #ffffff;
  --secondary-text: #b5b5b5;
  --inverted-text: #242424;
  /* Teks untuk background terang */

  --border-color: #515151;
  --light-border-color: #404040;
  --shadow-color: rgba(0, 0, 0, 0.5);

  /* Override spesifik */
  color-scheme: dark;
}

input,
select {
  font-family: 'Poppins';
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}


/* --- IMPLEMENTASI VARIABEL KE ELEMENT --- */
body {
  margin: 0;
  background-color: var(--main-bg);
  color: var(--primary-text);
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Animasi halus saat ganti tema */
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

textarea {
  font-family: 'Poppins';
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--card-bg);
  /* Gunakan var dinamis */
  color: var(--primary-text);
  /* Gunakan var dinamis */
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.3s;
  box-shadow: var(--shadow-color);
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: var(--white-bg);
  }

  button {
    background-color: #f9f9f9;
  }
}.main-content {
  flex: 1;
  scrollbar-width: none;
  /* Untuk Firefox */
}

/* Parent container full viewport */
.auth-page-container {
  display: flex;
  /* jadikan flex container */
  justify-content: center;
  /* horizontal center */
  align-items: center;
  /* vertical center */
  width: 90%;
  min-height: 100vh;
  /* full viewport */
  margin: 0 auto;
  background: var(--color-white);
}

/* Inner content flex untuk dua sisi */
.auth-page-content {
  display: flex;
  width: 100%;
  max-width: 1400px;
  height: auto;
  /* biarkan isi menentukan tinggi */
  box-shadow: 0 1px 4px var(--shadow-color);
  border-radius: 20px;
  overflow: hidden;
}

.auth-form-section {
  display: flex;
  flex-direction: column;
  width: 50%;
  padding: 4rem 6rem;
  background-color: var(--white-bg);
  border-radius: 20px 0 0 20px;
  border: var(--lighter-grey-border);
  box-shadow: 0 1px 4px var(--shadow-color);
}

.auth-visual-section {
  position: relative;
  width: 50%;
  padding: 4rem;
  /* Ganti background-color dengan linear-gradient */
  background: linear-gradient(135deg, var(--color-primary), var(--darker-primary-bg)); /* Contoh warna lebih gelap */
  border-radius: 0 20px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white-bg);
  overflow: hidden;
}

/* Background shapes for the visual section */
/* Background shapes for the visual section */
.auth-visual-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2356b9ff' fill-opacity='1' d='M0,224L48,224C96,224,192,224,288,213.3C384,203,480,181,576,192C672,203,768,245,864,240C960,235,1056,187,1152,176C1248,165,1344,192,1392,205.3L1440,219L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  /* Replace with an actual SVG or CSS for the shapes */
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
}

/* Header with back arrow and sign in link */
.auth-form-header {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 2rem;
}

.auth-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.already-member {
  font-size: 0.9rem;
  color: var(--secondary-text);
}

.already-member a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

/* Form content styling */
.form-content {
  flex-grow: 1;
}

.title-section h2 {
  font-size: 2rem;
  margin: 0;
}

.title-section p {
  color: var(--secondary-text);
  font-size: 0.9rem;
  margin: 0.5rem 0 2rem;
}

/* Input styles (assuming AuthInput is styled separately) */
.password-input-container {
  position: relative;
  margin-bottom: 1rem;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--secondary-text);
}

.password-requirements {
  font-size: 0.8rem;
  color: var(--grey-text);
  margin-top: 0.5rem;
}

.password-requirements p {
  margin: 0.2rem 0;
  display: flex;
  align-items: center;
}

.password-requirements span {
  font-size: 1rem;
  margin-right: 0.5rem;
  color: var(--color-primary);
}

/* Button and social login styles */
.signup-button {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-primary);
  color: var(--white-text);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
}

.signup-button:hover {
  background-color: var(--color-primary-hover);
}

.social-login {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.social-login span {
  margin: 0 1rem;
  color: #999;
}

.social-icons a {
  margin: 0 0.5rem;
  display: inline-block;
}

.social-icons img {
  width: 30px;
  height: 30px;
}

/* Language selector */
.language-selector {
  display: flex;
  align-items: center;
  margin-top: auto;
  align-self: flex-start;
}

.language-selector img {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
}

.lang-text {
  font-weight: 500;
  color: #555;
}

/* Visual card styling */
.visual-content {
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 400px;
}

.inbox-card {
  background-color: #fff;
  color: #333;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #555;
  margin-bottom: 1rem;
}

.social-icons-top {
  display: flex;
  gap: 1rem;
}

.social-icons-top img {
  width: 25px;
  height: 25px;
}

.card-main {
  display: flex;
  flex-direction: column;
  position: relative;
}

.inbox-count {
  font-size: 2.5rem;
  font-weight: 700;
}

.activity-number {
  position: absolute;
  top: 50px;
  left: 70px;
  background-color: #6a66ff;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
}

.data-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #fff;
  color: #333;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.data-icon img {
  width: 40px;
  height: 40px;
}

.data-text h3 {
  margin: 0;
  font-size: 1.1rem;
}

.data-text p {
  margin: 0;
  font-size: 0.8rem;
  color: #777;
}

.language-selector-container {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
}

.language-selector-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.language-selector-display:hover {
    background-color: var(--light-grey-bg);
}

.language-selector-display .lang-icon {
    color: var(--icon-color);
}

.language-selector-display .lang-text {
    font-weight: 500;
    color: var(--primary-text);
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.language-selector-dropdown {
    position: absolute;
    bottom: 100%; /* Posisikan di atas tombol */
    left: 0;
    width: 150px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.language-selector-dropdown div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.language-selector-dropdown div:hover {
    background-color: var(--soft-grey-bg);
}

.language-selector-dropdown img {
    width: 20px;
    height: 20px;
}/* Home.css */
.main-content-layer {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Tetap stretch agar center logic bekerja */
  flex-direction: column;
  
  /* Logika Lebar & Responsivitas */
  width: 100%;
  max-width: 1400px; /* Batas maksimal lebar konten */
  margin: 0 auto; /* Center container */
  
  /* Jarak aman (Gutter) agar tidak menempel layar saat di-resize/zoom */
  padding-left: 10px; 
  padding-right: 10px;
  
  /* Penting: Agar padding tidak menambah lebar total melebihi 100% */
  box-sizing: border-box; 
}

/* Responsif: Perkecil jarak sisi pada layar mobile */
@media (max-width: 768px) {
  .main-content-layer {
    padding-left: 10px;
    padding-right: 10px;
  }
}/* Container for the entire title block */
.home-content-text {
    display: flex;
    flex-direction: column;
    /* Use a consistent gap */
    gap: 8px;
    /* Increase margin-bottom for better separation from the content below */
    margin-bottom: 20px;
    padding: 0 10px; /* Add some horizontal padding for smaller screens */
}

/* Title styling */
.home-content-title {
    font-size: 2.2rem; /* A bit larger for more impact */
    color: var(--primary-text);
    font-weight: 700; /* Bolder for prominence */
    /* Remove margin-left to align with the main content container */
    margin-left: 0;
}

/* Subtitle styling */
.home-content-subtitle {
    font-size: 1rem; /* Slightly larger for better readability */
    color: var(--secondary-text);
    /* Set max-width to prevent the subtitle from stretching too wide on large screens */
    max-width: 700px;
}

/* Container for subtitle and arrows */
.home-content-actions {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically align items */
    /* Remove flex-direction to keep items on a single line */
}

/* Arrow container styling */
.banner-icons-arrow {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Remove negative margin for cleaner layout */
    margin: 0;
}

/* Individual arrow button styling */
.banner-icons-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
    margin-top: -20px;
}

.banner-icon-left,
.banner-icon-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: 0.3s all;
}

.banner-icon-left {
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
}

.banner-icon-right {
    background-color: var(--color-primary);
    color: var(--white-text);
}

.banner-icon-left:hover,
.banner-icon-right:hover {
    box-shadow: 0 1px 4px var(--shadow-color);
    transform: scale(1.01);
}
/*
 * Mobile Styles (<= 768px)
 */
@media screen and (max-width: 768px) {
    .home-content-text {
        margin-bottom: 20px;
        padding: 0;
    }

    .home-content-title {
        font-size: 20px;
    }

    .home-content-subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    .home-content-actions {
        flex-direction: column; /* Stack subtitle and arrows on mobile */
        align-items: flex-start; /* Align items to the left */
        gap: 10px; /* Add a small gap between them */
    }

    .banner-icons-arrow {
        margin-top: 5px;
    }
}/* Container pembungkus utama */
.banner-wrapper {
    height: calc(500px + 50px);
    overflow: hidden;
    width: 100%;
    position: relative;
}

.home-banner::-webkit-scrollbar {
    display: none;
}

/* Container untuk semua banner */
.home-banner {
    display: flex;
    align-items: center;
    gap: 25px;
    scrollbar-width: none;
    transition: transform 0.5s ease;
    margin: 0;
    /* Menghapus background-color: red; */
}

/* Wrapper untuk setiap banner */
.home-banner-container {
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

/* Gaya dasar untuk gambar dan video banner */
.banner-image {
    width: 437px;
    height: 250px;
    border-radius: 20px;
    transition: all 0.5s ease;
    opacity: 0.6;
    transform: scale(0.9);
}

/* Gaya untuk banner yang sedang aktif */
.banner-image.active {
    width: 875px;
    height: 500px;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Kursor saat banner tidak aktif */
.banner-image:not(.active) {
    cursor: pointer;
}

/* Indikator slider */
.banner-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 10px 0 40px;
    /* Atur margin agar indikator di tengah */
}

.indicator-dot {
    width: 16px;
    height: 4px;
    background-color: var(--color-grey);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s, width 0.3s;
}

.indicator-dot.active {
    width: 36px;
    background-color: var(--color-primary);
}

/* Efek Shimmer */
.shimmer-item.large {
    width: 875px;
    height: 500px;
    border-radius: 20px;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.shimmer-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* Gaya Mobile (Lebar layar <= 1024px) */
/* Gaya Mobile (Lebar layar <= 1024px) */
@media (max-width: 1024px) {
    .home-banner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        
        /* 🔥 PERBAIKAN: Gunakan calc() untuk padding */
        /* Rumus: 50% lebar layar - 50% lebar item (140px adalah setengah dari 280px) */
        /* Ini membuat item pertama dan terakhir bisa berhenti tepat di tengah */
        padding: 0 calc(50% - 140px); 
    }

    .home-banner::-webkit-scrollbar {
        display: none;
    }

    .home-banner-container {
        scroll-snap-align: center;
        /* Tambahkan margin agar tidak terlalu rapat saat di-scroll */
        margin: 0 10px; 
    }

    /* Pastikan margin di .home-banner di-reset */
    .home-banner {
        gap: 0; /* Gap dipindah ke margin container individual untuk kontrol lebih baik di mobile */
    }

    .banner-image {
        width: 280px;
        height: 160px;
        border-radius: 12px;
        opacity: 1;
        transform: scale(1);
        transition: all 0.3s ease;
        /* Tambahkan object-fit agar gambar tidak gepeng */
        object-fit: cover; 
    }

    /* Efek scaling saat aktif di mobile */
    .home-banner-container:has(.banner-image.active) .banner-image {
        transform: scale(1.08); /* Sedikit diperbesar */
        box-shadow: 0 5px 15px var(--shadow-color);
    }

    .shimmer-item.large {
        width: 280px;
        height: 160px;
    }

    .banner-indicator {
        margin: 20px 0 40px; /* Sedikit tambah jarak atas */
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
.banner-wrapper {
        height: auto; /* Biarkan tinggi menyesuaikan konten */
        min-height: 200px;
    }
    
    /* Ukuran responsif jika layar sangat kecil */
    .banner-image, .banner-image.active {
        width: 280px; /* Tetapkan lebar konsisten */
        height: 160px;
    }
    
    .home-banner {
        transition: transform 0.5s ease;
        margin: 0;
        /* Hapus margin agar banner benar-benar di tengah */
    }
}/* Container for the entire categories section */
.categories-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Adjust the gap for a cleaner look */
    padding: 20px 0 40px 0; /* Let the parent container handle horizontal padding */
}

/* Wrapper for the category cards */
.category-card-wrapper {
    display: flex;
    gap: 15px; /* Adjust gap between cards */
    overflow-x: auto; /* Enable horizontal scrolling for overflow */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

/* Hide scrollbar for WebKit browsers */
.category-card-wrapper::-webkit-scrollbar {
    display: none;
}

/* Individual category card */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: 150px; /* Fixed width for consistent card size */
}

/* Hover effect for the card */
.category-card:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

/* Category image */
.category-card-images {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--dark-secondary-bg);
    object-fit: cover; /* Use 'cover' for better image cropping */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Softer shadow */
}

/* Category item name */
.category-card-items {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-text);
    margin-top: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6rem; /* Ensure consistent height for 2 lines of text */
}

/* Navigation arrows styling */
.categories-container .banner-icon-left,
.categories-container .banner-icon-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.categories-container .banner-icon-left {
    color: var(--secondary-text);
    background-color: var(--card-bg);
}

.categories-container .banner-icon-right {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* State for disabled arrows */
.categories-container .banner-icon-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none; /* Disables all pointer events */
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    .categories-container {
        gap: 10px;
        padding: 20px 0 30px 0;
    }

    .category-card-wrapper {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 10px; /* Add padding for a better scrolling experience */
    }

    .category-card {
        width: 120px; /* Smaller card width for mobile */
        height: auto;
        scroll-snap-align: start;
    }

    .category-card-images {
        width: 100px;
        height: 100px;
    }

    .category-card-items {
        font-size: 0.9rem;
    }

    /* Hide arrows on mobile and let the user swipe */
    .categories-container .banner-icon-left,
    .categories-container .banner-icon-right {
        display: none;
    }
}/* Container for all brand cards */
.brands-container {
    display: grid;
    /* Use 'auto-fit' with 'minmax' to create a fully responsive grid. */
    /* This will automatically wrap items based on available space. */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px; /* Consistent gap between cards */
    padding: 0 40px; /* Use padding for better spacing on all sides */
}

/* Individual brand card styling */
.brands-card {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left */
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Lighter, more subtle shadow */
    background-color: var(--card-bg);
    padding: 10px 15px; /* Slightly adjusted padding */
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; /* In case you use an <a> tag */
    color: var(--primary-text);
}

.brands-card:hover {
    transform: translateY(-3px); /* A subtle lift on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); /* More pronounced shadow */
}

/* Styling for the brand logo image */
.brands-card-images {
    width: 40px; /* Slightly smaller image for a more compact look */
    height: 40px;
    object-fit: contain;
    background-color: transparent; /* Remove the background color from the image itself */
    border-radius: 5px; /* Optional: subtle rounded corners for the image container */
}

/* Placeholder styling */
.brands-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-grey);
    border-radius: 5px;
}

/* Text styling for the brand name */
.brands-card > div {
    font-size: 1rem;
    font-weight: 500;
}

/*
 * Mobile responsiveness
 */
@media screen and (max-width: 768px) {
    .brands-container {
        gap: 10px;
    }

    .brands-card {
        padding: 8px 12px;
        gap: 10px;
    }

    .brands-card-images,
    .brands-placeholder {
        width: 35px;
        height: 35px;
    }

    .brands-card > div {
        font-size: 0.9rem;
    }
}/*
 * Styles for the filter bar container
 */
.products-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px; /* Add some padding for mobile */
}

/*
 * Container for the categories
 * This is the key to the horizontal scrollable experience
 */
.products-filter-categories {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Start from the left on scroll */
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari, Edge) */
.products-filter-categories::-webkit-scrollbar {
    display: none;
}

/*
 * Individual category item styling
 */
.category-item {
    flex-shrink: 0; /* Prevent items from shrinking */
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Hover and active states for categories */
.category-item:not(.active):hover {
    background-color: var(--secondary-bg);
    color: var(--secondary-text);
}

.category-item.active {
    font-weight: 600;
    border-color: var(--color-primary);
    color: var(--color-white);
    background-color: var(--color-primary);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/*
 * Responsive styles
 */
@media screen and (max-width: 768px) {
    .products-filter {
        justify-content: flex-start;
        padding: 0 16px;
    }
}.image-container {
    position: relative;
    cursor: pointer;
    width: 100%;
    height: auto;
    /* Menjaga rasio aspek agar gambar tidak gepeng (sesuaikan rasio frame anda, misal 1/1 atau 4/3) */
    aspect-ratio: 1 / 1; 
    
    /* MAGIS-NYA DI SINI: Mendefinisikan container untuk query ukuran */
    container-type: inline-size;
    overflow: hidden;
}

.image-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pastikan gambar mengisi penuh */
    inset: 0;
}

.image-frame {
  display: none;
}

.main-image {
    z-index: 1;
}

.overlay {
    pointer-events: none;
    z-index: 2;
}

.text-item {
    position: absolute;
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    
    /* Menggunakan Persentase (%) untuk posisi agar selalu nempel di pojok kanan atas frame */
    top: 4.5%;   /* Dikonversi dari kira-kira 9px */
    right: 1.5%; /* Dikonversi dari kira-kira 3px */
    
    /* Menggunakan Persentase untuk dimensi area teks */
    width: 40%;  /* Dikonversi dari 85px (asumsi lebar container ~200px) */
    height: 13%; /* Dikonversi dari 27px */

    /* Menggunakan CQW (Container Query Width) untuk ukuran font */
    /* Font akan otomatis membesar/mengecil ikut lebar container */
    font-size: 4cqw; 
    font-weight: 500;
    
    /* Debugging: nyalakan ini untuk melihat area teks */
    /* border: 1px solid red; */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Mencegah interaksi dengan overlay */
}


/* Sesuaikan posisi tiap elemen jika diperlukan */
.text-item { z-index: 9 }
.barcodeBG { z-index: 3; opacity: 0.5; } 
.barcode { z-index: 4; }
.topFrame { z-index: 5}
.bottomFrame { z-index: 6; }
.textLogo { z-index: 7; }
.logo { z-index: 8; }

.image-shimmer {
    position: absolute;
    inset: 0;
    background-color: #e0e0e0;
    overflow: hidden;
}

.image-shimmer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shimmer-diagonal 4s ease-in-out infinite;
}

@keyframes shimmer-diagonal {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

.image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--color-grey); /* Tambahkan background agar terlihat */
}

.image-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 5cqw; /* Ukuran icon/text placeholder juga responsif */
    color: var(--secondary-text);
}.products-container {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(5, 220px);
    grid-auto-rows: auto!important; /* atur tinggi baris tetap */
}

.products-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 1px 4px var(--shadow-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;text-decoration: none; /* Hilangkan garis bawah */
  color: inherit;        /* Gunakan warna teks parent, bukan warna biru link */
}

/* --- TAMBAHAN BARU --- */
.product-image-wrapper {
  width: 100%;
  /* Height sudah diatur via inline style di JSX */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;       /* Opsional: agar sudut membulat */
  overflow: hidden;          /* Agar gambar/konten tidak keluar */
  height: auto!important;
}

.products-card:hover {
    transform: scale(1.03); /* memperbesar 5% */
    box-shadow: 0 2px 8px var(--shadow-color); /* opsional: bayangan lebih besar saat hover */
}

.products-card-images {
    width: 100%;
    height: auto;
}

.products-card-info {
    padding: 15px 10px;
}

.products-card-model {
    font-size: 14px;
    color: var(--primary-text);
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-card-item {
    font-size: 12px;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-card-brand {
    display: flex;
    justify-content: end;
    font-size: 12px;
    color: var(--secondary-text);
    font-weight: 500;
    margin-top: 10px;
}

.no-image {
    background-color: var(--placeholder-bg);
    width: 100%;
    height: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-products-found {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* atau sesuai kebutuhan */
    font-size: 18px;
    color: var(--secondary-text);
    text-align: center;
}

/* ... CSS yang sudah ada ... */

/* --- SHIMMER EFFECT STYLES --- */

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: #f0f0f0;
  background-image: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 50%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* Skeleton Card Structure - Meniru layout .products-card tapi tanpa hover effect */
.products-skeleton-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--main-bg);
  /* Tidak ada cursor: pointer atau hover effect agar user tahu ini sedang loading */
}

.skeleton-image {
  width: 100%;
  /* Tinggi diatur inline di JSX agar responsif sama seperti ImageFrame */
}

.skeleton-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-text {
  height: 16px;
  border-radius: 4px;
  width: 100%;
}

.skeleton-text.subtitle {
  width: 60%; /* Baris kedua lebih pendek */
}

.skeleton-text.brand {
  width: 40%;
  align-self: flex-end; /* Posisi di kanan seperti brand asli */
  margin-top: 5px;
}.navbar-container {
    position: relative;
}

.navbar-header img,
.navbar-header .navbar-pages,
.navbar-header .icon-search {
    transition: transform 0.3s ease;
}

.navbar-header.scrolled img,
.navbar-header.scrolled .navbar-pages,
.navbar-header.scrolled .navbar-search-wrapper {
    transform: translateY(-5px);
    /* naik ke atas 5px */
}


.navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 20px 0 20px;
    position: fixed;
    top: 0;
    box-sizing: border-box;
    width: 100%;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-text);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
    /* overflow: hidden; */
}

.navbar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;


    /* clip-path: ellipse(100% 85% at 50% 10%);
    -webkit-clip-path:  ellipse(100% 85% at 50% 10%); */
    transition: opacity 0.5s ease;
    z-index: -1;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    /* default tanpa bayangan */
    transition: opacity 0.5s ease, box-shadow 0.3s ease;
    background-color: var(--main-bg);
}

.navbar-header.scrolled .navbar-overlay {
    opacity: 1;
    box-shadow: 0 2px 8px var(--shadow-color);
    /* efek seperti border bawah halus */
}

.navbar-pages {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 40px;
}

.navbar-pages a {
    font-weight: 500;
    text-decoration: none;
    color: var(--primary-text);
}

.navbar-pages li a {
    transition: 0.3s all;
}

.navbar-pages li.active a {
    color: var(--color-primary);
}

.navbar-pages li:not(.active):hover a {
    color: var(--color-primary-hover);
}

.navbar-pages-title {
    position: relative;
    cursor: pointer;
}

.navbar-pages-title.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.navbar-logo {
    width: 140px;
    object-fit: cover;
    pointer-events: none;
}

.icon-search {
    color: var(--primary-text);
}

.navbar-search-wrapper,
.navbar-search-wrapper-mobile {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white-bg);
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--light-border-color);
    gap: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    
    /* HAPUS width: 100% dan margin: 0 80px dari sini karena
       di mobile kita butuh logic yang berbeda */
}

/* Style tambahan untuk memastikan input di dalam search bar mengikuti parent */
.navbar-search-wrapper-mobile input {
    width: 100%;
    box-sizing: border-box;
}

/* --- DESKTOP SPECIFIC --- */
.navbar-search-wrapper {
    width: 100%;
    margin: 0 80px; /* Margin besar hanya untuk desktop */
}

/* 2. Wrapper Search Bar */
.navbar-search-wrapper-mobile {
    flex: 1;                    /* PENTING: Ambil sisa ruang, tapi jangan paksa 100% */
    width: auto !important;     /* Reset width jika ada style lain yang memaksa 100% */
    min-width: 0;               /* Mencegah flex item keluar container */
}

.navbar-search-wrapper:hover,
.navbar-search-wrapper-mobile:hover {
    border-color: var(--color-primary);
}

.navbar-search-wrapper:focus-within,
.navbar-search-wrapper-mobile:focus-within {
    border-color: var(--color-primary);
}

.navbar-search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    background: transparent;
    color: var(--primary-text);
}

.navbar-search-input::placeholder {
    color: var(--secondary-text);
}

.navbar-search-results {
    position: absolute;
    top: 130%;
    left: 0;
    width: 100%;
    /* ⬅️ ini penting */
    background-color: var(--card-bg);
    border-radius: 15px;
    border-top: none;
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-search-result-item {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--primary-text);
    cursor: pointer;
}

.navbar-search-result-item:hover {
    background-color:  var(--hover-bg);
}

.navbar-empty-search-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    font-size: 14px;
}

.search-result {
    color: var(--secondary-text);
}

.navbar-request-link {
    margin-top: 8px;
    color: var(--color-primary);
    font-weight: 400;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.navbar-request-link:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

.success-message {
    background-color: var(--inverted-text);
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    padding: 30px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.form-button-wrapper {
    display: flex;
}

/* Base Button Style */
.theme-toggle-btn,
.theme-toggle-btn-mobile {
    background: transparent;
    border: 1px solid var(--border-color);
    /* Pastikan variabel ini ada, atau ganti warna hex */
    border-radius: 12px;
    /* Lebih rounded agar modern */
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Transisi smooth */
    position: relative;
    overflow: hidden;
    margin-left: 30px;
}

/* Hover State */
.theme-toggle-btn:hover,
.theme-toggle-btn-mobile:hover {
    background: rgba(128, 128, 128, 0.1);
    /* Efek highlight halus */
    border-color: var(--primary-color, #6366f1);
    /* Border berubah warna saat hover */
    transform: translateY(-2px);
    /* Tombol naik sedikit */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Bayangan halus */
}

/* Active/Click State */
.theme-toggle-btn:active,
.theme-toggle-btn-mobile:active {
    transform: scale(0.95);
    /* Efek ditekan */
}

.theme-toggle-btn:focus,
.theme-toggle-btn-mobile:focus {
    outline: none;
    ;
}

/* Style Khusus saat Mode Gelap (Opsional, agar tombol terlihat 'menyala') */
.theme-toggle-btn.dark,
.theme-toggle-btn-mobile.dark {
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle-btn.dark:hover,
.theme-toggle-btn-mobile.dark:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(252, 211, 77, 0.4);
    /* Glow kuning untuk matahari */
    border-color: #fcd34d;
}

/* Icon Styles & Animation */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animasi untuk Bulan */
.icon-moon {
    color: var(--secondary-text, #64748b);
    animation: rotateIn 0.5s ease-out;
}

/* Animasi untuk Matahari */
.icon-sun {
    color: #fcd34d;
    /* Kuning matahari */
    animation: spinIn 0.5s ease-out;
    filter: drop-shadow(0 0 2px rgba(252, 211, 77, 0.5));
    /* Sedikit bersinar */
}

/* Keyframes Animasi */
@keyframes rotateIn {
    from {
        transform: rotate(-45deg) scale(0.5);
        opacity: 0;
    }

    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

@keyframes spinIn {
    from {
        transform: rotate(90deg) scale(0.5);
        opacity: 0;
    }

    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

.theme-toggle-btn.scrolled {
    transform: translateY(-5px);
}

.mobile-navbar {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}


/* Media Query untuk ukuran layar di bawah 768px (umumnya untuk tablet dan mobile) */
@media (max-width: 768px) {
    .navbar-header {
        padding: 10px 20px;
        justify-content: space-between;
        /* Padding lebih kecil untuk mobile */
    }

    .navbar-logo {
        display: none;
        /* width: 100px; */
        /* Ukuran logo lebih kecil */
    }

    /* Sembunyikan menu navigasi default dan form pencarian di mobile */
    .navbar-pages,
    .navbar-search-wrapper {
        display: none;
    }

    .mobile-navbar {
        display: flex;
    }

    .theme-toggle-btn {
        display: none;
    }
    
    .navbar-mobile-header {
        display: flex;
        box-sizing: border-box;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        /* background-color: red; Hapus warna debug ini nanti */
        
        /* KURANGI GAP: 40px terlalu besar untuk HP */
        gap: 12px; 
        
        /* Tambahkan padding agar tidak mepet layar */
        padding: 10px 0; 
    }
}

.navbar-login {
    padding: 8px 24px;
    border-radius: 20px;
    background-color: var(--color-primary);
}

.navbar-login a {
    color: var(--inverted-text);
}/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background-color: var(--main-bg);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 24px; /* Padding yang sedikit lebih besar */
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-menu-overlay.open {
    right: 0;
}

/* --- Header di dalam Menu --- */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px; /* Padding bawah lebih besar */
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0; /* Garis pemisah yang lebih halus */
}

.mobile-menu-header h2 {
    font-size: 1.5rem;
    color: var(--primary-text);
    margin: 0;
    font-weight: 700; /* Font weight yang lebih tebal */
}

.close-menu {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-text);
    transition: color 0.2s ease-in-out;
    padding: 8px; /* Area klik lebih besar */
}

.close-menu:hover {
    color: var(--color-primary);
}

.close-menu:focus {
    outline: none;
}

/* --- Navigasi Mobile --- */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Jarak antar item */
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    background-color: var(--placeholder-bg);
    border: 1px solid transparent; /* Border transparan default */
    border-radius: 12px; /* Border radius yang lebih besar */
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-nav-item:hover {
    transform: translateY(-2px); /* Efek sedikit terangkat */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Bayangan yang lebih nyata */
    background-color: var(--placeholder-bg); /* Perubahan warna latar saat hover */
}

.mobile-nav-item.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Bayangan lebih kuat untuk status aktif */
    transform: translateY(-2px);
}

.mobile-nav-item.active a {
    color: var(--white-bg);
}

.mobile-nav-item.active a svg {
    color: var(--white-bg);
}

.mobile-nav-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px; /* Padding yang lebih besar untuk area klik luas */
    text-decoration: none;
    color: var(--primary-text);
    font-size: 1rem;
    font-weight: 600; /* Teks link lebih tebal */
    width: 100%;
    box-sizing: border-box;
}

.mobile-nav-item a span {
    flex-grow: 1;
    margin-left: 16px;
}

/* Mengatur warna ikon saat item tidak aktif */
.mobile-nav-item:not(.active) a svg {
    color: var(--secondary-text); /* Warna ikon yang lebih kalem */
}

/* Penyesuaian warna ikon dan teks saat item hover */
.mobile-nav-item:hover a {
    color: var(--primary-text); /* Teks tetap hitam, hanya latar yang berubah */
}
.mobile-nav-item:hover.active a {
    color: var(--white-bg); /* Teks putih saat hover di item aktif */
}

.mobile-nav-item:hover a svg {
    color: var(--primary-text); /* Warna ikon saat hover */
}
.mobile-nav-item:hover.active a svg {
    color: var(--white-bg);
}


/* --- Backdrop --- */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6); /* Warna overlay yang lebih gelap */
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mobile-menu-overlay.open ~ .backdrop { /* Menggunakan `~` untuk menargetkan elemen setelah overlay */
    opacity: 1;
    pointer-events: auto;
}

/* 3. Tombol Menu (Burger Icon) */
.mobile-menu-toggle {
    flex-shrink: 0;             /* PENTING: Mencegah tombol gepeng/mengecil */
    width: 40px;                /* Lebar fix untuk tombol */
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-text, #000);
}

.mobile-menu-toggle span {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-navbar-button-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: end;
}

.navbar-mobile-logo {
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 150px;
    height: auto;
}/* Base styles for the footer sections (mobile-first) */
.home-content-layer {
    overflow-x: hidden;
    margin: 0 auto;
    max-width: 1600px;
}

/* Main footer container */
.footer-container {
    display: flex;
    flex-direction: column; /* Stack columns on mobile */
    gap: 30px;
    padding: 20px;
    text-align: left;
}

/* Individual footer section */
.footer-content {
    flex: 1;
}

.footer-header {
    font-size: 1.2rem; /* Slightly larger for emphasis */
    font-weight: 700; /* Bolder header */
    margin-bottom: 18px; /* More space below header */
    color: var(--primary-text);
    position: relative; /* For the underline effect */
    padding-bottom: 5px; /* Space for the underline */
}

.footer-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px; /* Short underline */
    height: 3px;
    background-color: var(--color-primary); /* Accent color for underline */
    border-radius: 2px;
}

.footer-body {
    display: flex;
    flex-direction: column;
    gap: 12px; /* More space between list items */
    padding: 0;
}

.footer-body li {
    list-style-type: none;
    font-size: 0.95rem; /* Slightly larger text */
    color: var(--secondary-text);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
}
.footer-body a,
.agree-policy a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-body a:hover,
.agree-policy a:hover {
    color: var(--color-primary);
    transform: translateX(5px); /* Slight movement on hover */
}

.footer-link.active a {
    color: var(--color-primary)!important;
    font-weight: 600; /* Bold active link */
}


/* App download section */
.footer-subtitle {
    font-size: 0.85rem; /* Slightly larger */
    color: var(--secondary-text);
    margin-bottom: 10px;
    line-height: 1.5; /* Better readability */
}

.footer-app-icon {
    display: flex;
    flex-direction: column; /* Stack QR code and text on mobile */
    align-items: flex-start;
    gap: 20px; /* More space between items */
}

.footer-logo-playstore {
    width: 130px; /* Adjust size for mobile, make it slightly smaller but still clear */
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.footer-logo-playstore:hover {
    transform: translateY(-3px); /* Subtle lift on hover */
}

/* Bottom policy container */
.agree-policy-container {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px; /* More space between elements */
    padding: 0 20px 30px 20px; /* More bottom padding */
    font-size: 0.85rem; /* Slightly larger */
    color: var(--secondary-text);
}

.agree-policy {
    display: flex;
    flex-direction: column; /* Stack policy links on mobile */
    gap: 8px; /* Space between policy links */
    padding: 0;
}

.agree-policy li {
    list-style-type: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.agree-policy li:hover {
    color: var(--primary-text);
}

.footer-logo {
    width: 200px; /* Adjusted size for better balance */
    margin-bottom: 10px; /* Space between logo and title */
}

.footer-logo-title {
    font-weight: 600; /* Bolder title */
    font-size: 1rem;
    color: var(--primary-text);
}


/*
 * Desktop styles
 */
@media screen and (min-width: 768px) {
    .footer-container {
        flex-direction: row; /* Multi-column layout on desktop */
        justify-content: space-between;
        padding: 60px 40px; /* More padding for desktop */
        text-align: left;
    }

    .footer-content {
        flex-basis: 22%; /* Adjust column width for better distribution */
    }

    .footer-app-icon {
        flex-direction: row; /* Layout QR code and text side-by-side */
        align-items: center;
    }

    .footer-logo-playstore {
        width: 150px; /* Restore desktop size */
    }
    
    .agree-policy-container {
        flex-direction: row; /* Horizontal layout on desktop */
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 0 40px 30px 40px; /* Consistent padding */
    }

    .agree-policy {
        flex-direction: row;
        gap: 30px; /* More space between policy links on desktop */
    }

    .footer-logo {
        width: 250px; /* Keep original desktop size if preferred */
    }

    .footer-header::after {
        width: 60px; /* Longer underline on desktop */
    }
}.custom-searchbox-container {
    margin: 40px 0 10px 0;
    position: relative;
    width: 100%;
}

.custom-searchbox-input {
    width: 100%;
    padding: 14px 45px;
    box-sizing: border-box;
    font-size: 16px;
    color: var(--primary-text);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    outline: none;
    transition: 0.3s all;
}

.custom-searchbox-input::placeholder {
    color: var(--secondary-text);
}

.custom-searchbox-input:hover {
    border-color: var(--color-primary);
}

.custom-searchbox-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 1px 4px var(--shadow-color);
}

.custom-searchbox-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    cursor: pointer;
}

.custom-clear-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--secondary-text);
    cursor: pointer;
    transition: 0.3s all;
}

.custom-clear-icon:hover {
    color: var(--primary-text);
}

.custom-search-results {
    position: absolute;
    top: calc(100% + 8px);
    /* sedikit jarak dari input */
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 1px 4px var(--shadow-color);
    z-index: 20;
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 0;
}

.custom-search-item {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--primary-text);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-search-item:hover {
    background-color: var(--soft-grey-bg);
    /* Pastikan kamu punya var ini */
}

.delete-icon {
    color: var(--secondary-text);
    margin-left: 8px;
    cursor: pointer;
    transition: 0.1s all;
}

.delete-icon:hover {
    color: var(--primary-text);
}.product-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-container-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.product-headers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -16px;
}

.product-headers span {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-header-left {
    width: 300px;
    padding: 10px 10px 10px 10px;
    position: relative;
}

.product-header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text);
}

.clear-all-filter:hover {
    color: var(--dark-red-text);
}

.product-header-right {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 100%;
    margin: 0 60px;
}

.product-sorting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-container-side {
    display: flex;
}

.product-container-left {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 16px;
    width: 250px;
    height: 100%;
}

.filter-title {
    font-size: 16px;
}

.filter-container {
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-container-checkbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
}

.product-container-right {
    width: 100%;
    margin: 0 8px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.product-pagination {
    margin-top: 40px;
    display: none;
    justify-content: end;
}

/* Pagination */
.table-pagination-pages {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 20px;
}

.pagination-list {
    display: flex;
    flex-direction: column;
}

.pagination-list-pages {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.pagination-list ul {
    display: flex;
    gap: 10px;
    list-style-type: none;
    align-items: center;
    justify-content: center; /* TAMBAHKAN INI: Agar tombol berada di tengah */
    padding: 0; /* OPSIONAL: Reset padding default browser */
}

.pagination-list li {
    position: relative;
    display: flex;
    padding: 0;
    gap: 10px;
    width: 50px;
}

.pagination-list button,
.pagination-list .btn.disabled {
    min-width: 35px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--white-background);
    font-size: 14px;
    color: var(--color-text);
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

/* Styling untuk tombol pagination yang disabled */
.pagination-list .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-list button:focus {
    outline: none;
}

.pagination-list .btn:not(.disabled):hover {
    background-color: var(--white-background-hover);
}

.pagination-list li .pagination-item:not(.active):hover {
    background-color: var(--white-background-hover);
}

.pagination-list li .pagination-item.active {
    background-color: var(--color-primary);
    color: var(--white-background);
    font-weight: 500;
}

/* ... (CSS Existing) */

/* Tambahkan style untuk judul desktop agar bisa di-hide di mobile */
.desktop-filter-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: -16px;
    /* Menyesuaikan style lama */
}

/* Tombol Trigger Filter (Default Hidden di Desktop) */
.mobile-filter-trigger-btn {
    display: none;
    /* Sembunyikan di desktop */
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--white-background);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--primary-text);
}

/* Header Filter Mobile (Close button) - Default Hidden */
.mobile-filter-header {
    display: none;
}

.mobile-apply-filter-btn {
    display: none;
}

/* ========================================= */
/* MEDIA QUERY: TAMPILAN MOBILE (< 768px) */
/* ========================================= */
@media screen and (max-width: 768px) {
    .product-header-title {
        display: none;
    }

    /* 1. Sembunyikan judul filter desktop, tampilkan tombol */
    .desktop-filter-title {
        display: none;
    }

    .desktop-filter-btn {
        display: none;
    }

    .mobile-filter-container {
        margin: 40px 10px 0;
        display: flex;
        justify-content: end;
        gap: 10px;
    }

    .mobile-filter-trigger-btn {
        display: flex;
        font-size: 12px;
    }

    .mobile-filter-trigger-btn:focus {
        outline: none;
    }
    
    .mobile-filter-trigger-btn.clear {
        border-color: var(--light-red-text);
        color: var(--dark-red-text);
    }

    .product-header-left {
        width: 100%;
        padding: 5px 0;
    }

    .product-header-right {
        margin: 0;
        /* Reset margin */
        width: auto;
    }

    .product-container-header {
        justify-content: space-between;
    }

    /* 2. Logic Sidebar (Filter Container) di Mobile */
    .product-container-side {
        flex-direction: column;
        /* Stack layout */
    }

    .product-container-left {
        /* Default: Sembunyikan sidebar filter */
        display: none;

        /* Modal Style ketika aktif */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;

        /* --- PERBAIKAN DI SINI --- */

        /* Gunakan 100dvh agar pas dengan viewport browser mobile yang dinamis */
        /* height: 100vh; */
        /* Fallback untuk browser lama */
        /* height: 100dvh; */
        /* Dynamic Viewport Height */

        /* Pastikan z-index lebih tinggi dari Navbar (Navbar biasanya 10000) */
        z-index: 20000;

        background-color: var(--main-bg);

        /* Tambahkan padding bawah yang besar (misal 100px) 
           agar konten paling bawah (tombol) tidak tertutup toolbar browser */

        overflow-y: auto;
        /* Agar bisa discroll */
        -webkit-overflow-scrolling: touch;
        /* Agar scroll smooth di iOS */

        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 0;
    }

    /* Class yang ditambahkan via React state saat tombol diklik */
    .product-container-left.mobile-open {
        display: block;
        animation: slideIn 0.3s ease-out;
    }

    /* 3. Header Filter Mobile (Judul + Close Button) */
    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-filter-header span {
        font-size: 18px;
        font-weight: bold;
    }

    .mobile-filter-header button {
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Reset width container kanan agar full width */
    .product-container-right {
        width: 100%;
        margin: 0;
    }

    .filter-container {
        /* Gunakan 100dvh agar pas dengan viewport browser mobile yang dinamis */
        height: 88vh;
        /* Fallback untuk browser lama */
        height: 88dvh;
        overflow-y: auto;
    }

    .pagination-pages-desktop {
        display: none;
    }

    .pagination-list-pages {
        margin-top: 0;
    }
    
    .product-pagination {
        display: flex;
    }
}

/* Animasi Slide Masuk */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fab-button {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--white-background);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 15000; /* Pastikan di atas elemen lain */
    padding: 0;
}

.fab-button:focus {
    outline: none;
}

.fab-button.bottom {
    bottom: 20px;
}

.fab-button.up {
    bottom: 80px;
}

.fab-button:hover {
    background-color: var(--color-primary-hover);
}.product-search-results {
    display: flex;
    justify-content: end;
    margin: 10px;
    font-size: 14px;
}

.founded-product-text {
    color: var(--primary-text);
    font-weight: 500;
}

.founded-product-results {
    color: var(--secondary-text);
    font-size: 12px;
}

@media screen and (max-width: 768px) {
    .product-search-results {
        margin-bottom: 0;
    }
}.custom-refinement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.refinement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.refinement-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--secondary-text);
}

.refinement-search {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 5px;
  transition: 0.3s all;
}

.refinement-search:hover {
  border-color: var(--color-primary);
}

.refinement-search:focus {
  border-color: var(--color-primary);
  box-shadow: 0 1px 4px var(--shadow-color);
  outline: none;
}

.refinement-showmore {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 3px;
  margin-right: 10px;
  font-size: 14px;
  color: var(--color-primary);
  cursor: pointer;
  transition: 0.3s all;
}

.refinement-showmore span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.refinement-showmore:hover {
  color: var(--color-primary-hover);
}

.checkbox-container {
  display: flex;
}

.checkbox-container label {
  display: flex;
  gap: 8px;
  cursor: pointer;
}

.has-more-filter {
  display: flex;
  justify-content: end;
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
}

.has-more-filter div {
  padding: 5px 12px;
  border-radius: 20px;
  transition: 0.3s all;
}

.has-more-filter div:hover {
  color: var(--color-primary-hover);
}

.checkbox-value {
  font-size: 12px;
}.react-select-container {
    color: var(--secondary-text);
    width: 100%;
}

.react-select__control, .css-1eniyt9-control, .css-1n6cia6-control {
    border-radius: 5px;
    padding: 3.26px;
    box-shadow: var(--soft-box-shadow);
}

.css-1eniyt9-control, .css-1n6cia6-control {
    min-width: 200px;
}

.react-select__control:hover, .css-1eniyt9-control:hover, .css-1n6cia6-control:hover {
  border: 1px solid var(--color-border-active);
  box-shadow: var(--ev-c-gray-light-1);
}

.react-select__menu {
    z-index: 100;
}

.custom-single-value {
    display: flex;
    align-items: center;
    gap: 8px;
}.product-detail-container {
  display: flex;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 4px var(--shadow-color);
  border-radius: 20px;
  padding: 20px;
}

.product-detail-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.product-detail-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.product-detail-wrapper-container {
  display: flex;
  justify-content: center;
}

.thumbnail-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-color);
  background-color: rgb(244, 244, 244);
  padding: 10px;
  border-radius: 20px;
}

.product-detail-thumbnail {
  width: 400px;
}

.product-detail-info {
  width: 100%;
  padding: 20px 0px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-detail-title {
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: 500;
}


.detail-row {
  display: flex;
  margin-bottom: 10px;
  align-items: flex-start;
}

.detail-row-label {
  width: 120px;
  font-size: 18px;
}

.detail-row-dot {
  width: 20px;
  /* Lebar tetap untuk titik dua */
  font-size: 18px;
  text-align: center;
}

.detail-row-value {
  flex: 1;
  font-size: 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}


.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 300px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.product-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 10px;
  background-color: var(--placeholder-bg);
  box-shadow: 0 1px 4px var(--shadow-color);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 10px;
  overflow-y: auto;
  /* height: auto !important; */
  /* max-height: 250px; */
  margin-top: 20px;
  color: var(--secondary-text);
}


.product-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: 0.5s all;
}

.detail-more-title {
  font-size: 24px;
  margin: 20px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light-grey-text);
  font-size: 14px;
  margin: 30px auto;
  /* center dan beri jarak vertikal */
  max-width: 95%;
  /* batasi lebar divider */
  width: 100%;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-grey);
}

.divider::before {
  margin-right: 10px;
}

.divider::after {
  margin-left: 10px;
}

.product-detail-more {
  padding-bottom: 10px;
}

.product-detail-modal {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 100000;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-detail-modal-container {
  position: relative;
  display: flex;
  background-color: var(--main-bg);
  border-radius: 20px;
  z-index: 10000;
  width: 95%;
  max-width: 1300px;
}

.product-detail-modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-width: 90vw;
  max-height: 90vh;
  /* Tambahkan agar bisa scroll dengan manual */
  scroll-behavior: smooth;
}

.product-modal-image {
  cursor: zoom-in;
  transition: transform 0.3s ease-in-out;
  width: 800px;
  height: 800px;
  will-change: transform;
}

.product-detail-modal-info {
  position: relative;
  width: 420px;
  display: flex;
  flex-direction: column;
  padding: 50px 40px 0 40px;
}

.modal-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding: 12px 40px;
  border-bottom-right-radius: 20px;
  background-color: var(--white-bg);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.modal-download,
.modal-share {
  background-color: var(--placeholder-bg);
  padding: 10px 10px;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--secondary-text);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.5s all;
}

.modal-download:hover,
.modal-share:hover {
  background-color: var(--hover-bg);
}

.modal-download span,
.modal-share span {
  display: flex;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--placeholder-bg);
  border: 1px solid var(--light-border-color);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  border-radius: 50%;
  left: 4px;
  bottom: 3px;
  background-color: var(--card-bg);
  transition: 0.4s;
}

input:checked+.slider {
  background-color: var(--color-primary);
}

input:checked+.slider:before {
  transform: translateX(26px);
}

.list-image-empty {
  width: 100%;
}

.button-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styling Tombol "Tampilkan Semuanya" */
.product-detail-more button {
  padding: 12px 32px;
  background-color: var(--card-bg);
  color: var(--primary-text, #333);
  /* Fallback ke hitam jika variabel tidak ada */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  /* Membuat sudut tombol melengkung halus */
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.5px;
}

/* Efek saat Mouse diarahkan ke tombol (Hover) */
.product-detail-more button:hover {
  background-color: var(--hover-bg);
  /* Menggunakan warna utama tema Anda */
}

.product-detail-share,
.product-detail-share-mobile {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  /* Atau sesuaikan dengan container */
  max-width: 300px;
  padding: 10px 16px;
  background-color: var(--hover-bg);
  /* Menggunakan variabel dari index.css */
  border: 1px solid var(--border-color);
  /* Menggunakan variabel dari index.css */
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 12px;
}

.product-detail-share:hover,
.product-detail-share-mobile:hover {
  border-color: var(--color-primary);
  /* Warna highlight saat di-hover */
  background-color: var(--secondary-bg);
}

/* Bagian teks URL */
.product-detail-url {
  flex: 1;
  /* Agar mengambil ruang yang tersedia */
  font-size: 0.85rem;
  color: var(--secondary-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Poppins', sans-serif;
}

/* Container untuk tombol "Salin Link" */
.product-detail-share div,
.product-detail-share-mobile div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1.5px solid var(--border-color);
  /* Garis pemisah vertikal */
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.product-detail-share div:hover,
.product-detail-share-mobile div:hover {
  color: var(--color-primary-hover);
}

/* Penyesuaian Ikon (jika menggunakan Lucide atau sejenisnya) */
.product-detail-share svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Container aksi salin */
.share-action-section {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--border-color);
  color: var(--color-primary);
  /* Warna asli */
  min-width: 100px;
  /* Jaga lebar agar tidak goyang saat teks berubah */
  transition: color 0.3s ease;
}

/* Jika Anda ingin warna berbeda saat berhasil */
.share-action-section span {
  font-weight: 600;
}

/* Opsional: Efek transisi saat teks muncul */
.product-detail-share span,
.product-detail-share-mobile span {
  transition: all 0.2s ease-in-out;
}

.product-detail-share-mobile {
  display: none;
}

/* --- Tambahkan di bagian paling bawah ProductDetail.css --- */

@media screen and (max-width: 1024px) {
  /* TAMBAHKAN INI: Pastikan wrapper mengambil lebar penuh agar ImageFrame 100% bisa bekerja */
.thumbnail-wrapper {
    width: 100%;          /* Tetap 100% agar responsif di HP kecil */
    max-width: 450px;     /* BATASAN: Gambar tidak akan lebih lebar dari 450px di Tablet */
    margin: 0 auto;       /* Pastikan posisi gambar tetap di tengah (center) */
    box-sizing: border-box; 
  }
  /* Ubah container utama agar padding lebih kecil */
  .product-detail-container {
    padding: 15px;
    flex-direction: column;
    /* Jaga-jaga jika ingin container utama column */
  }

  /* Ubah layout konten produk menjadi vertikal (atas-bawah) */
  .product-detail-content {
    flex-direction: column;
    gap: 30px;
  }

  /* Info produk (teks) mengambil lebar penuh */
  .product-detail-info {
    width: 100%;
    padding: 0;
  }

  .product-detail-title {
    font-size: 24px;
    /* Kecilkan font judul */
    text-align: center;
  }

  /* Sesuaikan ukuran font baris detail */
  .detail-row-label,
  .detail-row-value,
  .detail-row-dot {
    font-size: 16px;
  }

  /* --- MODAL RESPONSIVE --- */
  /* Agar modal tidak melebar ke samping di HP */
  .product-detail-modal-container {
    flex-direction: column;
    /* Gambar di atas, info di bawah */
    width: 90%;
    max-height: 90vh;
    /* Maksimal tinggi 90% layar */
    overflow-y: auto;
    /* Bisa discroll jika konten panjang */
  }

  .product-detail-modal-content {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  /* Gambar di dalam modal */
  .product-modal-image {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    max-width: 100%;
  }

  .product-detail-modal-info {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  .modal-bottom {
    position: relative;
    /* Tidak lagi absolute agar mengalir mengikuti konten */
    margin-top: 20px;
    padding: 0;
    width: 100%;
    flex-direction: column;
    /* Tombol download dan toggle frame tumpuk */
    gap: 15px;
  }

  .product-images {
    height: auto !important;
    max-height: 300px !important;
    overflow: hidden;

    scrollbar-width: thin;
    scrollbar-color: #A0A0A0 var(--placeholder-bg);
  }

  .product-detail-more button {
    width: 90%;
    /* Tombol melebar di layar HP agar mudah ditekan */
    padding: 14px;
    margin-top: 20px;
  }

  .product-detail-share {
    display: none;
  }

  .product-detail-share-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: end;
  }

  .product-detail-share-mobile {
    display: flex;
    position: static;
    max-width: 50vw;
    font-size: 13px;
  }
}.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: var(--primary-text);
    cursor: pointer;
    transition: 0.5s all;
    /* background-color: red; */
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 1000;
}

.modal-close:hover {
    background-color: var(--light-border-color);
}

/* Sembunyikan counter di desktop */
.mobile-image-counter {
    display: none;
}

.modal-close.download {
    display: none;
}

/* --- Tambahkan di bagian bawah ImageModal.css --- */

@media screen and (max-width: 1024px) {

    /* 1. Container Fullscreen Hitam */
    .product-detail-modal-container {
        background-color: var(--color-black);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 0;
    }

    .product-detail-modal {
        align-items: flex-start;
        /* Reset align center */
    }

    /* 2. Tombol Close (Silang) */
    .modal-close {
        color: var(--color-white);
        background-color: rgba(255, 255, 255, 0.2);
        z-index: 2002;
        /* Paling atas */
        backdrop-filter: blur(4px);
        position: static;
    }

    .modal-close.download {
        display: flex;
    }

    .product-detail-modal-actions {
        position: absolute;
        top: 18px;
        width: 93%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modal-close:hover {
        background-color: rgba(255, 255, 255, 0.4);
    }

    /* 3. Area Gambar Utama (Tengah & Besar) */
    .product-detail-modal-content {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        padding: 0;
    }

    .product-modal-image-content {
        width: 100%;
        height: 100%;
        /* background-color: red; */
        display: flex;
        justify-content: center;
        align-items: center;

    }

    .product-modal-image {
        width: 100%;
        height: 100%;
        margin-top: -100px;
        display: flex;
        justify-content: center;
        align-items: center;
        /* background-color: red; */
    }

    /* Pastikan ImageFrame di dalam modal fit layar */
    .product-modal-image img {
        object-fit: contain !important;
        width: 100vw !important;
    }

    /* 4. Overlay Info & Controls */
    .product-detail-modal-info {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        pointer-events: none;
        /* Agar area kosong bisa ditembus klik ke gambar */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        /* Dorong konten ke bawah */
        z-index: 2001;
    }

    /* 4. Overlay Info & Controls */
    .product-detail-list-images {
        /* position: absolute;
        top: 0;
        left: 0; */
        width: 100%;
        height: 100%;
        padding: 0;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        z-index: 2001;
    }


    /* Sembunyikan Teks Detail (Judul, Kategori, dll) agar fokus ke gambar */
    .product-detail-modal-info .product-detail-title,
    .product-detail-modal-info .detail-row {
        display: none;
    }

    /* 5. List Images (Floating Bottom Center) */
    /* Override style ListImages agar menjadi horizontal scroll */
    .product-detail-modal-info .product-images,
    .product-detail-list-images .product-images {
        pointer-events: auto;
        /* Aktifkan klik kembali */
        display: flex;
        /* Ubah dari grid ke flex row */
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        width: 100%;
        /* Paksa tinggi lebih kecil */
        margin: 0 auto 20px auto;
        /* Posisi tengah bawah */
        padding: 5px;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        backdrop-filter: blur(5px);
        box-sizing: border-box;
    }

    /* Override item di dalam ListImages */
    .product-detail-modal-info .product-images>div,
    .product-detail-list-images .product-images>div {
        flex: 0 0 80px;
        /* Lebar fix thumbnail */
        height: 80px;
    }

    /* 6. Controls (Switch Frame & Download) - Floating Top/Middle */
    .modal-bottom {
        pointer-events: auto;
        position: absolute;
        bottom: 0px;
        /* Di bawah tombol close */
        left: -10px;
        bottom: 135px;
        width: auto;
        flex-direction: column;
        /* Tumpuk vertikal */
        align-items: flex-end;
        /* Rata kanan */
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        gap: 15px;
        width: 100%;
    }

    /* Styling Tombol Download di Mobile */
    .modal-download {
        display: none;
    }

    /* Styling Switch Frame Container */
    .toggle-container {
        background-color: rgba(0, 0, 0, 0.6);
        padding: 8px 12px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        gap: 8px;
    }

    /* Teks "Frame Aktif" */
    .toggle-container .label div {
        color: white !important;
        font-size: 12px;
        text-shadow: 0 1px 2px black;
    }
}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.fab-helper-container {
    position: fixed;
    bottom: 20px;
    left: 30px;
    /* Posisi kiri bawah */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 9999999;
    /* Sejajar ke kiri */
}

/* Tombol Bulat Utama (FAB) */
.fab-helper-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
    padding: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.fab-helper-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--dark-secondary-bg);
}

.fab-helper-button:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.08);
    color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.fab-helper-button svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

/* Kartu Form yang Melayang */
.fab-helper-form-card {
    position: absolute;
    bottom: 0;
    /* Jarak dari atas tombol FAB */
    left: 0;
    width: 400px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-color);

    /* Setup Animasi Buka/Tutup */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom left;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fab-helper-form-card.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

/* Header Form & Logo */
.fab-helper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-border-color);
    background-color: var(--secondary-bg);
    border-radius: 16px 16px 0 0;
}

.fab-helper-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fab-helper-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    /* atau cover, tergantung preferensi */
    border-radius: 50%;
    /* jika ingin bentuk lingkaran */
    background-color: var(--secondary-bg);
    /* opsional, jika ada ruang transparan */
}

.fab-helper-logo h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-text);
}

.fab-helper-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-text);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: none;
    padding: 0;
}

.fab-helper-close-btn:hover {
    color: var(--color-light-red);
}

.fab-helper-close-btn:focus {
    outline: none;
}

/* Isi Form */
.fab-helper-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-text);
}

.fab-helper-form input[type="text"],
.fab-helper-form input[type="email"],
.fab-helper-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--main-bg);
    color: var(--primary-text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.fab-helper-form input::placeholder,
.fab-helper-form textarea::placeholder {
    color: var(--secondary-text);
    opacity: 0.7;
}

.fab-helper-form input:focus,
.fab-helper-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--dark-secondary-bg);
}

/* --- Styling File Upload --- */
.file-input {
    display: none;
    /* Sembunyikan input asli */
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--secondary-text);
    background-color: var(--placeholder-bg);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.file-upload-label:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--secondary-bg);
}

/* Area preview dengan scroll vertikal */
.file-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    max-height: 200px;
    /* Batasi tinggi */
    overflow-y: auto;
    /* Scroll jika lebih */
    padding: 4px;
    /* Ruang untuk scrollbar */
}

/* Item preview */
.file-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--placeholder-bg);
    flex-shrink: 0;
    /* Jangan mengecil saat wrap */
}

/* Preview gambar/video */
.preview-image,
.preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-video {
    object-fit: cover;
    /* agar sama seperti gambar */
}

/* Nama file saat hover (opsional) */
.file-preview-item:hover::after {
    content: attr(data-filename);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.6rem;
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item {
    font-size: 0.75rem;
    background-color: var(--dark-secondary-bg);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    border: 1px solid var(--color-primary);
}

/* Tombol Submit */
.fab-helper-submit-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 8px;
}

.fab-helper-submit-btn:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
}

.fab-helper-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--dark-secondary-bg);
}

.fab-helper-submit-btn:active {
    transform: scale(0.98);
}

/* Tombol hapus */
.remove-file-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    z-index: 2;
}


.remove-file-btn:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

.no-files-selected {
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--secondary-text);
    text-align: center;
    padding: 20px;
}

.error-message {
    color: var(--color-light-red);
    font-size: 0.75rem;
    margin-top: 4px;
    margin-left: 4px;
    display: block;
}

/* Loading spinner kecil */
.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Status message styling */
.status-message {
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tombol submit dengan spinner */
.fab-helper-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.file-error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 4px;
    margin-left: 4px;
    display: block;
}

.status-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Container untuk tombol header */
.fab-helper-header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Tombol Minimize */
.fab-helper-minimize-btn {
    background: none;
    border: none;
    color: var(--secondary-text);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    width: 30px;
    height: 30px;
    padding: 0;
}

.fab-helper-minimize-btn:hover {
    color: var(--primary-text);
}

/* Form dalam keadaan minimized */
.fab-helper-form-card.minimized {
    height: auto;
    min-height: 70px;
    /* cukup untuk header + status */
}

.fab-helper-form-card.minimized .fab-helper-form {
    display: none;
}

/* Status badge di header saat minimized */
.fab-helper-minimized-status {
    padding: 8px 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--light-border-color);
    background-color: var(--card-bg);
    border-radius: 0 0 16px 16px;
}

.fab-helper-minimized-status.success {
    background-color: #d4edda;
    color: #155724;
}

.fab-helper-minimized-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

.fab-helper-minimized-status.warning {
    background-color: #fff3cd;
    color: #856404;
}

.fab-helper-minimized-status .spinner-small {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.fab-helper-minimize-btn:focus {
    outline: none;
}

.fab-helper-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fab-helper-container {
        left: 20px;
        bottom: 10px;
    }

    .fab-helper-form-card {
        width: calc(100vw - 40px);
        /* Lebar penuh dikurangi margin kiri/kanan */
        max-width: 380px;
        bottom: 0;
        left: 0;
    }

    .fab-helper-header {
        padding: 12px 16px;
    }

    .fab-helper-logo h3 {
        font-size: 0.9rem;
    }

    .fab-helper-logo img {
        width: 32px;
        height: 32px;
    }

    .fab-helper-form {
        padding: 16px;
        gap: 12px;
    }

    .file-preview-list {
        max-height: 150px;
    }

    .file-preview-item {
        width: 70px;
        height: 70px;
    }

    .status-message {
        font-size: 13px;
        padding: 8px;
    }
}



/* Tablet */
@media (max-width: 992px) {
    .fab-helper-button {
        width: 80px;
        height: 80px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .fab-helper-button {
        width: 70px;
        height: 70px;
    }
}