/* ==========================================================================
   Ebro — global stylesheet for custom sections.
   Colors and radii come from inc/ebro-tokens.php. Do not hardcode them here.
   ========================================================================== */

/* ---------- Utilities ---------- */
.ebro-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Full-width color band (reusable) ----------
   Buyno wraps page content in .byno-main-container (max 1636px), so an Elementor
   container's background can't reach the screen edges. Add CSS class "ebro-band"
   to the container (Advanced → CSS Classes): its background is painted edge to
   edge via border-image — no layout change, no horizontal scroll. */
.ebro-band {
    border-image: conic-gradient(var(--ebro-color-bg) 0 0) fill 0 / / 0 100vmax;
}

/* ---------- Pill button with round knob (reusable) ----------
   Knob shows an arrow; to use a real tennis-ball photo set
   .ebro-pill__knob { background: url(...) center / cover; } and hide ::before. */
.ebro-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-block: 5px;
    padding-inline: 5px 24px;
    border: 1px solid rgba(var(--ebro-color-primary-rgb), 0.08);
    border-radius: var(--ebro-radius-pill);
    background: var(--ebro-color-surface);
    color: var(--ebro-color-dark);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 30px -12px rgba(var(--ebro-color-primary-rgb), 0.35);
    transition: box-shadow var(--ebro-transition);
}

.ebro-pill:hover,
.ebro-pill:focus-visible {
    color: var(--ebro-color-dark);
    box-shadow: 0 14px 34px -12px rgba(var(--ebro-color-primary-rgb), 0.5);
}

.ebro-pill:focus-visible {
    outline: 2px solid var(--ebro-color-dark);
    outline-offset: 3px;
}

.ebro-pill__knob {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ebro-color-dark);
    color: var(--ebro-color-on-dark);
}

/* Arrow points to the reading direction (left in RTL) */
.ebro-pill__knob::before {
    content: "";
    width: 8px;
    height: 8px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateX(1px) rotate(45deg);
    transition: transform var(--ebro-transition);
}

[dir="ltr"] .ebro-pill__knob::before { transform: translateX(-1px) rotate(-135deg); }

.ebro-pill:hover .ebro-pill__knob::before { transform: translateX(-2px) rotate(45deg); }

/* ---------- Hero ---------- */
.ebro-hero {
    --ebro-hero-pad: 34px; /* strip under the slides for the dots */
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    container-type: inline-size; /* slide height from real width, not intrinsic sizing (fixes Elementor flex containers) */
    padding-inline: 18px;
    padding-bottom: var(--ebro-hero-pad);
}

/* Elementor measures the shortcode widget before the slides have a height
   (container query) and reserves only the padding — the next section then
   overlaps the hero on mobile. Full width lets it measure the real height. */
.elementor-widget:has(> .elementor-shortcode > .ebro-hero),
.elementor-widget:has(> .elementor-widget-container > .elementor-shortcode > .ebro-hero) {
    width: 100%;
}

