/* For screens wider than 1200px */
@media (min-width: 1200px) {
    .product-image img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 300px;
        object-fit: contain;
    }
    .product-image {
        display: flex;
        align-items: center;
        max-height: 400px;
        min-height: 200px;
        justify-content: center;
    }
    .container {
        width: 85%;
        margin: 0 auto;
    }
    .product {
        height: 460px; /* Set a fixed height for all products on larger screens */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .owl-item {
        padding: 10px !important;
    }
}

.product {
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(226, 0, 0);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-image {
    margin-bottom: 10px;
}

.product-info {
    text-align: center;
    padding: 10px; /* Add padding to ensure text doesn't touch the edges */
}

.product img,
.custom-image {
    width: 100%;
    height: auto;
}

#image-gallery .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#image-gallery .image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#image-gallery .image-container img:hover {
    filter: brightness(0.8);
}

.icon-remove-sign {
    color: white;
    background-color: black;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.icon-remove-sign:hover {
    background-color: #31b1d8;
}

#owl-main .owl-pagination {
    background: transparent !important;
    line-height: inherit;
    position: relative;
    bottom: 30px;
    padding: 10px;
    display: inline-block;
    border-radius: 3px;
    margin: auto;
    opacity: 0;
    transition: all 200ms ease-out;
}

#owl-main .owl-pagination .owl-page span {
    display: block;
    width: 40px;
    height: 7px;
    background: rgba(255, 0, 0, 0);
    border-radius: 10%;
    margin: 0 5px;
    transition: all 200ms ease-out;
}

.owl-carousel .owl-dots .owl-dot:hover,
.scroll-tabs .nav-tab-line li a:hover,
.scroll-tabs .nav-tab-line li a:focus,
#owl-main .owl-pagination .owl-page span:hover,
.owl-carousel .owl-dot.active,
.owl-carousel .owl-prev:hover,
.owl-carousel .owl-next:hover {
    background-color: #31b1d8 !important;
    color: white !important;
}

#owl-main .owl-pagination .owl-page span {
    background-color: gray !important;
}

.owl-carousel .item {
    display: flex;
    justify-content: center;
    padding: 10px; /* Adds space between items */
}

.owl-carousel .product-card,
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 420px;
    transition: transform 0.3s ease;
    text-align: center;
}

.owl-carousel .product-card {
    width: 100%;
    max-width: 300px;
}

.product-card:hover {
    transform: scale(1.03);
}

.product-image img {
    max-height: 250px;
    width: auto;
    max-width: 205px;
    object-fit: contain;
    margin-bottom: 15px;
    min-height: 180px;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3em;
    height: 2.6em; /* Force height to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show max 2 lines */
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.product-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.product-icons a {
    font-size: 18px;
    color: #31b1d8;
    transition: color 0.3s ease;
}

.product-icons a:hover {
    color: #ff6f61;
}

.section-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #31b1d8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
