/*
 * BabyLife 2.9.18 — reference-style WooCommerce single product.
 * Visual layer only. Native WooCommerce price, variation, stock, cart and schema remain authoritative.
 */

.single-product .blsc-reference-rating{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:7px 0 12px;
}
.single-product .blsc-reference-rating a{text-decoration:none!important}
.single-product .blsc-reference-rating__score,
.single-product .blsc-reference-rating__reviews{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:5px 11px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
}
.single-product .blsc-reference-rating__score{
  border:1px solid #f5b900;
  background:#fffaf0;
  color:#b98200;
}
.single-product .blsc-reference-rating__score>span{font-size:16px;color:#f2b600}
.single-product .blsc-reference-rating__score>strong{font-size:13px;color:#b98200}
.single-product .blsc-reference-rating__score>small{font-size:10px;color:#b98200}
.single-product .blsc-reference-rating__reviews{
  border:1px solid #d7dbe0;
  background:#fff;
  color:#6f7780;
}
.single-product .blsc-reference-rating__reviews b{font-weight:700}

.single-product .blsc-reference-sales{
  display:flex;
  align-items:center;
  gap:9px;
  margin:8px 0 13px;
  color:#149b70;
  font-size:12px;
  font-weight:700;
}
.single-product .blsc-reference-sales__icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#1faa7c;
  color:#fff;
  font-size:17px;
  font-weight:900;
}
.single-product .blsc-reference-sales strong{font-size:14px}

.single-product .blsc-reference-trust{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px 12px;
  margin:13px 0;
  padding:13px 14px;
  border:1px solid #74d2b4;
  border-radius:16px;
  background:#fbfffd;
}
.single-product .blsc-reference-trust>div{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  color:#5c6870;
  font-size:10.5px;
  line-height:1.6;
}
.single-product .blsc-reference-trust i{
  width:24px;
  height:24px;
  flex:0 0 24px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#e9faf4;
  color:#17a87a;
  font-style:normal;
  font-size:13px;
  font-weight:900;
}

.single-product .blsc-reference-consult{
  width:100%;
  min-height:56px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 28px;
  align-items:center;
  gap:10px;
  margin:10px 0 14px;
  padding:9px 12px;
  border:1px solid #dfe2e5;
  border-radius:14px;
  background:#fff;
  color:#69717a!important;
  text-decoration:none!important;
}
.single-product .blsc-reference-consult__copy{min-width:0;display:grid;gap:2px}
.single-product .blsc-reference-consult__copy strong{color:#525b65;font-size:11px}
.single-product .blsc-reference-consult__copy small{color:#8b9299;font-size:9px;white-space:normal}
.single-product .blsc-reference-consult>b{color:#79818a;font-size:12px;font-weight:700}
.single-product .blsc-reference-consult>i{
  width:28px;height:28px;display:grid;place-items:center;border-radius:50%;
  background:#f3f5f6;color:#7e858c;font-style:normal;font-size:13px;
}

/* Desktop: clean product card while preserving the existing responsive shell. */
@media (min-width:821px){
  .single-product div.product .summary.entry-summary{
    padding:20px!important;
    border:1px solid #ece8eb!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 14px 36px rgba(26,33,38,.045)!important;
  }
  .single-product .blsc-reference-consult{margin-top:12px}
}

@media (max-width:820px){
  :root{--blsc-product-sticky-h:76px}

  html body.single-product{
    padding-bottom:calc(var(--blsc-product-sticky-h) + env(safe-area-inset-bottom))!important;
    background:#fff!important;
  }

  /* Product reference has its own checkout CTA; avoid a second bottom nav/floating chat layer. */
  body.single-product .blsc-mobile-bottom-nav,
  body.single-product .babylife-whatsapp-float,
  body.single-product .babylife-bale-float,
  body.single-product .blsc-external-mobile-nav-navy{
    display:none!important;
  }

  body.single-product .blsc-woo-main{
    width:100%!important;
    max-width:100%!important;
    padding:10px 12px 120px!important;
  }

  body.single-product .woocommerce-breadcrumb{
    margin:2px 3px 8px!important;
    color:#a0a5aa!important;
    font-size:9.5px!important;
    line-height:1.7!important;
  }

  /* Large clean gallery, like the supplied reference. */
  body.single-product div.product .woocommerce-product-gallery{
    position:relative!important;
    width:100%!important;
    min-height:300px!important;
    margin:0 0 8px!important;
    padding:8px 0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body.single-product div.product .woocommerce-product-gallery__wrapper{
    min-height:288px!important;
    display:flex!important;
    align-items:center!important;
  }
  body.single-product div.product .woocommerce-product-gallery__image,
  body.single-product div.product .woocommerce-product-gallery__image>a{
    width:100%!important;
    min-height:288px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  body.single-product div.product .woocommerce-product-gallery__image img{
    width:auto!important;
    max-width:min(76vw,330px)!important;
    height:auto!important;
    max-height:330px!important;
    margin:auto!important;
    padding:0!important;
    border-radius:0!important;
    object-fit:contain!important;
    background:#fff!important;
  }
  body.single-product div.product .flex-control-thumbs{display:none!important}

  /* Restore and simplify slider arrows on mobile. */
  body.single-product div.product .woocommerce-product-gallery .flex-direction-nav{
    position:absolute!important;
    inset:0!important;
    z-index:8!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    pointer-events:none!important;
    list-style:none!important;
  }
  body.single-product div.product .woocommerce-product-gallery .flex-direction-nav li{list-style:none!important}
  body.single-product div.product .woocommerce-product-gallery .flex-prev,
  body.single-product div.product .woocommerce-product-gallery .flex-next{
    position:absolute!important;
    top:50%!important;
    width:34px!important;
    height:48px!important;
    display:grid!important;
    place-items:center!important;
    margin-top:-24px!important;
    border:0!important;
    background:transparent!important;
    color:transparent!important;
    font-size:0!important;
    opacity:.72!important;
    pointer-events:auto!important;
    text-decoration:none!important;
  }
  body.single-product div.product .woocommerce-product-gallery .flex-prev{right:auto!important;left:0!important}
  body.single-product div.product .woocommerce-product-gallery .flex-next{left:auto!important;right:0!important}
  body.single-product div.product .woocommerce-product-gallery .flex-prev:before,
  body.single-product div.product .woocommerce-product-gallery .flex-next:before{
    color:#72777c!important;
    font-size:38px!important;
    font-family:Arial,sans-serif!important;
    font-weight:400!important;
    line-height:1!important;
  }
  body.single-product div.product .woocommerce-product-gallery .flex-prev:before{content:'‹'!important}
  body.single-product div.product .woocommerce-product-gallery .flex-next:before{content:'›'!important}

  /* Reference order: image → title → rating → sales → trust → selector → consult → benefits. */
  body.single-product div.product .summary.entry-summary{
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    margin:0!important;
    padding:0 10px 18px!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    position:static!important;
  }
  body.single-product div.product .summary>.product_title{order:1!important}
  body.single-product div.product .summary>.blsc-reference-rating{order:2!important}
  body.single-product div.product .summary>.blsc-reference-sales{order:3!important}
  body.single-product div.product .summary>.blsc-reference-trust{order:4!important}
  body.single-product div.product .summary>form.cart{order:5!important;width:100%!important}
  body.single-product div.product .summary>.blsc-reference-consult{order:6!important}
  body.single-product div.product .summary>.woocommerce-product-details__short-description{order:7!important}
  body.single-product div.product .summary>.product_meta{order:20!important}

  body.single-product div.product .summary>.price,
  body.single-product div.product .summary>p.price,
  body.single-product div.product .summary>span.price,
  body.single-product .blsc-decision-strip,
  body.single-product .blsc-real-sales-count,
  body.single-product .blsc-after-cart-reassurance,
  body.single-product .blsc-quick-attributes,
  body.single-product .blsc-mobile-product-guide,
  body.single-product .product_meta{
    display:none!important;
  }

  html body.single-product.woocommerce div.product div.summary.entry-summary h1.product_title.entry-title,
  html body.single-product div.product div.summary h1.product_title.entry-title{
    margin:3px 0 8px!important;
    padding:0!important;
    color:#111!important;
    font-size:21px!important;
    font-weight:900!important;
    line-height:1.72!important;
    letter-spacing:-.2px!important;
    text-align:right!important;
  }

  body.single-product .blsc-reference-rating{margin:2px 0 10px!important;gap:7px!important}
  body.single-product .blsc-reference-rating__score,
  body.single-product .blsc-reference-rating__reviews{
    min-height:34px!important;
    padding:5px 10px!important;
    font-size:10px!important;
  }
  body.single-product .blsc-reference-rating__score>strong{font-size:13px!important}
  body.single-product .blsc-reference-rating__score>small{font-size:9px!important}

  body.single-product .blsc-reference-sales{
    margin:2px 0 11px!important;
    padding:9px 0!important;
    border-top:1px solid #f0f1f2!important;
    border-bottom:1px solid #f0f1f2!important;
    font-size:12px!important;
  }
  body.single-product .blsc-reference-sales__icon{width:32px!important;height:32px!important;flex-basis:32px!important}
  body.single-product .blsc-reference-sales strong{font-size:14px!important}

  body.single-product .blsc-reference-trust{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px 12px!important;
    margin:0 0 13px!important;
    padding:12px!important;
    border:1px solid #65c9a8!important;
    border-radius:14px!important;
    background:#fcfffd!important;
  }
  body.single-product .blsc-reference-trust>div{font-size:10px!important;line-height:1.6!important}
  body.single-product .blsc-reference-trust i{width:23px!important;height:23px!important;flex-basis:23px!important}

  /* Native Woo variable/simple form, visually matched to the supplied card. */
  body.single-product form.cart{
    width:100%!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:10px!important;
    margin:0 0 10px!important;
    padding:13px!important;
    border:1px solid #dfe2e5!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  body.single-product form.variations_form{display:block!important}
  body.single-product form.cart table.variations{
    width:100%!important;
    margin:0 0 6px!important;
    border:0!important;
  }
  body.single-product form.cart table.variations tbody,
  body.single-product form.cart table.variations tr,
  body.single-product form.cart table.variations th,
  body.single-product form.cart table.variations td{
    display:block!important;
    width:100%!important;
    border:0!important;
    padding:0!important;
  }
  body.single-product form.cart table.variations tr{margin-bottom:10px!important}
  body.single-product form.cart table.variations label{
    display:block!important;
    margin:0 0 6px!important;
    color:#6d747c!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  body.single-product form.cart table.variations select{
    width:100%!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 11px!important;
    border:1px solid #d9dde0!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#666f77!important;
    font-size:11px!important;
    box-shadow:none!important;
  }
  body.single-product form.cart .reset_variations{margin:6px 0 0!important;font-size:9px!important;color:#9ba1a6!important}
  body.single-product form.cart .woocommerce-variation{
    width:100%!important;
    margin:0!important;
  }
  body.single-product form.cart .woocommerce-variation-price{display:none!important}

  body.single-product form.cart .quantity{
    position:relative!important;
    width:auto!important;
    min-width:116px!important;
    min-height:40px!important;
    display:inline-grid!important;
    grid-template-columns:34px 42px 34px!important;
    align-items:center!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #d9dde0!important;
    border-radius:12px!important;
    background:#fff!important;
    overflow:hidden!important;
  }
  body.single-product form.cart .quantity:before{
    content:'تعداد :'!important;
    position:absolute!important;
    right:calc(100% + 9px)!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:max-content!important;
    color:#6d747c!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  body.single-product form.cart .quantity .qty{
    grid-column:2!important;
    width:42px!important;
    min-width:42px!important;
    min-height:38px!important;
    height:38px!important;
    margin:0!important;
    padding:0 2px!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    color:#394149!important;
    font-size:12px!important;
    text-align:center!important;
    appearance:textfield!important;
    -moz-appearance:textfield!important;
  }
  body.single-product form.cart .quantity .qty::-webkit-outer-spin-button,
  body.single-product form.cart .quantity .qty::-webkit-inner-spin-button{margin:0!important;-webkit-appearance:none!important}
  body.single-product .blsc-qty-btn{
    width:34px!important;
    height:38px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:#fff!important;
    color:#5d666e!important;
    font-size:18px!important;
    line-height:1!important;
    cursor:pointer!important;
  }
  body.single-product .blsc-qty-btn--minus{grid-column:1!important;grid-row:1!important}
  body.single-product .blsc-qty-btn--plus{grid-column:3!important;grid-row:1!important}
  body.single-product form.cart .single_add_to_cart_button{display:none!important}

  body.single-product .blsc-reference-consult{
    order:6!important;
    min-height:54px!important;
    margin:7px 0 16px!important;
    padding:8px 12px!important;
    border-radius:13px!important;
  }

  /* If the product has a short description, present it as the reference benefits block. */
  body.single-product .woocommerce-product-details__short-description{
    margin:3px 0 16px!important;
    padding:0!important;
    color:#555e66!important;
    font-size:10.5px!important;
    line-height:2!important;
  }
  body.single-product .woocommerce-product-details__short-description:before{
    content:'مزایا:'!important;
    display:block!important;
    margin:0 0 6px!important;
    color:#15191d!important;
    font-size:15px!important;
    font-weight:900!important;
  }
  body.single-product .woocommerce-product-details__short-description ul{
    margin:0!important;
    padding:0 18px 0 0!important;
  }
  body.single-product .woocommerce-product-details__short-description li{margin:4px 0!important}

  /* Tabs: flat, full-width, horizontally usable on small phones. */
  body.single-product div.product>.woocommerce-tabs,
  body.single-product div.product>.woocommerce-tabs.wc-tabs-wrapper{
    width:100%!important;
    max-width:100%!important;
    clear:both!important;
    margin:0 0 18px!important;
    padding:0 10px!important;
  }
  body.single-product .woocommerce-tabs ul.tabs{
    width:100%!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #d9dde0!important;
    border-bottom:0!important;
    border-radius:0!important;
    background:#f2f2f2!important;
    scrollbar-width:none!important;
  }
  body.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar{display:none!important}
  body.single-product .woocommerce-tabs ul.tabs:before,
  body.single-product .woocommerce-tabs ul.tabs:after,
  body.single-product .woocommerce-tabs ul.tabs li:before,
  body.single-product .woocommerce-tabs ul.tabs li:after{display:none!important}
  body.single-product .woocommerce-tabs ul.tabs li{
    flex:1 0 43%!important;
    min-width:135px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-left:1px solid #d9dde0!important;
    border-radius:0!important;
    background:#ececec!important;
  }
  body.single-product .woocommerce-tabs ul.tabs li:last-child{border-left:0!important}
  body.single-product .woocommerce-tabs ul.tabs li.active{background:#fff!important}
  body.single-product .woocommerce-tabs ul.tabs li a{
    width:100%!important;
    display:block!important;
    padding:13px 8px!important;
    color:#24282c!important;
    font-size:11px!important;
    font-weight:800!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
  body.single-product .woocommerce-tabs .panel,
  body.single-product .woocommerce-Tabs-panel{
    min-height:220px!important;
    margin:0!important;
    padding:16px!important;
    border:1px solid #d9dde0!important;
    background:#fff!important;
    border-radius:0!important;
    color:#4f575e!important;
    font-size:11px!important;
    line-height:2!important;
  }

  body.single-product .blsc-after-product-benefits{display:none!important}

  /* Sticky checkout strip exactly at the bottom; native Woo price stays the source of truth. */
  body.single-product .blsc-sticky-product-cta{
    position:fixed!important;
    z-index:999990!important;
    right:0!important;
    left:0!important;
    bottom:0!important;
    min-height:var(--blsc-product-sticky-h)!important;
    display:grid!important;
    grid-template-columns:minmax(118px,.9fr) minmax(190px,1.25fr)!important;
    align-items:center!important;
    gap:12px!important;
    direction:ltr!important;
    padding:9px 12px calc(9px + env(safe-area-inset-bottom))!important;
    border-top:1px solid #e4e6e8!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 -7px 22px rgba(35,42,47,.08)!important;
    backdrop-filter:blur(10px)!important;
  }
  body.single-product .blsc-sticky-product-cta.is-hidden{
    transform:none!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
  body.single-product .blsc-sticky-price{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    direction:rtl!important;
    color:#24282c!important;
    font-size:18px!important;
    font-weight:900!important;
    line-height:1.3!important;
    text-align:left!important;
  }
  body.single-product .blsc-sticky-price del{
    order:-1!important;
    display:block!important;
    margin:0 0 2px!important;
    color:#a9afb4!important;
    font-size:11px!important;
    font-weight:400!important;
    line-height:1.2!important;
  }
  body.single-product .blsc-sticky-price ins{
    color:#24282c!important;
    text-decoration:none!important;
  }
  body.single-product .blsc-sticky-product-cta .blsc-btn{
    width:100%!important;
    min-height:54px!important;
    margin:0!important;
    padding:0 14px!important;
    border:0!important;
    border-radius:13px!important;
    background:#ffad08!important;
    color:#fff!important;
    font-family:inherit!important;
    font-size:14px!important;
    font-weight:900!important;
    line-height:1.2!important;
    box-shadow:none!important;
    cursor:pointer!important;
  }
}

@media (max-width:390px){
  html body.single-product.woocommerce div.product div.summary.entry-summary h1.product_title.entry-title,
  html body.single-product div.product div.summary h1.product_title.entry-title{font-size:19px!important}
  body.single-product div.product .woocommerce-product-gallery{min-height:270px!important}
  body.single-product div.product .woocommerce-product-gallery__wrapper,
  body.single-product div.product .woocommerce-product-gallery__image,
  body.single-product div.product .woocommerce-product-gallery__image>a{min-height:260px!important}
  body.single-product div.product .woocommerce-product-gallery__image img{max-width:min(78vw,285px)!important;max-height:285px!important}
  body.single-product .blsc-reference-trust{gap:8px!important;padding:10px!important}
  body.single-product .blsc-reference-trust>div{font-size:9px!important}
  body.single-product .blsc-sticky-product-cta{grid-template-columns:minmax(100px,.82fr) minmax(165px,1.18fr)!important;gap:8px!important;padding-inline:9px!important}
  body.single-product .blsc-sticky-price{font-size:16px!important}
  body.single-product .blsc-sticky-product-cta .blsc-btn{font-size:12.5px!important}
}
