/* =========================================================
   Swiper Product Carousel – refined neutral styling
   ========================================================= */

/* Container */
.swiper {
    width: 100%;
    max-width: 100px;
    margin: 0 auto 48px;
    padding: 32px 0 40px;
    box-sizing: border-box;
}

/* Ensure wrapper has space for bullets */
.swiper-wrapper {
    padding-bottom: 32px;
}

/* Slides as soft cards with background image */
.swiper-slide {
    position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 340px;
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--vb-card, #ffffff);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Remove any 3D shadows from default Swiper styles */
.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right {
    background-image: none !important;
}

/* =========================================================
   Product content overlay
   ========================================================= */

.product-details {
    position: center;
    z-index: 2;
    width: 100%;
    padding: 18px 20px 20px;
    box-sizing: border-box;
    color: #ffffff;
    /* Soft dark-to-transparent gradient for readability */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.25),
        transparent
    );
}

/* Title */
.s-title {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.s-title a {
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: none;
}

/* Price */
.product-price {
    display: inline-block;
    margin-top: 2px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--vb-accent, #5b6647);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(248, 246, 242, 0.92);
}

/* WooCommerce add-to-cart button inside the slide */
.product-details .button,
.product-details .added_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    border: none;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--vb-accent, #5b6647);
    color: #ffffff;
    text-decoration: none;
}

.product-details .button:hover,
.product-details .added_to_cart:hover {
    background: #475039;
    color: #ffffff;
}

/* =========================================================
   Pagination bullets
   ========================================================= */

.swiper-pagination {
    bottom: 8px !important;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    opacity: 1;
    margin: 0 4px !important;
    transition: width 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.swiper-pagination-bullet-active {
    width: 18px;
    background: var(--vb-accent, #5b6647);
    opacity: 1;
}

/* =========================================================
   Navigation arrows
   ========================================================= */

.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(248, 246, 242, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: #222222;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px;
    font-weight: 600;
}

/* Keep arrows close to the carousel edge */
.swiper-button-prev {
    left: -6px;
}
.swiper-button-next {
    right: -6px;
}

/* =========================================================
   Category labels (if present in the markup)
   ========================================================= */

.product-details span {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   Responsive tweaks
   ========================================================= */

@media (max-width: 1024px) {
    .swiper {
        padding: 24px 0 32px;
    }

    .swiper-slide {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .swiper {
        padding: 20px 0 28px;
    }

    .swiper-slide {
        min-height: 260px;
        border-radius: 16px;
    }

    /* Hide arrows on small screens – touch swipe is enough */
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    .product-details {
        padding: 14px 16px 16px;
    }

    .s-title {
        font-size: 0.95rem;
    }
}
