/* Grid Layout - 3 columns on Desktop */
.sww-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Card Sizing using aspect-ratio for perfect responsiveness */
.sww-card {
    width: 100%;
    aspect-ratio: 3 / 4; /* Maintains the 3:4 vertical shape */
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.sww-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The Floating Dark Pill */
.sww-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(40, 40, 40, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 40px;
    padding: 10px 10px 10px 14px;
    display: flex;
    align-items: center;
    color: #fff;
    box-sizing: border-box;
    z-index: 2;
}

/* Product Thumbnail */
.sww-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 14px;
    flex-shrink: 0;
    background: #fff;
}

/* Product Info Text */
.sww-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.sww-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.sww-price {
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
    color: #cccccc;
}

.sww-price del {
    opacity: 0.6;
    margin-right: 6px;
    text-decoration: line-through;
    color: #aaa;
}

/* The Eye Icon Button */
.sww-view {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin-left: 6px;
}
.sww-view:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Sizing */
@media (max-width: 1024px) {
    .sww-wrapper {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .sww-wrapper {
        grid-template-columns: 1fr; /* Mobile: 1 column */
        gap: 20px;
        max-width: 400px;
    }
}