/* ===== ESW PDP gallery — Fotorama restyle (mockup v2 match) ===== */

/* SIZE / PROPORTIONS: keep gallery balanced against the right info column */
.catalog-product-view .product.media{max-width:560px}

/* MAIN CARD: rounded, white, soft shadow (no border) */
.catalog-product-view .fotorama__stage{
    border:0;
    border-radius:14px;
    overflow:hidden;
    background:#fff;
    box-sizing:border-box;
    box-shadow:0 10px 30px rgba(20,41,107,.12), 0 2px 8px rgba(20,41,107,.05);
}
.catalog-product-view .fotorama__stage__shaft{border-radius:14px;overflow:hidden}
/* don't let the wrapper clip the card shadow (was cutting the right edge) */
.catalog-product-view .fotorama__wrap,
.catalog-product-view .fotorama{overflow:visible}

/* MAIN IMAGE FIT: contain (no crop) + breathing room so the product floats in the card */
.catalog-product-view .fotorama__stage .fotorama__img{padding:20px;box-sizing:border-box}
.catalog-product-view .fotorama__stage{cursor:zoom-in}

/* ZOOM BUTTON: circular magnifier, bottom-right (mockup .gal-zoom) */
.catalog-product-view .fotorama__fullscreen-icon{
    top:auto;
    right:14px;
    bottom:14px;
    width:42px;
    height:42px;
    margin:0;
    border:1px solid #e6e9ef;
    border-radius:999px;
    background:rgba(255,255,255,.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314296b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center/19px 19px no-repeat;
    box-shadow:0 4px 12px rgba(20,41,107,.14);
    opacity:1;
    visibility:visible;
    cursor:pointer;
    transition:background-color .15s,box-shadow .15s,transform .12s;
    z-index:30;
}
.catalog-product-view .fotorama__fullscreen-icon:hover{background-color:#fff;box-shadow:0 6px 16px rgba(20,41,107,.2);transform:translateY(-1px)}
.catalog-product-view .fotorama__fullscreen-icon:after,
.catalog-product-view .fotorama__fullscreen-icon:before{display:none !important}

/* THUMBNAILS: rounded square tiles, image fills edge-to-edge (mockup v2) */
.catalog-product-view .fotorama__nav-wrap{margin-top:16px}
.catalog-product-view .fotorama__nav__shaft{margin:0 auto}
.catalog-product-view .fotorama__nav__frame--thumb{box-sizing:border-box}
.catalog-product-view .fotorama__nav__frame--thumb .fotorama__thumb{
    border:2px solid #e6e9ef;
    border-radius:9px;
    overflow:hidden;
    background:#fff;
    box-sizing:border-box;
    transition:border-color .15s,box-shadow .15s;
}
/* small inner pad inside each thumb tile */
.catalog-product-view .fotorama__nav__frame--thumb .fotorama__thumb .fotorama__img{
    padding:5px;
    box-sizing:border-box;
    object-fit:cover;
}
.catalog-product-view .fotorama__nav__frame--thumb:hover .fotorama__thumb{border-color:#1344b1}
.catalog-product-view .fotorama__nav__frame--thumb.fotorama__active .fotorama__thumb{border-color:#1344b1}
/* Fotorama active highlight border */
.catalog-product-view .fotorama__thumb-border{display:none !important}

/* ===== gallery badges (discount + collection) ===== */
.catalog-product-view .product.media{position:relative}
.catalog-product-view .product.media .esw-gtags{position:absolute;top:16px;left:16px;z-index:50;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.catalog-product-view .product.media .esw-gtag{font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;padding:6px 11px;border-radius:7px;color:#fff;box-shadow:0 4px 12px rgba(20,41,107,.2);line-height:1;white-space:nowrap}
.catalog-product-view .product.media .esw-gtag.sale{background:#bc1212}
.catalog-product-view .product.media .esw-gtag.coll{background:#fdc700;color:#14296b}
/* force gallery badge font size */
.catalog-product-view .product.media .esw-gtags .esw-gtag{font-size:11px !important;line-height:1 !important}
/* out-of-stock gallery badge */
.catalog-product-view .product.media .esw-gtag.oos{background:#c62828;color:#fff;letter-spacing:.02em}
.catalog-product-view .product.media .esw-gtag.new{background:#16a34a;color:#fff}
