/* * UPDATED & OPTIMIZED CSS for Product Details Widget
 * Version: 1.3.0
 * Fixes: Slider overflow, icon box layout.
 * Improvements: Clean, performance-focused styles.
*/

/* Product Details Widget Main Styles */
.product-details-widget {
    border: 1px solid #e0e0e0;
    padding: 20px;
    font-family: sans-serif;
}

.product-details-widget .swiper-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    --swiper-theme-color: #005fde;
    --swiper-navigation-size: 30px;
}
.product-details-widget .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    /* Center slide text vertically */
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-details-widget .swiper-slide img {
    display: block;
    width: 100%;       
    height: auto;
    object-fit: cover;
}
.product-details-widget .swiper-button-next,
.product-details-widget .swiper-button-prev {
    color: var(--swiper-theme-color);
}
.product-details-widget .swiper-pagination-bullet-active {
    background: var(--swiper-theme-color);
}


/* Title Styles */
.product-details-widget .product-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

/* Button Styles */
.product-details-widget .product-button {
    display: inline-block;
    background-color: #005fde;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 25px;
    transition: background-color 0.3s, color 0.3s;
}
.product-details-widget .product-button:hover {
    background-color: #004ab0;
}

/* Technical Details Accordion Styles */
.product-details-widget .technical-details {
    margin-bottom: 25px;
}
.product-details-widget .technical-details details {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.product-details-widget .technical-details summary {
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    background-color: #f9f9f9;
    position: relative;
    list-style: none;
}
.product-details-widget .technical-details summary::-webkit-details-marker {
    display: none;
}
.product-details-widget .technical-details summary::after {
    content: '+';
    float: right;
    font-size: 20px;
    line-height: 1;
}
.product-details-widget .technical-details details[open] summary::after {
    content: '−';
}
.product-details-widget .details-content { padding: 0; }
.product-details-widget .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}
.product-details-widget .detail-row:last-child { border-bottom: none; }
.product-details-widget .detail-label {
    font-weight: 500;
    color: #333;
    padding-right: 10px;
}
.product-details-widget .detail-value {
    color: #666;
    text-align: right;
}

/* === ICON BOX (FEATURES) STYLES === */
.product-details-widget .features-section {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
}
.product-details-widget .feature-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}
/* On screens wider than 767px, create 2 columns */
@media (min-width: 768px) {
    .product-details-widget .feature-box {
        width: calc(50% - 10px); 
    }
}
.product-details-widget .feature-icon {
    font-size: 24px;
    color: #005fde;
    margin-top: 3px;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}
.product-details-widget .feature-content { flex: 1; }
.product-details-widget .feature-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.product-details-widget .feature-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}