/* =========================================================
   RSD IT MAG — SINGLE PRODUCT (BeTheme / BeBuilder)
   Modern PDP layout — v3.4 COMPACT + PRICE FIX
   - carduri mai mici (top + tabs)
   - gutter ok pe toate rezoluțiile
   - fără hover animation
   - Qty + Add to cart pe același rând
   - ascunde short description
   - bloc preț refăcut: preț principal sus, 2 rânduri sub el
========================================================= */

:root{
  --rsd-card-radius: 16px;
  --rsd-card-border: rgba(0,0,0,.12);
  --rsd-card-shadow: 0px 12px 34px -18px #000000;

    --rsd-gutter-desktop: 22px;
    --rsd-gutter-mobile: 14px;

    /* COMPACT: limitează lățimea și padding-ul */
    --rsd-pdp-max: 1100px;
    --rsd-pdp-pad: clamp(16px, 1.6vw, 24px);
}

/* 1) FIX CLICK overlay */
body.single-product .mcb-wrap-background-overlay{
  pointer-events: none !important;
}

/* 2) CARDURI (TOP + TABS) */
body.single-product .mcb-section.rsd-pdp-top > .section_wrapper,
body.single-product .mcb-section.rsd-pdp-tabs > .section_wrapper{
  background: #fff !important;
  border: 1px solid var(--rsd-card-border) !important;
  border-radius: var(--rsd-card-radius) !important;
  box-shadow: var(--rsd-card-shadow) !important;

    padding: var(--rsd-pdp-pad) !important;
    box-sizing: border-box !important;

    width: min(var(--rsd-pdp-max), calc(100% - (var(--rsd-gutter-desktop) * 2))) !important;
    margin-left: auto !important;
    margin-right: auto !important;

    overflow: hidden !important;
    transform: none !important;
    transition: none !important;
}
@media (max-width: 767px){
  body.single-product .mcb-section.rsd-pdp-top > .section_wrapper,
  body.single-product .mcb-section.rsd-pdp-tabs > .section_wrapper{
    width: calc(100% - (var(--rsd-gutter-mobile) * 2)) !important;
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }
}

/* 3) GALERIE: mai compact */
body.single-product .rsd-pdp-top .woocommerce-product-gallery__image img{
  max-height: 460px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
@media (max-width: 767px){
  body.single-product .rsd-pdp-top .woocommerce-product-gallery__image img{
    max-height: 340px !important;
  }
}

body.single-product .rsd-pdp-top .flex-control-thumbs li{
  width: 68px !important;
  height: 68px !important;
  border-radius: 12px !important;
}
@media (max-width: 767px){
  body.single-product .rsd-pdp-top .flex-control-thumbs li{
    width: 60px !important;
    height: 60px !important;
  }
}

/* 4) TITLU + P/N */
body.single-product .rsd-pdp-top .column_product_title .product_title,
body.single-product .rsd-pdp-top .column_product_title h1{
  margin: 0 0 10px 0 !important;
  line-height: 1.05 !important;
  font-size: clamp(24px, 2.4vw, 34px) !important;
}

body.single-product .rsd-pdp-top .column_product_title + .column_column .column_attr p{
 margin: 0 !important;
 text-align: left !important;
 font-size: 13px !important;
 opacity: .75 !important;
}

/* 5) ASCUNDE short description */
body.single-product .rsd-pdp-top .woocommerce-product-details__short-description{
  display: none !important;
}

/* 6) PRET + CART: compact, dar lizibil */
body.single-product .rsd-pdp-top .column_product_price{
  margin-top: 14px !important;
}

/* reset pentru wrapper-ul de preț Woo */
body.single-product .rsd-pdp-top .column_product_price .price{
  display: block !important;
  margin: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1.2 !important;
}

/* wrapper general bloc 3 prețuri */
body.single-product .rsd-pdp-top .column_product_price .rsd-price-3{
  display: block !important;
  width: 100% !important;
  max-width: 430px !important;
  margin-top: 8px !important;
}

/* prețul principal de sus */
body.single-product .rsd-pdp-top .column_product_price .rsd-price-main{
  display: block !important;
  margin: 0 0 16px 0 !important;
}

body.single-product .rsd-pdp-top .column_product_price .rsd-price-main-value{
  display: block !important;
  font-size: clamp(18px, 1.8vw, 20px) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  color: #171717 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

/* rândurile de jos */
body.single-product .rsd-pdp-top .column_product_price .rsd-price-line{
  display: grid !important;
    grid-template-columns: 78px auto !important;
    align-items: start !important;
    column-gap: 18px !important;
    margin: 0 0 10px 0 !important;
}

body.single-product .rsd-pdp-top .column_product_price .rsd-price-label{
  display: block !important;
  width: 78px !important;
  max-width: 78px !important;
  font-size: 14px !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  color: rgba(0,0,0,.72) !important;
  word-break: break-word !important;
}

body.single-product .rsd-pdp-top .column_product_price .rsd-price-value{
  display: block !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  color: #171717 !important;
  white-space: nowrap !important;
  text-align: left !important;
}

/* spațiere înainte de cart */
body.single-product .rsd-pdp-top .column_product_cart_button{
  margin-top: 14px !important;
}

body.single-product .rsd-pdp-top .column_product_cart_button form.cart{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .rsd-pdp-top form.cart input.qty{
  height: 38px !important;
  min-width: 70px !important;
  text-align: center !important;
}
body.single-product .rsd-pdp-top .single_add_to_cart_button{
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
}

/* 7) TABS: mai strâns */
body.single-product .rsd-pdp-tabs .woocommerce-tabs ul.tabs{
  gap: 8px !important;
  margin: 0 0 14px 0 !important;
}
body.single-product .rsd-pdp-tabs .woocommerce-tabs ul.tabs li a{
  padding: 9px 12px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}
body.single-product .rsd-pdp-tabs .woocommerce-tabs .panel{
  padding: 16px 16px !important;
  border-radius: 16px !important;
}

/* MOBILE */
@media (max-width: 767px){
  body.single-product .rsd-pdp-top .column_product_price .rsd-price-3{
    max-width: 100% !important;
  }

 body.single-product .rsd-pdp-top .column_product_price .rsd-price-main{
   margin-bottom: 14px !important;
 }

 body.single-product .rsd-pdp-top .column_product_price .rsd-price-main-value{
   font-size: 18px !important;
 }

 body.single-product .rsd-pdp-top .column_product_price .rsd-price-line{
   grid-template-columns: 72px auto !important;
   column-gap: 12px !important;
   margin-bottom: 8px !important;
 }

 body.single-product .rsd-pdp-top .column_product_price .rsd-price-label{
   width: 72px !important;
   max-width: 72px !important;
   font-size: 13px !important;
 }
    body.single-product .rsd-pdp-top .column_product_price .rsd-price-value{
      font-size: 13px !important;
    }
}
