/**
 * 2025-2026 CyliumDev
 * @license   Proprietary - Non-commercial use only
 *
 * Product carousel markup, shared by the product carousel and the
 * deprecated product slider (cyliumee-carousel 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-ps {
    position: relative;
    width: 100%;
}

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

.cyliumee-ps .cyliumee-ps__nav,
.cyliumee-ps button.cyliumee-ps__nav {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    width: var(--cee-ps-arrow-size, 44px) !important;
    height: var(--cee-ps-arrow-size, 44px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: var(--cee-ps-arrow-size, 44px) !important;
    max-height: var(--cee-ps-arrow-size, 44px) !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--cee-ps-arrow, #fff) !important;
    background: var(--cee-ps-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;
}

.cyliumee-ps .cyliumee-ps__nav:hover,
.cyliumee-ps .cyliumee-ps__nav:focus {
    color: var(--cee-ps-arrow-hover, var(--cee-ps-arrow, #fff)) !important;
    background: var(--cee-ps-arrow-bg-hover, rgba(0, 0, 0, 0.6)) !important;
    outline: 0 !important;
}

.cyliumee-ps .cyliumee-ps__nav--disabled {
    opacity: 0.3;
    pointer-events: none;
}

.cyliumee-ps .cyliumee-ps__nav svg {
    display: block;
    width: 40%;
    height: 40%;
}

.cyliumee-ps__slider {
    position: relative;
    width: 100%;
}

.cyliumee-ps__card {
    height: auto;
    display: flex;
    flex-direction: column;
}

.cyliumee-ps__card > .product-miniature,
.cyliumee-ps__card > .js-product-miniature,
.cyliumee-ps__card > .product {
    flex: 1 1 auto;
    margin: 0;
    height: 100%;
    width: 100%;
}

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

.cyliumee-ps__pagination--clickable .cyliumee-ps__bullet { pointer-events: auto; }

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

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

/* ─────────────────────────────────────────────────────────────────────────
 * UNAVAILABLE PRODUCT CARDS (.cyliumee-ps__card--unavailable)
 *
 * Set by the renderer when the product cannot be ordered (catalogue-only, out of
 * stock under the shop's policy, no add-to-cart URL). Everything here applies to
 * the card WRAPPER only — the miniature inside belongs to the theme template
 * chosen in the "Miniature" control and is never restyled.
 *
 * All three effects default to "no change", so nothing happens until the editor
 * sets them in Style > Product cards > Unavailable.
 * ───────────────────────────────────────────────────────────────────────── */

.cyliumee-ps__card--unavailable {
    opacity: var(--cee-ps-card-off-opacity, 1);
    filter: grayscale(var(--cee-ps-card-off-gray, 0));
    border: var(--cee-ps-card-off-bw, 0) solid var(--cee-ps-card-off-bc, transparent);
    border-radius: var(--cee-ps-card-off-radius, 0);
    transition: opacity 0.2s ease, filter 0.2s ease;
}
