

.cc-product-main-media,
.cc-variant-image{
    position:relative;
}
.cc-offer-stack,
.cc-variant-offer-stack{
    position:absolute;
    top:14px;
    left:14px;
    z-index:3;
    display:flex;
    flex-direction:column;
    gap:8px;
    pointer-events:none;
}
.cc-offer-chip,
.cc-variant-offer-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    min-height:34px;
    padding:7px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:900;
    line-height:1;
    box-shadow:0 12px 26px rgba(15,23,42,.10);
}
.cc-offer-chip-online,
.cc-variant-offer-chip-online{
    background:#f4d343;
    color:#111827;
}
.cc-offer-chip-discount,
.cc-variant-offer-chip-discount{
    background:#ffd7e6;
    color:#cf2e6c;
}
.cc-product-price-row{
    display:flex;
    align-items:baseline;
    gap:12px;
    flex-wrap:wrap;
    margin:8px 0 14px;
}
.cc-product-price-wrap{
    display:flex;
    align-items:baseline;
    gap:12px;
    flex-wrap:wrap;
}
.cc-product-price-meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.cc-product-price-current{
    font-size:clamp(28px, 4vw, 42px);
    font-weight:900;
    color:#cf2e6c;
    line-height:1;
}
.cc-product-price-old{
    font-size:18px;
    color:#7a7a7a;
    text-decoration:line-through;
    font-weight:700;
}
.cc-product-price-save{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:7px 14px;
    border-radius:999px;
    background:#edf8ef;
    color:#188038;
    font-size:13px;
    font-weight:800;
}
.cc-variant-card{
    position:relative;
}
.cc-variant-image{
    display:block;
    border-radius:22px;
    overflow:hidden;
}
.cc-variant-price-wrap{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-top:10px;
}
.cc-variant-saving-row{
    width:100%;
    margin-bottom:2px;
}
.cc-variant-price-current{
    font-size:24px;
    font-weight:900;
    color:#cf2e6c;
    line-height:1;
}
.cc-variant-price-old{
    font-size:15px;
    color:#7a7a7a;
    text-decoration:line-through;
    font-weight:700;
}
.cc-variant-saving{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:26px;
    padding:5px 10px;
    border-radius:999px;
    background:#edf8ef;
    color:#188038;
    font-size:11px;
    font-weight:800;
}

/* =========================================
   VARIANTES - CARD COMPACTA COMO HOME
   ========================================= */
/* =========================================
   PRODUCTOS VARIANTES - ESTILO HOME FINO
   sin whatsapp, compacto en móvil/tablet/pc/laptop
   ========================================= */

.cc-variants-shell{
    position: relative;
}

.cc-variants-track{
    display: flex;
    align-items: stretch;
    gap: 16px;
    scroll-behavior: smooth;
}

