 * {
      box-sizing: border-box;
    }
 @font-face {
            font-family: 'Product Sans';
            src: url('https://fontawesomee.github.io/fontachsin/Product Sans Regular.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

@font-face {
    font-family: 'Product Sans';
    src: url('https://fontawesomee.github.io/fontachsin/Product Sans Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Product Sans';
    src: url('https://fontawesomee.github.io/fontachsin/Product Sans Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Product Sans';
    src: url('https://fontawesomee.github.io/fontachsin/Product Sans Bold Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

    html, body {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      font-family: 'Product Sans';
      background-color: #fff;
      -webkit-tap-highlight-color:transparent
    }
a{text-decoration:none}

    /* HEADER */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 99;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 24px 35px 24px;
      transition: background-color 0.3s ease;
      background-color: transparent;
    }

    .header.scrolled {
      background-color: white;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .left-buttons {
      display: flex;
      align-items: center;
      gap: 10px;
      
    }

    .circle-btn {
      width: 35px;
      height: 35px;
      background-color: #ffffff;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .circle-btn img {
      width: 21px;
      height: 21px;
      filter: invert(29%) sepia(9%) saturate(39%) hue-rotate(98deg) brightness(94%) contrast(92%);
    }

    .location {
      position: relative;
      background-color: rgba(0, 0, 0, 0.6); /* default: hitam transparan */
      color: #fff;
      padding: 7px 14px;
      border-radius: 20px;
      display: flex;
      align-items: center;
      font-size: 14px;
      gap: 6px;
      backdrop-filter: blur(2px);
      transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .location::after {
      content: "";
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 8px solid transparent;
      border-right: 8px solid transparent;
      border-top: 10px solid rgba(0, 0, 0, 0.6);
      transition: all 0.3s ease;
    }

    /* Saat Scroll - ubah lokasi jadi putih & teks jadi hitam */
    .location.scrolled {
      background-color: #ffffff;
      color: #333;
    }

    .location.scrolled::after {
      border-top: 10px solid #ffffff;
    }

    .location img {
      width: 16px;
      height: 16px;
      filter: brightness(0) invert(1); /* icon jadi putih awal */
      transition: filter 0.3s ease;
    }

    .location.scrolled img {
      filter: none; /* icon jadi hitam saat scroll */
    }

    .right-buttons {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* SWIPER BANNER */
    .swiper {
      width: 100%;
      height: 220px;
      margin-top: 0;
    }

    .swiper-slide {
      width: 100%;
    }

    .swiper-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      background-color:#E03346
    }
    
    /* SEARCHING */
    .search-box{
      width:100%;
      z-index:99;
      padding: 0px 0px 0px 0px
    }
    .search-bar {
      position: relative;
      display: flex;
      align-items: center;
      background: #fff;
      border-radius: 30px;
      padding: 11px 15px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      width:93%;
      
      margin: auto;
      bottom:15px;
      z-index:100
    }
    .search-bar input {
      border: none;
      outline: none;
      flex: 1;
      font-size: 16px;
      background: transparent;
    }
    .iconsl {
      width: 34px;
      padding-right:8px;
      margin-left: 0px;
      cursor: pointer;
      filter: invert(29%) sepia(9%) saturate(39%) hue-rotate(98deg) brightness(94%) contrast(92%);
    }
    .icons {
      width: 20px;
      margin-left: 0px;
      cursor: pointer;
    }
    

    .search-modal {
      position: fixed;
      inset: 0;
      background: white;
      z-index: 999;
      display: none;
      flex-direction: column;
      animation: fadeIn 0.3s ease;

    }

    .search-modal.active {
      display: flex;
    }

    .search-modal-header {
      padding: 16px;
      border-bottom: 1px solid #eee;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .search-modal-input {
      display: flex;
      align-items: center;
      background: #f5f5f5;
      border: 1px solid #ccc;
      border-radius: 999px;
      padding: 10px 15px;
      margin-left: 8px;
      font-family: 'Product Sans';
      flex: 1;
    }

    .search-modal-input img {
      width: 20px;
      height: 20px;
      margin-right: 10px;
    }

    .search-modal-input input {
      border: none;
      outline: none;
      flex: 1;
      background: transparent;
      font-size: 16px;
font-family: 'Product Sans';
    }

    .back-btn {
      background: transparent;
      border-radius: 50px;
      padding: 8px;
      margin-right: 10px;
      border:none;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .back-btn img {
      width: 23px;
    }

    .search-modal-content {
      padding: 16px;
      overflow-y: auto;
      flex: 1;
    }

    #filter-tabs {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      margin-bottom: 15px;
    }

    .filter-btn {
      padding: 6px 15px;
      border-radius: 999px;
      border: 1px solid #ddd;
      background-color: #f9f9f9;
      font-size: 16px;
font-family: 'Product Sans';
      cursor: pointer;
      white-space: nowrap;
    }

    .filter-btn.active {
      background: #E03346;
      color: white;
      border-color: orange;
    }

    .card-container {
      display: flex;
      flex-direction: column;
      gap: 13px;
    }

    .store-card, .product-card {
      display: flex;
      gap: 13px;
      background: #fff;
      border-radius: 10px;
      
      padding: 5px;
      align-items: flex-start;
      text-decoration: none;
      color: #000;
    }

    .store-card img, .product-card img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      border-radius: 12px;
    }

    .card-info {
      flex: 1;
    }

    .card-title {
      font-size: 14px;
      font-weight: bold;
      margin: 0 0 0px;
    }

    .card-desc {
      font-size: 14px;
      color: #555;
      margin-top: 0px;
    }

    .card-meta {
      font-size: 14px;
      color: #777;
margin-top:-9px;
    }

    .label {
      background: crimson;
      color: white;
      font-size: 12px;
      font-weight: bold;
      padding: 2px 6px;
      border-radius: 4px;
      margin-bottom: 6px;
      display: inline-block;
    }

    @keyframes fadeIn {
      from {opacity: 0; transform: translateY(20px);}
      to {opacity: 1; transform: translateY(0);}
    }
    .rating-badge {
  position: absolute;
  bottom: 5px;
  left: 23px;
  background: white;
  padding: 0px 7px;
  border-radius: 999px;
  font-size: 11px;
font-family: 'Product Sans';
font-weight:bold;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.rating-badge .star {
  color: orange;
font-family: 'Product Sans';
  font-weight: bold;
  margin-right: 3px;
}
.card-image {
  position: relative;
}
.skeleton-card {
  display: flex;
  gap: 15px;
  background: #F5F3F3;
  border-radius: 10px;
  padding: 10px;
  align-items: flex-start;
  animation: pulse 1.5s infinite ease-in-out;
  margin-bottom: 15px; /* ⬅️ INI dia jarak antar skeleton */
}

.skeleton-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  background: #fff;
}

.skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  background: #fff;
  border-radius: 6px;
  width: 80%;
  padding-bottom:20px
}

.skeleton-line.short {
  width: 50%;
}

@keyframes pulse {
  0% {
    background-color: #F5F3F3;
  }
  50% {
    background-color: #F5F3F3;
  }
  100% {
    background-color: #F5F3F3;
  }
}
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  background: #fefefe;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-top: 20px;
}
.empty-state img {
  width: 80px;
  margin-bottom: 15px;
  opacity: 0.6;
}
.empty-state h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.empty-state p {
  font-size: 13px;
  color: #999;
}
    .content {
      padding: 0px 35px 10px;
      background-color: #fff;
      min-height: 100px;

    }
h2 {
      text-align: left;
      margin-bottom: 20px;
      font-size: 18px;
      color: #333;
      font-weight:bold;
      font-family:'Product Sans'
    }

    .category-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px 40px;
      max-width: 400px;
      margin: auto;
    }

    .category-item {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 16px;
      color: #333;
      position: relative;
    }

    .icon-circle {
      width: 55px;
      height: 55px;
      border-radius: 12px;
      background-color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      position: relative;
    }

    .icon-circle img {
      width: 38px;
      height: 38px;
    }

    .category-text {
      font-weight: 500;
      font-size:16px;
    }

    /* Banner Diskon dengan Efek Lipatan */
    .discount-badge {
      position: absolute;
      top: 5px;
      left: -10px;
      background: black;
      color: white;
      font-size: 12px;
      font-weight: bold;
      padding: 2px 6px;
      border-radius: 5px 8px 8px 5px;
      transform-origin: top left;
      animation: foldEffect 1.5s infinite alternate ease-in-out;
      box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
      font-family: 'Product Sans';
      z-index: 4;
    }

    .discount-badge::before {
      content: "";
      position: absolute;
      bottom: -6px;
      left: 5px;
      width: 20%;
      height: 8px;
      background: black;
      clip-path: polygon(0 0, 100% 0, 0 100%);
      transform: skewX(40deg);
    }

    @keyframes foldEffect {
      0% { transform: rotateZ(0deg); }
      100% { transform: rotateZ(3deg); }
    }

    @media (min-width: 500px) {
      .category-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

.layout-list-grid-list {
    display: flex;
    flex-direction: column; /* Ubah dari default row ke column */
    gap: 1.4rem;
    
    overflow-x: visible; /* Hilangkan overflow horizontal */
position:relative; /* Ubah dari absolute ke relative */
    width: 98%; /* Ubah width dari 95% ke 100% */
    margin-left: -15px; /* Hilangkan margin negatif */
}

article.layout-wrap-list-list {
    flex: 1 1 auto; /* Ubah dari flex: 0 0 auto agar fleksibel */
    width: 336px; /* Ubah dari width fixed 323px */
border-radius: 19px;
    
    margin-left: 5px; /* Hilangkan posisi relatif ke kiri */
box-shadow: 1px 2px 9px 0 rgba(0, 0, 0, 0.1);
}

    .layout-list-grid {
        display: flex;
        gap: 1.4rem;
        overflow-x: auto;
        position:absolute;
        width:95%;

        margin-left:-25px;
    }
article.layout-wrap-list {
        flex: 0 0 auto;
        width: 323px;
        scroll-snap-align: start;
        transition: 0.3s;
        border-radius: 19px;
        position:relative;
        left:15px;
        background: #fff;
        box-shadow: 1px 2px 9px 0 rgba(0, 0, 0, 0.1);
    }
    .layout-isi {
        display: grid;
        grid-template-areas: "gambar judul" "gambar info";
        grid-template-columns: minmax(0, 35%) 1fr;
    }
    
    .layout-image {
        background-color: #fff;
        overflow: visible;
        transition: 0.3s;
        border-radius: 14px;
        grid-area: gambar;
        position: relative;
    }

    .layout-image img {
        width: 100%;
        height: 100%;
        transition: 0.3s;
        z-index: 1;
        border-radius: 14px;
    }
    .keterangan {
        position: absolute;
        top: 0px;
        left: -10px;
        background: #E42334;
        color: white;
        font-size: 14px;
        font-weight: bold;
        padding: 3px 10px;
        border-radius: 5px 8px 8px 5px;
        transform-origin: top left;
        animation: foldEffect 1.5s infinite alternate ease-in-out;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
        font-family: 'Product Sans';
        z-index: 2;
    }

    .keterangan::before {
        content: "";
        position: absolute;
        bottom: -8px;
        left: 5px;
        width: 20%;
        height: 11px;
        background: #AE232E;
        clip-path: polygon(0 0, 100% 0, 0 100%);
        transform: skewX(40deg);
    }

    /* Judul produk */
    .layout-title {
        font-size: 14px;
        font-weight: bold;
        margin: 0.6rem;
        transition: color 0.3s;
        font-family: 'Product Sans';
    }
    .layout-title a {
        text-decoration: none;
        color: #000;
        font-size: 14px;
        font-family: 'Product Sans';
    }
    .layout-title p {
        font-size: 14px;
        font-weight: 450;
        margin: 2px 0;
        font-family: 'Product Sans';
    }
    /* Info produk */
    .layout-info {
        display: flex;
        font-size: clamp(0.85rem, calc(0.8071rem + 0.1875vw), 1rem);
        justify-content: space-between;
        margin: 1rem;
        overflow: hidden;
        align-items: flex-end;
    }
    /* Progress bar */
    .box-prosentase {
        border: 0.5px solid orange;
        border-radius: 25px;
        height: 6px;
        background: #dde1e7;
        width: 100% !important;
        margin-right: 0;
        overflow: hidden;
        min-height: auto;
        font-weight: 500;
        margin-top: 14px;
        margin-left: 0;
        align-items: center;
        text-align: center;
        display: flex;
        position: relative;
    }
    .progress-prosentase {
        height: 15px;
        text-align: center;
        position: relative;
        background: orange;
    }
    .teks-prosentase {
        margin-left: 10px;
        position: absolute;
        font-size: 40%;
        color: #000;
        margin-top: 0;
        margin-bottom: 0;
        display: inline-block;
    }

    .layout-harga-diskonpersen {
        background-color: #ffecec;
        color: #e30000;
        padding: 2px 6px;
        border-radius: 5px;
        font-size: 13px;
        font-weight: bold;
        display: inline-block;
        margin-top: 7px;
    }
    
.best-seller {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #E42334, #E42334);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 11px;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 3px;
}

.best-seller i {
    font-size: 14px;
}

/* Stars Style */
.bxs-star, .bxs-star-half, .bx-star {
  font-size: 16px;
  margin-right: 2px;
}

/* Layout Rating */
.rating-container {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.rating-text {
  font-size: 12px;
  color: #666;
  margin-left: 5px;
}
/* Rating Stars */
.bxs-star, .bxs-star-half, .bx-star {
  font-size: 16px;
  margin-right: 2px;
}



.buttonn-more {
  padding: 15px 20px;
  background: #E42334;
  width:99%;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.buttonn-more:hover {
  background: #C11A2A;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.buttonn-more:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}




.buttonn-more2 {
  padding: 15px 20px;
  background: #E42334;
  width:99%;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.buttonn-more2:hover {
  background: #C11A2A;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.buttonn-more2:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

















.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}
/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.popup-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.popup-content {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 30px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  transition: bottom 0.3s ease;
}

.popup-modal.show .popup-content {
  bottom: 0;
}

.popup-content ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.popup-content li {
  margin: 8px 0;
  font-size: 16px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
}