/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
*/
/* Remove the empty former blog row above the blue navigation. */
#header .elementor-573 .elementor-element-b644ecb {display:none!important;}
/* Draft: full-width blue navigation immediately after the Elementor header */
#rlcd-custom-nav.rlcd-custom-nav {
 display:flex!important; flex-direction:row!important; align-items:center!important; justify-content:center!important; text-align:center!important; flex-wrap:wrap;
 gap:12px; width:100%!important; max-width:none!important; box-sizing:border-box;
 padding:8px 12px; margin:0; background:#0038B8!important; color:#fff!important;
 position:relative; z-index:14; clear:both;
}
#rlcd-custom-nav.rlcd-custom-nav a {color:#fff!important; font-family:Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important; font-size:15px; font-weight:600; letter-spacing:.1px; text-decoration:none;}
#rlcd-custom-nav.rlcd-custom-nav a:hover {color:#fff!important; text-decoration:underline;}
@media(max-width:767px){#rlcd-custom-nav.rlcd-custom-nav{gap:8px;padding:7px 6px;}#rlcd-custom-nav.rlcd-custom-nav a{font-size:11px;}}

/* WPVibe-style star particles: visible without relying on JavaScript. */
@keyframes rlcd-star-drift{0%{transform:translate3d(0,0,0);opacity:.5}50%{opacity:.85}100%{transform:translate3d(0,6px,0);opacity:.5}}
body:before{content:"";position:fixed;inset:0;z-index:9998;pointer-events:none;opacity:.78;background-image:
radial-gradient(circle at 4% 12%,#2563eb 0 1px,transparent 1.8px),
radial-gradient(circle at 12% 76%,#3b82f6 0 1.2px,transparent 2px),
radial-gradient(circle at 19% 28%,#174ea6 0 1px,transparent 1.8px),
radial-gradient(circle at 27% 61%,#60a5fa 0 1.3px,transparent 2px),
radial-gradient(circle at 34% 9%,#2563eb 0 1px,transparent 1.8px),
radial-gradient(circle at 42% 44%,#3b82f6 0 1.2px,transparent 2px),
radial-gradient(circle at 49% 83%,#174ea6 0 1px,transparent 1.8px),
radial-gradient(circle at 57% 22%,#60a5fa 0 1.3px,transparent 2px),
radial-gradient(circle at 64% 68%,#2563eb 0 1px,transparent 1.8px),
radial-gradient(circle at 72% 35%,#3b82f6 0 1.2px,transparent 2px),
radial-gradient(circle at 81% 12%,#174ea6 0 1px,transparent 1.8px),
radial-gradient(circle at 89% 59%,#60a5fa 0 1.3px,transparent 2px),
radial-gradient(circle at 96% 87%,#2563eb 0 1px,transparent 1.8px);
animation:rlcd-star-drift 9s ease-in-out infinite alternate}
@media(prefers-reduced-motion:reduce){body:before{animation:none}}

/* LCD catalog: compact text-first quick-order rows, inspired by Libra Jaya. */
body.tax-product_cat.term-lcd .porto-tb-item {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  flex:0 0 100%!important;
  grid-column:1 / -1!important;
  margin:0!important;
  padding:12px 10px!important;
  border:0!important;
  border-bottom:1px solid #dce4ee!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .tb-woo-rating,
body.tax-product_cat.term-lcd .porto-tb-item .product-excerpt,
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-wishlist,
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-quickview,
body.tax-product_cat.term-lcd .porto-tb-item .tb-meta-product_cat {display:none!important}
body.tax-product_cat.term-lcd .porto-tb-item .product-list-type {
  display:block!important;
  padding:0!important;
  margin:0!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .product-list-content {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(125px,auto) auto auto;
  align-items:center;
  gap:8px 14px;
  width:100%!important;
  padding:0!important;
  margin:0!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .post-title {
  grid-column:1;
  grid-row:1;
  margin:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:unset!important;
  font-size:15px!important;
  line-height:1.4!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .tb-woo-price {
  grid-column:2;
  grid-row:1;
  margin:0!important;
  white-space:nowrap;
  font-size:15px!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .rlcd-quantity-stepper {
  grid-column:3!important;
  grid-row:1!important;
  display:flex!important;
  align-items:center;
  gap:0;
  overflow:hidden;
  border:1px solid #8bd4f2;
  border-radius:5px;
  background:#e8f7fd;
}
body.tax-product_cat.term-lcd .porto-tb-item .rlcd-quantity-stepper button {
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:34px;
  height:38px;
  min-height:38px;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#79cbed!important;
  color:#003b70!important;
  font-size:20px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
body.tax-product_cat.term-lcd .porto-tb-item .rlcd-quantity-stepper button:hover {
  background:#55b9e5!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .rlcd-quantity-stepper,
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart {
  position:relative!important;
  z-index:5!important;
  pointer-events:auto!important;
  touch-action:manipulation;
}
body.tax-product_cat.term-lcd .rlcd-list-quantity {
  width:48px!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:4px 2px!important;
  border:0!important;
  border-left:1px solid #b9e7f7!important;
  border-right:1px solid #b9e7f7!important;
  border-radius:0!important;
  background:#fff!important;
  color:#1f2937!important;
  text-align:center;
  appearance:textfield;
  position:relative!important;
  z-index:6!important;
  pointer-events:auto!important;
  touch-action:manipulation;
  cursor:text;
}
body.tax-product_cat.term-lcd .rlcd-list-quantity::-webkit-inner-spin-button,
body.tax-product_cat.term-lcd .rlcd-list-quantity::-webkit-outer-spin-button {
  margin:0;
  appearance:none;
}
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart {
  grid-column:4;
  grid-row:1;
  margin:0!important;
  white-space:nowrap;
  border-radius:5px!important;
  background:#0038B8!important;
  border-color:#0038B8!important;
  color:#fff!important;
}
@media(max-width:767px){
  body.tax-product_cat.term-lcd .porto-tb-item{padding:12px 2px!important}
  body.tax-product_cat.term-lcd .porto-tb-item .product-list-content {
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px 10px;
  }
  body.tax-product_cat.term-lcd .porto-tb-item .post-title{grid-column:1/-1;grid-row:1;font-size:14px!important}
  body.tax-product_cat.term-lcd .porto-tb-item .tb-woo-price{grid-column:1;grid-row:2;font-size:14px!important}
  body.tax-product_cat.term-lcd .porto-tb-item .rlcd-quantity-stepper{grid-column:2;grid-row:2}
  body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart {
    grid-column:1/-1;
    grid-row:3;
    justify-content:center;
    width:100%;
    font-size:12px!important;
    padding:8px 9px!important;
  }
}

/* Blue name column for every LCD item, matching the navigation bar. */
body.tax-product_cat.term-lcd .porto-tb-item .post-title {
  display:block!important;
  box-sizing:border-box;
  width:100%;
  padding:10px 12px!important;
  border-radius:0!important;
  background:#0038B8!important;
  color:#fff!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .post-title a,
body.tax-product_cat.term-lcd .porto-tb-item .post-title a:hover {
  color:#fff!important;
  text-decoration:none!important;
}

/* BCA-yellow shopping button; variable products still open their variant page. */
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart {
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:8px 14px!important;
  border:1px solid #FFDD00!important;
  border-radius:5px!important;
  background:#FFDD00!important;
  color:#0038B8!important;
  text-decoration:none!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart {
  font-size:0!important;
  letter-spacing:0!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart i,
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart span,
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart svg {
  display:none!important;
}
/* Keep exactly one visible shopping-bag icon, even if the theme's button script is cached. */
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart::before {
  content:"🛍️"!important;
  display:block!important;
  font-size:19px!important;
  line-height:1!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart::after {
  content:none!important;
  display:none!important;
}

/* Keep the image hidden while exposing its nested shopping link in the row. */
body.tax-product_cat.term-lcd .porto-tb-item > .porto-section.product-type-loi {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto auto!important;
  align-items:center!important;
  gap:8px 12px!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .product-image {
  display:contents!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .product-image > .img-thumbnail,
body.tax-product_cat.term-lcd .porto-tb-item .product-image .labels,
body.tax-product_cat.term-lcd .porto-tb-item .product-image .viewcart,
body.tax-product_cat.term-lcd .porto-tb-item .product-image .porto-tb-link,
body.tax-product_cat.term-lcd .porto-tb-item .product-image .porto-tb-wishlist,
body.tax-product_cat.term-lcd .porto-tb-item .product-image .porto-tb-quickview,
body.tax-product_cat.term-lcd .porto-tb-item .product-image .screen-reader-text {
  display:none!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .product-image .tb-hover-content,
body.tax-product_cat.term-lcd .porto-tb-item .product-image .action-wrap {
  display:contents!important;
  position:static!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .post-title {
  grid-column:1!important;
  grid-row:1!important;
  min-width:0;
}
body.tax-product_cat.term-lcd .porto-tb-item .tb-woo-price {
  grid-column:2!important;
  grid-row:1!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .rlcd-quantity-stepper {
  grid-column:3!important;
  grid-row:1!important;
}
body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart {
  grid-column:4!important;
  grid-row:1!important;
  width:auto!important;
}
@media(max-width:767px) {
  body.tax-product_cat.term-lcd .porto-tb-item > .porto-section.product-type-loi {
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:8px 10px!important;
  }
  body.tax-product_cat.term-lcd .porto-tb-item .post-title {
    grid-column:1/-1!important;
    grid-row:1!important;
  }
  body.tax-product_cat.term-lcd .porto-tb-item .tb-woo-price {
    grid-column:1!important;
    grid-row:2!important;
  }
  body.tax-product_cat.term-lcd .porto-tb-item .rlcd-quantity-stepper {
    grid-column:2!important;
    grid-row:2!important;
  }
  body.tax-product_cat.term-lcd .porto-tb-item .porto-tb-addcart {
    grid-column:3!important;
    grid-row:2!important;
    width:auto!important;
    min-width:42px;
    padding:8px 12px!important;
  }
}

/* LCD-only search placed directly above the product list. */
body.tax-product_cat.term-lcd .rlcd-catalog-search {
  display:block!important;
  width:min(100%,900px);
  margin:0 auto 18px!important;
  padding:0!important;
  background:transparent!important;
}
body.tax-product_cat.term-lcd .rlcd-catalog-search label {
  display:block;
  margin:0 0 7px;
  color:#163252;
  font-size:14px;
  font-weight:600;
}
body.tax-product_cat.term-lcd .rlcd-catalog-search-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}
body.tax-product_cat.term-lcd .rlcd-catalog-search input[type="search"] {
  width:100%;
  min-width:0;
  height:44px;
  margin:0;
  padding:0 14px;
  border:1px solid #ccd6e5;
  border-radius:6px;
  background:#fff;
  color:#163252;
}
body.tax-product_cat.term-lcd .rlcd-catalog-search button {
  min-width:104px;
  height:44px;
  padding:0 18px;
  border:1px solid #0038B8;
  border-radius:6px;
  background:#0038B8;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
body.tax-product_cat.term-lcd .rlcd-catalog-search button:hover {
  background:#002b8e;
}
@media(max-width:480px) {
  body.tax-product_cat.term-lcd .rlcd-catalog-search-row {
    grid-template-columns:minmax(0,1fr) auto;
    gap:6px;
  }
  body.tax-product_cat.term-lcd .rlcd-catalog-search button {
    min-width:78px;
    padding:0 12px;
  }
}

/* Header search button: BCA yellow background with blue icon. */
#header .elementor-widget-porto_hb_search_form .searchform.searchform-cats .button-wrap > button.btn-special,
#header .elementor-widget-porto_hb_search_form .searchform.searchform-cats .button-wrap > button.btn-special:hover,
#header .elementor-widget-porto_hb_search_form .searchform.searchform-cats .button-wrap > button.btn-special:focus,
#header .elementor-widget-porto_hb_search_form .searchform.searchform-cats .button-wrap > button.btn-special:active {
  background-color:#FFDD00!important;
  border-color:#FFDD00!important;
  color:#0038B8!important;
}
#header .elementor-widget-porto_hb_search_form .searchform.searchform-cats .button-wrap > button.btn-special .porto-icon-magnifier {
  color:#0038B8!important;
}

/* Header input box containing the "Search…" placeholder. */
#header .elementor-widget-porto_hb_search_form .searchform.searchform-cats .searchform-fields > .text input[name="s"] {
  background-color:#FFDD00!important;
  color:#0038B8!important;
}
#header .elementor-widget-porto_hb_search_form .searchform.searchform-cats .searchform-fields > .text input[name="s"]::placeholder {
  color:#0038B8!important;
  opacity:1;
}

/* Header product-category dropdown: BCA yellow with bold black text. */
#header .elementor-widget-porto_hb_search_form .searchform.searchform-cats .searchform-fields select.cat {
  background-color:#FFDD00!important;
  color:#000000!important;
  font-weight:700!important;
}
#header .elementor-widget-porto_hb_search_form .searchform.searchform-cats .searchform-fields select.cat option {
  background-color:#FFDD00!important;
  color:#000000!important;
  font-weight:700!important;
}

/* Catalog search buttons use the same BCA-yellow treatment. */
body.tax-product_cat .rlcd-catalog-search button,
body.tax-product_cat .rlcd-catalog-search button:hover,
body.tax-product_cat .rlcd-catalog-search button:focus,
body.tax-product_cat .rlcd-catalog-search button:active {
  background:#FFDD00!important;
  border-color:#FFDD00!important;
  color:#0038B8!important;
}

/* Preview: duplicate the top marquee message so it scrolls continuously. */
#header .rlcd-marquee-track span[aria-hidden="true"]::before {
  content:"RUMAH LCD | Pusat LCD & Spare Part HP | Online & Offline | Pembayaran Lengkap: PayLater, QRIS, Kartu Kredit & E-Wallet |";
}
@media (prefers-reduced-motion: reduce) {
  #header .rlcd-marquee-track { animation: none !important; }
}


/* Sidebar LCD photo grid only; the blue top-navigation LCD catalog stays text-first. */
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .archive-products .posts-wrap {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  width:100%!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .archive-products .porto-tb-item {
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:8px!important;
  border:1px solid #e5e5e5!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 2px 10px rgba(0,0,0,.06)!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item > .porto-section.product-type-loi {
  display:block!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .product-image {
  display:block!important;
  position:relative!important;
  overflow:hidden;
  width:100%!important;
  margin:0!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .product-image > .img-thumbnail,
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .product-image img {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  object-fit:contain!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .tb-hover-content {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:none!important;
  transform:none!important;
  background:transparent!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .porto-tb-link {
  display:none!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .action-wrap {
  position:absolute!important;
  right:8px!important;
  bottom:8px!important;
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:none!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .product-list-type,
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .product-list-content {
  display:block!important;
  width:100%!important;
  padding:0!important;
  margin:0!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .post-title {
  display:block!important;
  margin:8px 0 4px!important;
  padding:0!important;
  background:transparent!important;
  color:#222!important;
  white-space:normal!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .post-title a {
  color:#222!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .tb-woo-price {
  display:block!important;
  margin:6px 0!important;
  white-space:normal!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .tb-woo-rating,
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .tb-meta-product_cat,
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .rlcd-quantity-stepper,
body.tax-product_cat.term-lcd.rlcd-sidebar-photo #rlcd-catalog-search {
  display:none!important;
}
body.tax-product_cat.term-lcd.rlcd-sidebar-photo .porto-tb-item .porto-tb-addcart {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  padding:0!important;
  border:1px solid #ffdd00!important;
  border-radius:6px!important;
  background:#ffdd00!important;
  color:#0038b8!important;
  box-shadow:0 2px 8px rgba(0,0,0,.18)!important;
}
@media(max-width:900px) {
  body.tax-product_cat.term-lcd.rlcd-sidebar-photo .archive-products .posts-wrap {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
}
@media(min-width:901px) and (max-width:1199px) {
  body.tax-product_cat.term-lcd.rlcd-sidebar-photo .archive-products .posts-wrap {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* Preview: match the navigation text size in the user's reference image. */
#rlcd-custom-nav.rlcd-custom-nav a {
  font-size: 18px !important;
}
@media (max-width: 767px) {
  #rlcd-custom-nav.rlcd-custom-nav a {
    font-size: 12px !important;
  }
}

/* Pulsa & Paket Data preview: same Rumah LCD blue and BCA-yellow catalog palette. */
body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-intro {
  width:100%;
  margin:0 0 22px;
}
body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-banner {
  position:relative;
  overflow:hidden;
  padding:25px 26px 23px;
  border-left:7px solid #FFDD00;
  border-radius:8px;
  background:#0038B8;
  color:#fff;
  box-shadow:0 5px 18px rgba(0,56,184,.14);
}
body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-kicker {
  display:block;
  margin-bottom:7px;
  color:#FFDD00;
  font-size:12px;
  font-weight:800;
  letter-spacing:1.4px;
}
body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-banner h1 {
  margin:0 0 10px;
  color:#fff;
  font-size:clamp(25px,4vw,36px);
  font-weight:800;
  line-height:1.15;
}
body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-banner p {
  max-width:780px;
  margin:0 0 16px;
  color:#fff;
  font-size:15px;
  line-height:1.65;
}
body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-badge {
  display:inline-block;
  padding:7px 12px;
  border-radius:4px;
  background:#FFDD00;
  color:#0038B8;
  font-size:12px;
  font-weight:800;
  letter-spacing:.5px;
}
body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-empty {
  margin:0 0 24px;
  padding:26px 20px;
  border:1px solid #cbdcf5;
  border-radius:8px;
  background:#fff;
  color:#163252;
  text-align:center;
}
body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-empty-mark {
  display:inline-flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#FFDD00;
  color:#0038B8;
  font-size:28px;
  font-weight:700;
}
body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-empty h2 {
  margin:12px 0 6px;
  color:#0038B8;
  font-size:20px;
}
body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-empty p {
  max-width:650px;
  margin:0 auto;
  color:#40516a;
  line-height:1.6;
}
@media(max-width:600px) {
  body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-banner {padding:21px 17px 19px}
  body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-banner p {font-size:14px}
  body.tax-product_cat.term-pulsa-paket-data .rlcd-pulsa-empty {padding:22px 15px}
}
