/* Homepage hero "Best Sellers" slider ([tanc_hero_best_sellers]).
   Sizes/colours are taken from the hand-built hero card it replaces so the two
   are indistinguishable: 275px card inside a 16px translucent panel, 275x217
   media, white pill button, 32px outlined arrows. */
.dn-tanc-hero-bs {
    --dn-hero-bs-card: 275px;
    --dn-hero-bs-gap: 12px;
    display: flex;
    flex-direction: column;
    gap: var(--dn-hero-bs-gap);
    width: 100%;
    max-width: var(--dn-hero-bs-card);
    color: #fff;
}

.dn-tanc-hero-bs__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 32px;
}

.dn-tanc-hero-bs__heading {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
}

.dn-tanc-hero-bs__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dn-tanc-hero-bs__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 6px;
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.dn-tanc-hero-bs__arrow:hover,
.dn-tanc-hero-bs__arrow:focus-visible {
    color: #111;
    background: #fff;
}

.dn-tanc-hero-bs__arrow-icon {
    display: block;
    width: 16px;
    height: 16px;
}

/* One card at a time; swipe on touch, arrows on desktop. */
.dn-tanc-hero-bs__track {
    display: flex;
    gap: var(--dn-hero-bs-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
}

.dn-tanc-hero-bs__track::-webkit-scrollbar {
    display: none;
}

.dn-tanc-hero-bs__slide {
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    gap: var(--dn-hero-bs-gap);
    scroll-snap-align: start;
    min-width: 0;
}

.dn-tanc-hero-bs__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
}

.dn-tanc-hero-bs__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dn-tanc-hero-bs__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dn-tanc-hero-bs__names {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

/* The theme recolours links on hover; on the hero the name must stay white and
   only gain the underline. */
.dn-tanc-hero-bs .dn-tanc-hero-bs__name,
.dn-tanc-hero-bs .dn-tanc-hero-bs__name:hover,
.dn-tanc-hero-bs .dn-tanc-hero-bs__name:focus,
.dn-tanc-hero-bs .dn-tanc-hero-bs__name:focus-visible,
.dn-tanc-hero-bs .dn-tanc-hero-bs__name:active,
.dn-tanc-hero-bs .dn-tanc-hero-bs__name:visited {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.dn-tanc-hero-bs .dn-tanc-hero-bs__name:hover,
.dn-tanc-hero-bs .dn-tanc-hero-bs__name:focus-visible {
    text-decoration: underline;
}

.dn-tanc-hero-bs__meta {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.dn-tanc-hero-bs__price {
    flex: 0 0 auto;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}

/* WooCommerce wraps prices in its own markup — keep it on the hero's terms. */
.dn-tanc-hero-bs__price .woocommerce-Price-amount,
.dn-tanc-hero-bs__price bdi,
.dn-tanc-hero-bs__price del,
.dn-tanc-hero-bs__price ins {
    color: inherit;
    font-size: inherit;
    text-decoration: none;
    background: none;
}

.dn-tanc-hero-bs__price del {
    display: none;
}

.dn-tanc-hero-bs__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 16px;
    color: #000;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border-radius: 100px;
    transition: opacity 0.18s ease;
}

.dn-tanc-hero-bs__cta:hover,
.dn-tanc-hero-bs__cta:focus-visible {
    color: #000;
    opacity: 0.88;
}

.dn-tanc-hero-bs__cta-icon {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}