.cc-variant-card{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    border-radius: 22px;
    padding: 12px 12px 14px;
    min-height: 100%;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.cc-variant-image{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 138px;
    min-height: 138px;
    max-height: 138px;
    padding: 8px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
}

.cc-variant-image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cc-variant-info{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.cc-variant-brand{
    font-size: 11px;
    line-height: 1.1;
    font-weight: 800;
    color: #8a94a6;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0 0 6px 0;
    min-height: 12px;
}

.cc-variant-title{
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.22;
    font-weight: 800;
    min-height: 34px;
}

.cc-variant-title a{
    color: #111827;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-variant-sku{
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 8px 0;
    min-height: 24px;
}

.cc-variant-sku-label{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffd7e6;
    color: #cf2e6c;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.cc-variant-sku-value{
    font-size: 11px;
    line-height: 1.15;
    font-weight: 700;
    color: #667085;
    word-break: break-word;
}

.cc-variant-rating-row{
    margin: 0 0 8px 0;
    min-height: 20px;
}

.cc-variant-rating-row .cc-stars{
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
}

.cc-variant-rating-row .star{
    font-size: 12px;
    line-height: 1;
    flex: 0 0 auto;
    color: #d1d5db;
}

.cc-variant-rating-row .star.full{
    color: #f6c343;
}

.cc-variant-rating-row .cc-stars-count{
    margin-left: 4px;
    font-size: 11px;
    line-height: 1;
    color: #6b7280;
    white-space: nowrap;
}

/* bloque final alineado abajo */
.cc-variant-price,
.cc-variant-price-wrap{
    margin-top: auto;
    padding-top: 4px;
}

.cc-variant-price{
    font-size: 19px;
    font-weight: 900;
    color: #cf2e6c;
    line-height: 1;
}

.cc-variant-price-wrap{
    display: flex;
    align-items: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.cc-variant-saving-row{
    width: 100%;
    margin-bottom: 2px;
    min-height: 20px;
}

.cc-variant-saving{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #edf8ef;
    color: #188038;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.cc-variant-price-current{
    font-size: 19px;
    font-weight: 900;
    color: #cf2e6c;
    line-height: 1;
}

.cc-variant-price-old{
    font-size: 12px;
    color: #7a7a7a;
    text-decoration: line-through;
    font-weight: 700;
    line-height: 1;
}

/* chips de oferta más finos */
.cc-variant-offer-stack{
    top: 8px;
    left: 8px;
    gap: 5px;
}

.cc-variant-offer-chip{
    min-height: 24px;
    padding: 4px 10px;
    font-size: 10px;
    border-radius: 999px;
    font-weight: 900;
}

/* flechas */
.cc-variants-arrow{
    top: 50%;
    transform: translateY(-50%);
}

/* LAPTOP / PC */
@media (min-width: 993px){
    .cc-variant-card{
        border-radius: 22px;
        padding: 12px 12px 14px;
    }

    .cc-variant-image{
        height: 138px;
        min-height: 138px;
        max-height: 138px;
    }
}

/* TABLET */
@media (max-width: 992px){
    .cc-variants-track{
        gap: 14px;
    }

    .cc-variant-card{
        padding: 11px 11px 13px;
        border-radius: 20px;
    }

    .cc-variant-image{
        height: 126px;
        min-height: 126px;
        max-height: 126px;
    }

    .cc-variant-title{
        font-size: 13px;
        min-height: 32px;
    }

    .cc-variant-price,
    .cc-variant-price-current{
        font-size: 18px;
    }
}

/* MOBILE */
@media (max-width: 768px){
    .cc-variants-track{
        gap: 12px;
    }

    .cc-variant-card{
        padding: 10px 10px 12px;
        border-radius: 18px;
    }

    .cc-variant-image{
        height: 112px;
        min-height: 112px;
        max-height: 112px;
        padding: 6px;
        margin-bottom: 8px;
        border-radius: 16px;
    }

    .cc-variant-brand{
        font-size: 10px;
        margin-bottom: 5px;
    }

    .cc-variant-title{
        font-size: 13px;
        line-height: 1.18;
        min-height: 30px;
        margin-bottom: 7px;
    }

    .cc-variant-sku{
        margin-bottom: 7px;
        min-height: 22px;
    }

    .cc-variant-sku-label{
        min-height: 20px;
        padding: 3px 7px;
        font-size: 10px;
    }

    .cc-variant-sku-value{
        font-size: 10px;
    }

    .cc-variant-rating-row{
        margin-bottom: 7px;
        min-height: 18px;
    }

    .cc-variant-rating-row .star{
        font-size: 11px;
    }

    .cc-variant-rating-row .cc-stars-count{
        font-size: 10px;
    }

    .cc-variant-price,
    .cc-variant-price-current{
        font-size: 17px;
    }

    .cc-variant-price-old{
        font-size: 11px;
    }

    .cc-variant-saving{
        min-height: 18px;
        font-size: 9px;
        padding: 3px 7px;
    }

    .cc-variant-offer-chip{
        min-height: 22px;
        padding: 4px 8px;
        font-size: 9px;
    }
}

.cc-section-variants .cc-container{
    max-width: 100%;
}

.cc-section-variants .cc-variants-track .cc-variant-card{
    height: auto;
}
/* =========================
   WhatsApp bonito y centrado
========================= */
.cc-product-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.cc-btn-whatsapp-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25D366 0%, #1fb95a 100%);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.18);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    white-space: nowrap;
}

.cc-btn-whatsapp-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.24);
    filter: brightness(1.02);
}

.cc-btn-whatsapp-inline .cc-wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #ffffff;
    flex: 0 0 auto;
}

.cc-btn-whatsapp-inline .cc-wa-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.cc-btn-whatsapp-inline .cc-btn-whatsapp-text {
    display: inline-block;
    white-space: nowrap;
}