.ebro-hero__track {
    position: relative;
    z-index: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ebro-hero__track::-webkit-scrollbar { display: none; }

.ebro-hero__track:focus-visible {
    outline: 2px solid var(--ebro-color-dark);
    outline-offset: 4px;
}

.ebro-hero__slide {
    position: relative;
    aspect-ratio: 1920 / 948;
    height: calc(100cqi * 948 / 1920);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.ebro-hero .ebro-hero__bg,
.ebro-hero img.ebro-hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ebro-hero img.ebro-hero__bg-img { max-width: none; object-fit: cover; }

/* Brand logo + ghost name, behind the player */
.ebro-hero__id {
    position: absolute;
    z-index: 1;
    left: 8.5%; /* physical: the block itself is LTR */
    top: 20%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 1.2vw, 18px);
    direction: ltr;
}

.ebro-hero img.ebro-hero__logo {
    width: auto;
    height: clamp(26px, 3.2vw, 48px);
    max-width: 220px;
    object-fit: contain;
}

.ebro-hero__name {
    margin: 0;
    max-width: 6.2em;
    font-family: var(--byno-var-font-family);
    font-size: clamp(48px, 6.6vw, 118px);
    font-weight: 800;
    line-height: 0.86;
    letter-spacing: -0.02em;
    color: var(--ebro-color-on-dark);
    opacity: 0.9;
}

/* "img." raises specificity above Elementor's `.elementor img { height: auto }` */
.ebro-hero img.ebro-hero__player {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 50%;
    width: auto;
    max-width: none;
    height: 84%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Two hairline rings echoing the circle edge (desktop). Delete this block to remove them. */
.ebro-hero__rings {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 2px;
    right: 2px;
    bottom: calc(var(--ebro-hero-pad) - 16px);
    border: 1px solid var(--ebro-color-ring);
    border-top: 0;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    pointer-events: none;
}

.ebro-hero__rings::after {
    content: "";
    position: absolute;
    left: -16px;
    right: -16px;
    top: 0;
    bottom: -16px;
    border: 1px solid var(--ebro-color-ring-soft);
    border-top: 0;
    border-radius: inherit;
}

.ebro-hero__cta {
    position: absolute;
    z-index: 4;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

/* Arrows + dots: shown only once JS is ready */
.ebro-hero__arrow,
.ebro-hero__dots { display: none; }

.ebro-hero.is-ready .ebro-hero__arrow { display: flex; }

.ebro-hero__arrow {
    position: absolute;
    z-index: 5;
    top: 57%;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(var(--ebro-color-surface-rgb), 0.9);
    border-radius: 50%;
    background: rgba(var(--ebro-color-surface-rgb), 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--ebro-color-dark);
    cursor: pointer;
    transition: background-color var(--ebro-transition);
}

.ebro-hero__arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.ebro-hero__arrow:hover { background: rgba(var(--ebro-color-surface-rgb), 0.9); }

.ebro-hero__arrow:focus-visible {
    outline: 2px solid var(--ebro-color-dark);
    outline-offset: 3px;
}

/* Desktop: both arrows grouped under the player name, clear of the circle edge.
   Each arrow moves the carousel in the direction it points (see parts/hero.php). */
.ebro-hero__arrow--left { left: calc(18px + 22%); }
.ebro-hero__arrow--left::before { transform: translateX(2px) rotate(-135deg); }
.ebro-hero__arrow--right { left: calc(18px + 22% + 56px); }
.ebro-hero__arrow--right::before { transform: translateX(-2px) rotate(45deg); }

/* Dots: mobile only (desktop has the arrows) */
.ebro-hero__dots {
    position: absolute;
    z-index: 5;
    bottom: 4px;
    inset-inline: 0;
    justify-content: center;
    gap: 0;
}

/* Each dot is a 24px-tall touch target; the visible pill is drawn by ::before */
.ebro-hero__dots button {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: width var(--ebro-transition);
}

.ebro-hero__dots button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: var(--ebro-radius-pill);
    background: var(--ebro-color-ring);
    transform: translate(-50%, -50%);
    transition: width var(--ebro-transition), background-color var(--ebro-transition);
}

.ebro-hero__dots button[aria-current="true"] { width: 42px; }

.ebro-hero__dots button[aria-current="true"]::before {
    width: 26px;
    background: var(--ebro-color-dark);
}

.ebro-hero__dots button:focus-visible {
    outline: 2px solid var(--ebro-color-dark);
    outline-offset: -2px;
    border-radius: var(--ebro-radius-pill);
}

/* ---------- Hero: mobile ---------- */
@media (max-width: 767px) {
    .ebro-hero__slide {
        aspect-ratio: auto;
        height: calc(100cqi * 1.45); /* taller mobile hero */
        border-radius: 0 0 50% 50% / 0 0 20% 20%;
    }

    .ebro-hero__id {
        left: 0;
        right: 0;
        top: 6%;
        align-items: center;
        text-align: center;
    }

    .ebro-hero__name {
        max-width: none;
        font-size: clamp(34px, 11vw, 52px);
    }

    .ebro-hero img.ebro-hero__player { height: 76%; }

    .ebro-hero { padding-inline: 0; }

    .ebro-hero__rings { display: none; }

    .ebro-hero__cta {
        font-size: 14px;
        gap: 10px;
    }

    .ebro-pill__knob { width: 36px; height: 36px; }

    /* Arrows inside the banner, smaller */
    .ebro-hero__arrow {
        top: 50%;
        width: 38px;
        height: 38px;
        transform: translateY(-50%);
    }

    .ebro-hero__arrow--right { right: 12px; left: auto; }
    .ebro-hero__arrow--left { left: 12px; }

    .ebro-hero { --ebro-hero-pad: 28px; }

    .ebro-hero.is-ready .ebro-hero__dots { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    .ebro-pill__knob::before,
    .ebro-pill,
    .ebro-hero__arrow,
    .ebro-hero__dots button,
    .ebro-hero__dots button::before { transition: none; }
}

/* ---------- Trust bar ----------
   Light glassmorphism: frosted cards over soft neutral (charcoal) glows.
   Charcoal text, tennis-green icons on charcoal discs. */
.ebro-trust {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-block: clamp(28px, 4vw, 56px);
    padding: clamp(12px, 1.4vw, 18px);
    border-radius: var(--ebro-radius-lg);
    border: 1px solid rgba(var(--ebro-color-primary-rgb), 0.06);
    background:
        radial-gradient(45% 160% at 6% 0%, rgba(var(--ebro-color-primary-rgb), 0.09), transparent 70%),
        radial-gradient(45% 160% at 94% 100%, rgba(var(--ebro-color-primary-rgb), 0.07), transparent 70%),
        rgba(var(--ebro-color-primary-rgb), 0.025);
    color: var(--ebro-color-dark);
}

.ebro-trust__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 16px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ebro-trust__item { margin: 0; min-width: 0; }

/* Frosted glass card */
.ebro-trust__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: clamp(16px, 1.6vw, 22px) clamp(14px, 1.4vw, 20px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--ebro-radius-md);
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 30px -20px rgba(var(--ebro-color-primary-rgb), 0.45);
    color: inherit;
    text-decoration: none;
}

.ebro-trust__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ebro-color-dark);
    color: var(--ebro-color-accent);
    box-shadow: 0 8px 18px -10px rgba(var(--ebro-color-primary-rgb), 0.7);
}

