/* =========================================================
   Bestsellers Showcase — bss-style.css
   Matches the clean editorial look from the design reference
   ========================================================= */

.bss-section {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 40px 0 60px;
    box-sizing: border-box;
}

/* ── Section title ── */
.bss-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 28px 0;
    color: #1a1a1a;
    line-height: 1;
}

/* ── Outer wrapper (holds arrows + viewport) ── */
.bss-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── Scrollable viewport ── */
.bss-track-viewport {
    overflow: hidden;
    width: 100%;
}

/* ── Sliding track ── */
.bss-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Individual card ── */
.bss-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .bss-card { flex: 0 0 calc(33.333% - 14px); }
}
@media (max-width: 768px) {
    .bss-card { flex: 0 0 calc(50% - 10px); }
    .bss-title { letter-spacing: 2px; }
}
@media (max-width: 480px) {
    .bss-card { flex: 0 0 calc(75% - 10px); }
}

/* ── Image container ── */
.bss-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f5f4f2;
    aspect-ratio: 3 / 4;
    text-decoration: none;
}

.bss-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.bss-card-img-wrap:hover .bss-img {
    transform: scale(1.04);
}

/* ── Promo badge ── */
.bss-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f0b429;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Wishlist heart ── */
.bss-wish {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.88);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}

.bss-wish svg {
    width: 16px;
    height: 16px;
    color: #555;
    transition: color 0.2s, fill 0.2s;
}

.bss-wish:hover {
    background: #fff;
    transform: scale(1.1);
}

.bss-wish:hover svg,
.bss-wish.active svg {
    color: #c0392b;
    fill: #c0392b;
}

/* ── Card body ── */
.bss-card-body {
    padding: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bss-name {
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.3px;
    line-height: 1.4;
    display: block;
    transition: color 0.2s;
}

.bss-name:hover { color: #555; }

.bss-price {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.bss-price del {
    color: #aaa;
    margin-right: 4px;
}

.bss-price ins {
    text-decoration: none;
    color: #1a1a1a;
}

/* ── Attribute tags (sizes) ── */
.bss-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.bss-attr-tag {
    display: inline-block;
    border: 1px solid #c8c8c8;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    color: #333;
    line-height: 1.4;
    background: #fff;
    cursor: default;
    transition: border-color 0.2s;
}

.bss-attr-tag:hover {
    border-color: #888;
}

/* ── Navigation arrows ── */
.bss-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.bss-nav svg {
    width: 18px;
    height: 18px;
    color: #333;
    display: block;
}

.bss-prev { left: -20px; }
.bss-next { right: -20px; }

.bss-nav:hover {
    border-color: #999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.bss-nav:disabled,
.bss-nav.hidden {
    opacity: 0.3;
    pointer-events: none;
}

/* ── Dots (optional, shown on mobile) ── */
.bss-dots {
    display: none;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
}

@media (max-width: 768px) {
    .bss-dots { display: flex; }
}

.bss-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.bss-dot.active {
    background: #1a1a1a;
    transform: scale(1.25);
}
