/* WooCommerce Products Slider Widget - Frontend Styles */

.wew-products-slider-wrapper {
    position: relative;
    width: 100%;
}

.wew-products-slider-wrapper .swiper {
    width: 100%;
    padding: 20px 0;
}

.wew-products-slider-wrapper .swiper-slide {
    height: auto;
    display: flex;
}

/* Inherit all product styles from products-list */
.wew-products-slider-wrapper .wew-product-item {
    position: relative;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.wew-products-slider-wrapper .wew-product-image-container {
    position: relative;
    width: 100%;
    background-color: #f6f6f6;
    margin-bottom: 20px;
    aspect-ratio: 1/1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.wew-products-slider-wrapper .wew-product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wew-products-slider-wrapper .wew-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition-property: transform, opacity, padding;
    transition-timing-function: ease;
    transition-duration: 0.6s;
}

.wew-products-slider-wrapper .wew-product-item:hover .wew-product-image img {
    transform: scale(1.08);
}

/* Sale Badge */
.wew-products-slider-wrapper .wew-product-badge {
    position: absolute;
    top: 15px;
    background-color: #ff6b6b;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
    border-radius: 2px;
}

/* Action Buttons */
.wew-products-slider-wrapper .wew-product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.wew-products-slider-wrapper .wew-product-item:hover .wew-product-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Info Section */
.wew-products-slider-wrapper .wew-product-info {
    padding: 10px 5px 20px;
}

.wew-products-slider-wrapper .wew-product-categories {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.wew-products-slider-wrapper .wew-product-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #333;
    line-height: 1.4;
}

.wew-products-slider-wrapper .wew-product-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.wew-products-slider-wrapper .wew-product-title a:hover {
    color: #ff6b6b;
}

.wew-products-slider-wrapper .wew-product-price {
    font-size: 15px;
    font-weight: 700;
}

.wew-products-slider-wrapper .wew-product-price del {
    color: #ccc;
    font-weight: 400;
    margin-right: 8px;
    font-size: 0.9em;
}

.wew-products-slider-wrapper .wew-product-price ins {
    text-decoration: none;
    color: #4a6cf7;
}

/* Rating */
.wew-products-slider-wrapper .wew-product-rating {
    margin: 5px 0 10px;
    display: flex;
    justify-content: center;
}

.wew-products-slider-wrapper .star-rating {
    font-size: 12px;
    color: #ffc107;
}

/* Add to Cart Button */
.wew-products-slider-wrapper .wew-product-add-to-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.wew-products-slider-wrapper .wew-product-add-to-cart a {
    display: inline-flex;
    align-items: center;
    background: #ff6b6b;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.wew-products-slider-wrapper .wew-product-add-to-cart a:hover {
    background: #fa5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.wew-products-slider-wrapper .wew-btn-icon {
    margin-left: 8px;
    font-size: 14px;
}

.wew-product-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.wew-product-variations .variation-item {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.wew-product-variations .variation-item:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-2px);
}

/* Skin: Overlay */
.wew-products-slider-wrapper.wew-products-skin-overlay .wew-product-item {
    position: relative;
    height: 100%;
}

.wew-products-slider-wrapper.wew-products-skin-overlay .wew-product-image-container {
    margin-bottom: 0;
    height: 100%;
}

.wew-products-slider-wrapper.wew-products-skin-overlay .wew-product-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 10;
}

.wew-products-slider-wrapper.wew-products-skin-overlay .wew-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wew-products-skin-overlay .wew-product-image-container::after {
    display: none;
}

.wew-products-skin-overlay .wew-product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 15;
    padding: 20px;
    text-align: center;
}

.wew-products-skin-overlay .wew-product-info * {
    color: #fff !important;
}

.wew-products-skin-overlay .wew-product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: max-content;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wew-products-skin-overlay .wew-product-item:hover .wew-product-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.wew-products-skin-overlay .wew-btn-icon {
    background: #fff;
    color: #ff6b6b !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 12px;
}

