/* =========================================================
   Hello Child — Single product page
   Loaded only on single product pages (see inc/enqueue.php).
   Scope: Woo Variation Swatches, quantity, total price,
   add-to-cart, specs tabs/table, tablet & mobile.
   ========================================================= */

/* ---------- 1) Variations table reset ---------- */
.woo-variation-swatches .variations,
.woo-variation-swatches .variations tbody,
.woo-variation-swatches .variations tr,
.woo-variation-swatches .variations th,
.woo-variation-swatches .variations td{
  display:block !important;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  text-align:right;
}
.woo-variation-swatches .variations tr{margin-bottom:22px !important}
.woo-variation-swatches .variations th.label label{
  font-weight:700;
  font-size:16px;
  color:#0B2A5B;
}
.woo-variation-swatches .woo-selected-variation-item-name{
  font-weight:500;
  color:#6B7A99;
  font-size:14px;
}

/* ---------- 2) Option rows ---------- */
.woo-variation-swatches .variable-items-wrapper{
  display:flex !important;
  flex-wrap:wrap;
  gap:12px;
  padding:0 !important;
  margin:10px 0 0 !important;
  background:transparent !important;
  list-style:none;
}

/* ---------- 3) Color circles ---------- */
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item,
.woo-variation-swatches .variable-items-wrapper .variable-item.image-variable-item,
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item .variable-item-contents,
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item .variable-item-span,
.woo-variation-swatches .variable-items-wrapper .variable-item.image-variable-item img,
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item::before,
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item::after{
  border-radius:50% !important;
}
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item,
.woo-variation-swatches .variable-items-wrapper .variable-item.image-variable-item{
  width:46px !important;
  height:46px !important;
  padding:0 !important;
  overflow:hidden;
  border:3px solid #fff !important;
  box-shadow:0 0 0 1px #E3E9F2 !important;
}
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item .variable-item-contents,
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item .variable-item-span{
  width:100%;
  height:100%;
}
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item.selected,
.woo-variation-swatches .variable-items-wrapper .variable-item.image-variable-item.selected{
  box-shadow:0 0 0 2px #E31E24 !important;
}
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item.selected::after{
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}

/* ---------- 4) Thickness & fire-retardant buttons ---------- */
.woo-variation-swatches .variable-items-wrapper .variable-item.button-variable-item{
  flex:1 1 90px;
  min-width:90px;
  height:46px !important;
  border-radius:10px !important;
  border:1px solid #E3E9F2 !important;
  background:#fff !important;
  box-shadow:none !important;
  color:#0B2A5B !important;
  font-weight:600;
}
.woo-variation-swatches .variable-items-wrapper .variable-item.button-variable-item .variable-item-span{
  color:inherit !important;
}
.woo-variation-swatches .variable-items-wrapper .variable-item.button-variable-item.selected{
  background:#0B2A5B !important;
  border-color:#0B2A5B !important;
  color:#fff !important;
}

/* ---------- 5) Color slider (the <ul> itself scrolls) ---------- */
.single-product .pb-has-slider{position:relative}

