/* ============================================================
   Special Section Swiper – Widget Styles
   ============================================================ */

.sss-swiper-wrapper {
    position: relative;
    width: 100%;
}

/* Section Title */
.sss-section-title {
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 700;
}

/* Swiper container */
.sss-swiper {
    width: 100%;
    overflow: hidden;
}

/* Product Card */
.sss-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sss-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Product Image */
.sss-product-image-link {
    display: block;
    overflow: hidden;
}

.sss-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sss-product-card:hover .sss-product-image {
    transform: scale(1.04);
}

/* Product Info */
.sss-product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

/* Title */
.sss-product-title {
    font-size: 0.95em;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
}

.sss-product-info a {
    text-decoration: none;
    color: inherit;
}

.sss-product-info a:hover .sss-product-title {
    text-decoration: underline;
}

/* Excerpt */
.sss-product-excerpt {
    font-size: 0.82em;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.sss-product-price {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
}

.sss-product-price .woocommerce-Price-amount {
    color: inherit;
}

.sss-product-price del {
    opacity: 0.55;
    font-weight: 400;
}

.sss-product-price ins {
    text-decoration: none;
    color: #0061a4;
}

/* Add to Cart */
.sss-add-to-cart {
    display: inline-block;
    margin-top: auto;
    padding: 8px 14px;
    font-size: 0.82em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.sss-add-to-cart:hover {
    background-color: #135e96;
    color: #fff;
    text-decoration: none;
}

.sss-add-to-cart.loading {
    opacity: 0.65;
    pointer-events: none;
}

.sss-add-to-cart.added {
    background-color: #46b450;
}

/* Navigation Arrows */
.sss-swiper-button-prev,
.sss-swiper-button-next {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease;
}

.sss-swiper-button-prev:hover,
.sss-swiper-button-next:hover {
    background: #fff;
}

.sss-swiper-button-prev::after,
.sss-swiper-button-next::after {
    font-size: 14px;
    color: #333;
    font-weight: 700;
}

/* Pagination */
.sss-swiper-pagination {
    position: relative;
    margin-top: 16px;
}

.sss-swiper-pagination .swiper-pagination-bullet {
    background: #999;
    opacity: 0.5;
}

.sss-swiper-pagination .swiper-pagination-bullet-active {
    background: #2271b1;
    opacity: 1;
}

/* No products */
.sss-no-products {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Elementor editor placeholder */
.elementor-editor-active .sss-swiper .swiper-wrapper {
    transform: none !important;
}
