.sponsored-scroll-section {
    padding: 30px 0;
    
    overflow: hidden;
}

.sponsored-scroll-section .comp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(0, 242, 205, 0.21);
    border-radius: 20px;
}

.sponsored-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.sponsored-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f766e;
    letter-spacing: 1.5px;
}

.sponsored-title {
    font-size: 1.5rem;
    color: #0f172a;
    margin: 4px 0 0 0;
    font-weight: 700;
}

.sponsored-swipe-hint {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.sponsored-horizontal-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    scrollbar-width: thin;
}

.sponsored-card {
    flex: 0 0 210px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sponsored-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00b995;
    color: #fff;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
}

.sponsored-img-wrap {
    height: 135px;
    overflow: hidden;
}

/* Base image styling */
.sponsored-img-wrap img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Default/Small or Landscape images: fill nicely */
.sponsored-img-wrap img.img-cover {
    object-fit: cover;
    object-position: center;
}

/* Very long/tall portrait images: contain them so nothing is cut off, with a clean background padding if needed */
.sponsored-img-wrap img.img-contain {
    object-fit: contain;
    object-position: center;
    background-color: #f8fafc; /* Optional: subtle neutral padding background for letterboxing */
}

.sponsored-card:hover .sponsored-img-wrap img {
    transform: scale(1.05);
}

.sponsored-content {
    padding: 12px 14px;
}

.sponsored-vendor {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
}

.sponsored-product-name {
    font-size: 0.9rem;
    color: #0f172a;
    margin: 4px 0 10px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sponsored-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sponsored-price {
    font-size: 1rem;
    font-weight: 700;
    color: #0f766e;
}

.sponsored-btn {
    background: #0f172a;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.sponsored-btn:hover {
    background: #0f766e;
}

/* Sponsored Section Navigation Styling */
.sponsored-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.sponsored-nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sponsored-swipe-hint {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.sponsored-scroll-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sponsored-scroll-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.15);
}

.sponsored-scroll-btn:active {
    transform: translateY(0);
}

.sponsored-scroll-btn i {
    font-size: 0.9rem;
    line-height: 1;
}

/* Track Wrapper for smooth alignment */
.sponsored-track-wrapper {
    position: relative;
}

/* Hide scrollbar for clean look while keeping scroll functionality */
.sponsored-horizontal-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}

.sponsored-horizontal-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Responsive tweak for smaller mobile viewports */
@media (max-width: 480px) {
    
    .sponsored-scroll-section .comp-container {
        padding: 30px 15px;
    }
    
    .sponsored-card {
        flex: 0 0 190px;
    }
    
    .sponsored-product-name{
        font-size: 11px; 
        margin-bottom: 0px;
    }
    
    .sponsored-price{
        font-size: 13px;
    }
    
    .sponsored-subtitle{
        font-size: 10px;
        letter-spacing: -0.3px;
    }
    .sponsored-title{
        font-size: 16px;   
    }
    
    .sponsored-badge{
        font-size: 9px;
        background: #00b995;
    }
    
    .sponsored-btn{
        font-size: 8px;
    }
}