
/* Clasico Next 1.1.6 – sticky topbar, overflow repair, pulse attention, full-device sticky buy */
html, body {max-width:100%; overflow-x:hidden;}
body {overflow-x:hidden;}
#wrapper, #main, #content, .page-content {max-width:100%;}
#product #main, #product #content-wrapper, #product .tabs {min-width:0;}

/* Sticky top bar across devices */
.cn-sticky-topbar {
  position:fixed; top:0; left:0; right:0; z-index:140;
  background:rgba(255,255,255,.98); border-bottom:1px solid #dfe7f4;
  box-shadow:0 10px 28px rgba(18,40,73,.10); backdrop-filter:saturate(160%) blur(8px);
}
.cn-sticky-topbar[hidden]{display:none!important}
.cn-sticky-topbar-inner {
  position:relative; min-height:64px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  gap:12px; padding:8px 15px;
}
.cn-sticky-topbar-menu {
  justify-self:start; display:inline-flex; align-items:center; gap:8px; border:0; background:none; color:#1d2b40; font-weight:700;
}
.cn-sticky-topbar-menu i {font-size:28px; line-height:1}
.cn-sticky-topbar-menu span {font-size:14px; line-height:1.1}
.cn-sticky-topbar-logo {justify-self:center; display:inline-flex; align-items:center; justify-content:center; max-width:min(42vw,220px)}
.cn-sticky-topbar-logo img {display:block; max-width:100%; height:auto; max-height:44px}
.cn-sticky-topbar-actions {justify-self:end; display:flex; align-items:center; gap:10px; min-width:0}
.cn-sticky-topbar-link {
  display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:6px 10px; border-radius:12px;
  color:#1d2b40; text-decoration:none!important; font-weight:700; white-space:nowrap;
}
.cn-sticky-topbar-link i {font-size:25px; line-height:1}
.cn-sticky-topbar-link span {font-size:14px}
body.cn-sticky-topbar-visible {padding-top:72px}
body.cn-sticky-topbar-visible .cn-sticky-topbar {animation:cnTopBarIn .18s ease-out}
@keyframes cnTopBarIn {from{transform:translateY(-100%);opacity:.2}to{transform:translateY(0);opacity:1}}
@media(max-width:767px){
  .cn-sticky-topbar-inner{grid-template-columns:auto 1fr auto; min-height:60px; gap:8px; padding:7px 12px}
  .cn-sticky-topbar-logo{max-width:44vw}
  .cn-sticky-topbar-actions{gap:6px}
  .cn-sticky-topbar-link{padding:5px 7px; min-height:36px}
  .cn-sticky-topbar-link span{display:none}
  .cn-sticky-topbar-menu span{font-size:13px}
  body.cn-sticky-topbar-visible{padding-top:66px}
}

/* Product gallery thumbs: arrows must be vertically centered beside thumbnails */
#product #main .images-container > .js-qv-mask {position:relative; padding-inline:52px;}
#product #main .images-container > .scroll-box-arrows.scroll {
  position:absolute; inset:0; z-index:6; pointer-events:none; bottom:auto!important;
}
#product #main .images-container > .scroll-box-arrows.scroll > i {
  top:50%; bottom:auto!important; transform:translateY(-50%);
  width:38px; height:52px; line-height:52px; border-radius:14px;
}
#product #main .images-container > .scroll-box-arrows.scroll > i.left{left:0}
#product #main .images-container > .scroll-box-arrows.scroll > i.right{right:0}
@media(max-width:767px){
  #product #main .images-container > .js-qv-mask {padding-inline:44px;}
  #product #main .images-container > .scroll-box-arrows.scroll > i {width:34px;height:46px;line-height:46px}
}

/* Sticky buy band on all devices */
#product .cn-sticky-buy {display:none!important}
#product .cn-sticky-buy:not([hidden]) {
  position:fixed; left:0; right:0; bottom:0; z-index:130; display:grid!important;
  grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px;
  padding:12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top:1px solid #dbe5f4; background:rgba(255,255,255,.985); box-shadow:0 -8px 30px rgba(24,52,89,.13); box-sizing:border-box;
}
#product .cn-sticky-buy-details{display:flex; flex-direction:column; gap:4px; min-width:0}
#product .cn-sticky-buy-title{font-size:14px; line-height:1.35; font-weight:700; color:#233247; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
#product .cn-sticky-buy-price{font-size:22px; line-height:1.15; color:var(--cn-primary,#356cf3); white-space:nowrap; font-weight:800}
#product .cn-sticky-buy-actions{display:flex; align-items:end; gap:12px; min-width:0}
#product .cn-sticky-buy-quantity{display:flex; flex-direction:column; gap:3px; margin:0; color:#4c5c72; font-size:11px; font-weight:700}
#product .cn-sticky-buy-quantity input{width:74px; min-height:46px; text-align:center; border:1px solid #cbd6e6; border-radius:12px; background:#fff; color:#1f2d42; font-size:19px; padding:4px; box-sizing:border-box}
#product .cn-sticky-buy-button{display:flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:10px 18px; border-radius:12px; border:0; background:var(--cn-primary,#356cf3); color:#fff; font-size:15px; font-weight:800; white-space:nowrap; cursor:pointer}
#product .cn-sticky-buy-button:disabled{opacity:.48;cursor:not-allowed}
#product .cn-sticky-buy-button i{font-size:20px;line-height:1}
body#product.cn-sticky-buy-visible {padding-bottom:calc(var(--cn-sticky-height, 92px) + env(safe-area-inset-bottom) + 8px)}
@media(max-width:767px){
  #product .cn-sticky-buy:not([hidden]){grid-template-columns:minmax(0,1fr); gap:8px; padding-top:10px}
  #product .cn-sticky-buy-details{flex-direction:row; justify-content:space-between; align-items:center; gap:8px}
  #product .cn-sticky-buy-title{flex:1 1 auto; font-size:12px}
  #product .cn-sticky-buy-price{font-size:18px}
  #product .cn-sticky-buy-actions{display:grid; grid-template-columns:72px minmax(0,1fr); gap:10px}
  #product .cn-sticky-buy-quantity input{width:100%}
}

/* WhatsApp bubble must sit above bottom sticky band on any device */
body.cn-sticky-buy-visible .cn-whatsapp {bottom:calc(var(--cn-sticky-height, 105px) + 16px)!important}
@media(min-width:1024px){ body.cn-sticky-buy-visible .cn-whatsapp {bottom:calc(var(--cn-sticky-height, 100px) + 18px)!important} }

/* Pulse attention for quantity / combinations */
#product .cn-pulse-attention {animation:cnPulseAttention 1.15s ease-in-out infinite; box-shadow:0 0 0 0 rgba(53,108,243,.32); border-radius:12px}
#product .cn-pulse-attention select,
#product .cn-pulse-attention input,
#product .cn-pulse-attention .input-group-btn-vertical,
#product .cn-pulse-attention .bootstrap-touchspin,
#product .cn-pulse-attention .radio-label,
#product .cn-pulse-attention .control-label,
#product .cn-pulse-attention label {position:relative}
@keyframes cnPulseAttention {
  0% {transform:translateZ(0) scale(1); box-shadow:0 0 0 0 rgba(53,108,243,.30)}
  50% {transform:translateZ(0) scale(1.02); box-shadow:0 0 0 9px rgba(53,108,243,0)}
  100% {transform:translateZ(0) scale(1); box-shadow:0 0 0 0 rgba(53,108,243,0)}
}
@media (prefers-reduced-motion:reduce){#product .cn-pulse-attention{animation:none!important}}
