/**
 * 2025-2026 CyliumDev
 * @license   Proprietary - Non-commercial use only
 *
 * Category carousel widget (cyliumee-cats handle).
 * Split out of front.css so a page only pays for the widgets it renders;
 * depends on 'cyliumee-front' (shared commons) for cascade order.
 */

.cyliumee-cats {
    position: relative;
    width: 100%;
    padding: 4px 0;
}

.cyliumee-cats__card {
    height: auto;
    background: var(--cee-cats-card-bg, transparent);
}

.cyliumee-cats__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cyliumee-cats__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--cee-cats-radius, 8px);
    background: #f0f0f0;
    line-height: 0;
}

.cyliumee-cats__image-wrap--ratio {
    aspect-ratio: 1 / var(--cee-cats-image-ratio, 1);
}

.cyliumee-cats__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.3s ease;
}

.cyliumee-cats__image-wrap--ratio .cyliumee-cats__image {
    height: 100%;
}

.cyliumee-cats--shadow-sm .cyliumee-cats__image-wrap { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.cyliumee-cats--shadow-md .cyliumee-cats__image-wrap { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

.cyliumee-cats--shadow-lg .cyliumee-cats__image-wrap { box-shadow: 0 10px 30px rgba(0,0,0,0.18); }

.cyliumee-cats__meta {
    padding: 14px 4px 6px;
}

.cyliumee-cats__title {
    margin: 0;
    color: var(--cee-cats-title-color, #1a1a1a);
    font-size: var(--cee-cats-title-size, 1.125rem);
    font-weight: var(--cee-cats-title-weight, 700);
    line-height: 1.25;
}

.cyliumee-cats__count--sup {
    font-size: 0.65em;
    font-weight: 500;
    color: var(--cee-cats-count-color, #888);
    margin-left: 0.15em;
    vertical-align: super;
}

.cyliumee-cats__count--inline {
    color: var(--cee-cats-count-color, #888);
    font-weight: 500;
}

.cyliumee-cats__count--below {
    display: block; /* the count text is a <span>, so it needs to break the line */
    margin-top: 4px;
    color: var(--cee-cats-count-color, #888);
    font-size: 0.85em;
    font-weight: 500;
}

.cyliumee-cats__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cee-cats-btn-color, #1a1a1a);
    background: var(--cee-cats-btn-bg, #fff);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.cyliumee-cats__btn--corner {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cee-cats-btn-color, #1a1a1a);
    background: var(--cee-cats-btn-bg, #fff);
    border-radius: 50%;
    opacity: 0.92;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.cyliumee-cats__card:hover .cyliumee-cats__btn--corner {
    color: var(--cee-cats-btn-color-hover, #fff);
    background: var(--cee-cats-btn-bg-hover, #1a1a1a);
    opacity: 1;
    transform: translateX(2px);
}

.cyliumee-cats__btn--inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    color: var(--cee-cats-btn-color, #1a1a1a);
    background: transparent;
    border-radius: 50%;
    vertical-align: middle;
    transition: transform 0.2s ease, color 0.2s ease;
}

.cyliumee-cats__card:hover .cyliumee-cats__btn--inline {
    color: var(--cee-cats-btn-bg-hover, #000);
    transform: translateX(3px);
}

/* Layout only. The pill is the one placement that can take a button type
   (Content > Button > Button type), and a type must own the whole look of the
   button: the paint and the box below are therefore switched off as soon as
   `.elementor-button` (CE kit) or `.btn` (shop theme) is on the element —
   otherwise the module would crush the theme's padding, border and radius the
   way the image slider used to. */
.cyliumee-cats__btn--pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cyliumee-cats__btn--pill:not(.elementor-button):not(.btn) {
    padding: 8px 16px;
    color: var(--cee-cats-btn-color, #1a1a1a);
    background: var(--cee-cats-btn-bg, #fff);
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.cyliumee-cats__card:hover .cyliumee-cats__btn--pill:not(.elementor-button):not(.btn) {
    color: var(--cee-cats-btn-color-hover, #fff);
    background: var(--cee-cats-btn-bg-hover, #1a1a1a);
    border-color: var(--cee-cats-btn-bg-hover, #1a1a1a);
}

.cyliumee-cats--hover-zoom .cyliumee-cats__card:hover .cyliumee-cats__image     { transform: scale(1.08); }

.cyliumee-cats--hover-zoom-out .cyliumee-cats__card .cyliumee-cats__image        { transform: scale(1.08); }

.cyliumee-cats--hover-zoom-out .cyliumee-cats__card:hover .cyliumee-cats__image  { transform: scale(1); }

.cyliumee-cats--hover-grayscale .cyliumee-cats__card .cyliumee-cats__image       { filter: grayscale(100%); }

.cyliumee-cats--hover-grayscale .cyliumee-cats__card:hover .cyliumee-cats__image { filter: grayscale(0); }

.cyliumee-cats--hover-blur .cyliumee-cats__card .cyliumee-cats__image            { filter: blur(2px); }

.cyliumee-cats--hover-blur .cyliumee-cats__card:hover .cyliumee-cats__image      { filter: blur(0); }

.cyliumee-cats--hover-tilt .cyliumee-cats__card                                  { transition: transform 0.3s ease; transform-origin: center bottom; }

.cyliumee-cats--hover-tilt .cyliumee-cats__card:hover                            { transform: perspective(800px) rotateX(2deg) rotateY(-2deg) scale(1.02); }

.cyliumee-cats--hover-lift .cyliumee-cats__card                                  { transition: transform 0.3s ease, box-shadow 0.3s ease; }

.cyliumee-cats--hover-lift .cyliumee-cats__card:hover                            { transform: translateY(-6px); }

.cyliumee-cats--hover-fade .cyliumee-cats__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.cyliumee-cats--hover-fade .cyliumee-cats__card:hover .cyliumee-cats__image-wrap::after {
    background: rgba(0,0,0,0.35);
}

/* APPEARANCE — identical wherever the arrow sits: over the slides (no header)
   or in flow inside the title row (.cyliumee-cats__nav-wrap, which lives OUTSIDE
   .cyliumee-cats because that element is the .swiper and clips its overflow).
   One block for both, so size/colour/shape are declared once. Position is set
   separately below, and that is the ONLY thing that differs. */
.cyliumee-cats .cyliumee-cats__nav,
.cyliumee-cats button.cyliumee-cats__nav,
.cyliumee-cats__nav-wrap .cyliumee-cats__nav,
.cyliumee-cats__nav-wrap button.cyliumee-cats__nav {
    appearance: none !important;
    -webkit-appearance: none !important;
    z-index: 10;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    width: var(--cee-cats-arrow-size, 44px) !important;
    height: var(--cee-cats-arrow-size, 44px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: var(--cee-cats-arrow-size, 44px) !important;
    max-height: var(--cee-cats-arrow-size, 44px) !important;
    padding: 0 !important;
    color: var(--cee-cats-arrow, #fff) !important;
    background: var(--cee-cats-arrow-bg, rgba(0, 0, 0, 0.35)) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* POSITION 1 — no header: pinned over the slides, vertically centred. */
.cyliumee-cats .cyliumee-cats__nav,
.cyliumee-cats button.cyliumee-cats__nav {
    position: absolute !important;
    top: 50% !important;
    margin: calc(var(--cee-cats-arrow-size, 44px) / -2) 0 0 0 !important;
}

/* POSITION 2 — inside the title row: in flow, no offsets at all. */
.cyliumee-cats__nav-wrap .cyliumee-cats__nav,
.cyliumee-cats__nav-wrap button.cyliumee-cats__nav {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
}

.cyliumee-cats .cyliumee-cats__nav:hover,
.cyliumee-cats .cyliumee-cats__nav:focus,
.cyliumee-cats button.cyliumee-cats__nav:hover,
.cyliumee-cats button.cyliumee-cats__nav:focus,
.cyliumee-cats__nav-wrap .cyliumee-cats__nav:hover,
.cyliumee-cats__nav-wrap .cyliumee-cats__nav:focus {
    color: var(--cee-cats-arrow-hover, var(--cee-cats-arrow, #fff)) !important;
    background: var(--cee-cats-arrow-bg-hover, rgba(0, 0, 0, 0.6)) !important;
    background-image: none !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.cyliumee-cats .cyliumee-cats__nav--prev { left: 12px !important; right: auto !important; }

.cyliumee-cats .cyliumee-cats__nav--next { right: 12px !important; left: auto !important; }

.cyliumee-cats .cyliumee-cats__nav--disabled {
    opacity: 0;
    pointer-events: none;
}

/* In the title row the arrows are in flow: fading them to 0 would leave two
   holes, so dim them instead. */
.cyliumee-cats__nav-wrap .cyliumee-cats__nav--disabled {
    opacity: 0.3;
    pointer-events: none;
}

.cyliumee-cats__nav-wrap .cyliumee-cats__nav--lock {
    display: none !important;
}

.cyliumee-cats .cyliumee-cats__nav--lock,
.cyliumee-cats__nav.swiper-button-lock {
    display: none !important;
}

.cyliumee-cats .cyliumee-cats__nav svg,
.cyliumee-cats__nav-wrap .cyliumee-cats__nav svg {
    display: block;
    width: 40%;
    height: 40%;
}

.cyliumee-cats__pagination {
    position: relative;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.cyliumee-cats__pagination--clickable .cyliumee-cats__bullet { pointer-events: auto; }

.cyliumee-cats__bullet {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: var(--cee-cats-dot, rgba(0,0,0,0.25));
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cyliumee-cats__bullet--active {
    background: var(--cee-cats-dot-active, #1a1a1a);
    transform: scale(1.25);
}

@media (max-width: 1024px) {
    .cyliumee-cats__title { font-size: var(--cee-cats-title-size-tablet, var(--cee-cats-title-size, 1.05rem)); }
}

@media (max-width: 768px) {
    .cyliumee-cats__title { font-size: var(--cee-cats-title-size-mobile, var(--cee-cats-title-size-tablet, var(--cee-cats-title-size, 1rem))); }
    .cyliumee-cats__meta  { padding: 10px 2px 4px; }
}

.cyliumee-cats--full-bleed {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: var(--cee-cats-bleed-pad, 24px);
    padding-right: var(--cee-cats-bleed-pad, 24px);
    overflow: hidden;
}

.cyliumee-cats--full-bleed .cyliumee-cats__nav--prev { left: calc(var(--cee-cats-bleed-pad, 24px) - 6px); }

.cyliumee-cats--full-bleed .cyliumee-cats__nav--next { right: calc(var(--cee-cats-bleed-pad, 24px) - 6px); }

/* ─────────────────────────────────────────────────────────────────────────
 * TITLE POSITION (setting: title_position)
 *
 * The meta block (title + count + button) normally sits UNDER the image. These
 * modifiers move it INTO the image without touching the DOM: `__link` wraps both
 * the image and the meta, so making it the positioning context is enough. That
 * keeps the markup identical for every mode — nothing to migrate, and the grid
 * and carousel presets are unaffected.
 * ───────────────────────────────────────────────────────────────────────── */

.cyliumee-cats--title-overlay .cyliumee-cats__link,
.cyliumee-cats--title-banner .cyliumee-cats__link,
.cyliumee-cats--title-hover .cyliumee-cats__link {
    position: relative;
}

.cyliumee-cats--title-overlay .cyliumee-cats__meta,
.cyliumee-cats--title-banner .cyliumee-cats__meta,
.cyliumee-cats--title-hover .cyliumee-cats__meta {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0;
    padding: var(--cee-cats-title-pad, 14px);
    color: var(--cee-cats-overlay-text, #fff);
}

/* Text sits on a photo: inherit white by default so it stays readable even
   before the editor touches a colour. */
.cyliumee-cats--title-overlay .cyliumee-cats__title,
.cyliumee-cats--title-banner .cyliumee-cats__title,
.cyliumee-cats--title-hover .cyliumee-cats__title,
.cyliumee-cats--title-overlay .cyliumee-cats__count,
.cyliumee-cats--title-banner .cyliumee-cats__count,
.cyliumee-cats--title-hover .cyliumee-cats__count {
    color: inherit;
}

/* -- Vertical placement (overlay only; the banner is always at the bottom) -- */
.cyliumee-cats--title-overlay.cyliumee-cats--titlepos-bottom .cyliumee-cats__meta,
.cyliumee-cats--title-hover .cyliumee-cats__meta { bottom: 0; }

.cyliumee-cats--title-overlay.cyliumee-cats--titlepos-top .cyliumee-cats__meta { top: 0; }

.cyliumee-cats--title-overlay.cyliumee-cats--titlepos-center .cyliumee-cats__meta {
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

/* -- Scrim: a gradient behind the text, so a light photo stays readable ---- */
.cyliumee-cats--title-overlay .cyliumee-cats__image-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, var(--cee-cats-scrim, 0.55)), transparent);
    pointer-events: none;
    z-index: 1;
}

.cyliumee-cats--title-overlay.cyliumee-cats--titlepos-top .cyliumee-cats__image-wrap::after {
    top: 0;
    bottom: auto;
    background: linear-gradient(to bottom, rgba(0, 0, 0, var(--cee-cats-scrim, 0.55)), transparent);
}

.cyliumee-cats--title-overlay.cyliumee-cats--titlepos-center .cyliumee-cats__image-wrap::after {
    top: 0;
    height: 100%;
    background: rgba(0, 0, 0, var(--cee-cats-scrim, 0.55));
}

/* -- Solid banner --------------------------------------------------------- */
.cyliumee-cats--title-banner .cyliumee-cats__meta {
    bottom: 0;
    background: var(--cee-cats-banner-bg, rgba(0, 0, 0, 0.7));
}

/* -- Revealed on hover ---------------------------------------------------- */
/* Not offered as a default for a reason: there is no hover on a touch screen,
   so the title would be unreachable on mobile. The widget therefore keeps it
   visible below 768px. */
/* Specificity matched to the :hover rule below (0,3,0) so the hidden state is
   not lost to it by source order. */
.cyliumee-cats--title-hover .cyliumee-cats__card .cyliumee-cats__meta {
    opacity: 0;
    transition: opacity 0.25s ease;
    background: var(--cee-cats-banner-bg, rgba(0, 0, 0, 0.7));
}

.cyliumee-cats--title-hover .cyliumee-cats__card:hover .cyliumee-cats__meta,
.cyliumee-cats--title-hover .cyliumee-cats__link:focus-visible .cyliumee-cats__meta {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .cyliumee-cats--title-hover .cyliumee-cats__card .cyliumee-cats__meta {
        opacity: 1;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
 * BADGE ICON (settings: selected_cat_icon / cat_icon_position / _display)
 *
 * Rendered inside `__image-wrap` (already position:relative), above the image but
 * BELOW the title scrim's z-index so an overlaid title stays readable.
 * The icon markup itself comes from Creative Elements' IconsManager, which
 * outputs either an <i class="fa…"> or an inline <svg> — both are sized here
 * through font-size / width so the two behave the same.
 * ───────────────────────────────────────────────────────────────────────── */

.cyliumee-cats__icon {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: var(--cee-cats-icon-size, 22px);
    color: var(--cee-cats-icon-color, #ffffff);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* A disc only appears once a background colour is set; otherwise the icon sits
   directly on the image with no box. */
.cyliumee-cats__icon:not(:empty) {
    background: var(--cee-cats-icon-bg, transparent);
    border-radius: 50%;
    padding: var(--cee-cats-icon-pad, 0.45em);
}

.cyliumee-cats__icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* -- Placement ------------------------------------------------------------ */
.cyliumee-cats__icon--top-left {
    top: var(--cee-cats-icon-offset, 10px);
    left: var(--cee-cats-icon-offset, 10px);
}

.cyliumee-cats__icon--top-right {
    top: var(--cee-cats-icon-offset, 10px);
    right: var(--cee-cats-icon-offset, 10px);
}

.cyliumee-cats__icon--bottom-left {
    bottom: var(--cee-cats-icon-offset, 10px);
    left: var(--cee-cats-icon-offset, 10px);
}

.cyliumee-cats__icon--bottom-right {
    bottom: var(--cee-cats-icon-offset, 10px);
    right: var(--cee-cats-icon-offset, 10px);
}

.cyliumee-cats__icon--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* -- Visibility ---------------------------------------------------------- */
.cyliumee-cats__icon--show-always {
    opacity: 1;
}

.cyliumee-cats__card .cyliumee-cats__icon--show-hover {
    opacity: 0;
}

.cyliumee-cats__card:hover .cyliumee-cats__icon--show-hover,
.cyliumee-cats__link:focus-visible .cyliumee-cats__icon--show-hover {
    opacity: 1;
}

.cyliumee-cats__card .cyliumee-cats__icon--show-hover-hide {
    opacity: 1;
}

.cyliumee-cats__card:hover .cyliumee-cats__icon--show-hover-hide {
    opacity: 0;
}

/* No hover on a touch screen: a hover-only icon would never be seen. */
@media (max-width: 767.98px) {
    .cyliumee-cats__card .cyliumee-cats__icon--show-hover {
        opacity: 1;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
 * BACKGROUND OVERLAY (Style > Background Overlay)
 *
 * The overlay itself is entirely driven by CE's native Background / CSS-filter
 * groups, which write to `__image-wrap::before`. All this rule does is make that
 * pseudo-element exist and cover the image; with no overlay configured it stays
 * fully transparent and invisible.
 *
 * ::before on purpose: `::after` already carries the title scrim, and since
 * ::before is painted first the scrim stays on top — so a title over the image
 * remains readable whatever the overlay.
 * ───────────────────────────────────────────────────────────────────────── */

.cyliumee-cats__image-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}