/* Desktop y laptop */
@media (min-width: 993px) {
    .cc-btn-whatsapp-inline {
        align-self: center;
        min-width: 280px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .cc-product-actions-inline {
        justify-content: center;
    }

    .cc-btn-whatsapp-inline {
        min-width: 260px;
        max-width: 100%;
    }
}

/* Móvil */
@media (max-width: 640px) {
    .cc-product-actions-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-btn-whatsapp-inline,
    .cc-btn-back,
    .cc-product-actions-inline form,
    .cc-product-actions-inline form button {
        width: 100%;
    }

    .cc-btn-whatsapp-inline {
        justify-content: center;
        min-height: 42px;
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 12px;
    }

    .cc-btn-whatsapp-inline .cc-wa-icon,
    .cc-btn-whatsapp-inline .cc-wa-icon svg {
        width: 17px;
        height: 17px;
    }
}

/* =========================
   Descripción larga robusta
========================= */
.cc-product-description-prose {
    width: 100%;
    overflow-x: auto;
    color: #24324a;
    line-height: 1.7;
    font-size: 15px;
}

.cc-product-description-prose * {
    max-width: 100%;
    box-sizing: border-box;
}

.cc-product-description-prose img {
    max-width: 100% !important;
    height: auto !important;
}

.cc-product-description-prose iframe,
.cc-product-description-prose video,
.cc-product-description-prose embed,
.cc-product-description-prose object {
    max-width: 100% !important;
}

.cc-product-description-prose table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.cc-product-description-prose td,
.cc-product-description-prose th {
    word-break: break-word;
    vertical-align: top;
}

.cc-product-description-prose [style*="column-count"] {
    width: 100% !important;
}

.cc-product-description-prose .columns,
.cc-product-description-prose .row,
.cc-product-description-prose .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.cc-product-description-prose .column,
.cc-product-description-prose .col,
.cc-product-description-prose .wp-block-column {
    flex: 1 1 280px;
    min-width: 0;
}

@media (max-width: 768px) {
    .cc-product-description-prose {
        font-size: 14px;
        line-height: 1.65;
    }

    .cc-product-description-prose .columns,
    .cc-product-description-prose .row,
    .cc-product-description-prose .wp-block-columns {
        flex-direction: column;
        gap: 12px;
    }

    .cc-product-description-prose [style*="column-count:2"],
    .cc-product-description-prose [style*="column-count: 2"],
    .cc-product-description-prose [style*="column-count:3"],
    .cc-product-description-prose [style*="column-count: 3"] {
        column-count: 1 !important;
    }
}

/* ===== WhatsApp alineado al estilo del resto ===== */
.cc-product-actions-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.cc-product-actions-inline .cc-btn-back {
    grid-column: 1 / 2;
}

.cc-product-actions-inline form {
    grid-column: 2 / 3;
    margin: 0;
}

.cc-product-actions-inline .cc-btn-whatsapp-solid {
    grid-column: 1 / -1;
}

.cc-btn-whatsapp-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #25D366 0%, #1fb95a 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.18);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cc-btn-whatsapp-solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.24);
    filter: brightness(1.02);
}

.cc-btn-whatsapp-solid .cc-wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #fff;
    flex: 0 0 auto;
}

.cc-btn-whatsapp-solid .cc-wa-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.cc-btn-whatsapp-solid .cc-btn-whatsapp-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cc-product-actions-inline {
        grid-template-columns: 1fr;
    }

    .cc-product-actions-inline .cc-btn-back,
    .cc-product-actions-inline form,
    .cc-product-actions-inline .cc-btn-whatsapp-solid {
        grid-column: auto;
        width: 100%;
    }

    .cc-btn-whatsapp-solid {
        min-height: 44px;
        font-size: 14px;
        border-radius: 14px;
    }

    .cc-btn-whatsapp-solid .cc-wa-icon,
    .cc-btn-whatsapp-solid .cc-wa-icon svg {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 768px) {
    .cc-product-actions-inline {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cc-product-actions-inline .cc-btn-back {
        grid-column: 1 / 2;
        width: 100%;
    }

    .cc-product-actions-inline form {
        grid-column: 2 / 3;
        width: 100%;
        margin: 0;
    }

    .cc-product-actions-inline form button {
        width: 100%;
    }

    .cc-product-actions-inline .cc-btn-whatsapp-solid {
        grid-column: 1 / -1;
        width: 100%;
    }

    .cc-btn-whatsapp-solid {
        min-height: 44px;
        font-size: 14px;
        border-radius: 14px;
    }

    .cc-btn-whatsapp-solid .cc-wa-icon,
    .cc-btn-whatsapp-solid .cc-wa-icon svg {
        width: 17px;
        height: 17px;
    }
}

/* =========================
   GALERIA SINGLE PRODUCT - OVERLAY PRO
========================= */
.cc-product-main-media{
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.cc-product-main-media img{
    transition: transform .28s ease;
    user-select: none;
    -webkit-user-drag: none;
}

@media (hover: hover) and (pointer: fine){
    .cc-product-main-media:hover img{
        transform: scale(1.02);
    }
}

.cc-product-open-overlay,
.cc-product-open-overlay-inline{
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    z-index: 6;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15,23,42,.16);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cc-product-open-overlay{
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(69, 74, 86, .92);
    color: #fff;
}

.cc-product-open-overlay:hover,
.cc-product-open-overlay-inline:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15,23,42,.20);
    filter: brightness(1.02);
}

