/* Clasico Next 1.1.26 HOTFIX9 — compact hover panel so product image stays more visible.
   Scope: only product image overlay area. Desktop refined, mobile untouched. */
@media (hover:hover) and (pointer:fine) {
  .cn-product-card .thumbnail-container .cn-card-hover-panel {
    max-height:22% !important;
    gap:3px !important;
    padding:4px 8px 5px !important;
    background:rgba(255,255,255,.97) !important;
    box-shadow:0 -4px 12px rgba(13,39,75,.06) !important;
  }

  /* Quick view: convert from large button strip to simpler compact inline control */
  .cn-product-card .thumbnail-container .cn-card-hover-panel > a.quick-view.cn-quick-view {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:center !important;
    width:auto !important;
    max-width:calc(100% - 18px) !important;
    min-height:22px !important;
    height:auto !important;
    margin:0 auto !important;
    padding:1px 4px 2px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    font-size:10px !important;
    line-height:1.1 !important;
    font-weight:700 !important;
    color:#2c568f !important;
    gap:4px !important;
  }
  .cn-product-card .cn-card-hover-panel > a.cn-quick-view:hover,
  .cn-product-card .cn-card-hover-panel > a.cn-quick-view:focus-visible {
    background:transparent !important;
    border-color:transparent !important;
    color:#163d73 !important;
    text-decoration:underline !important;
    text-underline-offset:2px !important;
  }
  .cn-product-card .cn-card-hover-panel .cn-quick-view .material-icons {
    font-size:14px !important;
    line-height:1 !important;
  }

  /* Swatches tighter */
  .cn-product-card .cn-card-hover-panel .cn-card-variants,
  .cn-product-card .cn-card-hover-panel .cn-card-variants .variant-links,
  .cn-product-card .cn-card-hover-panel .cn-card-variants .cn-card-swatches {
    gap:4px !important;
    padding:0 !important;
    margin:0 !important;
  }
  .cn-product-card .cn-card-hover-panel .cn-card-variants a.color,
  .cn-product-card .cn-card-hover-panel .cn-card-variants a.texture,
  .cn-product-card .cn-card-hover-panel .cn-card-variants a.cn-swatch {
    width:16px !important;
    height:16px !important;
    min-width:16px !important;
    min-height:16px !important;
    flex-basis:16px !important;
    border-width:1.5px !important;
    box-shadow:0 1px 4px rgba(21,44,68,.08) !important;
  }

  /* Progress bar rises less because overlay is shorter */
  .cn-product-card.cn-has-gallery:hover .cn-gallery-progress {bottom:30px !important}
  .cn-product-card.cn-has-variants.cn-has-gallery:hover .cn-gallery-progress {bottom:46px !important}
}
