/* File: css/dhgate-products.css */

.dhgate-products-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.dhgate-product {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 100%; /* Ensure full width */
    box-sizing: border-box;
}

.dhgate-seller-title {
    font-size: 22px;
    margin-bottom: 10px;
    text-align: left;
}

.swiper {
    width: 100%;
    height: 400px; /* Fixed height */
    margin-bottom: 10px;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
    padding-left: 1.5px; /* Reduced from 10px */
    padding-right: 1.5px; /* Reduced from 10px */
}

.swiper-slide {
    width: 250px; /* Fixed width */
    height: 400px; /* Fixed height */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    /* Remove opacity and transition */
    transition: none;
    opacity: 1;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    max-width: 250px; /* Ensure maximum width */
    height: 400px; /* Ensure fixed height */
}

/* Customize Swiper's preloader to use the loading GIF */
.swiper-lazy-preloader {
    background-image: url('https://your-site.com/wp-content/plugins/dhgate-products/images/loading.gif'); /* Replace with actual URL */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Ensure partial visibility by adjusting swiper-wrapper padding */

/* Optional: Adjust the z-index if preloader overlaps */
.swiper-slide .swiper-lazy-preloader {
    z-index: 10;
}

.dhgate-button-container {
    text-align: center; /* Center the button */
    margin-top: 10px;
}

.dhgate-button {
    display: inline-block;
    padding: 10px 16px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.dhgate-button:hover {
    background-color: #005177;
}

/* New Styles */

/* Styling for the product information section */
.dhgate-product-info {
    display: flex;
    gap: 20px;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: left;
}

/* Styling for the disclaimer */
.dhgate-disclaimer {
    font-size: 16px;
    color: black;
    margin-bottom: 10px;
    text-align: left;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .dhgate-product-info {
        flex-direction: column;
        gap: 5px;
    }
}