.ebro-trust__icon svg {
    width: 24px;
    height: 24px;
}

.ebro-trust__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ebro-trust__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ebro-color-dark);
}

.ebro-trust__sub {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ebro-color-muted);
}

a.ebro-trust__inner:hover .ebro-trust__title,
a.ebro-trust__inner:focus-visible .ebro-trust__title {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* No backdrop-filter support: solid enough to stay readable */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .ebro-trust__inner { background: rgba(var(--ebro-color-surface-rgb), 0.85); }
}

@media (max-width: 1024px) {
    .ebro-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .ebro-trust {
        padding: 10px;
        border-radius: var(--ebro-radius-md);
    }

    .ebro-trust__list { gap: 8px; }

    .ebro-trust__inner {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 16px 10px;
        text-align: center;
        border-radius: calc(var(--ebro-radius-md) - 2px);
    }

    .ebro-trust__icon { width: 44px; height: 44px; }

    .ebro-trust__icon svg { width: 21px; height: 21px; }

    .ebro-trust__title { font-size: 13px; }

    .ebro-trust__sub { font-size: 12px; }
}

/* ---------- Categories carousel ----------
   [ebro_categories] — inc/categories.php + parts/categories.php + assets/js/ebro-cats.js
   Swipe = native scroll-snap; arrows step one card. Photos are square files,
   so they fill the frame with no crop. */
