/**
 * Section 8 — Top Picks + Best Sellers
 * Two product carousels stacked with a thin divider.
 */
.tnk-s8 {
    --tnk-red: #E31E24;
    --tnk-black: #131313;
    --tnk-ink: #1a1a1a;
    --tnk-muted: #737373;
    --tnk-line: #ededed;
    --tnk-soft: #f5f5f5;
    --tnk-radius: 6px;
    --tnk-ease: cubic-bezier(0.4, 0, 0.2, 1);

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: var(--tnk-black);
    padding: 96px 24px 96px;
    -webkit-font-smoothing: antialiased;
}
.tnk-s8 *, .tnk-s8 *::before, .tnk-s8 *::after { box-sizing: border-box; }
.tnk-s8__inner { max-width: 1440px; margin: 0 auto; }

/* Section head (used twice) */
.tnk-s8__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}
.tnk-s8__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tnk-muted);
    margin-bottom: 14px;
}
.tnk-s8__eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tnk-red);
}
.tnk-s8__title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.0;
    margin: 0;
    color: var(--tnk-black);
}
.tnk-s8__viewall {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: var(--tnk-black);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 2px solid var(--tnk-black);
    transition: color 0.2s var(--tnk-ease), border-color 0.2s var(--tnk-ease), gap 0.2s var(--tnk-ease);
    white-space: nowrap;
}
.tnk-s8__viewall:hover {
    color: var(--tnk-red);
    border-bottom-color: var(--tnk-red);
    gap: 12px;
}
.tnk-s8__viewall svg { width: 14px; height: 14px; }

.tnk-s8__head-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.tnk-s8__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tnk-s8__nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--tnk-black);
    background: #fff;
    color: var(--tnk-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s var(--tnk-ease), color 0.2s var(--tnk-ease), opacity 0.2s var(--tnk-ease);
}
.tnk-s8__nav-btn svg { width: 16px; height: 16px; display: block; }
.tnk-s8__nav-btn:hover { background: var(--tnk-black); color: #fff; }
.tnk-s8__nav-btn:disabled,
.tnk-s8__nav-btn[aria-disabled="true"] {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}
.tnk-s8__nav-btn:focus-visible {
    outline: 3px solid var(--tnk-red);
    outline-offset: 2px;
}

/* Carousel */
.tnk-s8__scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}
.tnk-s8__scroller::-webkit-scrollbar { display: none; }

.tnk-s8__card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: var(--tnk-black);
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s var(--tnk-ease);
    flex: 0 0 calc((100% - 60px) / 4);
    scroll-snap-align: start;
}
.tnk-s8__card:hover { transform: translateY(-4px); }

.tnk-s8__card-img {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--tnk-soft);
    overflow: hidden;
    border-radius: var(--tnk-radius);
}
.tnk-s8__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--tnk-ease);
}
.tnk-s8__card:hover .tnk-s8__card-img img { transform: scale(1.05); }

.tnk-s8__card-img[data-placeholder="true"] {
    background:
        repeating-linear-gradient(
            45deg,
            var(--tnk-soft) 0,
            var(--tnk-soft) 10px,
            #ececec 10px,
            #ececec 20px
        );
}
.tnk-s8__card-specs {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.9);
    font-family: ui-monospace, 'SF Mono', Monaco, monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 3px;
    pointer-events: none;
}
.tnk-s8__card-specs-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--tnk-red); }

/* Badge — black for picks, red for sellers */
.tnk-s8__card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}
.tnk-s8__card-badge--pick   { background: var(--tnk-black); }
.tnk-s8__card-badge--seller { background: var(--tnk-red); }

.tnk-s8__card-body {
    padding: 16px 4px 4px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tnk-s8__card-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.3;
    margin: 0 0 4px;
    color: var(--tnk-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tnk-s8__card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--tnk-black);
    margin: 0 0 12px;
    font-variant-numeric: tabular-nums;
}
.tnk-s8__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tnk-black);
    padding-bottom: 3px;
    border-bottom: 2px solid var(--tnk-black);
    transition: color 0.2s var(--tnk-ease), border-color 0.2s var(--tnk-ease), gap 0.2s var(--tnk-ease);
}
.tnk-s8__card-cta svg {
    width: 11px;
    height: 11px;
    transition: transform 0.25s var(--tnk-ease);
}
.tnk-s8__card:hover .tnk-s8__card-cta {
    color: var(--tnk-red);
    border-bottom-color: var(--tnk-red);
    gap: 8px;
}
.tnk-s8__card:hover .tnk-s8__card-cta svg { transform: translateX(3px); }
.tnk-s8__card:focus-visible {
    outline: 3px solid var(--tnk-red);
    outline-offset: 3px;
}

/* Pagination dots */
.tnk-s8__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 28px 24px 0;
}
.tnk-s8__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.18);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.25s var(--tnk-ease), width 0.25s var(--tnk-ease);
}
.tnk-s8__dot.is-on {
    background: var(--tnk-red);
    width: 26px;
    border-radius: 99px;
}
.tnk-s8__dot:focus-visible {
    outline: 2px solid var(--tnk-red);
    outline-offset: 3px;
}

/* Divider between the two carousels */
.tnk-s8__divider {
    height: 1px;
    background: var(--tnk-line);
    margin: 80px 0 64px;
    position: relative;
}
.tnk-s8__divider-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tnk-red);
    z-index: 1;
    box-shadow: 0 0 0 8px #fff;  /* white halo so the dot punches through the line cleanly */
}

/* Tablet — 3 cards visible */
@media (max-width: 1024px) {
    .tnk-s8 { padding: 72px 20px 80px; }
    .tnk-s8__scroller { gap: 16px; }
    .tnk-s8__card { flex: 0 0 calc((100% - 32px) / 3); }
    .tnk-s8__divider { margin: 64px 0 48px; }
}

/* Mobile — 2-col grid, no carousel */
@media (max-width: 640px) {
    .tnk-s8 { padding: 56px 0 64px; }
    .tnk-s8__inner { max-width: 100%; }
    .tnk-s8__head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
        gap: 16px;
        padding: 0 16px;
    }
    .tnk-s8__title { font-size: clamp(28px, 8vw, 36px); }
    .tnk-s8__head-right { width: 100%; justify-content: flex-start; }
    .tnk-s8__nav { display: none; }
    .tnk-s8__viewall { font-size: 11px; }

    .tnk-s8__scroller {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 16px;
        overflow: visible;
        scroll-snap-type: none;
    }
    .tnk-s8__card {
        flex: none;
        max-width: 100%;
        scroll-snap-align: none;
    }
    .tnk-s8__card-body { padding: 12px 2px 4px; }
    .tnk-s8__card-name { font-size: 12px; }
    .tnk-s8__card-price { font-size: 13px; margin-bottom: 10px; }
    .tnk-s8__card-cta { font-size: 10px; gap: 4px; }
    .tnk-s8__card-cta svg { width: 10px; height: 10px; }
    .tnk-s8__card-badge { font-size: 8px; padding: 3px 6px; }
    .tnk-s8__card-specs { font-size: 8px; padding: 3px 6px; }

    .tnk-s8__dots { display: none; }
    .tnk-s8__divider { margin: 48px 16px 36px; }

    .tnk-s8__card:hover { transform: none; }
    .tnk-s8__card:hover .tnk-s8__card-img img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tnk-s8__card, .tnk-s8__card-img img, .tnk-s8__card-cta svg,
    .tnk-s8__viewall svg, .tnk-s8__nav-btn, .tnk-s8__dot { transition: none; }
    .tnk-s8__card:hover { transform: none; }
}