/* Skin: Minimal */
.wew-products-skin-minimal .wew-product-item {
    flex-direction: row;
    align-items: center;
    padding: 15px 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.wew-products-skin-minimal .wew-product-minimal-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.wew-products-skin-minimal .wew-product-image {
    width: 145px;
    height: auto;
    flex-shrink: 0;
}

.wew-products-skin-minimal .wew-product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.wew-products-skin-minimal .wew-product-info {
    padding: 0;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.wew-products-skin-minimal .wew-product-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.25;
    text-align: left;
    color: #1a3c5a;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wew-products-skin-minimal .wew-product-title a {
    color: inherit;
    text-decoration: none;
    display: block !important;
}

.wew-products-skin-minimal .wew-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff0000;
    text-align: left;
    display: flex !important;
    align-items: baseline !important;
    gap: 12px;
}

.wew-products-skin-minimal .wew-product-price del {
    font-size: 1em;
    text-decoration: line-through;
}

.wew-products-skin-minimal .wew-product-price ins {
    text-decoration: underline;
    font-weight: 700;
}

/* Swiper Navigation Arrows */
.wew-products-slider-wrapper .swiper-button-prev,
.wew-products-slider-wrapper .swiper-button-next {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wew-products-slider-wrapper .swiper-button-prev:after,
.wew-products-slider-wrapper .swiper-button-next:after {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.wew-products-slider-wrapper .swiper-button-prev:hover,
.wew-products-slider-wrapper .swiper-button-next:hover {
    background: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.wew-products-slider-wrapper .swiper-button-prev:hover:after,
.wew-products-slider-wrapper .swiper-button-next:hover:after {
    color: #fff;
}

/* Swiper Pagination */
.wew-products-slider-wrapper .swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.wew-products-slider-wrapper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.wew-products-slider-wrapper .swiper-pagination-bullet-active {
    background: #ff6b6b;
    width: 30px;
    border-radius: 6px;
}

/* Skin: Minimalist - Information Slide Up */
.wew-products-skin-minimalist .wew-product-item {
    overflow: hidden;
    position: relative;
    background: #fff;
}

.wew-products-skin-minimalist .wew-product-image-container {
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    height: 100%;
    aspect-ratio: 1/1.2;
}

.wew-products-skin-minimalist .wew-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.wew-products-skin-minimalist .wew-product-item:hover .wew-product-image img {
    transform: scale(1.05);
}

.wew-product-minimalist-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 25px 20px;
    transition: bottom 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    box-sizing: border-box;
    text-align: center;
    backdrop-filter: blur(5px);
    z-index: 20;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.wew-product-item:hover .wew-product-minimalist-info {
    bottom: 0;
}

.wew-products-skin-minimalist .wew-info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.wew-product-item:hover .wew-info-content {
    opacity: 1;
    transform: translateY(0);
}

.wew-products-skin-minimalist .wew-product-categories {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    margin-bottom: 2px;
}

.wew-products-skin-minimalist .wew-product-title {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: #222;
}

.wew-products-skin-minimalist .wew-product-price {
    font-size: 15px;
    font-weight: 500;
    margin-top: 5px;
}

.wew-products-skin-minimalist .wew-product-variations {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wew-products-skin-minimalist .wew-product-variations .variation-item {
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 0;
    background: transparent;
    border: 1px solid #eee;
    color: #333;
    text-decoration: none;
}

.wew-products-skin-minimalist .wew-product-add-to-cart {
    margin-top: 15px;
}

.wew-products-skin-minimalist .wew-product-add-to-cart a {
    background: #000;
    color: #fff;
    border-radius: 0;
    padding: 12px 20px;
    font-size: 11px;
    width: 100%;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
}

.wew-products-skin-minimalist .wew-product-add-to-cart a:hover {
    background: #333;
    transform: none;
}

.wew-products-skin-minimalist .wew-btn-icon {
    font-size: 13px;
    margin-right: 10px;
    margin-left: 0;
}