/* ===============================
   PRODUCT CARD BASE
================================ */
/* ===============================
   CORNER ACTION BUTTONS
================================ */
.wc-corner-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all .35s ease;
    z-index: 5;
}

/* Active state (on click) */
.wc-card-image.active .wc-corner-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Buttons */
.wc-corner-actions .wc-hover-btn button,
.wc-corner-actions .wc-hover-btn a {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #111;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s ease;
}

.wc-corner-actions .wc-hover-btn:hover button,
.wc-corner-actions .wc-hover-btn:hover a {
    background: #111;
    color: #fff;
    transform: scale(1.05);
}

.wc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===============================
   Section Header
================================ */

.home-product-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
}

/* Grid */
.wc-product-grid {
    display: grid;
    gap: 20px;
}

.wc-product-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.wc-product-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.wc-product-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.wc-product-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }



.wc-product-card {
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wc-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,.15);
}

.wc-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ===============================
   IMAGE SECTION
================================ */
.wc-card-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.wc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.wc-product-card:hover .wc-card-img {
    transform: scale(1.08);
}

/* Discount badge */
.wc-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff4d4f;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 3;
}

/* ===============================
   HOVER ACTIONS (WISHLIST + INQUIRY)
================================ */
.wc-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    transition: opacity .35s ease;
}

.wc-product-card:hover .wc-card-image::after {
    opacity: 1;
}

/* Button container */
/* .wc-card-image .wc-hover-actions {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: all .35s ease;
    z-index: 4;
} */

.wc-product-card:hover .wc-hover-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Hover buttons */
.wc-hover-actions a,
.wc-hover-actions button {
    width: 44px;
    height: 44px;
    background: #fff;
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all .25s ease;
}

.wc-hover-actions a:hover,
.wc-hover-actions button:hover {
    background: #111;
    color: #fff;
}

/* ===============================
   CARD CONTENT
================================ */
.wc-card-content {
    padding: 16px 18px 18px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
     flex: 1;
}

.wc-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px;
}

.wc-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

.wc-price del {
    color: #999;
    font-weight: 400;
}

/* Rating */
.wc-rating {
    margin-bottom: 10px;
}

/* ===============================
   ADD TO CART (ALWAYS VISIBLE)
================================ */
.wc-card-content .add_to_cart_button,
.wc-card-content .button {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    text-decoration: none;
     margin-top:auto;
}

.wc-card-content .add_to_cart_button:hover,
.wc-card-content .button:hover {
    background: linear-gradient(135deg, #000, #000);
    transform: translateY(-1px);
}

/* ===============================
   SWATCHES
================================ */
.wc-swatches {
    display: flex;
    gap: 6px;
    margin: 10px 0;
}

.wc-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform .25s ease;
}

.wc-swatch:hover {
    transform: scale(1.1);
}

.wc-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   INQUIRY BUTTON (HOVER ONLY)
================================ */
.wc-inquiry-btn {
    background: none;
    border: none;
    padding: 0;
   
}

.wc-inquiry-btn a {
    text-decoration: none;
    font-size: 14px;
}
.yith-wcwl-add-to-wishlist-button__label{
    display: none;
}


.wc-add-to-cart{
    margin-top:auto;
    z-index: 3;
}

.wc-add-to-cart,
.wc-add-to-cart a,
.wc-add-to-cart button {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    text-align: center;
}



.wc-card-link {
    z-index: 1;
}
.wc-product-card {
    position: relative;
}

/* Full card link */
.wc-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Interactive elements ABOVE overlay */
.wc-hover-actions,
.wc-add-to-cart,
.wc-hover-actions *,
.wc-add-to-cart * {
    pointer-events: auto;
    text-decoration: none;
}

/* Prevent overlay from stealing button clicks */
.wc-card-link {
    pointer-events: auto;
}
.wc-hover-actions a:hover svg.yith-wcwl-add-to-wishlist-button-icon{
    color:white !important;
}

.yith_wcwl_wishlist_footer .yith-wcwl-share {
    float: none !important;
}


@media (max-width: 992px) {
    .wc-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===============================
   Mobile Carousel
================================ */

@media (max-width: 440px) {

    .wc-product-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }

    .wc-product-grid::-webkit-scrollbar {
        display: none;
    }

    .wc-product-card {
        max-width: 80%;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .wc-product-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }

    .wc-product-grid::-webkit-scrollbar {
        display: none;
    }

    .wc-product-card {
        max-width: 60%;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}