.cc-product-open-overlay svg,
.cc-product-open-overlay-inline svg{
    width: 18px;
    height: 18px;
    display: block;
}

.cc-product-open-overlay-inline{
    left: 14px;
    bottom: 14px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: #111827;
    font-size: 14px;
}

.cc-product-open-overlay-inline span{
    white-space: nowrap;
}

.cc-product-overlay{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(12,16,24,.88);
    backdrop-filter: blur(4px);
    overflow: hidden;
    touch-action: pan-x pan-y;
}

.cc-product-overlay.is-open{
    display: block;
}

.cc-product-overlay-inner{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 88px 72px;
}

.cc-product-overlay-stage{
    position: relative;
    width: min(92vw, 1160px);
    height: min(84vh, 860px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cc-product-overlay-figure{
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cc-product-overlay-figure img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform .18s ease, opacity .18s ease;
    cursor: grab;
    will-change: transform;
}

.cc-product-overlay-figure.is-zoomed img{
    cursor: grab;
}

.cc-product-overlay-figure.is-dragging img{
    cursor: grabbing;
    transition: none;
}

.cc-product-overlay-top{
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.cc-product-overlay-count{
    pointer-events: auto;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
}

.cc-product-overlay-actions{
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-product-overlay-icon{
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: rgba(31,41,55,.82);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0,0,0,.20);
}

.cc-product-overlay-icon svg{
    width: 18px;
    height: 18px;
}

.cc-product-overlay-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,.96);
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
    z-index: 6;
}

.cc-product-overlay-nav.left{ left: 18px; }
.cc-product-overlay-nav.right{ right: 18px; }

.cc-product-overlay-nav svg{
    width: 24px;
    height: 24px;
}

.cc-product-overlay-thumbs{
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    max-width: min(92vw, 960px);
    overflow-x: auto;
    padding: 8px 10px;
    scrollbar-width: thin;
}

.cc-product-overlay-thumb{
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: rgba(255,255,255,.96);
    padding: 4px;
    flex: 0 0 auto;
    cursor: pointer;
}

.cc-product-overlay-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.cc-product-overlay-thumb.active{
    border-color: #f7b5cd;
    box-shadow: 0 0 0 2px rgba(247,181,205,.25);
}

body.cc-overlay-lock{
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 1024px){
    .cc-product-open-overlay{
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .cc-product-open-overlay svg{
        width: 16px;
        height: 16px;
    }

    .cc-product-open-overlay-inline{
        left: 10px;
        bottom: 10px;
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
        gap: 6px;
    }

    .cc-product-open-overlay-inline svg{
        width: 15px;
        height: 15px;
    }

    .cc-product-overlay{
        backdrop-filter: none;
    }

    .cc-product-overlay-inner{
        padding: 14px 12px 74px;
    }

    .cc-product-overlay-stage{
        width: 100%;
        height: calc(100vh - 96px);
        max-height: none;
    }

    .cc-product-overlay-figure,
    .cc-product-overlay-figure img{
        transform: none !important;
        transition: opacity .18s ease !important;
    }

    .cc-product-overlay-top{
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .cc-product-overlay-count{
        font-size: 15px;
    }

    .cc-product-overlay-icon{
        width: 34px;
        height: 34px;
    }

    .cc-product-overlay-icon svg{
        width: 15px;
        height: 15px;
    }

    .cc-product-overlay-nav{
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,.94);
        box-shadow: 0 10px 18px rgba(0,0,0,.16);
    }

    .cc-product-overlay-nav.left{ left: 8px; }
    .cc-product-overlay-nav.right{ right: 8px; }

    .cc-product-overlay-nav svg{
        width: 18px;
        height: 18px;
    }

    .cc-product-overlay-thumbs{
        bottom: 10px;
        width: calc(100% - 16px);
        max-width: none;
        justify-content: flex-start;
        gap: 8px;
        padding: 6px 6px;
    }

    .cc-product-overlay-thumb{
        width: 54px;
        height: 54px;
        border-radius: 10px;
        padding: 3px;
    }
}

@media (max-width: 640px){
    .cc-product-open-overlay{
        width: 34px;
        height: 34px;
        top: 8px;
        right: 8px;
    }

    .cc-product-open-overlay-inline{
        left: 8px;
        bottom: 8px;
        min-height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    .cc-product-overlay-inner{
        padding: 12px 8px 70px;
    }

    .cc-product-overlay-stage{
        height: calc(100vh - 84px);
    }

    .cc-product-overlay-count{
        font-size: 14px;
    }

    .cc-product-overlay-nav{
        width: 36px;
        height: 36px;
    }

    .cc-product-overlay-nav svg{
        width: 16px;
        height: 16px;
    }

    .cc-product-overlay-thumb{
        width: 48px;
        height: 48px;
    }
}


/* =========================
   MINIATURAS ESTABLES EN MOVIL/TABLET
========================= */
.cc-product-thumbs-shell{
    position: relative;
    overflow: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.cc-product-thumbs{
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.cc-product-thumb,
.cc-gallery-arrow{
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 992px){
    .cc-product-thumbs{
        scroll-behavior: auto;
    }

    .cc-gallery-arrow{
        transform: translateY(-50%) scale(.88);
    }
}

@media (max-width: 640px){
    .cc-gallery-arrow{
        transform: translateY(-50%) scale(.82);
    }
}


/* =========================
   AJUSTES FINOS VISOR / LUPA / MINIATURAS
   sin tocar lógica existente
========================= */
.cc-product-open-overlay,
.cc-product-open-overlay-inline,
.cc-product-overlay-icon,
.cc-product-overlay-nav{
    overflow: visible !important;
    line-height: 1 !important;
}

.cc-product-open-overlay{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.cc-product-open-overlay svg,
.cc-product-open-overlay-inline svg,
.cc-product-overlay-icon svg,
.cc-product-overlay-nav svg{
    display:block !important;
    overflow:visible !important;
    flex:0 0 auto;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.cc-product-open-overlay-inline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding: 0 16px 0 14px;
}

.cc-product-open-overlay-inline svg{
    width:18px;
    height:18px;
    min-width:18px;
    min-height:18px;
}

.cc-product-open-overlay-inline span{
    display:inline-block;
    line-height:1.08;
}

.cc-product-overlay-top{
    right: 18px;
}

.cc-product-overlay-actions{
    gap: 12px;
}

.cc-product-overlay-icon{
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
}

.cc-product-overlay-icon svg{
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

.cc-product-overlay-nav{
    width: 46px;
    height: 46px;
}

.cc-product-overlay-nav svg{
    width: 18px;
    height: 18px;
}

.cc-gallery-arrow{
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size: 22px;
    line-height: 1;
}

.cc-product-thumbs-shell{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.cc-product-thumbs{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin:0 auto;
    width:auto;
    max-width:100%;
}

.cc-product-thumb{
    flex:0 0 auto;
}

.cc-product-overlay-thumbs{
    width: max-content;
    max-width: min(92vw, 960px);
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.cc-product-overlay-thumb{
    flex:0 0 auto;
}

@media (max-width: 1024px){
    .cc-product-open-overlay{
        width: 38px;
        height: 38px;
        top: 10px;
        right: 10px;
    }

    .cc-product-open-overlay svg{
        width: 16px;
        height: 16px;
        min-width: 16px;
        min-height: 16px;
    }

    .cc-product-open-overlay-inline{
        min-height: 36px;
        padding: 0 14px 0 12px;
        font-size: 12px;
    }

    .cc-product-open-overlay-inline svg{
        width: 16px;
        height: 16px;
        min-width: 16px;
        min-height: 16px;
    }

    .cc-product-overlay-top{
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .cc-product-overlay-icon{
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .cc-product-overlay-icon svg{
        width: 16px;
        height: 16px;
        min-width: 16px;
        min-height: 16px;
    }

    .cc-product-overlay-nav{
        width: 38px;
        height: 38px;
    }

    .cc-product-overlay-nav svg{
        width: 16px;
        height: 16px;
    }

    .cc-gallery-arrow{
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        font-size: 20px;
    }

    .cc-product-overlay-thumbs{
        left:50%;
        transform:translateX(-50%);
        width:max-content;
        max-width:calc(100% - 16px);
        justify-content:center;
    }
}

@media (max-width: 640px){
    .cc-product-open-overlay{
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }

    .cc-product-open-overlay-inline{
        min-height: 36px;
        padding: 0 13px 0 11px;
        font-size: 12px;
        left: 8px;
        bottom: 8px;
    }

    .cc-product-open-overlay-inline svg{
        width: 16px;
        height: 16px;
        min-width: 16px;
        min-height: 16px;
    }

    .cc-product-overlay-top{
        left: 8px;
        right: 8px;
    }

    .cc-product-overlay-actions{
        gap: 8px;
    }

    .cc-product-overlay-icon{
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        display:inline-flex !important;
    }

    .cc-product-overlay-icon svg{
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
    }

    .cc-gallery-arrow{
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 18px;
    }

    .cc-product-thumbs-shell{
        gap:8px;
    }

    .cc-product-thumbs{
        gap:10px;
        justify-content:center;
    }

    .cc-product-overlay-thumbs{
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: calc(100% - 12px);
        justify-content: center;
        padding-left: 6px;
        padding-right: 6px;
    }
}


/* =========================
   OVERRIDES FINALES LUPA + MINIATURAS
   ========================= */
.cc-product-open-overlay-inline,
.cc-product-open-overlay,
.cc-product-overlay-icon{
    overflow: visible !important;
    line-height: 1 !important;
}

.cc-product-open-overlay-inline{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    padding: 0 18px 0 16px !important;
}

.cc-product-open-overlay-inline svg{
    display:block !important;
    width:20px !important;
    height:20px !important;
    min-width:20px !important;
    min-height:20px !important;
    flex:0 0 20px !important;
    overflow:visible !important;
    margin-left: 2px !important;
}

.cc-product-open-overlay-inline span{
    display:inline-block !important;
    line-height:1.1 !important;
}

.cc-product-open-overlay svg,
.cc-product-overlay-icon svg{
    display:block !important;
    overflow:visible !important;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.cc-product-overlay-icon{
    width:44px !important;
    height:44px !important;
}

.cc-product-overlay-icon svg{
    width:20px !important;
    height:20px !important;
    min-width:20px !important;
    min-height:20px !important;
}

.cc-product-overlay-thumbs{
    width: fit-content;
    min-width: min(92vw, 960px);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px){
    .cc-product-open-overlay-inline{
        min-height:38px !important;
        padding: 0 14px 0 13px !important;
        gap:8px !important;
    }
    .cc-product-open-overlay-inline svg{
        width:18px !important;
        height:18px !important;
        min-width:18px !important;
        min-height:18px !important;
        flex:0 0 18px !important;
        margin-left:1px !important;
    }
    .cc-product-overlay-icon{
        width:38px !important;
        height:38px !important;
    }
    .cc-product-overlay-icon svg{
        width:18px !important;
        height:18px !important;
        min-width:18px !important;
        min-height:18px !important;
    }
    .cc-product-overlay-thumbs{
        min-width: calc(100% - 16px);
        justify-content: center !important;
    }
}

@media (max-width: 640px){
    .cc-product-open-overlay-inline{
        min-height:40px !important;
        padding: 0 14px 0 12px !important;
        gap:8px !important;
    }
    .cc-product-open-overlay-inline svg{
        width:19px !important;
        height:19px !important;
        min-width:19px !important;
        min-height:19px !important;
        flex:0 0 19px !important;
        margin-left:1px !important;
    }
    .cc-product-overlay-icon{
        width:40px !important;
        height:40px !important;
    }
    .cc-product-overlay-icon svg{
        width:19px !important;
        height:19px !important;
        min-width:19px !important;
        min-height:19px !important;
    }
    .cc-product-overlay-thumbs{
        justify-content: center !important;
        width: calc(100% - 12px) !important;
        max-width: calc(100% - 12px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