.ebro-cats {
    --ebro-cats-gap: clamp(12px, 1.4vw, 20px);
    --ebro-cats-per-view: 4.3;
    margin-block: clamp(28px, 4vw, 56px);
}

/* Heading uses Buyno's .byno-home-section-head markup; only spacing + arrow order here */
.ebro-cats__head { margin-bottom: 25px; }

.ebro-cats__nav {
    display: flex;
    flex: 0 0 auto;
    order: 3; /* after Buyno's divider line, like other home sections */
    gap: 8px;
}

.ebro-cats__arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(var(--ebro-color-primary-rgb), 0.14);
    border-radius: var(--ebro-radius-md); /* same as header buttons */
    background: transparent;
    color: var(--ebro-color-dark);
    cursor: pointer;
    transition: background-color var(--ebro-transition), color var(--ebro-transition), opacity var(--ebro-transition);
}

.ebro-cats__arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

/* RTL: previous = right-pointing, next = left-pointing */
.ebro-cats__arrow--prev::before { transform: translateX(-2px) rotate(45deg); }
.ebro-cats__arrow--next::before { transform: translateX(2px) rotate(-135deg); }

.ebro-cats__arrow:hover:not(:disabled) {
    background: var(--ebro-color-dark);
    color: var(--ebro-color-on-dark);
}

.ebro-cats__arrow:disabled { opacity: 0.35; cursor: default; }

.ebro-cats__arrow:focus-visible {
    outline: 2px solid var(--ebro-color-dark);
    outline-offset: 3px;
}

/* Track */
.ebro-cats__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - var(--ebro-cats-gap) * (var(--ebro-cats-per-view) - 1)) / var(--ebro-cats-per-view));
    gap: var(--ebro-cats-gap);
    margin: 0;
    padding: 0 0 6px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ebro-cats__track::-webkit-scrollbar { display: none; }

.ebro-cats__item {
    margin: 0;
    min-width: 0;
    scroll-snap-align: start;
}

/* Card */
.ebro-cats__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px;
    border: 1px solid rgba(var(--ebro-color-primary-rgb), 0.07);
    border-radius: var(--ebro-radius-lg);
    background: var(--ebro-color-card);
    color: var(--ebro-color-dark);
    text-decoration: none;
    transition: box-shadow var(--ebro-transition), border-color var(--ebro-transition);
}

.ebro-cats__card:hover,
.ebro-cats__card:focus-visible {
    color: var(--ebro-color-dark);
    border-color: rgba(var(--ebro-color-primary-rgb), 0.14);
    box-shadow: 0 22px 40px -28px rgba(var(--ebro-color-primary-rgb), 0.5);
}

.ebro-cats__card:focus-visible {
    outline: 2px solid var(--ebro-color-dark);
    outline-offset: 3px;
}

.ebro-cats__media {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--ebro-radius-lg) - 6px);
    background: var(--ebro-color-bg);
}

.ebro-cats .ebro-cats__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ebro-cats__card:hover .ebro-cats__img { transform: scale(1.05); }

.ebro-cats__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 8px 6px;
}

.ebro-cats__name {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--ebro-color-dark);
}

/* Charcoal knob with tennis-green arrow; turns green on hover */
.ebro-cats__go {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: var(--ebro-radius-md); /* same as header buttons */
    background: var(--ebro-color-dark);
    color: var(--ebro-color-accent);
    transition: background-color var(--ebro-transition), color var(--ebro-transition);
}

.ebro-cats__go::before {
    content: "";
    width: 8px;
    height: 8px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateX(1px) rotate(45deg);
    transition: transform var(--ebro-transition);
}

.ebro-cats__card:hover .ebro-cats__go {
    background: var(--ebro-color-accent);
    color: var(--ebro-color-dark);
}

