/**
 * Custom Product Card Redesign
 * Inspired by krishcollections.in
 */

/* 1. Product Image and Overlay Buttons */
.product-wrapper .product-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* Action buttons stack — always visible on top-right (krishcollections style) */
.product-wrapper .product-buttons {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
}

/* Override theme.css rules that hide wishlist/compare until hover */
.products.grid-view .product-wrapper .product-buttons .whishlist-button,
.products.grid-view .product-wrapper .product-buttons .quickview-button,
.products.grid-view .product-wrapper .product-buttons .cart-button,
.products.grid-view .product:hover .product-wrapper .product-buttons .whishlist-button,
.products.grid-view .product:hover .product-wrapper .product-buttons .quickview-button,
.products.grid-view .product:hover .product-wrapper .product-buttons .cart-button {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    display: block !important;
}

/* Hide the compare button in the loop — not in the reference */
.product-wrapper .product-buttons .compare-button {
    display: none !important;
}

/* Override theme.css .products .product-image .quickview-button absolute-bottom rule */
.products .product-image .product-buttons .quickview-button,
.product-wrapper .product-buttons .quickview-button {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
    text-align: center !important;
}

/* Visual order: wishlist (heart) → quick view (eye) → cart */
.product-wrapper .product-buttons .whishlist-button { order: 1; }
.product-wrapper .product-buttons .quickview-button { order: 2; }
.product-wrapper .product-buttons .cart-button      { order: 3; }

.product-wrapper .product-buttons > div {
    margin: 0 !important;
    padding: 0 !important;
}

