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

/* Rupiah price under each product name (added during the audit). */
.products-grid .mdix-price {
  margin: -4px 0 10px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #90c322;
}

/* Promo boxes: the theme shipped English text baked into images; now HTML text. */
.promo-home li .mdix-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.3;
}
.promo-home li .mdix-promo i {
  font-size: 30px;
  margin-bottom: 8px;
}
.promo-home li .mdix-promo strong {
  font-family: bebas_neueregular, Arial, sans-serif;
  font-size: 24px;
  letter-spacing: 0.5px;
  font-weight: normal;
}
.promo-home li .mdix-promo span {
  font-size: 12px;
}

/* Free-shipping strip above the footer (was an English image banner). */
.footer-info p.mdix-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 22px 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.4;
}
.footer-info p.mdix-banner i {
  font-size: 28px;
}
.footer-info p.mdix-banner .mdix-banner-btn {
  margin-left: auto;
  padding: 10px 26px;
  border-radius: 8px;
  background: #ffffff;
  color: #444444;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
}

/* "Our Brands" carousel only showed the theme seller's logos (Envato, ThemeForest). */
.brand-carousel {
  display: none !important;
}

@media (max-width: 767px) {
  .promo-home li {
    width: 100% !important;
    margin: 0 0 12px !important;
    box-sizing: border-box;
  }
  .footer-info p.mdix-banner {
    padding: 18px 12px;
    font-size: 15px;
  }
  .footer-info p.mdix-banner .mdix-banner-btn {
    margin-left: 0;
  }
}

/* Phones: the slider's green prev/next tabs covered the caption, and the
   copyright line ran under the social icons and the scroll-to-top button. */
@media (max-width: 767px) {
  #iview .iview-prevNav,
  #iview .iview-nextNav,
  #iview .iview-directionNav {
    display: none !important;
  }
  #footer-absolute {
    margin-bottom: 0;
    padding: 50px 0 16px;
  }
  #footer-absolute .copy,
  #footer-absolute .social {
    position: static !important;
    width: 100%;
    text-align: center !important;
  }
  #footer-absolute .copy p {
    margin: 0 0 8px;
  }
  #footer-absolute #scroll-top-img {
    top: -30px;
    bottom: auto;
  }
}

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

/* Brand green #90c322 gave white text 2.1:1 and green text on white 2.1:1 (WCAG AA
   needs 4.5:1). Darker shade of the same green (#4d7c0f, 5.0:1 with white) for every
   green surface with text and for green text; the breadcrumb on its dark strip keeps
   the light green (readable there). */
