/* MDIX Toko Online Niaga — per-template fixes from the audit. */

/* Theme-seller "Black Fridays / You May Also Like" popup that opened over the hero on every visit. */
.modal-newsletter {
  display: none !important;
}

/* Brand strip only held grey "160 × 44" placeholder boxes. */
.brand-block {
  display: none !important;
}

/* Payment logos were grey placeholders; the label now lists the methods as text. */
.footer-bottom .payment-img {
  display: none !important;
}

/* The "Demo" menu (the theme's 22 demo homepages) is now removed from the HTML of every page
   (design-QA 2026-10-12), so no CSS hiding is needed here any more. */

/* Phones: the slider photos (opaque, unlike the theme's cut-out models) covered half of the
   headline, and the two-line shop name ran under the hero photo. */
@media (max-width: 639px) {
  .slider-block.style-one .text-content {
    position: relative;
    z-index: 2;
    flex-basis: 56%;
    max-width: 56%;
  }
  .slider-block.style-one .sub-img {
    width: 42% !important;
  }
  .slider-block.style-one .text-display {
    font-size: 26px;
    line-height: 1.15;
  }
  .slider-block.style-one .text-sub-display {
    font-size: 12px;
  }
  #header .header-menu .heading4 {
    font-size: 18px;
    white-space: nowrap;
  }
}

/* ---- design-QA 2026-10-12 ---- */

/* Indonesian headings and sentences: the theme set every heading to Title Case
   ("Pembayaran Aman Dan Terjamin"). Keep the written casing, only the first letter up. */
.text-display, .heading1, .heading2, .heading3, .heading4, .heading5, .heading6, .text-title, .text-button {
  text-transform: none;
}
.text-display::first-letter, .heading1::first-letter, .heading2::first-letter, .heading3::first-letter,
.heading4::first-letter, .heading5::first-letter, .heading6::first-letter, .text-title::first-letter,
.text-button::first-letter {
  text-transform: uppercase;
}

/* WCAG AA contrast: struck-through old prices (#A0A0A0 = 2.6:1), red sale tags and countdowns (4.3:1). */
del, .product-origin-price, .text-secondary2 {
  color: #696c70 !important;
}
.bg-red:not(.bg-opacity-10), .product-tag.bg-red {
  background-color: #c62828 !important;
}
.text-red, .countdown-time-block .text-red {
  color: #b71c1c !important;
}

/* Payment methods as text badges (the logos were grey "150 × 96" placeholders). */
.mdix-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #1f1f1f;
  background: #fff;
  white-space: nowrap;
}
.footer .payment-img .mdix-pay { display: none; }
.list.grid.grid-cols-6:has(.mdix-pay) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.list.grid.grid-cols-6 .item:has(.mdix-pay) { padding: 0; }

/* Touch targets: slider dots were 8 × 8 px. Same look, 24 × 24 px hit area. */
.swiper-pagination .swiper-pagination-bullet {
  --dot: var(--black);
  width: 24px !important;
  height: 24px !important;
  margin: 0 2px !important;
  border: 0 !important;
  background: radial-gradient(circle, transparent 3px, var(--dot) 3.2px, var(--dot) 4.2px, transparent 4.6px) !important;
}
.swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: radial-gradient(circle, var(--dot) 4.2px, transparent 4.6px) !important;
}
.swiper-pagination .swiper-pagination-bullet::before {
  width: 22px;
  height: 22px;
  padding: 0 !important;
}
.swiper.dots-white .swiper-pagination .swiper-pagination-bullet { --dot: var(--white); }

/* Footer links and social icons: at least 24 px tall, social icons 44 px. */
.footer a.caption1, .footer .nav-item a, .footer ul a {
  display: inline-block;
  min-height: 24px;
  min-width: 24px;
  padding: 2px 0;
}
.footer .list-social a, #top-nav .right-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.footer .list-social { gap: 4px !important; margin-left: -12px; }
#top-nav .right-content { gap: 0 !important; }

/* Phone menu button: 44 px target (the icon alone was 24 px). */
.menu-mobile-icon {
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

/* Emails and other lower-case-only text keep their casing (no first-letter capital). */
.normal-case::first-letter, .mail::first-letter, a[href^="mailto:"]::first-letter {
  text-transform: none !important;
}

/* White headings on the home banners need a darker photo behind them (light shop photos). */
.banner-block.style-one .banner-item .banner-content {
  z-index: 1;
  background-image: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38));
}
.banner-block.style-one .banner-item .banner-content .heading2 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Shop-collection banner: dark text sits on the right of a busy shop photo → light veil behind it. */
.shop-collection .banner-heading .bg-img { position: relative; }
.shop-collection .banner-heading .bg-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 38%, rgba(255, 255, 255, 0) 65%);
}
.shop-collection .banner-heading .text-content { z-index: 1; }
@media (max-width: 767px) {
  .shop-collection .banner-heading .bg-img::after { background: rgba(255, 255, 255, 0.72); }
}