/* Circular pill buttons — cover all anchor/button/YITH markup variants */
.product-wrapper .product-buttons a,
.product-wrapper .product-buttons button,
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-add-to-wishlist a,
.product-wrapper .product-buttons .whishlist-button .yith-add-to-wishlist-button-block a,
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-add-button a,
.product-wrapper .product-buttons .whishlist-button a.yith-wcwl-add-to-wishlist-button,
.product-wrapper .product-buttons .whishlist-button button,
.product-wrapper .product-buttons .quickview-button a,
.product-wrapper .product-buttons .quickview-button a.quickview-btn,
.product-wrapper .product-buttons .quickview-button a.theme-button-style,
.product-wrapper .product-buttons .whishlist-button a.theme-button-style {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    background: #fff !important;
    color: #212121 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    font-size: 0 !important;
    transition: all 0.25s ease !important;
    padding: 0 !important;
    text-decoration: none !important;
    border: 0 !important;
    outline: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Kill the focus ring / green outline that appears after click/tap on Quick View (and siblings) */
.product-wrapper .product-buttons a:focus,
.product-wrapper .product-buttons a:focus-visible,
.product-wrapper .product-buttons a:active,
.product-wrapper .product-buttons button:focus,
.product-wrapper .product-buttons button:focus-visible,
.product-wrapper .product-buttons button:active {
    outline: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    border: 0 !important;
}

/* Hide YITH's own SVG / text / loader so only our ::before glyph is visible */
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-icon,
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-icon-svg,
.product-wrapper .product-buttons .whishlist-button svg,
.product-wrapper .product-buttons .whishlist-button i,
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-add-to-wishlist-button-text,
.product-wrapper .product-buttons .whishlist-button .feedback,
.product-wrapper .product-buttons .whishlist-button .ajax-loading,
.product-wrapper .product-buttons .whishlist-button .clear,
.product-wrapper .product-buttons .whishlist-button br {
    display: none !important;
}

/* Collapse extra YITH wrappers so they don't become a second square */
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-add-to-wishlist,
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-add-button,
.product-wrapper .product-buttons .whishlist-button .yith-add-to-wishlist-button-block {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* Icon glyphs (presslayouts icon font) */
.product-wrapper .product-buttons .whishlist-button a:before,
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-add-to-wishlist a:before,
.product-wrapper .product-buttons .quickview-button a:before,
.product-wrapper .product-buttons .quickview-button a.quickview-btn:before,
.product-wrapper .product-buttons .cart-button a:before {
    display: inline-block !important;
    font-family: 'presslayouts-font' !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: normal !important;
    margin: 0 !important;
}
.product-wrapper .product-buttons .whishlist-button a:before,
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-add-to-wishlist a:before {
    content: "\e909" !important;
}
.product-wrapper .product-buttons .quickview-button a:before,
.product-wrapper .product-buttons .quickview-button a.quickview-btn:before {
    content: "\e98c" !important;
}
.product-wrapper .product-buttons .cart-button a:before {
    content: "\e90a" !important;
}
.product-type-variable .product-wrapper .product-buttons .cart-button a:before,
.product-type-grouped .product-wrapper .product-buttons .cart-button a:before,
.product-type-external .product-wrapper .product-buttons .cart-button a:before {
    content: "\e90a" !important;
}

/* Hide label text inside the buttons — icon-only */
.product-wrapper .product-buttons a *,
.product-wrapper .product-buttons button *,
.product-wrapper .product-buttons .added_to_cart,
.product-wrapper .product-buttons .yith-wcwl-add-to-wishlist .feedback {
    font-size: 0 !important;
}

.product-wrapper .product-buttons a:hover,
.product-wrapper .product-buttons button:hover {
    background: #059473 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    border: 0 !important;
    outline: 0 !important;
    transform: translateY(-1px);
}
.product-wrapper .product-buttons a:hover:before,
.product-wrapper .product-buttons button:hover:before {
    color: #fff !important;
}

/* Wishlist active/added state */
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-wishlistaddedbrowse a,
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-wishlistexistsbrowse a {
    background: #059473 !important;
    color: #fff !important;
}
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-wishlistaddedbrowse a:before,
.product-wrapper .product-buttons .whishlist-button .yith-wcwl-wishlistexistsbrowse a:before {
    color: #fff !important;
}

/* Mobile — slightly smaller circles so they don't overpower the image */
@media (max-width: 767px) {
    .product-wrapper .product-buttons {
        top: 8px !important;
        right: 8px !important;
        gap: 6px !important;
    }
    .product-wrapper .product-buttons a,
    .product-wrapper .product-buttons button,
    .product-wrapper .product-buttons .whishlist-button .yith-wcwl-add-to-wishlist a,
    .product-wrapper .product-buttons .whishlist-button button {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        min-width: 32px !important;
    }
    .product-wrapper .product-buttons .whishlist-button a:before,
    .product-wrapper .product-buttons .whishlist-button .yith-wcwl-add-to-wishlist a:before,
    .product-wrapper .product-buttons .quickview-button a:before,
    .product-wrapper .product-buttons .cart-button a:before {
        font-size: 14px !important;
    }
}

/* 2. Labels Redesign */
.product-wrapper .product-labels {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.product-wrapper .product-labels .new {
    background: #84b74e;
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
}

/* 3. Product Info Area */
.product-wrapper .product-info {
    padding: 15px 0;
}

.product-wrapper .product-cats {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.product-wrapper .product-cats a {
    color: #888;
}

.product-wrapper .product-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #333;
}

.product-wrapper .product-title a {
    color: #333;
}

/* 4. Price and Discount */
.product-wrapper .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.product-wrapper .product-price .price {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-wrapper .product-price del {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.product-wrapper .product-price ins {
    text-decoration: none;
    background: transparent;
    padding: 0;
    color: #212121;
}

.product-wrapper .on-sale {
    background: transparent !important;
    color: #059473 !important;
    font-weight: 600;
    font-size: 14px;
    padding: 0 !important;
    border: none !important;
}

/* 5. Variations (Size Swatches) — archive/loop product card */
.product-wrapper .product-variations {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Allow swatches to wrap to a 2nd line so each pill stays readable.
   Label sits on row 1; swatches flow on row 2 (and 3 if needed). */
.products .product-wrapper .pressmart-swatches,
.products .product-wrapper .product-variations .pressmart-swatches-wrap {
    flex-wrap: wrap !important;
    overflow: visible !important;
    white-space: normal !important;
}

.product-wrapper .pressmart-swatches {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap !important;
    row-gap: 8px;
}

/* Label on its own row — full-width flex item */
.product-wrapper .swatch-label-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-right: 0;
    flex: 0 0 100% !important;
    width: 100%;
    display: block;
    margin-bottom: 2px;
}

/* Outer swatch (.swatch-term) — strip border so the inner span renders the button */
.products .product-wrapper .pressmart-swatches .swatch-term.swatch,
.products .product-wrapper .pressmart-swatches .swatch-term.swatch.swatch-circle {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
}

/* Inner span IS the button — square box like the screenshot */
.products .product-wrapper .pressmart-swatches .swatch.swatch-label > span,
.product-wrapper .pressmart-swatches .swatch.swatch-label > span {
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
    color: #222 !important;
    min-width: 36px !important;
    min-height: 36px !important;
    width: auto !important;
    height: auto !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* Hover — black background, white text, shadow highlight */
.products .product-wrapper .pressmart-swatches .swatch.swatch-label:hover > span {
    border-color: #000 !important;
    background: #000 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-1px);
}
.products .product-wrapper .pressmart-swatches .swatch.swatch-label.swatch-selected > span {
    border-color: #000 !important;
    background: #000 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* "+N more" pill — same look as a size button, links to product page */
.products .product-wrapper .pressmart-swatches .swatch.swatch-more,
.product-wrapper .pressmart-swatches .swatch.swatch-more {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
}
.products .product-wrapper .pressmart-swatches .swatch.swatch-more > span,
.product-wrapper .pressmart-swatches .swatch.swatch-more > span {
    border: 1px dashed #c5c5c5 !important;
    background: #f6f6f6 !important;
    color: #555 !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.products .product-wrapper .pressmart-swatches .swatch.swatch-more:hover > span {
    border-color: #000 !important;
    background: #000 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-1px);
}

/* Color / image swatches inside loop — keep them tidy alongside label swatches */
.products .product-wrapper .pressmart-swatches .swatch.swatch-color > span,
.products .product-wrapper .pressmart-swatches .swatch.swatch-image > img {
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
}
.products .product-wrapper .pressmart-swatches .swatch.swatch-circle.swatch-color > span,
.products .product-wrapper .pressmart-swatches .swatch.swatch-circle.swatch-image > img {
    border-radius: 50% !important;
}

/* ===== Responsive — keep swatches inside the product card =====
   Strategy: pills stay at a readable size (28-36px). When they
   don't fit on one row they WRAP to the next row. We never let
   the row scroll horizontally or overflow the card. */
.products .product-wrapper .product-variations,
.product-wrapper .product-variations {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.products .product-wrapper .pressmart-swatches,
.product-wrapper .pressmart-swatches {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.products .product-wrapper .pressmart-swatches .swatch,
.product-wrapper .pressmart-swatches .swatch {
    flex: 0 0 auto;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Tablet / small laptop — keep base size */
@media (max-width: 1199px) {
    .products .product-wrapper .pressmart-swatches,
    .product-wrapper .pressmart-swatches {
        gap: 6px;
        row-gap: 6px;
    }
    .products .product-wrapper .pressmart-swatches .swatch.swatch-label > span,
    .product-wrapper .pressmart-swatches .swatch.swatch-label > span,
    .products .product-wrapper .pressmart-swatches .swatch.swatch-more > span,
    .product-wrapper .pressmart-swatches .swatch.swatch-more > span {
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 4px 10px !important;
        font-size: 13px !important;
    }
}

/* Tablet portrait — only slightly smaller */
@media (max-width: 991px) {
    .product-wrapper .swatch-label-text {
        font-size: 12px;
    }
    .products .product-wrapper .pressmart-swatches,
    .product-wrapper .pressmart-swatches {
        gap: 6px;
        row-gap: 6px;
    }
    .products .product-wrapper .pressmart-swatches .swatch.swatch-label > span,
    .product-wrapper .pressmart-swatches .swatch.swatch-label > span,
    .products .product-wrapper .pressmart-swatches .swatch.swatch-more > span,
    .product-wrapper .pressmart-swatches .swatch.swatch-more > span {
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 4px 8px !important;
        font-size: 12px !important;
    }
    .products .product-wrapper .pressmart-swatches .swatch.swatch-color > span,
    .products .product-wrapper .pressmart-swatches .swatch.swatch-image > img {
        width: 24px !important;
        height: 24px !important;
        line-height: 24px !important;
    }
}

/* Mobile — comfortable tap target (~30-32px), wraps to multiple rows */
@media (max-width: 767px) {
    .product-wrapper .product-variations {
        padding-top: 10px;
        margin-top: 8px;
    }
    .product-wrapper .swatch-label-text {
        font-size: 11px;
    }
    .products .product-wrapper .pressmart-swatches,
    .product-wrapper .pressmart-swatches {
        gap: 5px;
        row-gap: 5px;
    }
    .products .product-wrapper .pressmart-swatches .swatch.swatch-label > span,
    .product-wrapper .pressmart-swatches .swatch.swatch-label > span,
    .products .product-wrapper .pressmart-swatches .swatch.swatch-more > span,
    .product-wrapper .pressmart-swatches .swatch.swatch-more > span {
        min-width: 30px !important;
        min-height: 30px !important;
        padding: 4px 7px !important;
        font-size: 12px !important;
        border-radius: 4px !important;
    }
    .products .product-wrapper .pressmart-swatches .swatch.swatch-color > span,
    .products .product-wrapper .pressmart-swatches .swatch.swatch-image > img {
        width: 22px !important;
        height: 22px !important;
        line-height: 22px !important;
    }
}

/* Small phones — minor compaction only, still readable */
@media (max-width: 480px) {
    .product-wrapper .swatch-label-text {
        font-size: 11px;
    }
    .products .product-wrapper .pressmart-swatches,
    .product-wrapper .pressmart-swatches {
        gap: 4px;
        row-gap: 4px;
    }
    .products .product-wrapper .pressmart-swatches .swatch.swatch-label > span,
    .product-wrapper .pressmart-swatches .swatch.swatch-label > span,
    .products .product-wrapper .pressmart-swatches .swatch.swatch-more > span,
    .product-wrapper .pressmart-swatches .swatch.swatch-more > span {
        min-width: 28px !important;
        min-height: 28px !important;
        padding: 3px 6px !important;
        font-size: 11px !important;
    }
    .products .product-wrapper .pressmart-swatches .swatch.swatch-color > span,
    .products .product-wrapper .pressmart-swatches .swatch.swatch-image > img {
        width: 20px !important;
        height: 20px !important;
        line-height: 20px !important;
    }
}

/* Hide duplicate Quick View from title area since we moved it to image buttons */
.product-wrapper .product-info .quickview-button {
    display: none;
}

/* Kill the green background on the Quick View wrapper <div>.
   dynamic-css.php applies site primary color as background-color
   to .products .product-image .quickview-button — we want it transparent. */
.products .product-image .quickview-button,
.product-wrapper .product-image .quickview-button,
.product-wrapper .product-buttons .quickview-button {
    background-color: transparent !important;
    background: transparent !important;
}

/* ============================================================
   Native "Shop by Size" filter — rendered under .products-header
   on shop + category pages via krish_render_size_filter_above_loop()
   ============================================================ */
.krish-size-archive-filter {
    width: 100% !important;
    margin: 12px 0 20px !important;
    padding: 16px 0 !important;
    box-sizing: border-box;
    text-align: center;
}
.krish-size-filter-title {
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 0 14px !important;
    color: #333 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* Force the list to be a centered horizontal flex row.
   !important everywhere because the theme's global ul/li rules
   (and WooCommerce/Pressmart resets) otherwise force display:block. */
ul.krish-size-filter-list,
.krish-size-archive-filter ul.krish-size-filter-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
}
ul.krish-size-filter-list::before,
ul.krish-size-filter-list::after {
    content: none !important;
    display: none !important;
}

/* Each list item is just a wrapper — no bullet, no block, no margin */
ul.krish-size-filter-list > li.krish-size-pill-item,
.krish-size-archive-filter li.krish-size-pill-item {
    list-style: none !important;
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    width: auto !important;
    float: none !important;
    text-align: center !important;
    line-height: 1 !important;
}
ul.krish-size-filter-list > li.krish-size-pill-item::before,
ul.krish-size-filter-list > li.krish-size-pill-item::marker {
    content: none !important;
    display: none !important;
}

/* The pill itself — clickable round button (base — applies to every variant) */
.krish-size-archive-filter a.krish-size-pill,
a.krish-size-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #e0e0e0 !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    transition: border-color .2s ease, background-color .2s ease,
                color .2s ease, box-shadow .2s ease, transform .2s ease !important;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    outline: 0 !important;
}

/* Short labels (S, M, L, XL, XS) → perfect circle */
.krish-size-archive-filter a.krish-size-pill.krish-size-pill-circle,
a.krish-size-pill.krish-size-pill-circle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

/* Longer labels (XXL, 3XL, Free Size, etc.) → rounded pill */
.krish-size-archive-filter a.krish-size-pill.krish-size-pill-long,
a.krish-size-pill.krish-size-pill-long {
    min-width: 52px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
}

.krish-size-archive-filter a.krish-size-pill:hover,
.krish-size-archive-filter a.krish-size-pill:focus,
a.krish-size-pill:hover,
a.krish-size-pill:focus {
    border-color: #000 !important;
    background: #000 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22) !important;
    transform: translateY(-2px);
    text-decoration: none !important;
    outline: 0 !important;
}

.krish-size-archive-filter a.krish-size-pill.krish-size-pill-selected,
.krish-size-archive-filter a.krish-size-pill.krish-size-pill-selected:hover,
a.krish-size-pill.krish-size-pill-selected,
a.krish-size-pill.krish-size-pill-selected:hover {
    border-color: #059473 !important;
    background: #059473 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(5, 148, 115, 0.35) !important;
}

/* "Clear size filter" link shown only when a filter is active */
.krish-size-filter-clear {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    color: #059473;
    text-decoration: underline;
}
.krish-size-filter-clear:hover {
    color: #000;
}

/* Mobile — keep horizontal, just compact */
@media (max-width: 767px) {
    .krish-size-archive-filter {
        margin: 10px 0 16px !important;
        padding: 12px 0 !important;
    }
    .krish-size-filter-title {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }
    ul.krish-size-filter-list {
        gap: 8px !important;
    }
    .krish-size-archive-filter a.krish-size-pill,
    a.krish-size-pill {
        font-size: 12px !important;
    }
    .krish-size-archive-filter a.krish-size-pill.krish-size-pill-circle,
    a.krish-size-pill.krish-size-pill-circle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        min-height: 38px !important;
    }
    .krish-size-archive-filter a.krish-size-pill.krish-size-pill-long,
    a.krish-size-pill.krish-size-pill-long {
        min-width: 46px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 16px !important;
    }
}

/* Adjust shadow on hover for the whole card */
.product-wrapper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    padding: 10px;
}

.product-wrapper:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

/* Disable hover-lift on touch devices to avoid sticky :hover after tap */
@media (hover: none) {
    .product-wrapper:hover {
        transform: none;
    }
}

/* =============================================================
   product-style-3 specific overrides
   In product-style-3 the wishlist is rendered as a STANDALONE
   .whishlist-button at .product-image > .whishlist-button (sibling
   of .product-buttons), and the compare link is rendered outside
   the buttons stack. We re-stack them visually + restyle the
   wishlist to match the circular icon-button design of quick view
   and cart.
   ============================================================= */

/* Hide the standalone compare button rendered outside .product-buttons */
.product-wrapper > .compare,
.product-wrapper a.compare.button,
.product-wrapper > a.compare {
    display: none !important;
}

/* Make .product-image a positioning context (it already is, but force it) */
.products .product-wrapper .product-image {
    position: relative !important;
}

/* Standalone wishlist (product-style-3): TOP slot of the right-edge stack */
.products.product-style-3 .product-wrapper .product-image > .whishlist-button,
.products .product-wrapper .product-image > .whishlist-button {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 11 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: block !important;
}

/* Push the .product-buttons stack DOWN so wishlist sits above it */
.products.product-style-3 .product-wrapper .product-image .product-buttons,
.products .product-wrapper .product-image .product-buttons {
    position: absolute !important;
    top: 62px !important;          /* 12 (wishlist top) + 40 (wishlist h) + 10 (gap) */
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Style the standalone wishlist anchor / YITH AJAX block as a 40px white circle */
.product-wrapper .product-image > .whishlist-button .yith-wcwl-add-to-wishlist,
.product-wrapper .product-image > .whishlist-button .yith-add-to-wishlist-button-block,
.product-wrapper .product-image > .whishlist-button .yith-wcwl-add-button,
.product-wrapper .product-image > .whishlist-button a,
.product-wrapper .product-image > .whishlist-button button,
.product-wrapper .product-image > .whishlist-button a.yith-wcwl-add-to-wishlist-button {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    background: #fff !important;
    color: #212121 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    font-size: 0 !important;
    transition: all 0.25s ease !important;
    padding: 0 !important;
    text-decoration: none !important;
    border: 0 !important;
    outline: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* The empty AJAX block container is the visible circle BEFORE JS injects an <a>.
   After JS runs the <a> inside is the circle and the wrapper collapses. */
.product-wrapper .product-image > .whishlist-button .yith-add-to-wishlist-button-block:has(a),
.product-wrapper .product-image > .whishlist-button .yith-wcwl-add-button:has(a),
.product-wrapper .product-image > .whishlist-button .yith-wcwl-add-to-wishlist:has(a) {
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    display: inline-block !important;
}

/* Heart glyph via ::before — paint on whichever element ends up being the visible circle */
.product-wrapper .product-image > .whishlist-button .yith-add-to-wishlist-button-block:not(:has(a))::before,
.product-wrapper .product-image > .whishlist-button a::before,
.product-wrapper .product-image > .whishlist-button a.yith-wcwl-add-to-wishlist-button::before {
    content: "\e909" !important;
    font-family: 'presslayouts-font' !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: normal !important;
    display: inline-block !important;
    color: #212121 !important;
    margin: 0 !important;
}

/* Hide YITH inner SVG / <i> / text label so only our heart glyph shows */
.product-wrapper .product-image > .whishlist-button svg,
.product-wrapper .product-image > .whishlist-button i,
.product-wrapper .product-image > .whishlist-button .yith-wcwl-icon,
.product-wrapper .product-image > .whishlist-button .yith-wcwl-icon-svg,
.product-wrapper .product-image > .whishlist-button .yith-wcwl-add-to-wishlist-button-text,
.product-wrapper .product-image > .whishlist-button .feedback,
.product-wrapper .product-image > .whishlist-button .ajax-loading,
.product-wrapper .product-image > .whishlist-button .clear,
.product-wrapper .product-image > .whishlist-button br,
.product-wrapper .product-image > .whishlist-button .yith-wcwl-add-to-wishlist-button > span {
    display: none !important;
}

/* Standalone wishlist hover + focus reset (kill any green border) */
.product-wrapper .product-image > .whishlist-button a:hover,
.product-wrapper .product-image > .whishlist-button button:hover,
.product-wrapper .product-image > .whishlist-button .yith-add-to-wishlist-button-block:hover {
    background: #059473 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    border: 0 !important;
    outline: 0 !important;
    transform: translateY(-1px);
}
.product-wrapper .product-image > .whishlist-button a:hover::before,
.product-wrapper .product-image > .whishlist-button .yith-add-to-wishlist-button-block:hover::before {
    color: #fff !important;
}

/* Added / browse-wishlist state — stays green */
.product-wrapper .product-image > .whishlist-button .yith-wcwl-wishlistaddedbrowse a,
.product-wrapper .product-image > .whishlist-button .yith-wcwl-wishlistexistsbrowse a,
.product-wrapper .product-image > .whishlist-button a.yith-wcwl-add-to-wishlist-button--browse,
.product-wrapper .product-image > .whishlist-button a.yith-wcwl-add-to-wishlist-button--added {
    background: #059473 !important;
    color: #fff !important;
}
.product-wrapper .product-image > .whishlist-button .yith-wcwl-wishlistaddedbrowse a::before,
.product-wrapper .product-image > .whishlist-button .yith-wcwl-wishlistexistsbrowse a::before,
.product-wrapper .product-image > .whishlist-button a.yith-wcwl-add-to-wishlist-button--browse::before,
.product-wrapper .product-image > .whishlist-button a.yith-wcwl-add-to-wishlist-button--added::before {
    color: #fff !important;
}

/* Standalone wishlist focus reset (no green outline ring) */
.product-wrapper .product-image > .whishlist-button a:focus,
.product-wrapper .product-image > .whishlist-button a:focus-visible,
.product-wrapper .product-image > .whishlist-button a:active,
.product-wrapper .product-image > .whishlist-button button:focus,
.product-wrapper .product-image > .whishlist-button button:focus-visible,
.product-wrapper .product-image > .whishlist-button button:active {
    outline: 0 !important;
    border: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* =============================================================
   Kill the green border on Quick View — product-style-3 specific
   theme.css gives .quickview-btn / .quickview-button a some default
   button styling. Force-flatten everything except our circle look.
   ============================================================= */
.products.product-style-3 .product-wrapper .product-buttons .quickview-button a,
.products.product-style-3 .product-wrapper .product-buttons .quickview-button a.quickview-btn,
.products.product-style-3 .product-wrapper .product-buttons .cart-button a,
.products.product-style-3 .product-wrapper .product-buttons .cart-button a.button,
.products.product-style-3 .product-wrapper .product-buttons .cart-button a.add_to_cart_button,
.products.product-style-3 .product-wrapper .product-buttons .cart-button a.product_type_variable {
    background: #fff !important;
    background-color: #fff !important;   /* override theme.css line 6788 #e1e1e1 */
    color: #212121 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Quick View / Cart focus + active reset — definitively no green ring */
.products.product-style-3 .product-wrapper .product-buttons .quickview-button a:focus,
.products.product-style-3 .product-wrapper .product-buttons .quickview-button a:focus-visible,
.products.product-style-3 .product-wrapper .product-buttons .quickview-button a:active,
.products.product-style-3 .product-wrapper .product-buttons .cart-button a:focus,
.products.product-style-3 .product-wrapper .product-buttons .cart-button a:focus-visible,
.products.product-style-3 .product-wrapper .product-buttons .cart-button a:active {
    background: #fff !important;
    background-color: #fff !important;
    color: #212121 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}
.products.product-style-3 .product-wrapper .product-buttons .quickview-button a:focus::before,
.products.product-style-3 .product-wrapper .product-buttons .cart-button a:focus::before {
    color: #212121 !important;
}

/* Quick View / Cart hover — green */
.products.product-style-3 .product-wrapper .product-buttons .quickview-button a:hover,
.products.product-style-3 .product-wrapper .product-buttons .cart-button a:hover {
    background: #059473 !important;
    background-color: #059473 !important;
    color: #fff !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    transform: translateY(-1px);
}
.products.product-style-3 .product-wrapper .product-buttons .quickview-button a:hover::before,
.products.product-style-3 .product-wrapper .product-buttons .cart-button a:hover::before {
    color: #fff !important;
}

/* Mobile — shrink the stacked buttons */
@media (max-width: 767px) {
    .products .product-wrapper .product-image > .whishlist-button {
        top: 8px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
    }
    .product-wrapper .product-image > .whishlist-button .yith-wcwl-add-to-wishlist,
    .product-wrapper .product-image > .whishlist-button .yith-add-to-wishlist-button-block,
    .product-wrapper .product-image > .whishlist-button .yith-wcwl-add-button,
    .product-wrapper .product-image > .whishlist-button a,
    .product-wrapper .product-image > .whishlist-button button {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
    }
    .product-wrapper .product-image > .whishlist-button a::before,
    .product-wrapper .product-image > .whishlist-button .yith-add-to-wishlist-button-block:not(:has(a))::before {
        font-size: 14px !important;
    }
    .products .product-wrapper .product-image .product-buttons {
        top: 48px !important;             /* 8 + 32 + 8 */
        right: 8px !important;
        gap: 6px !important;
    }
    .products.product-style-3 .product-wrapper .product-buttons .quickview-button a,
    .products.product-style-3 .product-wrapper .product-buttons .cart-button a {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
    }
    .products.product-style-3 .product-wrapper .product-buttons .quickview-button a::before,
    .products.product-style-3 .product-wrapper .product-buttons .cart-button a::before {
        font-size: 14px !important;
    }
}
