/* Product Slider for Elementor */

.pse-product-slider {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.pse-slider-viewport {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.pse-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.pse-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* --- Card --- */

.pse-card {
    background: rgba(247, 247, 247, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 12px 12px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
}

/* --- Image --- */

.pse-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    height: 221px;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 12px;
}

.pse-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
    box-sizing: border-box;
}

/* --- Meta row (badge + rating) --- */

.pse-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.pse-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    white-space: nowrap;
}

.pse-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pse-rating-val {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* --- Title --- */

.pse-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 10px 0;
    padding: 0 4px;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pse-card-title:hover {
    opacity: 0.85;
}

/* --- Price --- */

.pse-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 4px;
    flex-wrap: wrap;
}

.pse-price,
.pse-price span,
.pse-price .woocommerce-Price-amount,
.pse-price .woocommerce-Price-amount bdi,
.pse-price ins,
.pse-price ins .woocommerce-Price-amount,
.pse-price ins .woocommerce-Price-amount bdi {
    font-family: 'Inter', sans-serif !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    text-decoration: none !important;
}

.pse-price .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

.pse-price-old,
.pse-price-old span,
.pse-price-old .woocommerce-Price-amount,
.pse-price-old .woocommerce-Price-amount bdi,
.pse-price-old del,
.pse-price-old del .woocommerce-Price-amount,
.pse-price-old del .woocommerce-Price-amount bdi {
    font-family: 'Inter', sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    text-decoration: line-through !important;
    opacity: 0.7;
}

.pse-price-old .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* WooCommerce price markup reset */
.pse-card-price del,
.pse-card-price ins {
    text-decoration: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    background: none !important;
}

/* --- Add to Cart Button --- */

.pse-product-slider .pse-add-to-cart {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.25s ease;
    margin: 0 4px 12px;
    outline: none;
    box-shadow: none;
}

.pse-product-slider .pse-add-to-cart:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pse-product-slider .pse-add-to-cart svg {
    display: inline-block !important;
    visibility: visible !important;
    flex-shrink: 0;
}

/* --- Feature Tags --- */

.pse-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 4px;
}

.pse-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pse-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pse-feature-icon svg {
    display: block !important;
    visibility: visible !important;
    width: 16px;
    height: 16px;
}

.pse-feature-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: 24px;
}

/* --- Progress Bar --- */

.pse-progress {
    margin-top: 24px;
    padding: 0;
}

.pse-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
    position: relative;
}

.pse-progress-fill {
    height: 10px;
    border-radius: 10px;
    background: #ffffff;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    top: 0;
    left: 0;
    min-width: 30px;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .pse-card-title {
        font-size: 17px;
    }
    .pse-price {
        font-size: 24px;
    }
    .pse-price-old {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .pse-card {
        border-radius: 18px;
        padding: 10px 10px 16px;
    }
    .pse-card-image {
        height: 180px;
        border-radius: 12px;
    }
    .pse-card-title {
        font-size: 16px;
    }
    .pse-price {
        font-size: 22px;
    }
    .pse-price-old {
        font-size: 16px;
    }
    .pse-product-slider .pse-add-to-cart {
        font-size: 14px;
        padding: 10px 16px;
    }
    .pse-feature-text {
        font-size: 14px;
    }
}
