/*
 * MAIN CSS — load async (media="print" onload trick)
 * Style untuk semua konten below-the-fold.
 *
 * Sections:
 *  1.  Layout
 *  2.  Typography helpers / badges
 *  3.  pointOfContent
 *  4.  bridgeToProduct
 *  5.  productIntro
 *  6.  productPriceOffer
 *  7.  credibilityAndProof
 *  8.  salesChannel
 *  9.  mitraseller
 * 10.  Carousel (CSS scroll snap)
 * 11.  YouTube facade
 * 12.  Footer
 * 13.  Media queries
 */

/* =============================================
   1. LAYOUT
   ============================================= */
.page-wrapper {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  position: relative;
}

section {
  width: 100%;
}

section img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   2. TYPOGRAPHY HELPERS / BADGES
   ============================================= */
.text-content {
  padding: 20px 16px;
}

.badge-red {
  background: #d32f2f;
  color: #fff;
  padding: 3px 8px;
  font-weight: bold;
  font-size: 14px;
  display: inline;
  border-radius: 2px;
}

.badge-green {
  background: #2e7d32;
  color: #fff;
  padding: 3px 8px;
  font-weight: bold;
  font-size: 14px;
  display: inline;
  border-radius: 2px;
}

.badge-yellow {
  background: #fff9c4;
  color: #000;
  padding: 4px 10px;
  font-size: 14px;
  display: inline-block;
  border-radius: 2px;
  line-height: 1.5;
}

.text-red {
  color: #d32f2f;
  font-weight: bold;
}

/* =============================================
   3. POINT OF CONTENT
   ============================================= */
#pointOfContent .text-content h2 {
  font-size: 20px;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 14px 0 12px;
}

#pointOfContent .text-content p {
  margin-bottom: 12px;
}

/* =============================================
   4. BRIDGE TO PRODUCT
   ============================================= */
#bridgeToProduct .text-content h2 {
  font-size: 20px;
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: 12px;
}

#bridgeToProduct .text-content p {
  margin-bottom: 14px;
}

/* =============================================
   5. PRODUCT INTRO
   ============================================= */
#productIntro img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   6. PRODUCT PRICE OFFER
   ============================================= */
#productPriceOffer img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   7. CREDIBILITY AND PROOF
   ============================================= */
#credibilityAndProof img {
  width: 100%;
  height: auto;
  display: block;
}

.disclaimer {
  padding: 8px 16px;
  font-size: 13px;
  color: #555;
}

/* =============================================
   8. SALES CHANNEL
   ============================================= */
#salesChannel img {
  width: 100%;
  height: auto;
  display: block;
}

#salesChannel .marketplace-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 16px;
}

#salesChannel .marketplace-row a {
  flex: 1;
  max-width: 48%;
}

#salesChannel .marketplace-row img {
  width: 100%;
  height: auto;
}

/* =============================================
   9. MITRA SELLER
   ============================================= */
#mitraseller {
  background: #fdf8ee;
  padding: 20px 0;
}

#searchbar:focus {
  outline: 2px solid #683b11;
  border-color: #683b11;
}

.distributor-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px;
  margin: 8px 16px;
  background: #fff;
}

.distributor-card h3 {
  font-size: 15px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.distributor-card p {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.distributor-card a {
  color: #25d366;
  font-weight: bold;
}

/* =============================================
   10. CAROUSEL — CSS Scroll Snap (no Swiper)
   ============================================= */
.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .4);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, .65);
}

/* =============================================
   11. YOUTUBE FACADE
   ============================================= */
.yt-facade {
  position: relative;
  cursor: pointer;
  background: #000;
  overflow: hidden;
  display: block;
}

.yt-facade.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.yt-facade.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .2s ease;
}

.yt-facade:hover img {
  opacity: 1;
}

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: none;
  line-height: 0;
}

.yt-play svg {
  width: 68px;
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   12. FOOTER
   ============================================= */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 32px 20px 24px;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer img {
  margin-bottom: 16px;
  width: auto;
  height: auto;
}

.site-footer p {
  margin-bottom: 8px;
  color: #ccc;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #aaa;
}

.site-footer a:hover {
  color: #fff;
}

.footer-nav {
  margin: 16px 0 8px;
}

.footer-nav strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
}

.footer-nav a {
  display: block;
  padding: 4px 0;
  color: #aaa;
  font-size: 13px;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-disclaimer {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255, 255, 255, .05);
  border-radius: 8px;
  font-size: 12px;
  color: #aaa;
}

.footer-disclaimer strong {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
}

.footer-copyright {
  margin-top: 20px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  justify-content: center;
}

.footer-social a {
  color: #aaa;
  font-size: 13px;
}

.footer-social a:hover {
  color: #fff;
}

/* =============================================
   13. MEDIA QUERIES
   ============================================= */
@media (max-width: 400px) {
  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .text-content {
    padding: 16px 14px;
  }

  #pointOfContent .text-content h2,
  #bridgeToProduct .text-content h2 {
    font-size: 18px;
  }
}
