/* Structural Styles for the Product Slider Widget */
.wc-slider-pro-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 30px;
    width: 100%;
}

.wc-slider-pro-wrapper .swiper-wrapper {
    display: flex;
    box-sizing: border-box;
}

.wc-slider-pro-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: all 0.3s ease;
    height: auto !important; /* Enforces equal height within slider container grid */
}

/* Image Wrapper with absolute Aspect ratio & optional Zoom */
.wc-slider-pro-img-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-slider-pro-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Details and Spacing */
.wc-slider-pro-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.wc-slider-pro-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 10px 0 5px 0;
}

.wc-slider-pro-title a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.wc-slider-pro-price {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.wc-slider-pro-price ins {
    text-decoration: none;
    margin-left: 5px;
}

/* Add to Cart button styles & notice integration */
.wc-slider-pro-btn-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.wc-slider-pro-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

/* Custom AJAX Success Badge Notice */
.wc-slider-pro-success-badge {
    color: #46b450;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading overlay for the card */
.wc-slider-pro-item.loading {
    opacity: 0.7;
}

/* Basic Swiper Navigation Tweaks */
.wc-slider-pro-wrapper .swiper-button-next,
.wc-slider-pro-wrapper .swiper-button-prev {
    color: #111;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wc-slider-pro-wrapper .swiper-button-next::after,
.wc-slider-pro-wrapper .swiper-button-prev::after {
    font-size: 14px;
}

.wc-slider-pro-wrapper .swiper-pagination-bullet-active {
    background: #111;
}

/* Editor Placeholder Styles */
.wc-slider-pro-placeholder-editor {
    background: #f7f7f7;
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
}