/* Phone menu: hide at once when closed (the 0.5s fade left its links on screen and focusable). */
#menu-mobile:not(.open) {
  transition: none;
}

/* Footer language/currency pickers were 16px tall. */
.footer select#chooseLanguageFooter, .footer select#chooseCurrencyFooter {
  min-height: 24px;
  min-width: 24px;
}

/* Sale countdown on product cards: at least 12px on phones (was 10.5px). */
.product-item .countdown-time-block .text-xs,
.product-item .countdown-time-block .text-xs span {
  font-size: 12px !important;
  letter-spacing: 0;
}

/* Order status pills (light tinted background): darker text for AA contrast. */
.tag.bg-opacity-10.text-yellow { color: #7a5600 !important; }
.tag.bg-opacity-10.text-purple { color: #5034a8 !important; }
.tag.bg-opacity-10.text-success { color: #1d6b35 !important; }
.tag.bg-opacity-10.text-red { color: #a61b1b !important; }

/* Breadcrumb and product meta links: at least 24px tall touch targets. */
.breadcrumb-block .link a, .breadcrumb-product a, .breadcrumb a, .list-category a, .list-tag a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Size buttons: "2XL" did not fit the 48px circle on phones. */
.choose-size .size-item, .list-size .size-item {
  min-width: 48px;
  width: auto !important;
  padding-left: 8px;
  padding-right: 8px;
}

/* Out-of-stock page: buttons stay visibly inactive but readable (was #A0A0A0 on #F7F7F7, 2.4:1). */
.product-detail.out-of-stock .product-infor.style-out-of-stock .button-main {
  color: #696c70 !important;
}

/* Small "Pakai Kode" voucher buttons in the cart: 12px text, 24px target. */
.button-main.text-xs {
  font-size: 12px !important;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

/* Phones: blog tags and small pill buttons were 10.5px. */
.blog-tag.text-xs, .button.text-xs {
  font-size: 12px !important;
}
.button.text-xs { min-height: 24px; display: inline-flex; align-items: center; }

/* Icon-only social links (blog author box, coming-soon page): 24px minimum target. */
a:has(> [class^="icon-"]), a:has(> i[class*=" icon-"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
}

/* Text links in the login form ("Lupa kata sandi?"). */
a.hover\:underline {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Tablets/phones (theme turns card actions into 32px icon buttons ≤1024px): static product cards
   have text-only buttons ("Lihat Cepat", "Belanja Cepat") that were squeezed into 32px → stack them. */
@media (max-width: 1024px) {
  .product-item .product-thumb .list-action:not(:has(i)) {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
    bottom: 10px;
  }
  .product-item .product-thumb .list-action:not(:has(i)) > .quick-view-btn,
  .product-item .product-thumb .list-action:not(:has(i)) > .quick-shop-btn,
  .product-item .product-thumb .list-action:not(:has(i)) > .add-cart-btn {
    width: 100%;
    height: auto;
    min-height: 32px;
    font-size: 12px;
    padding: 6px 8px;
  }
}

/* Free-shipping line once the threshold is reached (JS sets data-mdix-free): no "Belanja Rp0 lagi". */
.heading.banner .text[data-mdix-free] { font-size: 0; }
.heading.banner .text[data-mdix-free]::before {
  content: "Selamat! Pesanan Anda mendapat gratis ongkir.";
  font-size: 14px;
  font-weight: 600;
}

/* Tablet footer: the newsletter column wrapped under the link columns with a 28px indent. */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer .newsletter {
    flex-basis: 100%;
    padding-left: 0;
  }
  .footer .newsletter form, .footer .newsletter .input-block { max-width: 460px; }
}

/* Exactly 1024px: the theme already uses its 32px icon buttons (max-width: 1024px) but Tailwind's
   lg breakpoint still showed the text labels, which then overlapped. Use the icon versions there. */
@media (min-width: 1024px) and (max-width: 1024.98px) {
  .product-item .list-action span.max-lg\:hidden,
  .product-item .list-action .quick-shop-btn.max-lg\:hidden { display: none !important; }
  .product-item .list-action i.lg\:hidden { display: inline-block !important; }
  .product-item .list-action .add-cart-btn.lg\:hidden { display: flex !important; }
}

/* Tablet product pages: "Tambah ke keranjang" did not fit its 172px button (grouped products). */
@media (max-width: 1023px) {
  .product-detail .add-cart-btn.button-main {
    white-space: normal !important;
    padding-left: 12px;
    padding-right: 12px;
    line-height: 1.25;
  }
}

/* D-19b: latar hijau tua tema (bg-buy-pack-organic.png) dipulihkan; merek produk abu 2:1 dinaikkan agar lolos AA. */
.buy-pack-block .product-brand.text-secondary2 { color: #c8d2cd !important; }
