/* white you custom css code here. only css code will work */

/* ============================================================
   Product card action bar
   All card actions stay in one horizontal row, are always
   visible, and never wrap or stack vertically.
   ============================================================ */

/* Lets the action labels switch to icon-only on narrow cards. */
.single-product-item {
    container-type: inline-size;
}

/* Text action cards: Quickview / Wish List / Compare / Cart */
.single-product-item .product-img-box .hover,
.trendy-item-wrapper .single-product-item .product-img-box .hover,
.single-product-item:hover .product-img-box .hover,
.trendy-item-wrapper .single-product-item:hover .product-img-box .hover {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 3 !important;
    width: 100% !important;
    padding: 7px 8px !important;
    background-color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.single-product-item .product-img-box .hover .list {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    text-align: center;
}

.single-product-item .product-img-box .hover .list li {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
}

.single-product-item .product-img-box .hover .list li a {
    display: block;
    width: 100%;
    padding: 4px 2px;
    /* Narrow cards use the icons only so all four actions fit. */
    font-size: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-product-item .product-img-box .hover .list li a i {
    padding-left: 0 !important;
    font-size: 16px;
    line-height: 1.2;
    vertical-align: middle;
}

/* Wide cards have enough room for the action labels. */
@container (min-width: 340px) {
    .single-product-item .product-img-box .hover .list {
        justify-content: space-evenly;
    }

    .single-product-item .product-img-box .hover .list li {
        flex: 0 1 auto;
    }

    .single-product-item .product-img-box .hover .list li a {
        padding: 3px 2px;
        font-size: 10px;
    }

    .single-product-item .product-img-box .hover .list li a i {
        padding-left: 3px !important;
        font-size: 12px;
    }
}

/* Icon action cards (product-card-02 / 03 / 04) */
.single-new-popular-dress-item .img-box .hover,
.single-new-popular-dress-item:hover .img-box .hover {
    bottom: 0 !important;
    z-index: 3;
    opacity: 1 !important;
}

.single-new-popular-dress-item .img-box .hover .product-interaction-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0 6px 8px;
    list-style: none;
}

.single-new-popular-dress-item .img-box .hover .product-interaction-list li,
.single-new-popular-dress-item:hover .img-box .hover .product-interaction-list li {
    margin: 0 !important;
}

@media only screen and (max-width: 575px) {
    .single-new-popular-dress-item .img-box .hover .product-interaction-list li a,
    .single-new-popular-dress-item .img-box .hover .product-interaction-list li a::before,
    .single-new-popular-dress-item .img-box .hover .product-interaction-list li a::after {
        width: 40px;
        height: 40px;
    }

    .single-new-popular-dress-item .img-box .hover .product-interaction-list li a .icon {
        font-size: 16px;
        line-height: 41px;
    }
}

/* ============================================================
   Site-wide image consistency
   Fixed image frames, subtle card borders and product hover zoom
   ============================================================ */

/* Product card surfaces keep their sizing; the ring is drawn with a
   box-shadow so adding the border never shifts the layout. */
.single-product-item,
.single-new-popular-dress-item,
.single-shop-list-item {
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 0 1px #ececec;
    transition: box-shadow 0.25s ease;
}

.single-product-item:hover,
.single-new-popular-dress-item:hover,
.single-shop-list-item:hover {
    box-shadow: 0 0 0 1px #e3e3e3, 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Equal card heights inside a row while the image frame stays fixed. */
.single-product-item,
.single-new-popular-dress-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.single-product-item .product-details-wrap,
.single-new-popular-dress-item .content {
    flex: 1 1 auto;
}

/* Fixed product image frames (3:4 portrait, consistent at every width). */
.single-product-item .product-img-box,
.single-new-popular-dress-item .img-box {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ececec;
    background-color: #f8f8f8;
}

@supports (aspect-ratio: 3 / 4) {
    .single-product-item .product-img-box,
    .single-new-popular-dress-item .img-box {
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

.single-product-item .product-img-box img,
.single-new-popular-dress-item .img-box img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    /* Keep the complete product image visible inside the card frame. */
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
}

/* Background-image based product cards (styles 03 / 04). */
.single-new-popular-dress-item .img-box .product-bg-img {
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.35s ease;
}

/* Keep the whole product image visible on hover as well (no zoom cropping). */
.single-product-item:hover .product-img-box img,
.single-new-popular-dress-item:hover .img-box img,
.single-new-popular-dress-item:hover .img-box .product-bg-img {
    transform: none;
}

/* Content stays inside the bordered card. */
.single-product-item .product-details-wrap {
    padding: 16px 14px 18px;
}

.single-new-popular-dress-item .content {
    padding: 16px 14px 18px;
}

/* Shop grid view: 5px vertical gap so adjacent product rows do not touch. */
.shop-area-wrapper .product-grid-row {
    row-gap: 5px;
}

/* Subcategory product grid: balanced vertical gap between product rows. */
.shop-area-wrapper .product-grid-row-spaced {
    row-gap: 30px;
}

@media only screen and (max-width: 575px) {
    .shop-area-wrapper .product-grid-row-spaced {
        row-gap: 20px;
    }
}

/* Shop list view: fixed thumbnail, bordered row card. */
.product-wrap .single-shop-list-item {
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-bottom: 0;
    margin-bottom: 16px;
}

.product-wrap .single-shop-list-item .product-img-box {
    flex: 0 0 235px;
    width: 235px;
    height: 235px;
    /* 235 x 235 container = 1:1 image ratio. */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ececec;
    background-color: #f8f8f8;
}

.product-wrap .single-shop-list-item .product-img-box img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-wrap .single-shop-list-item:hover .product-img-box img {
    transform: none;
}

/* Background-image product boxes (sale product sections). */
.single-product-item .sale-product-img-box {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Header mega-menu / category menu product thumbnails: show the whole image. */
.xg-mega-menu-single-column-wrap ul .single-mega-menu-product-item .thumbnail img,
.navbar-area.nav-style-03.side-menu .category-menu-product-wrap .left-side img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Quick view product image. */
.product-modal-wrap .product-modal .product-img img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Product gallery on the details page. */
.shop-details-area-wrapper .product-view-wrap .main-product-image-wrap .product-main-image {
    transition: transform 0.35s ease;
}

.shop-details-area-wrapper .product-view-wrap .main-product-image-wrap:hover .product-main-image {
    transform: none;
}

/* Category cards. */
.single-category-new-style-01 {
    border-radius: 10px;
    box-shadow: 0 0 0 1px #ececec;
    transition: box-shadow 0.25s ease;
}

.single-category-new-style-01:hover {
    box-shadow: 0 0 0 1px #e3e3e3, 0 8px 20px rgba(15, 23, 42, 0.07);
}

.single-category-new-style-01 .img-box img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-category-new-style-01:hover .img-box img {
    transform: scale(1.08);
}

/* Thumbnails in cart, wishlist, compare and the mini cart. */
.cart-box table .thumb img,
.quick-cart .single-row .img-box img {
    display: block;
    width: 75px;
    height: 75px;
    max-width: 75px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #ececec;
}

.produdt-compare-box table thead tr th .img-box {
    max-height: none;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ececec;
    background-color: #f8f8f8;
}

.produdt-compare-box table thead tr th .img-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Blog / content card images. */
.blog-grid-area-wrapper .img-box,
.news-update-area-wrapper .single-news-update-item .img-box {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #ececec;
}

.blog-grid-area-wrapper .img-box img,
.news-update-area-wrapper .single-news-update-item .img-box img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-grid-area-wrapper .img-box:hover img,
.news-update-area-wrapper .single-news-update-item .img-box:hover img {
    transform: scale(1.04);
}

/* Mobile: keep product images visible in shop, subcategory and related lists. */
@media only screen and (max-width: 767px) {
    .shop-area-wrapper .single-product-item .product-img-box,
    .related-item-area-wrapper .single-product-item .product-img-box {
        display: block !important;
        width: 100% !important;
        height: 300px !important;
        min-height: 300px;
        max-height: 300px;
        aspect-ratio: auto !important;
        overflow: hidden;
    }

    .shop-area-wrapper .single-product-item .product-img-box img,
    .related-item-area-wrapper .single-product-item .product-img-box img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        object-fit: contain;
        object-position: center;
    }
}

@media only screen and (max-width: 575px) {
    .shop-area-wrapper.grid-only .single-product-item {
        display: flex !important;
        width: 100%;
        left: auto;
        text-align: left;
        transform: none;
    }

    .shop-area-wrapper .single-product-item .product-img-box,
    .related-item-area-wrapper .single-product-item .product-img-box {
        height: 320px !important;
        min-height: 320px;
        max-height: 320px;
    }
}

@media only screen and (max-width: 450px) {
    .related-item-area-wrapper .single-product-item {
        position: relative;
        display: flex !important;
        left: auto;
        width: 100%;
        transform: none;
    }
}

@media only screen and (max-width: 767px) {
    .product-wrap .single-shop-list-item {
        flex-direction: column;
        align-items: stretch;
    }

    .product-wrap .single-shop-list-item .product-img-box {
        flex: 0 0 auto;
        width: 100%;
        height: 260px;
    }

    .produdt-compare-box table thead tr th .img-box {
        height: 200px;
    }
}