.ebro-cats__card:hover .ebro-cats__go::before { transform: translateX(-2px) rotate(45deg); }

@media (max-width: 1024px) {
    .ebro-cats { --ebro-cats-per-view: 2.6; }
}

@media (max-width: 767px) {
    .ebro-cats { --ebro-cats-per-view: 1.6; --ebro-cats-gap: 10px; }

    .ebro-cats__arrow { width: 36px; height: 36px; }

    .ebro-cats__card { padding: 6px; border-radius: var(--ebro-radius-md); }

    .ebro-cats__media { border-radius: calc(var(--ebro-radius-md) - 4px); }

    .ebro-cats__body { padding: 10px 6px 4px; }

    .ebro-cats__name { font-size: 15px; }

    .ebro-cats__go { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .ebro-cats__img,
    .ebro-cats__go::before { transition: none; }
    .ebro-cats__card:hover .ebro-cats__img { transform: none; }
}

/* ---------- Why choose us ----------
   [ebro_why] — inc/why.php + parts/why.php. Heading = Buyno's section-head markup.
   White cards (like product/category cards), charcoal disc with tennis-green icon (like trust). */
.ebro-why {
    margin-block: clamp(28px, 4vw, 56px);
}

.ebro-why__head { margin-bottom: 25px; }

.ebro-why__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ebro-why__item {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: clamp(20px, 1.8vw, 28px);
    border: 1px solid rgba(var(--ebro-color-primary-rgb), 0.07);
    border-radius: var(--ebro-radius-lg);
    background: var(--ebro-color-card);
    transition: border-color var(--ebro-transition), box-shadow var(--ebro-transition);
}

.ebro-why__item:hover {
    border-color: rgba(var(--ebro-color-primary-rgb), 0.14);
    box-shadow: 0 22px 40px -28px rgba(var(--ebro-color-primary-rgb), 0.5);
}

.ebro-why__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ebro-color-dark);
    color: var(--ebro-color-accent);
}

.ebro-why__icon svg {
    width: 24px;
    height: 24px;
}

.ebro-why__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ebro-why__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--ebro-color-dark);
}

.ebro-why__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.95;
    color: var(--ebro-color-muted);
}

@media (max-width: 1024px) {
    .ebro-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: one column, icon beside the text to keep it short */
@media (max-width: 767px) {
    .ebro-why__list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ebro-why__item {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
        border-radius: var(--ebro-radius-md);
    }

    .ebro-why__icon { width: 44px; height: 44px; }

    .ebro-why__icon svg { width: 21px; height: 21px; }

    .ebro-why__title { font-size: 15px; }

    .ebro-why__desc { font-size: 13px; line-height: 1.9; }
}

/* ---------- Pro players ----------
   [ebro_players] — inc/players.php + parts/players.php. Heading = Buyno's section-head markup.
   White cards, full-body player cut-outs standing in white space, name + sponsor link below. */
.ebro-players {
    margin-block: clamp(28px, 4vw, 56px);
}

.ebro-players__head { margin-bottom: 25px; }

.ebro-players__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ebro-players__item { margin: 0; min-width: 0; }

.ebro-players__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px;
    border: 1px solid rgba(var(--ebro-color-primary-rgb), 0.07);
    border-radius: var(--ebro-radius-lg);
    background: var(--ebro-color-card);
    color: var(--ebro-color-dark);
    text-decoration: none;
    transition: border-color var(--ebro-transition), box-shadow var(--ebro-transition);
}

.ebro-players__card:hover,
.ebro-players__card:focus-visible {
    color: var(--ebro-color-dark);
    border-color: rgba(var(--ebro-color-primary-rgb), 0.14);
    box-shadow: 0 22px 40px -28px rgba(var(--ebro-color-primary-rgb), 0.5);
}

.ebro-players__card:focus-visible {
    outline: 2px solid var(--ebro-color-dark);
    outline-offset: 3px;
}

