/* ====================== */
/* Combined Slider Container Styles */
/* ====================== */

/* Main Container */
.amazon-slider-container {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.amazon-slider-sidebar-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Slider Base */
.amazon-product-slider {
    display: flex;
    gap: 20px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    padding: 10px 5px;
    margin: 0px 0;
}

.amazon-product-slider::-webkit-scrollbar {
    display: none;
}

/* ====================== */
/* Individual Slide Styles */
/* ====================== */
.amazon-product-slide {
    flex: 0 0 auto;
    width: calc((80% / 4) - 20px);
    max-width: 220px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ====================== */
/* Title Styles - NOW ABOVE IMAGE */
/* ====================== */
.amazon-product-title-container {
    order: 1;
    min-height: 3.8em;
    background: #fa9bd9;
    color: #333;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    border-radius: 8px 8px 0 0;
    margin: 0;
    line-height: 1.3;
    z-index: 2;
    font-weight: 600;
}

/* ====================== */
/* Image Container Styles */
/* ====================== */
.amazon-product-image {
    order: 2;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
}

.amazon-product-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
    background: #cee1f2;
}

.amazon-product-slide:hover img {
    transform: scale(1.05);
}

/* ====================== */
/* Button Container Styles */
/* ====================== */
.amazon-product-button-container {
    order: 3;
    text-align: center;
    padding: 5px 0 !important;
    margin-top: -8px;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.amazon-product-button {
    display: inline-block;
    background: #FF9900;
    color: white !important;
    padding: 4px 8px !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px !important;
    font-weight: bold;
    transition: background 0.2s;
    line-height: 1.2;
}

.amazon-product-button:hover {
    background: #e88a00;
}

/* ====================== */
/* Placeholder Styles */
/* ====================== */
.amazon-product-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #777;
    font-size: 10px;
    border-radius: 8px 8px 0 0;
}

/* ====================== */
/* Slick Carousel Styles */
/* ====================== */
.slick-initialized {
    display: block;
}

.slick-slide {
    display: inline-block;
    width: 100%;
    margin: 0 5px;
}

.slick-prev, .slick-next {
    position: absolute;
    top: 30%;
    z-index: 10;
    background-color: rgba(255,255,255,0.5);
    color: #fff;
}

.slick-prev {
    left: 10px;
    transform: translateY(-50%);
}

.slick-next {
    right: 10px;
    transform: translateY(-50%);
}

.slick-prev:hover,
.slick-next:hover {
    background-color: #000000;
    opacity: 0.7;
}

/* ====================== */
/* Responsive Adjustments */
/* ====================== */
.shop-support-note {
    font-style: italic;
    font-size: small;
    display: inline-block;
    text-align: center;
    width: 100%;
    line-height: 1.2;
    margin-bottom: -50px !important;
}

@media (max-width: 480px) {
    .shop-support-note {
        line-height: 1.1;
        font-size: 13px;
    }
}


@media (max-width: 1024px) {
    .amazon-product-slide {
        width: calc((80% / 3) - 18px);
    }
}

@media (max-width: 768px) {
    .amazon-product-slider {
        gap: 15px;
    }
    
    .amazon-product-slide {
        width: calc((80% / 2) - 15px);
    }
}

@media (max-width: 480px) {
    .amazon-product-slide {
        width: calc(80% - 10px);
    }
}