/* custom styles */
.product-img {
    width: 100%; /* responsive width */
    height: 250px; /* fixed visual height for uniformity */
    object-fit: cover; /* crop image nicely without distortion */
    border-radius: 6px; /* optional rounded corners */
}

.product-title-grid {
    min-height: 3.6em; /* around 3 lines of text */
    line-height: 1.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* show max 3 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-title a {
    text-decoration: none;
    color: #333;
}

    .product-title a:hover {
        color: #007bff;
    }


/* Container widget styling */
.widget.category-list {
    background: #fff;
    /*padding: 10px;*/
}

    /* Scroll only inside the UL */
    .widget.category-list ul.category-list {
        max-height: 300px; /* default desktop height */
        overflow-y: hidden; /* hide scroll by default */
        padding-right: 5px;
        margin: 0;
        list-style: none;
        transition: all 0.3s ease;
    }

        /* Show scrollbar on hover */
        .widget.category-list ul.category-list:hover {
            overflow-y: auto;
        }

        /* Scrollbar styling (Webkit browsers) */
        .widget.category-list ul.category-list::-webkit-scrollbar {
            width: 6px;
        }

        .widget.category-list ul.category-list::-webkit-scrollbar-track {
            background: transparent;
        }

        .widget.category-list ul.category-list::-webkit-scrollbar-thumb {
            background: rgba(136,136,136,0.5);
            border-radius: 3px;
        }

            .widget.category-list ul.category-list::-webkit-scrollbar-thumb:hover {
                background: rgba(85,85,85,0.7);
            }

/* Responsive heights */
@media (max-width: 992px) {
    .widget.category-list ul.category-list {
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .widget.category-list ul.category-list {
        max-height: 200px;
    }
}

.category-block:hover {
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    cursor: pointer;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.quantity-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.qty-btn {
    /*background-color: #f0f0f0;*/
    border: none;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
}

.qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: none;
    outline: none;
}

.add-to-cart {
    /*    background-color: #28a745;
    color: #fff;*/
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

/*    .add-to-cart:hover {
        background-color: #218838;
    }*/

.arrow-right{
    right: -0px;
}

.product-slider-1 {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    max-width: 730px;
    margin: 0 auto;
    padding-bottom: 10px;
}

    .product-slider-1::-webkit-scrollbar {
        height: 8px;
    }

    .product-slider-1::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

.product-slider-item-1 {
    flex: 0 0 auto;
    width: 100%;
    max-width: 730px;
    aspect-ratio: 420 / 275;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .product-slider-item-1 img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

.product-gallery {
    max-width: 730px;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    aspect-ratio: 420 / 280;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
}

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.thumb-list {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
}

    .thumb-list img {
        width: 130px;
        height: 100px;
        object-fit: cover;
        cursor: pointer;
        border-radius: 4px;
        border: 2px solid transparent;
        transition: border 0.2s;
    }

        .thumb-list img:hover {
            border-color: #5672f9;
        }

.form-check {
    padding-left: 1.5rem;
}
.form-check-label {
    cursor: pointer;
}

.form-checkbox {
    transform: scale(1.8);
    cursor: pointer;
}

.cart-btn-sm {
    padding: .35rem .6rem;
}
.cart-img{
    width: 100px;
    height: 100px;
    object-fit: cover;
}

@media (max-width: 576px) {
    .cart-img {
        width: 100%;
        height: auto;
        padding-bottom: 1rem;
    }
}

.delete-item {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 999; /* ensure it's on top */
    cursor: pointer;
}

.widget ul li a.active {
    color: #007bff !important; /* highlight color */
    font-weight: bold; /* bold text */
}

/* phone country library css update */
.iti {
    position: relative;
    display: inherit !important;
}

.autocomplete-list {
    position: absolute;
    z-index: 9999;
    width: 93%;
    max-height: 220px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: none;
}

.autocomplete-list li {
    padding: 8px 12px;
    cursor: pointer;
}

.autocomplete-list li.active,
.autocomplete-list li:hover {
    background: #007bff;
    color: white;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

    #spinner.show {
        transition: opacity .5s ease-out, visibility 0s linear 0s;
        visibility: visible;
        opacity: 1;
    }