html body.single-product ul.variable-items-wrapper.pb-scroll{
  display:flex !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  gap:12px !important;
  margin:10px 46px 0 !important;
  padding:6px 4px !important;
  width:calc(100% - 92px) !important;
  max-width:calc(100% - 92px) !important;
  direction:rtl;
  scroll-snap-type:x proximity;
  box-sizing:border-box;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
html body.single-product ul.variable-items-wrapper.pb-scroll::-webkit-scrollbar{display:none}
html body.single-product ul.variable-items-wrapper.pb-scroll > li.variable-item{
  flex:0 0 auto !important;
  margin:0 !important;
  scroll-snap-align:start;
}

html body.single-product button.pb-swatch-arrow{
  position:absolute !important;
  top:39px !important;
  transform:translateY(-50%);
  z-index:3;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:34px !important;
  height:34px !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:1px solid #E3E9F2 !important;
  border-radius:50% !important;
  background:#fff !important;
  color:#0B2A5B !important;
  box-shadow:none !important;
  cursor:pointer;
}
html body.single-product button.pb-swatch-arrow svg{width:18px;height:18px;display:block}
html body.single-product button.pb-arrow-right{right:0 !important}
html body.single-product button.pb-arrow-left{left:0 !important}
html body.single-product button.pb-swatch-arrow:hover:not(:disabled){
  background:#0B2A5B !important;
  color:#fff !important;
}
html body.single-product button.pb-swatch-arrow:disabled{opacity:.35;cursor:default}

/* ---------- 6) Quantity (− and +) ---------- */
html body.single-product .quantity{
  display:inline-flex !important;
  direction:ltr !important;
  flex-direction:row !important;
  align-items:stretch !important;
  width:max-content !important;
  border:1px solid #E3E9F2 !important;
  border-radius:10px !important;
  overflow:hidden !important;
  background:#fff !important;
}
html body.single-product .quantity input.qty{
  width:72px !important;
  height:46px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  text-align:center;
  font-weight:700;
  font-size:16px;
  color:#0B2A5B;
  -moz-appearance:textfield;
  appearance:textfield;
}
html body.single-product .quantity input.qty::-webkit-inner-spin-button,
html body.single-product .quantity input.qty::-webkit-outer-spin-button{
  -webkit-appearance:none;
  margin:0;
}
html body.single-product .quantity button.pb-qty-btn{
  width:46px !important;
  height:46px !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#F7FAFF !important;
  color:#0B2A5B !important;
  font-size:22px !important;
  line-height:1 !important;
  box-shadow:none !important;
  cursor:pointer;
  transition:background .2s,color .2s;
}
html body.single-product .quantity button.pb-qty-minus{border-right:1px solid #E3E9F2 !important}
html body.single-product .quantity button.pb-qty-plus{border-left:1px solid #E3E9F2 !important}
html body.single-product .quantity button.pb-qty-btn:hover{
  background:#0B2A5B !important;
  color:#fff !important;
}

/* ---------- 6b) Label "تعداد ورق" beside the quantity box ---------- */
.single-product .pb-qty-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  direction:rtl;
}
.single-product .pb-qty-label{
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:14px;
  font-weight:800;
  color:#0B2A5B;
}
.single-product .pb-qty-label small{font-size:12px;font-weight:500;color:#6B7A99}

/* ---------- 7) Total price above quantity ---------- */
.single-product .pb-total-price{
  margin:6px 0 10px;
  font-weight:800;
  font-size:22px;
  color:#E31E24;
  text-align:right;
}
.single-product .pb-total-price .pb-total-label{
  font-size:13px;
  font-weight:500;
  color:#6B7A99;
}
.single-product .pb-m2-price{text-align:center;font-size:14px;font-weight:800;color:#0B2A5B}
.single-product .pb-m2-price .pb-m2-label{font-weight:500;color:#6B7A99}
.single-product form.pb-has-total .woocommerce-variation-price{display:none}

/* ---------- 8) Add to cart ---------- */
.single-product .single_add_to_cart_button{
  background:#E31E24 !important;
  color:#fff !important;
  border-radius:10px !important;
  height:50px;
  font-weight:700;
}

/* ---------- 9) Product data tabs + specs table (reference design) ---------- */
.single-product .woocommerce-tabs ul.tabs{
  display:flex !important;
  flex-wrap:nowrap;
  gap:0;
  margin:0 0 12px !important;
  padding:0 !important;
  border:0 !important;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar{display:none}
.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after{display:none !important}
.single-product .woocommerce-tabs ul.tabs li{
  flex:1 0 auto;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:none !important;
}
.single-product .woocommerce-tabs ul.tabs li a{
  display:block;
  padding:12px 16px !important;
  font-size:14px;
  font-weight:600;
  text-align:center;
  white-space:nowrap;
  color:#6B7A99;
  background:#F4F7FB;
  border:1px solid #E3E9F2;
  border-radius:8px 8px 0 0;
  box-shadow:none;
}
.single-product .woocommerce-tabs ul.tabs li:not(:first-child) a{margin-inline-start:-1px}
.single-product .woocommerce-tabs ul.tabs li.active a{
  background:#fff;
  color:#0B2A5B;
  border-bottom-color:#fff;
  box-shadow:inset 0 -3px 0 #E31E24;
}

.single-product .woocommerce-Tabs-panel{
  margin:0 !important;
  padding:14px;
  background:#fff;
  border:1px solid #E3E9F2;
  border-radius:10px;
}
.single-product .woocommerce-Tabs-panel > h2,
.single-product .woocommerce-Tabs-panel .hc-tab-title{
  margin:0 0 10px !important;
  font-size:14px !important;
  font-weight:700;
  line-height:1.7 !important;
  color:#0B2A5B;
}

.single-product table.woocommerce-product-attributes,
.single-product table.shop_attributes{
  display:table !important;
  width:100% !important;
  max-width:100% !important;
  table-layout:fixed !important;
  border-collapse:collapse;
  border:1px solid #E3E9F2;
  margin:0;
}
.single-product table.woocommerce-product-attributes tbody,
.single-product table.shop_attributes tbody{display:table-row-group !important}
.single-product table.woocommerce-product-attributes tr,
.single-product table.shop_attributes tr{
  display:table-row !important;
  border-bottom:1px solid #E3E9F2;
}
.single-product table.woocommerce-product-attributes th,
.single-product table.shop_attributes th,
.single-product table.woocommerce-product-attributes td,
.single-product table.shop_attributes td{
  display:table-cell !important;
  float:none !important;
  padding:10px 12px !important;
  font-size:12.5px;
  line-height:1.8;
  text-align:right;
  vertical-align:top;
  overflow-wrap:anywhere;
}
.single-product table.woocommerce-product-attributes th,
.single-product table.shop_attributes th{
  width:35% !important;
  background:#F4F7FC;
  color:#0B2A5B;
  font-weight:700;
  border-left:1px solid #E3E9F2;
}
.single-product table.woocommerce-product-attributes td,
.single-product table.shop_attributes td{
  width:65% !important;
  background:#fff;
  color:#1F2A44;
}
.single-product table.woocommerce-product-attributes td a,
.single-product table.shop_attributes td a,
.single-product table.woocommerce-product-attributes td p,
.single-product table.shop_attributes td p{
  margin:0 !important;
  padding:0 !important;
  color:inherit;
  font-style:normal;
  text-decoration:none;
  pointer-events:none;
}
.single-product table.woocommerce-product-attributes td::before,
.single-product table.woocommerce-product-attributes th::before,
.single-product table.shop_attributes td::before,
.single-product table.shop_attributes th::before{content:none !important;display:none !important}

/* =========================================================
   Tablet & mobile
   ========================================================= */
@media (max-width:1024px){
  .single-product .e-con.pb-product,
  .single-product .e-con.pb-gallery{
    width:100% !important;
    max-width:100% !important;
  }
  .single-product .pb-product{padding:16px !important}

  .single-product .product_title{
    font-size:22px !important;
    line-height:1.6 !important;
  }

  .woo-variation-swatches .variable-items-wrapper{gap:10px !important}
  html body.single-product ul.variable-items-wrapper.pb-scroll{gap:10px !important}
  .woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item,
  .woo-variation-swatches .variable-items-wrapper .variable-item.image-variable-item{
    width:42px !important;
    height:42px !important;
  }

  .single-product .pb-total-price{font-size:20px}

  .single-product .pb-product .e-con .elementor-widget-button{width:100% !important}
}

@media (max-width:767px){
  .single-product .pb-product{padding:14px !important}
  .single-product .product_title{font-size:19px !important}

  /* Thickness & fire-retardant buttons: always ONE row, equal widths.
     1 value = full width, 2 = halves, 3 = thirds, 4 = quarters. */
  .woo-variation-swatches .variable-items-wrapper:not(.color-variable-items-wrapper):not(.image-variable-items-wrapper){
    flex-wrap:nowrap !important;
    gap:8px !important;
  }
  .woo-variation-swatches .variable-items-wrapper .variable-item.button-variable-item{
    flex:1 1 0 !important;
    min-width:0 !important;
    width:auto !important;
    height:auto !important;
    min-height:44px !important;
    margin:0 !important;
    padding:6px 4px !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:13px;
    line-height:1.4;
  }
  .woo-variation-swatches .variable-items-wrapper .variable-item.button-variable-item .variable-item-span{
    white-space:normal;
    overflow-wrap:anywhere;
  }

  html body.single-product ul.variable-items-wrapper.pb-scroll{
    margin:10px 36px 0 !important;
    width:calc(100% - 72px) !important;
    max-width:calc(100% - 72px) !important;
  }
  html body.single-product button.pb-swatch-arrow{
    width:30px !important;
    height:30px !important;
    top:37px !important;
  }

  html body.single-product .quantity{
    display:flex !important;
    margin-inline:auto !important;
  }
  html body.single-product .quantity input.qty{width:64px !important}
  .single-product .pb-total-price{
    text-align:center;
    font-size:19px;
  }

  .single-product .single_add_to_cart_button{
    width:100% !important;
    height:50px;
    margin:0 !important;
  }

  .single-product table.woocommerce-product-attributes th,
  .single-product table.shop_attributes th,
  .single-product table.woocommerce-product-attributes td,
  .single-product table.shop_attributes td{
    padding:10px !important;
    font-size:12.5px;
    line-height:1.8;
  }
}

@media (max-width:767px){
  .single-product .woocommerce-tabs ul.tabs li a{
    padding:10px 8px !important;
    font-size:13px;
  }
  .single-product .woocommerce-Tabs-panel{padding:12px}
}

/* ---------- 10) WhatsApp + pre-invoice buttons: one row on tablet & mobile ----------
   Works automatically for the container that holds two Elementor buttons,
   or add the CSS class "pb-actions" to that container (Advanced → CSS Classes). */
@media (max-width:1024px){
  .single-product .pb-product .e-con.pb-actions,
  .single-product .pb-product .e-con:has(> .elementor-widget-button ~ .elementor-widget-button){
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
    width:100% !important;
  }
  .single-product .pb-product .e-con.pb-actions > .elementor-widget-button,
  .single-product .pb-product .e-con:has(> .elementor-widget-button ~ .elementor-widget-button) > .elementor-widget-button{
    flex:1 1 0 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
  }
  .single-product .pb-product .e-con.pb-actions > .elementor-widget-button .elementor-button,
  .single-product .pb-product .e-con:has(> .elementor-widget-button ~ .elementor-widget-button) > .elementor-widget-button .elementor-button{
    width:100% !important;
    min-height:48px;
    padding:10px 6px !important;
    font-size:12.5px;
    line-height:1.5;
    white-space:normal;
  }
  .single-product .pb-product .e-con.pb-actions > .elementor-widget-button .elementor-button-content-wrapper,
  .single-product .pb-product .e-con:has(> .elementor-widget-button ~ .elementor-widget-button) > .elementor-widget-button .elementor-button-content-wrapper{
    justify-content:center;
    gap:6px;
  }
}

/* ---------- 11) Moved from the old <style> HTML widget of the product template ----------
   (badge on the gallery, add-to-cart column layout, hidden "clear" link) */
.single-product .pb-gallery{position:relative}
.single-product span.pb-badge{
  position:absolute;
  top:18px;
  right:18px;
  z-index:5;
  background:#E31E24;
  color:#fff;
  border-radius:999px;
  padding:6px 14px;
  font-weight:700;
  font-size:14px;
}
.single-product form.cart{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.single-product .woocommerce-variation-add-to-cart{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.single-product .reset_variations{display:none !important}
.single-product .variations{width:100%;border:0}

/* ---------- 12) Font: Vazir (uploaded in Elementor → Custom Fonts) ----------
   Form controls and buttons don't inherit the page font by default. */
.single-product button,
.single-product input,
.single-product select,
.single-product textarea,
.single-product .woocommerce-tabs,
.single-product .woocommerce-tabs *,
.single-product .woo-variation-swatches .variable-item,
.single-product .pb-total-price,
.single-product span.pb-badge{
  font-family:"Vazir", Tahoma, sans-serif;
}

/* ---------- 13) AJAX add to cart: loader + popover ---------- */
.single-product .pb-cart-host{position:relative}

html body.single-product .single_add_to_cart_button{position:relative}
html body.single-product .single_add_to_cart_button.pb-loading{
  color:transparent !important;
  pointer-events:none;
}
.single-product .pb-dots{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.single-product .pb-dots i{
  display:block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#fff;
  animation:pbDot 1s infinite ease-in-out both;
}
.single-product .pb-dots i:nth-child(2){animation-delay:.15s}
.single-product .pb-dots i:nth-child(3){animation-delay:.3s}
@keyframes pbDot{
  0%,80%,100%{transform:scale(.5);opacity:.4}
  40%{transform:scale(1);opacity:1}
}

.single-product .pb-cart-pop{
  position:absolute;
  z-index:30;
  box-sizing:border-box;
  min-width:240px;
  padding:16px 16px 14px;
  background:#fff;
  border:1px solid #E3E9F2;
  border-radius:12px;
  box-shadow:0 12px 32px rgba(11,42,91,.18);
  opacity:0;
  transform:translateY(12px) scale(.97);
  transform-origin:bottom center;
  transition:opacity .2s ease,transform .2s ease;
  font-family:"Vazir", Tahoma, sans-serif;
}
.single-product .pb-cart-pop.is-open{
  opacity:1;
  transform:none;
}
/* little arrow pointing down at the button */
.single-product .pb-cart-pop::after{
  content:"";
  position:absolute;
  bottom:-7px;
  left:50%;
  width:12px;
  height:12px;
  background:#fff;
  border-right:1px solid #E3E9F2;
  border-bottom:1px solid #E3E9F2;
  transform:translateX(-50%) rotate(45deg);
}
.single-product .pb-cart-pop__msg{
  display:flex;
  align-items:center;
  gap:10px;
  padding-left:22px;
  font-size:14px;
  font-weight:700;
  line-height:1.7;
  color:#0B2A5B;
}
.single-product .pb-cart-pop__icon{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#1DA851;
  color:#fff;
  font-size:15px;
  line-height:1;
}
.single-product .pb-cart-pop.is-err .pb-cart-pop__icon{background:#E31E24}
.single-product .pb-cart-pop__close{
  position:absolute;
  top:6px;
  left:8px;
  width:26px;
  height:26px;
  padding:0;
  border:0;
  background:none;
  color:#6B7A99;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.single-product .pb-cart-pop__close:hover{color:#0B2A5B}
html body.single-product .pb-cart-pop a.pb-cart-pop__btn{
  display:flex;
  align-items:center;
  justify-content:center;
  height:44px;
  margin-top:12px;
  border-radius:10px;
  background:#0B2A5B;
  color:#fff;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
}
html body.single-product .pb-cart-pop a.pb-cart-pop__btn:hover{background:#091F44;color:#fff}

/* ---------- 13b) Popover: product name + animated check mark ---------- */
.single-product .pb-cart-pop__msg{font-weight:500}
.single-product .pb-cart-pop__name{
  font-weight:800;
  color:#0B2A5B;
}
/* the icon is hidden while the popover opens, then pops in */
.single-product .pb-cart-pop__icon{
  opacity:0;
  transform:scale(0);
}
.single-product .pb-cart-pop.is-open .pb-cart-pop__icon{
  animation:pbPop .45s .25s cubic-bezier(.34,1.56,.64,1) forwards;
}
.single-product .pb-cart-pop__icon svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:#fff;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.single-product .pb-cart-pop__icon svg path{
  stroke-dasharray:1;
  stroke-dashoffset:1;
}
.single-product .pb-cart-pop.is-open .pb-cart-pop__icon svg path{
  animation:pbCheck .35s .55s ease forwards;
}
@keyframes pbPop{
  0%{opacity:0;transform:scale(0)}
  100%{opacity:1;transform:scale(1)}
}
@keyframes pbCheck{
  to{stroke-dashoffset:0}
}
@media (prefers-reduced-motion:reduce){
  .single-product .pb-cart-pop__icon,
  .single-product .pb-cart-pop.is-open .pb-cart-pop__icon{
    animation:none;
    opacity:1;
    transform:none;
  }
  .single-product .pb-cart-pop__icon svg path,
  .single-product .pb-cart-pop.is-open .pb-cart-pop__icon svg path{
    animation:none;
    stroke-dashoffset:0;
  }
}

/* ---------- 14) Keep product content BELOW the sticky header ----------
   Elements with their own z-index (gallery zoom icon, badge, popover…) used to
   paint over the header. "isolation" keeps their z-index inside their own box. */
.single-product .pb-product,
.single-product .pb-gallery,
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-tabs,
.single-product .elementor-widget-woocommerce-product-images,
.single-product .elementor-widget-woocommerce-product-data-tabs{
  isolation:isolate;
}
.single-product .woocommerce-product-gallery__trigger{z-index:3 !important}
.single-product span.pb-badge{z-index:3}

/* ---------- 15) Gallery: badge values in one row, image arrows, thumbnails strip, zoom icon ---------- */

/* Fire-retardant badge values: ONE row, starting from the right */
.single-product .pb-badge .elementor-post-info,
.single-product .pb-badge .elementor-icon-list-items{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start;
  gap:6px;
  margin:0 !important;
  padding:0 !important;
  list-style:none;
}
.single-product .pb-badge .elementor-post-info__terms-list{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:6px;
  font-size:0 !important;            /* hides the commas between values */
}
.single-product .pb-badge .elementor-post-info__terms-list-item{
  font-size:12px !important;
  line-height:1.6 !important;
  white-space:nowrap;
}

/* Arrows on the main image */
.single-product .woocommerce-product-gallery .flex-viewport{position:relative}
.single-product button.pb-gal-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  min-width:0;
  padding:0;
  margin:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  color:#0B2A5B;
  box-shadow:0 2px 8px rgba(11,42,91,.25);
  cursor:pointer;
  transition:background .2s,color .2s,opacity .2s;
}
.single-product button.pb-gal-prev{right:12px}
.single-product button.pb-gal-next{left:12px}
.single-product button.pb-gal-arrow:hover:not(:disabled){background:#0B2A5B;color:#fff}
.single-product button.pb-gal-arrow:disabled{opacity:.35;cursor:default}

/* Thumbnails: one row, scrollable, arrows on both sides */
.single-product .pb-thumbs{
  position:relative;
  margin-top:10px;
  padding:0 40px;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:8px;
  direction:rtl;
  overflow-x:auto;
  margin:0 !important;
  padding:0 !important;
  list-style:none;
  scrollbar-width:none;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar{display:none}
.single-product .woocommerce-product-gallery .flex-control-thumbs li{
  flex:0 0 calc((100% - 24px) / 4) !important;
  width:auto !important;
  float:none !important;
  margin:0 !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li img{
  display:block;
  width:100%;
  height:auto;
  border-radius:8px;
  opacity:.7;
  cursor:pointer;
  transition:opacity .2s,box-shadow .2s;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover{
  opacity:1;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active{
  box-shadow:0 0 0 2px #E31E24;
}
.single-product button.pb-thumb-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  min-width:0;
  padding:0;
  margin:0;
  border:1px solid #E3E9F2;
  border-radius:50%;
  background:#fff;
  color:#0B2A5B;
  box-shadow:none;
  cursor:pointer;
  transition:background .2s,color .2s,opacity .2s;
}
.single-product button.pb-thumb-right{right:0}
.single-product button.pb-thumb-left{left:0}
.single-product button.pb-thumb-arrow:hover:not(:disabled){background:#0B2A5B;color:#fff}
.single-product button.pb-thumb-arrow:disabled{opacity:.35;cursor:default}

/* Mobile: smaller zoom icon in the bottom-right corner of the image, smaller arrows */
@media (max-width:767px){
  .single-product .woocommerce-product-gallery__trigger{
    top:auto !important;
    left:auto !important;
    right:10px !important;
    bottom:10px !important;
    transform:scale(.68);
    transform-origin:bottom right;
  }
  .single-product button.pb-gal-arrow{width:32px;height:32px}
  .single-product button.pb-gal-prev{right:8px}
  .single-product button.pb-gal-next{left:8px}
  .single-product .pb-thumbs{padding:0 34px}
  .single-product button.pb-thumb-arrow{width:30px;height:30px}
}

/* Fire-retardant values on the image: one red pill per value */
.single-product .pb-badge .elementor-post-info__terms-list-item{
  background:#E31E24;
  color:#fff !important;
  border-radius:999px;
  padding:4px 12px;
}