/* Player stands on a soft cream spotlight (token colors) */
.ebro-players__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: calc(var(--ebro-radius-lg) - 6px);
    background:
        radial-gradient(60% 45% at 50% 100%, rgba(var(--ebro-color-primary-rgb), 0.07), transparent 70%),
        radial-gradient(75% 60% at 50% 38%, var(--ebro-color-surface), var(--ebro-color-bg));
}

.ebro-players .ebro-players__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: 50% 100%;
    transform-origin: 50% 100%;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ebro-players__card:hover .ebro-players__img { transform: scale(1.04); }

.ebro-players__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 8px 6px;
}

.ebro-players__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ebro-players__name {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--ebro-color-dark);
}

.ebro-players__en {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-align: right;
    text-transform: uppercase;
    color: var(--ebro-color-muted);
}

/* Sponsor link row */
.ebro-players__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(var(--ebro-color-primary-rgb), 0.07);
    font-size: 13px;
    font-weight: 600;
    color: var(--ebro-color-text);
}

/* Arrow knob: on hover the arrow glides out and a second one glides in (RTL: leftwards) */
.ebro-players__go {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: var(--ebro-radius-md);
    background: var(--ebro-color-dark);
    color: var(--ebro-color-accent);
    transition: background-color 400ms ease, color 400ms ease;
}

.ebro-players__go svg {
    grid-area: 1 / 1;
    width: 16px;
    height: 16px;
    transition: transform 500ms cubic-bezier(0.65, 0, 0.35, 1);
}

.ebro-players__go svg + svg { transform: translateX(150%); }

[dir="ltr"] .ebro-players__go svg { transform: scaleX(-1); }
[dir="ltr"] .ebro-players__go svg + svg { transform: translateX(-150%) scaleX(-1); }

.ebro-players__card:hover .ebro-players__go,
.ebro-players__card:focus-visible .ebro-players__go {
    background: var(--ebro-color-accent);
    color: var(--ebro-color-dark);
}

.ebro-players__card:hover .ebro-players__go svg:first-child,
.ebro-players__card:focus-visible .ebro-players__go svg:first-child { transform: translateX(-150%); }

.ebro-players__card:hover .ebro-players__go svg + svg,
.ebro-players__card:focus-visible .ebro-players__go svg + svg { transform: translateX(0); }

@media (max-width: 1024px) {
    .ebro-players__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .ebro-players__list { gap: 10px; }

    .ebro-players__card { padding: 6px; border-radius: var(--ebro-radius-md); }

    .ebro-players__media {
        aspect-ratio: 3 / 5;
        border-radius: calc(var(--ebro-radius-md) - 4px);
    }

    .ebro-players__body { gap: 10px; padding: 10px 6px 4px; }

    .ebro-players__name { font-size: 15px; }

    .ebro-players__en { font-size: 10px; letter-spacing: 0.12em; }

    .ebro-players__brand { font-size: 12px; padding-top: 10px; }

    .ebro-players__go { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .ebro-players__img,
    .ebro-players__go,
    .ebro-players__go svg { transition: none; }
    .ebro-players__card:hover .ebro-players__img { transform: none; }
}

/* ---------- Brand banners ----------
   [ebro_banners] — inc/banners.php. Two image banners side by side (stacked on mobile). */
.ebro-banners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 20px);
    margin-block: clamp(28px, 4vw, 56px);
}

.ebro-banners__item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1586 / 992;
    border-radius: var(--ebro-radius-lg);
    background: var(--ebro-color-dark);
    isolation: isolate;
}

.ebro-banners .ebro-banners__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Thin inner rim for a finished, framed edge */
.ebro-banners__item::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(var(--ebro-color-surface-rgb), 0.08);
    border-radius: inherit;
    pointer-events: none;
}

.ebro-banners__item:hover .ebro-banners__img { transform: scale(1.03); }

