/* Clasico Next 1.1.13 — product-card mouse gallery and reliable +/- quantity controls */

/* Quantity: render our real buttons outside the native touchspin internals. */
#product #main .product-add-to-cart .qty.cn-quantity-picker,
.quickview .product-add-to-cart .qty.cn-quantity-picker {
  position:relative!important;display:flex!important;flex-direction:row!important;
  align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:54px!important;min-height:54px!important;overflow:visible!important;
  border:1px solid #cbd9ec!important;border-radius:13px!important;
  background:#fff!important;box-shadow:0 2px 8px rgba(32,66,116,.045)!important;
}
#product #main .qty.cn-quantity-picker > input[type=number],
.quickview .qty.cn-quantity-picker > input[type=number],
#product #main .qty.cn-quantity-picker > .bootstrap-touchspin,
.quickview .qty.cn-quantity-picker > .bootstrap-touchspin {
  position:relative!important;flex:1 1 0!important;display:flex!important;
  align-items:stretch!important;min-width:0!important;width:auto!important;
  max-width:none!important;height:52px!important;min-height:52px!important;
  border:0!important;margin:0!important;padding:0!important;box-shadow:none!important;
  overflow:hidden!important;border-radius:12px 0 0 12px!important;
}
/* Legacy Bootstrap TouchSpin arrows are inconsistent across theme versions.
   Hide only their visual wrappers; original input + stock logic stays intact. */
#product #main .cn-quantity-picker .bootstrap-touchspin .input-group-btn-vertical,
#product #main .cn-quantity-picker .bootstrap-touchspin .input-group-btn,
.quickview .cn-quantity-picker .bootstrap-touchspin .input-group-btn-vertical,
.quickview .cn-quantity-picker .bootstrap-touchspin .input-group-btn {
  display:none!important;
}
#product #main .cn-quantity-picker input[name=qty],
.quickview .cn-quantity-picker input[name=qty] {
  display:block!important;flex:1 1 auto!important;min-width:0!important;
  width:100%!important;max-width:none!important;height:52px!important;
  border:0!important;background:#fff!important;border-radius:12px 0 0 12px!important;
  padding:0 4px!important;text-align:center!important;color:#20334d!important;
  line-height:52px!important;font-size:20px!important;font-weight:700!important;
  box-shadow:none!important;appearance:textfield!important;-moz-appearance:textfield!important;
}
.cn-quantity-picker input[name=qty]::-webkit-inner-spin-button,
.cn-quantity-picker input[name=qty]::-webkit-outer-spin-button {display:none!important;-webkit-appearance:none!important;margin:0!important}
#product #main .cn-quantity-picker > .cn-quantity-buttons,
.quickview .cn-quantity-picker > .cn-quantity-buttons {
  display:flex!important;position:relative!important;flex:0 0 40px!important;
  width:40px!important;min-width:40px!important;max-width:40px!important;
  height:52px!important;flex-direction:column!important;overflow:hidden!important;
  border-left:1px solid #d7e3f3!important;border-radius:0 12px 12px 0!important;
  z-index:2!important;background:#f5f8fe!important;
}
#product #main .cn-quantity-picker .cn-quantity-step,
.quickview .cn-quantity-picker .cn-quantity-step {
  flex:1 1 50%!important;display:flex!important;align-items:center!important;
  justify-content:center!important;width:100%!important;min-width:0!important;
  min-height:0!important;height:26px!important;margin:0!important;padding:0!important;
  position:relative!important;border:0!important;border-radius:0!important;
  background:#f7faff!important;color:#1b4e98!important;cursor:pointer!important;
  font:700 19px/1 system-ui,-apple-system,sans-serif!important;
  box-shadow:none!important;transform:none!important;
}
#product #main .cn-quantity-picker .cn-quantity-step + .cn-quantity-step,
.quickview .cn-quantity-picker .cn-quantity-step + .cn-quantity-step{border-top:1px solid #d7e3f3!important}
#product #main .cn-quantity-picker .cn-quantity-step:hover,
.quickview .cn-quantity-picker .cn-quantity-step:hover{background:#e9f2ff!important;color:#145ec5!important}
#product #main .cn-quantity-picker .cn-quantity-step:focus-visible,
.quickview .cn-quantity-picker .cn-quantity-step:focus-visible{outline:2px solid #2b6df2!important;outline-offset:-3px!important}
#product #main .cn-quantity-picker .cn-quantity-step:disabled,
.quickview .cn-quantity-picker .cn-quantity-step:disabled{opacity:.35!important;cursor:not-allowed!important}

/* Multi-photo product cards: a low-key progress strip remains inside the photo zone. */
.cn-product-card .thumbnail-container {position:relative!important;min-width:0!important;isolation:isolate}
.cn-product-card .product-thumbnail {display:block;position:relative;overflow:hidden;cursor:crosshair}
.cn-product-card .product-thumbnail img {transition:opacity .13s ease;object-fit:contain}
.cn-product-card .cn-gallery-progress {
  left:12px!important;right:12px!important;bottom:10px!important;
  width:auto!important;max-width:none!important;transform:none!important;
  display:flex!important;gap:5px!important;justify-content:stretch!important;
  z-index:6!important;pointer-events:none!important;opacity:0!important;
  transition:opacity .18s ease!important;
}
.cn-product-card.cn-has-gallery .cn-gallery-progress {opacity:.55!important}
.cn-product-card.cn-has-gallery:hover .cn-gallery-progress,
.cn-product-card.cn-has-gallery:focus-within .cn-gallery-progress {opacity:1!important}
.cn-product-card .cn-gallery-progress > i {
  flex:1 1 0!important;min-width:3px!important;width:auto!important;
  height:4px!important;border-radius:99px!important;
  background:#d4dfe5!important;transition:background .13s ease!important;
}
.cn-product-card .cn-gallery-progress > i.is-active {background:#33766c!important}
.cn-product-card .cn-gallery-control {display:none!important}
@media (hover:none) {
  .cn-product-card.cn-has-gallery .cn-gallery-control {display:flex!important}
  .cn-product-card.cn-has-gallery .cn-gallery-progress{opacity:1!important}
}
@media (prefers-reduced-motion:reduce) {
  .cn-product-card .product-thumbnail img,.cn-product-card .cn-gallery-progress,.cn-product-card .cn-gallery-progress > i{transition:none!important}
}
