/* ============================================================
   WooCommerce Product Slider — wps-style.css
   Matches the original HTML slider design exactly
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.wps-product-slider-wrap {
    width: 90%;
    margin: 50px auto;
}

/* ── Slider track ────────────────────────────────────────── */
.wps-slider {
    /* Slick adds its own display handling */
}

/* ── Individual product card ─────────────────────────────── */
.wps-slider .product-item {
    background: #F6F6F8;
    padding: 25px 0 0;
    margin: 10px;
    border-radius: 6px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.wps-slider .product-item:hover {
    box-shadow: 0 6px 24px rgba(20, 52, 117, 0.12);
}

/* ── Product image container ─────────────────────────────── */
.wps-slider .wps-img-wrap {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #F6F6F8;
}

.wps-slider .wps-img-wrap img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.wps-slider .product-item:hover .wps-img-wrap img {
    transform: scale(1.04);
}

/* ── Product title bar ───────────────────────────────────── */
.wps-slider .product-title {
    margin-top: 15px;
    padding: 12px 15px;
    background: #E1E6F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
    color: #143475;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    gap: 8px;
}

.wps-slider .wps-title-text {
    flex: 1;
    text-align: left;
}

.wps-slider .wps-arrow {
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.wps-slider .product-item:hover .wps-arrow {
    transform: translateX(4px);
}

/* ── Price ───────────────────────────────────────────────── */
.wps-slider .wps-price {
    padding: 8px 15px 12px;
    background: #E1E6F0;
    font-size: 14px;
    font-weight: 600;
    color: #143475;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: left;
}

.wps-slider .wps-price .woocommerce-Price-amount {
    color: inherit;
}

.wps-slider .wps-price del {
    opacity: 0.6;
    font-weight: 400;
    margin-right: 4px;
}

.wps-slider .wps-price ins {
    text-decoration: none;
}

/* ── Active (centre) slide highlight ─────────────────────── */
.wps-slider .slick-center .product-title,
.wps-slider .slick-center .wps-price {
    background: #1e3a6d;
    color: #fff;
}

.wps-slider .slick-center .wps-price .woocommerce-Price-amount {
    color: #fff;
}

/* ── Link reset ──────────────────────────────────────────── */
.wps-slider a.wps-product-link,
.wps-slider a.wps-product-link:visited,
.wps-slider a.wps-product-link:hover {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ── Navigation arrows ───────────────────────────────────── */
.wps-product-slider-wrap .slick-prev,
.wps-product-slider-wrap .slick-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.25s ease;
}

.wps-product-slider-wrap .slick-prev {
    background: #E1E6F0 !important;
    left: -50px;
}

.wps-product-slider-wrap .slick-next {
    background: #143475 !important;
    right: -50px;
}

.wps-product-slider-wrap .slick-prev:before,
.wps-product-slider-wrap .slick-next:before {
    font-family: monospace;
    font-size: 22px !important;
    line-height: 1;
    opacity: 1;
}

.wps-product-slider-wrap .slick-prev:before {
    color: #143475 !important;
}

.wps-product-slider-wrap .slick-next:before {
    color: #fff !important;
}

.wps-product-slider-wrap .slick-prev:hover {
    background: #1e3a6d !important;
}

.wps-product-slider-wrap .slick-prev:hover:before {
    color: #fff !important;
}

.wps-product-slider-wrap .slick-next:hover {
    background: #1e3a6d !important;
}

/* ── Dots ────────────────────────────────────────────────── */
.wps-product-slider-wrap .slick-dots li button:before {
    color: #143475;
    font-size: 10px;
}

.wps-product-slider-wrap .slick-dots li.slick-active button:before {
    color: #143475;
    opacity: 1;
}

/* ── No products message ─────────────────────────────────── */
.wps-no-products {
    text-align: center;
    color: #888;
    padding: 20px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {
    .wps-slider .wps-img-wrap,
    .wps-slider .wps-img-wrap img {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .wps-product-slider-wrap {
        width: 95%;
    }

    .wps-slider .wps-img-wrap,
    .wps-slider .wps-img-wrap img {
        height: 200px;
    }
}
