.img-category {
    text-align: center;
    border: 1px solid #e7eef4;
    background: #e7eef4;
    color: #0b0b0b;
    border-radius: 10px;
    transition: all 0.3s ease;
    /* or for specific properties: */
    /* transition: border 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; */
}

.img-category:hover {
    border: 1px solid #02447e;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(2, 68, 126, 0.15);
}

.img-category:hover .img-sec,
.img-category.hover-effect .img-sec {
    border: 0px solid var(--accent-color);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.service-w-bg.tools-service {
    padding: 15px 0 0 0;
    background: #fff;
}

/* .img-category:hover {
	border-bottom: 3px solid #3594bf;
} */

.img-category .img-sec {
    border-radius: 0;
    margin: 0 auto;
    width: 50%;
    border: 0px solid var(--theme-color);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: 20px auto;
}

.img-category h4 {
    text-transform: capitalize;
    margin-top: 12px;
    color: #000;
    font-weight: 400;
    line-height: 1.3;
    display: inline-block;
    position: relative;
    z-index: 1;
    font-size: 12px;
}

.title2 .title-inner2:after {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #3594bf;
    opacity: 0.4;
    content: "";
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -15px;
    z-index: -1;
}

.title2 .title-inner2 {
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    padding: 0 25px;
    margin-top: 30px;
    text-transform: capitalize;
    font-size: 24px;
    font-weight: 600;
    color: #02447e;
}

/* Premium Slick Arrows for Product Slider */
.best-product-slider {
    position: relative;
}

.best-product-slider .slick-prev,
.best-product-slider .slick-next {
    background: #ffffff !important;
    border: 1px solid #e7eef4 !important;
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 10;
    top: -55px; /* Position in line with title margin */
}

.best-product-slider .slick-prev {
    right: 55px !important;
    left: auto !important;
}

.best-product-slider .slick-next {
    right: 0 !important;
}

/* Ensure default slick icons are removed */
.best-product-slider .slick-prev::before,
.best-product-slider .slick-next::before {
    font-family: "remixicon" !important;
    color: #02447e !important;
    font-size: 22px !important;
    opacity: 1 !important;
    line-height: 1;
    display: block !important;
}

.best-product-slider .slick-prev::before {
    content: "\ea64" !important; /* arrow-left-s-line */
}

.best-product-slider .slick-next::before {
    content: "\ea6e" !important; /* arrow-right-s-line */
}

.best-product-slider .slick-prev:hover,
.best-product-slider .slick-next:hover {
    background: #02447e !important;
    border-color: #02447e !important;
    /* Removed transform: translateY(-2px) as requested */
    box-shadow: 0 6px 15px rgba(2, 68, 126, 0.2);
}

.best-product-slider .slick-prev:hover::before,
.best-product-slider .slick-next:hover::before {
    color: #ffffff !important;
}

/* Equal Height Slider Row Fixes */
.best-product-slider .slick-track {
    display: flex !important;
    align-items: stretch !important;
}

.best-product-slider .slick-slide {
    height: auto !important;
    display: flex !important;
}

.best-product-slider .slick-slide > div {
    display: flex !important;
    width: 100% !important;
}


/* Adjust for mobile */
@media (max-width: 767px) {
    /* Clip the slick track so it doesn't bleed outside the page */
    .best-product-slider .slick-list {
        overflow: hidden !important;
    }

    /* Constrain the slider wrapper itself - Removed overflow:hidden to show arrows */
    .best-product-slider {
        max-width: 100% !important;
        position: relative !important;
    }

    /* Mobile arrow sizing and visibility */
    .best-product-slider .slick-prev,
    .best-product-slider .slick-next {
        display: flex !important; /* Ensure they are visible */
        width: 30px !important;
        height: 30px !important;
        top: -38px !important; /* Adjusted to fit title space better on mobile */
    }

    .best-product-slider .slick-prev {
        right: 40px !important;
        left: auto !important;
    }

    .best-product-slider .slick-next {
        right: 0 !important;
    }

    .best-product-slider .slick-prev::before,
    .best-product-slider .slick-next::before {
        font-size: 18px !important;
    }

    /* Prevent horizontal overflow on mobile from fractional slides */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}

/* Global product styling moved to commonstyle.css for site-wide consistency */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .title2 .title-inner2 {
        margin-bottom: 45px;
        font-size: 18px;
    }

    .img-category h4 {
        text-transform: capitalize;
        margin-top: 12px;
        color: #000;
        font-weight: 300;
        line-height: 1.3;
        display: inline-block;
        position: relative;
        z-index: 1;
        font-size: 12px;
    }
}

/* Floating Sticky Cart (Chatbot Style) */
.sticky-bottom-cart {
    width: 320px !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    background: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(2, 68, 126, 0.2) !important;
    padding: 15px !important;
    border: 1px solid rgba(2, 68, 126, 0.1) !important;
    height: auto !important;
    transition: all 0.3s ease !important;
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    z-index: 9999 !important;
}

/* Show state - controlled by theme JS */
.stickyCart .sticky-bottom-cart {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.sticky-bottom-cart .container-fluid,
.sticky-bottom-cart .container {
    padding: 0 !important;
    max-width: 100% !important;
}

.sticky-bottom-cart .cart-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 !important;
    width: 100% !important;
    justify-content: flex-start !important;
    background: transparent !important;
}

.sticky-bottom-cart .product-image {
    width: 100% !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
}

.sticky-bottom-cart .product-image img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    margin-right: 12px !important;
    background: #f8f9fa !important;
    padding: 5px !important;
}

.sticky-bottom-cart .product-image .content {
    margin: 0 !important;
    display: block !important;
}

.sticky-bottom-cart .product-image .content h5 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
    color: #333 !important;
    font-weight: 600 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
}

.sticky-bottom-cart .product-image .content h6 {
    font-size: 16px !important;
    margin: 0 !important;
    color: #02447e !important;
    font-weight: 700 !important;
}

.sticky-bottom-cart .product-image .content h6 del {
    font-size: 12px !important;
    color: #999 !important;
    margin-left: 5px !important;
}

.sticky-bottom-cart .add-btn {
    width: 100% !important;
    margin: 0 !important;
}

.sticky-bottom-cart .add-btn .btn {
    width: 100% !important;
    padding: 12px !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: #02447e !important;
    color: #fff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.sticky-bottom-cart .add-btn .btn:hover {
    background: #013360 !important;
    box-shadow: 0 4px 15px rgba(2, 68, 126, 0.3) !important;
}

/* Mobile adjustments */
@media (max-width: 575px) {
    .sticky-bottom-cart {
        width: calc(100% - 30px) !important;
        left: 15px !important;
        right: 15px !important;
        bottom: 15px !important;
        border-radius: 12px !important;
    }
}
