/* Familia product page v2: layout, gallery and summary redesigned on the existing markup.
   The calculator, names table, uploads and add-to-cart keep their markup and scripts. */
body.single-product #main,body.single-product .site-main{background:linear-gradient(180deg,#F3EEFA 0,#FBF8FF 480px,#fff 1100px)!important}
body.single-product .site-breadcrumbs{background:#fff;border-radius:99px;padding:6px 14px;display:inline-block;box-shadow:0 4px 14px #2b17470d;font-size:13px}

/* two columns: gallery card (stays in view) + summary card */
@media (min-width:960px){
  body.single-product div.product{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:start}
  body.single-product div.product > *{grid-column:1 / -1}
  body.single-product div.product > .woocommerce-product-gallery{grid-column:1;position:sticky!important;top:120px}
  body.single-product div.product > .summary{grid-column:2}
  body.single-product div.product > .clear-after-summary{display:none}
}
body.single-product div.product > .woocommerce-product-gallery,body.single-product div.product > .summary{width:auto!important;float:none!important;margin:0!important;max-width:none!important}

/* gallery */
body.single-product .woocommerce-product-gallery{background:#fff;border-radius:32px;padding:18px!important;box-shadow:0 2px 0 #2b17470d,0 18px 44px #2b174714}
body.single-product .woocommerce-product-gallery__wrapper{border-radius:24px;overflow:hidden;background:radial-gradient(circle at 50% 35%,#fff 0,#F3EEFA 80%)}
body.single-product .woocommerce-product-gallery__image img,body.single-product .woocommerce-product-gallery__wrapper img{mix-blend-mode:multiply;border-radius:18px}
body.single-product .flex-control-thumbs li{padding:4px!important}
body.single-product .flex-control-thumbs li img{border-radius:14px!important;border:2px solid #EEE6F8!important;background:#F7F3FC;opacity:1!important;transition:border-color .15s,transform .15s}
body.single-product .flex-control-thumbs li img:hover{transform:translateY(-2px)}
body.single-product .flex-control-thumbs li img.flex-active{border-color:#5B2A86!important}

/* summary card */
body.single-product div.product .summary{background:#fff;border-radius:32px;padding:32px clamp(20px,3vw,36px)!important;box-shadow:0 2px 0 #2b17470d,0 18px 44px #2b174714}
body.single-product div.product .product_title{font-size:clamp(28px,3vw,38px)!important;font-weight:900!important;line-height:1.15!important;margin:0 0 10px!important}
body.single-product .pf-product-ean13{display:inline-block;background:#F7F3FC;border-radius:99px;padding:3px 12px;font-size:12px!important;color:#6b6680!important;margin:0 0 10px!important}
body.single-product .pf-google-reviews-shortcode{margin:0 0 10px}
body.single-product .pf-product-whatsapp a{display:inline-flex!important;align-items:center;gap:8px;background:#E8F6EF;color:#0F7F50!important;border-radius:99px;padding:8px 16px!important;font-weight:800;text-decoration:none!important}

/* price + stock + minimum */
body.single-product .status-and-min-qnt{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;background:linear-gradient(135deg,#F3EEFA,#FBF8FF);border-radius:22px;padding:18px 20px!important;margin:18px 0 6px!important;border:0!important}
body.single-product .status-and-min-qnt .min-qnt{display:flex;flex-direction:column;gap:4px}
body.single-product .status-and-min-qnt .price,body.single-product .status-and-min-qnt .price .amount{font-size:32px!important;font-weight:900!important;color:#5B2A86!important;line-height:1.1!important;margin:0!important}
body.single-product .status-and-min-qnt .min-quantity{display:inline-block;background:#fff;border-radius:99px;padding:4px 12px;font-size:13px;font-weight:700;color:#2b1747}
body.single-product .status-and-min-qnt .status{display:inline-flex;align-items:center;gap:6px;background:#E8F6EF;border-radius:99px;padding:6px 14px}
body.single-product .status-and-min-qnt .status svg{width:16px;height:16px}
body.single-product .status-and-min-qnt .in-stock{color:#0F7F50!important;font-weight:800;font-size:14px}

/* trust row (added by the plugin) */
.fb-ptrust{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 18px;padding:0;list-style:none}
.fb-ptrust li{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;background:#fff;border:1.5px solid #EEE6F8;border-radius:18px;padding:12px 6px;font-size:12.5px;font-weight:800;color:#2b1747;line-height:1.3}
.fb-ptrust i{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#F3EEFA;color:#5B2A86;font-size:18px}

/* upload guide */
body.single-product .pf-upload-guide{background:#FFF8E1!important;border:0!important;border-right:5px solid #FFC82E!important;border-radius:18px!important;padding:16px 18px!important;color:#3d3950!important;box-shadow:none!important}
body.single-product .pf-upload-guide strong{color:#2b1747!important;font-size:16px}
body.single-product .pf-upload-guide a{color:#5B2A86!important;font-weight:800}

/* calculator card */
body.single-product .pf-calc{border:1.5px solid #E4DAF2!important;border-radius:26px!important;padding:20px!important;background:#fff!important;margin-top:16px}
body.single-product .pf-calc__controls{border-radius:20px!important;padding:16px 18px!important}
body.single-product .pf-calc__btn{width:46px!important;height:46px!important;font-size:22px!important}
body.single-product .pf-calc__qty{height:46px!important;min-width:74px;font-size:20px!important;text-align:center}
body.single-product .pf-calc__unit{font-size:24px!important}
body.single-product .pf-calc__total{background:#F7F3FC;border-radius:16px;padding:12px 16px!important;margin:12px 0!important}
body.single-product .pf-calc__total strong{font-size:30px!important;font-weight:900!important;color:#5B2A86!important}
body.single-product a.theme-button.js-pf-open-order{display:flex!important;justify-content:center;width:100%;font-size:18px!important;padding:17px 30px!important;margin-top:10px}

/* related products */
body.single-product section.related{grid-column:1 / -1;margin-top:56px!important;padding:40px 0 10px!important;border-top:1px solid #EEE6F8}
body.single-product section.related > h2{font-size:clamp(26px,2.8vw,36px)!important;margin-bottom:24px!important}
body.single-product section.related > h2::after{content:"";display:block;width:56px;height:5px;border-radius:5px;background:#FFC82E;margin:12px auto 0}
body.single-product section.related .slick-arrow{border-radius:50%!important;width:46px!important;height:46px!important;background:#fff!important;box-shadow:0 8px 20px #2b17471f!important}

@media (max-width:959px){
  body.single-product div.product > .woocommerce-product-gallery{margin-bottom:16px!important;padding:10px!important;border-radius:24px}
  body.single-product div.product .summary{padding:22px 16px!important;border-radius:24px}
  .fb-ptrust{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.single-product .status-and-min-qnt .price,body.single-product .status-and-min-qnt .price .amount{font-size:26px!important}
}

/* shorter summary column: the info accordion moves below both columns (see shop.php), the order form gets tighter */
body.single-product div.product > .pf-accordion{grid-column:1 / -1;max-width:1100px;width:100%;margin:40px auto 0!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;align-items:start}
body.single-product div.product > .pf-accordion .pf-accordion__item{margin:0!important;background:#fff}
@media (max-width:767px){body.single-product div.product > .pf-accordion{grid-template-columns:1fr;margin-top:24px!important}}
body.single-product #add-to-cart-one-click{padding:16px!important}
body.single-product #add-to-cart-one-click .field-wrap,body.single-product #add-to-cart-one-click .switcher-wrap,body.single-product #add-to-cart-one-click .qty-wrap{padding-bottom:10px!important;margin-bottom:10px!important}
body.single-product #add-to-cart-one-click .popup-textarea{min-height:72px!important;height:72px}
body.single-product .pf-stable-names td,body.single-product .pf-stable-names th{padding:3px 4px!important}
body.single-product .pf-stable-names input{height:38px!important;min-height:0!important;padding:6px 10px!important;border-radius:10px!important;border:1.5px solid #E4DAF2!important}
body.single-product .pf-optional-branding-note{margin:0 0 10px!important;padding:8px 12px!important;font-size:13px}
/* buttons inside the order form that kept the old colours */
html body.single-product label.file-label,html body.single-product .single-file-upload-wrap label{background:#5B2A86!important;color:#fff!important;border:0!important;border-radius:99px!important;padding:9px 18px!important;font-weight:800!important;box-shadow:0 6px 14px #5b2a8633}
html body.single-product label.file-label:hover{background:#2b1747!important}