.ebro-banners__item:focus-visible {
    outline: 2px solid var(--ebro-color-dark);
    outline-offset: 3px;
}

/* Mobile: each pair becomes a swipeable row (native scroll-snap, no JS);
   the next banner peeks in so it's clear there is more. */
@media (max-width: 767px) {
    .ebro-banners {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 86%;
        gap: 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .ebro-banners::-webkit-scrollbar { display: none; }

    .ebro-banners__item {
        border-radius: var(--ebro-radius-md);
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ebro-banners__img { transition: none; }
    .ebro-banners__item:hover .ebro-banners__img { transform: none; }
}

/* ---------- Product page: readable features ----------
   Buyno's "ویژگی ها" highlight boxes (11–12px) and the short-description
   bullet list (12px) were too small; sizes raised for desktop and mobile. */
.byno-product-highlights .byno-section-title { font-size: 17px; }

.byno-product-highlights .byno-product-highlight-item {
    height: auto;
    min-height: 0;
    padding: 10px 14px;
    line-height: 1.5;
}

.byno-product-highlights .byno-product-highlight-label { font-size: 13px; line-height: 1.6; }
.byno-product-highlights .byno-product-highlight-value { font-size: 15px; line-height: 1.6; }
.byno-product-highlights .byno-product-highlights-more { font-size: 13px; }

.woocommerce-product-details__short-description li {
    font-size: 14px;
    line-height: 1.9;
}

@media (max-width: 767px) {
    .byno-product-highlights .byno-section-title { font-size: 16px; }
    .byno-product-highlights .byno-product-highlight-item { padding: 9px 12px; }
    .byno-product-highlights .byno-product-highlight-label { font-size: 12px; }
    .byno-product-highlights .byno-product-highlight-value { font-size: 14px; }
}

/* ---------- Header: categories button ----------
   Charcoal pill; tennis-ball green kept only on the small icon (accent rule). */
header a.category-btn-byno {
    background: var(--ebro-color-primary);
    color: var(--ebro-color-on-dark);
    transition: background-color var(--ebro-transition);
}

header a.category-btn-byno:hover,
header a.category-btn-byno:focus-visible {
    background: var(--ebro-color-primary-hover);
    color: var(--ebro-color-on-dark);
}

header a.category-btn-byno .title-category-btn-header-byno { color: var(--ebro-color-on-dark); }
/* Buyno's SVG paths use fill="var(--byno-var-main-color)" (charcoal), so set fill directly */
header a.category-btn-byno svg path { fill: var(--ebro-color-accent); }

/* ---------- Home: Buyno "پیشنهادات شگفت‌انگیز" box + brands badge ----------
   Charcoal instead of the lime set in Elementor. Selectors outrank the
   Elementor widget CSS (.elementor-4439 .elementor-element-xxx ...). */
body.buyno-child-active .elementor .elementor-element .byno-home-specials-deal {
    background: var(--ebro-color-dark);
    color: var(--ebro-color-on-dark);
}

body.buyno-child-active .elementor .elementor-element .byno-home-specials-deal h3 { color: var(--ebro-color-on-dark); }
body.buyno-child-active .elementor .elementor-element .byno-home-specials-deal p { color: var(--ebro-color-on-dark-muted); }

/* Soft glow behind the ball icon (Elementor sets a white glow with !important) */
body.buyno-child-active .elementor .elementor-element .byno-home-specials-deal-icon-wrap::before {
    background: rgba(var(--ebro-color-accent-rgb), 0.18) !important;
    box-shadow: 0 0 55px 40px rgba(var(--ebro-color-accent-rgb), 0.18) !important;
}

body.buyno-child-active .elementor .elementor-element .byno-home-specials-deal-wave { opacity: 0.35; }

body.buyno-child-active .elementor .elementor-element .byno-home-brand-badge {
    background: var(--ebro-color-dark);
    color: var(--ebro-color-on-dark);
}
