/*
 * pr_carousel — wrapper styles.
 * Does not touch product card styles (those come from the active theme).
 */

.pr-carousel {
    position: relative;
    margin: 2rem 0;
}

.pr-carousel__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pr-carousel__title {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.pr-carousel__description {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}
.pr-carousel__description p {
    margin: 0 0 0.5rem;
}
.pr-carousel__description p:last-child {
    margin-bottom: 0;
}

.pr-carousel__swiper {
    position: relative;
    overflow: hidden;
}

/*
 * Swiper infrastructural resets — required when theme overrides use <ul>/<li>
 * elements with the swiper-wrapper/swiper-slide classes (e.g. Vergreen override),
 * and when theme CSS scopes grid-wrap rules to `.product_list` with higher
 * specificity than Swiper's bundled CSS (which would otherwise force items
 * to wrap onto multiple rows).
 */
.pr-carousel .swiper-wrapper,
ul.pr-carousel__swiper-list.swiper-wrapper {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;          /* beats theme `display: grid` on .product_list.grid */
    flex-wrap: nowrap !important;      /* beats theme `flex-wrap: wrap` on .product_list */
    grid-template-columns: none !important;  /* belt-and-braces reset of any grid layout */
    align-items: stretch;
    width: 100%;
}

.pr-carousel .swiper-slide {
    flex-shrink: 0 !important;
    box-sizing: border-box;
    height: auto;
    display: flex;
    list-style: none;
}

.pr-carousel .swiper-slide::before,
.pr-carousel .swiper-slide::marker {
    content: none !important;
    display: none !important;
}

.pr-carousel__slide > * {
    width: 100%;
}

.pr-carousel__arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform .2s ease;
    padding: 0;
    cursor: pointer;
    color: #222;
}

.pr-carousel__arrow::after {
    font-size: 18px;
    font-weight: 700;
}

.pr-carousel__arrow:hover {
    transform: scale(1.05);
}

.pr-carousel__pagination {
    position: static !important;
    margin-top: 1rem;
    text-align: center;
}

.pr-carousel__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #ccc;
    opacity: 1;
    transition: background .2s ease;
}

.pr-carousel__pagination .swiper-pagination-bullet-active {
    background: #222;
}

/* Compact card */
.pr-carousel-card--compact {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
}

.pr-carousel-card--compact .pr-carousel-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.pr-carousel-card--compact .pr-carousel-card__body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pr-carousel-card--compact .pr-carousel-card__title {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
}

.pr-carousel-card--compact .pr-carousel-card__title a {
    color: inherit;
    text-decoration: none;
}

.pr-carousel-card--compact .pr-carousel-card__price {
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: auto;
}
