/* ==========================================================================
   LAYOUT COMPONENTS & REUSABLE UI UTILITIES
   ========================================================================== */

/* Toast Component */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast-item {
  padding: 14px 20px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  border-left: 4px solid var(--color-primary);
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Badge Utilities */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background-color: #FEE2E2;
  color: var(--color-primary-dark);
}


/* ==========================================================================
   BRAND STRIP (Beranda & Produk)
   ========================================================================== */
.brand-strip {
  background: #F2F4F7;
  padding: 40px 0 0;
}

.brand-strip-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
}

.brand-strip-title {
  text-align: center;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #333333;
  margin: 0 0 16px;
}

.brand-strip-title span {
  color: #C51516;
}

.brand-strip-row {
  overflow-x: auto;
  scrollbar-width: none;
}

.brand-strip-row::-webkit-scrollbar {
  display: none;
}

.brand-strip-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
}

.brand-strip-item {
  flex: 0 0 auto;
  height: 69px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-strip-item.is-clone {
  display: none;
}

.brand-strip-item img {
  height: 100%;
  width: auto;
  max-width: 105px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==========================================================================
   INFINITE MARQUEE (Berjalan ngeslide infinity di desktop & mobile)
   ========================================================================== */
.brand-strip.is-marquee .brand-strip-row {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
}

.brand-strip.is-marquee .brand-strip-track {
  justify-content: flex-start;
  min-width: 0;
  animation: brand-strip-marquee 40s linear infinite;
  will-change: transform;
}

.brand-strip.is-marquee .brand-strip-track:hover {
  animation-play-state: paused;
}

.brand-strip.is-marquee .brand-strip-item {
  padding: 0 16px;
}

.brand-strip.is-marquee .brand-strip-item.is-clone {
  display: flex;
}

@keyframes brand-strip-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 1280px) {
  .brand-strip-container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .brand-strip-container {
    padding: 0 18px;
  }

  .brand-strip.is-marquee .brand-strip-row {
    margin: 0 -18px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
  }

  .brand-strip.is-marquee .brand-strip-track {
    animation-duration: 25s;
  }

  .brand-strip.is-marquee .brand-strip-item {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-strip.is-marquee .brand-strip-row {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .brand-strip.is-marquee .brand-strip-track {
    animation: none;
  }

  .brand-strip.is-marquee .brand-strip-item.is-clone {
    display: none;
  }
}