html .first-bg, aside .block h4, .pagination ul .active a, button.button span, .button.btn-checkout,
.iview-prevNav, a.iview-nextNav, .dl-menuwrapper button, .dl-menuwrapper .dl-menu, .i-tab li.active,
html .first-bg-hover:hover, .pagination ul a:hover {
  background-color: #4d7c0f;
}
html .first-color, .price, .btn-icon i, .products-grid .mdix-price {
  color: #4d7c0f;
}
html .first-brd, .pagination ul .active a, .sf-menu li a:after {
  border-color: #4d7c0f;
}
.breadcrumb .navigation_page { color: #a6d84a; }

/* Hero slider: reserve its final height before iView runs (CLS was 0.25–0.42 on desktop).
   On the wrapper: iView derives its own height from #iview, so #iview itself stays untouched. */
@media only screen and (min-width: 801px) {
  .slider-home-page { min-height: 536px; }
}
@media only screen and (max-width: 800px) {
  .slider-home-page { min-height: calc((min(100vw, 800px) - 10px) * 0.4467 + 10px); }
}
@media only screen and (max-width: 767px) {
  /* iView briefly makes the slider ~400px tall on phones before settling */
  .slider-home-page { height: calc((100vw - 10px) * 0.4467 + 10px); overflow: hidden; }
}

/* Menu font (Bebas Neue) arrives after first paint; the default fallback is much wider and
   wrapped the menu to two lines at 1024px (layout shift). Narrow fallback of similar width. */
@font-face {
  font-family: "mdix-bebas-fallback";
  src: local("Arial Narrow"), local("ArialNarrow"), local("Arial");
  size-adjust: 64%;
}
.sf-menu li a, .page-title, .category-list h3 a, .title-carousel, .promo-home li .mdix-promo strong {
  font-family: bebas_neueregular, "mdix-bebas-fallback", sans-serif;
}

/* Category tiles on phones: crop instead of squashing the 369×133 photos. */
.category-list img { object-fit: cover; }

/* Touch targets: top bar, product names, footer links, social icons, phone menu button. */
.top-links #header_nav li a { display: inline-block; padding: 3px 0; }
.products-grid .product-name a { display: inline-block; min-height: 24px; line-height: 24px; }
#footer .block li a { display: inline-block; padding: 4px 0; line-height: 18px; }
#footer .block_content p a { display: inline-block; padding: 3px 0; }
.social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.social em { margin-left: 0; }
.dl-menuwrapper button { width: 48px; height: 44px; }
.dl-menuwrapper .dl-trigger:after { top: 9px; }
#footer-absolute .copy p { font-size: 12px; }

/* Product detail: specification table. */
.mdix-spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.mdix-spec th, .mdix-spec td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.mdix-spec th { width: 30%; color: #333; }

/* Cart and checkout additions. */
.mdix-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #333; }
.mdix-step-text { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #333; }
#checkoutSteps .step { padding: 24px 30px; }
#checkoutSteps .sp-methods dt { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
#checkoutSteps .sp-methods label { display: inline; }
.mdix-review { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.mdix-review th, .mdix-review td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; }
.mdix-review th { background: #f3f3f3; text-align: left; }
.mdix-review .a-right { text-align: right; white-space: nowrap; }
.mdix-review .a-center { text-align: center; }
.mdix-review .mdix-total td { font-weight: 700; font-size: 16px; }
a.button.mdix-order-btn { display: inline-block; text-decoration: none; }
a.button.mdix-order-btn span { display: inline-block; color: #fff; padding: 12px 22px; font-weight: 700; }

/* Blog: post titles are links now. */
.post-list .title-post a { color: inherit; text-decoration: none; }
.post-list .title-post a:hover { color: #4d7c0f; }

/* Category tile labels: same darker brand green (white text on #98c634 was 2.0:1). */
.category-list h3 a { background-color: #4d7c0f; opacity: 1; }
.category-list li:hover h3 a { background-color: #2a3610; }
/* Product names: keep them centred (the 24px target fix made them inline-block). */
.products-grid .product-name a { display: block; }

/* Checkout steps: label on one line, bigger open/close target (the whole bar also opens it). */
.opc .step-title .number { white-space: nowrap; }
.opc .step-title a { width: 44px; height: 44px; top: -9px; margin-right: -12px; background-position: center center; }
/* Prices: the theme upper-cases .price, which turned "Rp" into "RP". */
.price, #our_price_display { text-transform: none; }
/* Cart totals: subtotal/ongkir values were light grey on white. */
#shopping-cart-totals-table tbody td, #shopping-cart-totals-table tbody td .price { color: #333; }
.opc .active .step-title a { background-position: center center; }

/* Category tiles on phones: smaller labels so the photo stays visible. */
@media (max-width: 767px) {
  .category-list h3 a { font-size: 16px; padding: 6px 10px; left: 8px; right: 8px; text-align: center; }
}

/* Quantity picker: the theme's stacked 15px +/- buttons in light grey were hard to see and
   to tap. Now one row: [-] [qty] [+], 36px tall. */
.input-qty-box .input .range, .cart-table .input-qty-box .range { display: flex; align-items: stretch; padding: 0; margin: 0; }
.input-qty-box .input .range li, .input-qty-box .input .range li.item.plus, .input-qty-box .input .range li.item.minus { float: none; position: static; }
.input-qty-box .input .range li.item.plus a, .input-qty-box .input .range li.item.minus a {
  position: static; width: 36px; height: 36px; line-height: 34px; padding: 0; box-sizing: border-box;
  text-align: center; color: #333; font-size: 18px; border: 1px solid #dbdbdb; background: #f5f5f5;
}
.input-qty-box .input .range li input { height: 36px !important; width: 48px !important; box-sizing: border-box; text-align: center; border-left: 0; border-right: 0; }
.cart-table .input-qty-box { display: inline-block; }

/* Product detail on phones: no empty box under the short description; buttons in a tidy row. */
@media (max-width: 767px) {
  #short_description_block { min-height: 0; }
  .product_attributes .add-to-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .product_attributes .input-qty-box, .product_attributes button { float: none; margin: 0; }
  .product_attributes button.btn { min-height: 44px; }
}

/* Phones/tablets ≤800px: the theme turns every table into stacked blocks and hides all
   table headers and footers — that hid the cart total and the labels of our own tables. */
@media only screen and (max-width: 800px) {
  .input-qty-box .range, .input-qty-box .input .range, .cart-table .input-qty-box .range { justify-content: center; padding: 0 !important; max-width: none; margin: 0 auto; }
  .input-qty-box .input .range li { padding: 0 !important; max-width: none; margin: 0 !important; }

  .mdix-spec, .mdix-review, #shopping-cart-totals-table { display: table !important; width: 100%; }
  .mdix-review thead { display: table-header-group !important; }
  .mdix-spec tbody, .mdix-review tbody, #shopping-cart-totals-table tbody { display: table-row-group !important; }
  .mdix-review tfoot, .cart #shopping-cart-totals-table tfoot { display: table-footer-group !important; }
  .mdix-spec tr, .mdix-review tr, #shopping-cart-totals-table tr { display: table-row !important; }
  .mdix-spec th, .mdix-spec td, .mdix-review th, .mdix-review td,
  #shopping-cart-totals-table th, #shopping-cart-totals-table td { display: table-cell !important; width: auto !important; padding: 10px !important; }
  .mdix-spec th, .mdix-spec td, .mdix-review th, .mdix-review td:first-child { text-align: left !important; }
  .mdix-review .a-right { text-align: right !important; }
  #shopping-cart-totals-table th { text-align: right !important; }

  /* cart rows: say what each stacked value is */
  #shopping-cart-table tbody td:nth-child(3)::before { content: "Harga satuan: "; color: #555; }
  #shopping-cart-table tbody td:nth-child(5)::before { content: "Subtotal: "; color: #555; }
  #shopping-cart-table tbody td:nth-child(5) { font-weight: 700; }
  #shopping-cart-table tbody td:nth-child(6) a { display: inline-block; min-width: 44px; min-height: 36px; line-height: 36px; }
  #shopping-cart-table tbody td:nth-child(6) a::after { content: " Hapus"; font-size: 14px; }
  #shopping-cart-table tbody tr { border-bottom: 2px solid #e5e5e5; padding-bottom: 8px; }
}

/* Checkout login/billing fields stayed 300px wide and poked out of their box on phones. */
@media only screen and (max-width: 800px) {
  .opc .form-list .input-box, .opc .form-list .input-box input, .opc .form-list .input-box select { max-width: 100%; box-sizing: border-box; }
}

/* Phone menu: the closed menu was only transparent, so its links stayed focusable and
   readable by screen readers. visibility follows the theme's 0.3s fade. */
.dl-menuwrapper .dl-menu { visibility: hidden; }
.dl-menuwrapper .dl-menu.dl-menuopen { visibility: visible; }
.mdix-review, .mdix-review th, .mdix-review td { color: #333; }
a.button.mdix-order-btn span { background-color: #4d7c0f; border-radius: 2px; min-height: 20px; }
a.button.mdix-order-btn:hover span { background-color: #2a3610; }

/* ---- round 2: contrast, small text and touch targets on inner pages ---- */
/* Breadcrumb strip: opaque so the text contrast does not depend on the photo behind it. */
.breadcrumb { background: #2f2f2f; }
.breadcrumb a { display: inline-block; padding: 3px 0; color: #fff; }
/* Sidebar category tree: darker grey, 24px+ rows. */
#categories_block_left .tree a { color: #555; padding-top: 4px; padding-bottom: 4px; line-height: 18px; }
.block-news .block_content ul li a { display: block; padding: 5px 0; color: #444; }
.block-tags .block_content a { font-size: 12px; padding: 5px 10px; display: inline-block; margin-bottom: 6px; }
.block-news .block_content p, .block-news .block_content p strong, .block-news .block_content p a { color: #444; }
/* Product detail: buttons were 11px; image link wraps the whole photo. */
.product_attributes button.btn { font-size: 13px; }
#image-block a { display: block; }
/* Cart: option labels and links. */
#shopping-cart-table dl dt strong { color: #555; }
#shopping-cart-table a.product-image { display: inline-block; }
#shopping-cart-table .product-name a, .products-list .product-name a { display: inline-block; padding: 3px 0; }
/* Checkout: grey help text. */
#checkoutSteps .wrap-login p { color: #555; }
/* Blog: grey body text, 10px meta, inline thumbnail links. */
.post-list li > p, .post-list li p { color: #555; }
.post-list .thumbnails a { display: block; }
.post-details td { font-size: 12px; }
.post-details td.first-bg a { display: inline-block; padding: 3px 0; }
.comment-name .time-ago { font-size: 12px; color: #666; }
.comment-section a.reply { background-color: #555; }
#shopping-cart-table .product-name a { padding: 4px 0; }

/* ---- round 3: tablet widths (768–1000px) ---- */
/* Card buttons: three in one row at every width (the third wrapped at 768). */
.products-grid .actions { display: flex; justify-content: center; gap: 3px; }
.products-grid .actions .btn-circle { width: 60px !important; height: 40px; padding: 0; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; top: 0; }
@media only screen and (max-width: 1000px) {
  /* free-shipping strip and copyright line touched the screen edges */
  .footer-info .container_9 { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
  #footer-absolute { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
  .social { right: 16px; }
}
@media only screen and (min-width: 768px) and (max-width: 1000px) {
  .promo-home li .mdix-promo { min-height: 150px; }
  .promo-home li .mdix-promo strong { font-size: 20px; white-space: nowrap; }
}
@media only screen and (min-width: 768px) and (max-width: 1000px) {
  #footer-absolute .copy { left: 16px; }
}
@media only screen and (max-width: 1100px) {
  /* the slider's green prev/next tabs covered the caption at 801–1100px */
  #iview .iview-directionNav, #iview .iview-prevNav, #iview .iview-nextNav { display: none !important; }
}
@media only screen and (min-width: 801px) and (max-width: 1000px) {
  /* "Layanan Pelanggan" wraps to two lines: give every footer heading the same height */
  #footer .block h4 { min-height: 2.6em; }
}
@media only screen and (max-width: 767px) {
  /* blog text ran to the screen edge on phones */
  .post-list > li { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
  .post-list .thumbnails { margin-left: -16px; margin-right: -16px; }
}
.form-add-comment textarea { font-family: inherit; font-size: 14px; }
@media only screen and (max-width: 767px) {
  #center_column .post-list.post-view > li { padding-left: 16px !important; padding-right: 16px !important; }
}
@media only screen and (max-width: 800px) {
  /* the 3% left margin pushed the menu button over the search box at 768px */
  #dl-menu.dl-menuwrapper { margin-left: 12px; }
}
