:root {
    /* Modify colors & borders using these placeholder variables */
    --cst-card-bg: #ffffff;
    --cst-card-border: #e2e8f0;
    --cst-text-color: #1a202c;
    --cst-price-color: #2b6cb0;
    --cst-placeholder-bg: #edf2f7;
    --cst-radius: 8px;

    /* Header row: numbered pagination + next arrow (Artists/Products sliders) */
    --cst-nav-color: #1a202c;
    --cst-nav-border: #cbd5e0;
    --cst-nav-active-bg: #d6488f;
    --cst-nav-active-color: #ffffff;

    /* Showcase slider overlay arrows */
    --cst-showcase-arrow-bg: rgba(0, 0, 0, 0.35);
    --cst-showcase-arrow-border: rgba(255, 255, 255, 0.85);
    --cst-showcase-arrow-color: #ffffff;
}

.cst-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 10px 0 40px 0;
}

/* ------------------------------------------------------------------
   Slider header — optional heading on the left, numbered pagination
   + next arrow pinned to the opposite (right) end, both on one row.
   Shared by the Artists slider and the Products ("Artist Collection")
   slider, since both render through the base widget.
   ------------------------------------------------------------------ */
.cst-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--cst-card-border);
}

.cst-slider-header__title {
    margin: 0;
    display: flex;
    align-items: center;
}

.cst-slider-header__title .elementor-heading-title {
    margin: 0; /* remove default heading margin so it centers cleanly against the pagination row */
    line-height: 1.2;
}

.cst-slider-header__nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto; /* keeps nav pinned right even when there's no heading */
}

/* Numbered pagination (replaces the centered dots) */
.cst-slider-header__nav .swiper-pagination {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
}

.cst-slider-header__nav .swiper-pagination-bullet {
    width: 26px;
    height: 26px;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    opacity: 1;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    color: var(--cst-nav-color);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cst-slider-header__nav .swiper-pagination-bullet-active {
    background: var(--cst-nav-active-bg);
    color: var(--cst-nav-active-color);
}

/* Next arrow — outlined circle sitting after the numbers */
.cst-slider-header__nav .swiper-button-next {
    position: static;
    width: 32px;
    height: 32px;
    margin: 0;
    border: 1px solid var(--cst-nav-border);
    border-radius: 50%;
    color: var(--cst-nav-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cst-slider-header__nav .swiper-button-next::after {
    font-size: 13px;
    font-weight: 700;
}

.cst-slider-header__nav .swiper-button-next:hover {
    background: var(--cst-nav-color);
    border-color: var(--cst-nav-color);
    color: #ffffff;
}

.cst-card {
    background: var(--cst-card-bg);
    border: 1px solid var(--cst-card-border);
    border-radius: var(--cst-radius);
    overflow: hidden;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* When a slide is rendered from a Loop Item template, let the template
   own its own look instead of forcing the built-in card chrome on it. */
.cst-card--template {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.cst-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cst-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.cst-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cst-card__placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--cst-placeholder-bg);
}

.cst-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cst-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cst-text-color);
}

.cst-card__price {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--cst-price-color);
}


/* Showcase Wrapper */
.cst-slider-wrapper--showcase {
    position: relative;
    max-width: 100%;
}

.cst-card--showcase .cst-card__image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cst-card--showcase .cst-card__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.cst-card__body--showcase {
    padding-top: 15px;
    text-align: left;
}

.cst-card__body--showcase .cst-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

/* Overlaid navigation arrows — white circular buttons over the artwork */
.cst-slider-wrapper--showcase .swiper-button-next,
.cst-slider-wrapper--showcase .swiper-button-prev {
    top: 45%; /* Positioned over the artwork image */
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background: var(--cst-showcase-arrow-bg);
    border: 1px solid var(--cst-showcase-arrow-border);
    border-radius: 50%;
    color: var(--cst-showcase-arrow-color);
    text-shadow: none;
    transition: background-color 0.2s ease;
}

.cst-slider-wrapper--showcase .swiper-button-next::after,
.cst-slider-wrapper--showcase .swiper-button-prev::after {
    font-size: 16px;
}

.cst-slider-wrapper--showcase .swiper-button-next:hover,
.cst-slider-wrapper--showcase .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.55);
}

.cst-slider-wrapper--showcase .swiper-button-prev {
    left: 20px;
}

.cst-slider-wrapper--showcase .swiper-button-next {
    right: 20px;
}