/**
 * Product Feature Carousel Widget Styles
 */

.mbk-product-feature-carousel {
    width: 100%;
    padding: 3rem 0;
    overflow: hidden;
}
.mbk-pfc-description, .mbk-pfc-description p {
    font-size: 24px;
    line-height: 1.3;
    margin: 0;
    color: #C6C6C6;
}
.mbk-pfc-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left Content */
.mbk-pfc-content {
    color: #fff;
}

.mbk-pfc-title {
    font-size: 75px;
    font-weight: 600;
    color: #00B29D;
    line-height: 1.2;
    letter-spacing: 3px;
    text-align: center;
    margin: 0;
}

.mbk-pfc-description {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 530px;
    margin: 0 auto;
}
/* Right Slider */
.mbk-pfc-slider-wrapper {
    position: relative;
    padding: 20px;
}

.mbk-pfc-slider-wrapper .swiper-container {
    overflow: visible;
}

.mbk-pfc-product-card {
    background: linear-gradient(180deg, #d4d4d4 0%, #f0f0f0 40%, #e0e0e0 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.8);
    min-height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start; /* Align contents to left */
    overflow: hidden;
}

/* Semi-transparent overlay at bottom for text readability */
.mbk-pfc-product-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgb(0 0 0 / 72%) 0%, transparent 100%);
    border-radius: 0 0 20px 20px;
    pointer-events: none;
    z-index: 9;
    height: 72%;
}

/* Image Container */
.mbk-pfc-product-image {
    width: 100%;
    height: 100%; /* Fixed height for image area */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    z-index: 2;
    transform: unset; /* Slightly float up */
    transition: transform 0.3s ease;
    position: relative;
    padding-top: calc(0.6 * 100%);
    overflow: hidden;
}

.mbk-pfc-product-card:hover .mbk-pfc-product-image {
    transform: translateY(0px) scale(1.05);
}

.mbk-pfc-product-image img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.25));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Product Info Container (Bottom) */
.mbk-pfc-product-info {
    width: 100%;
    text-align: left;
    z-index: 3;
    position: absolute;
    margin-top: 0;
    bottom: 0;
    left: 0;
    padding: 25px;
    z-index: 10;
}

/* Product Title */
.mbk-pfc-product-title {
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

/* Buttons Container */
.mbk-pfc-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
}

/* Primary Button (ORDER NOW) */
.mbk-pfc-btn-primary,
.mbk-pfc-btn-primary:visited {
    background: #00B29D;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 126, 167, 0.3);
    line-height: 1.2;
}

.mbk-pfc-btn-primary:hover {
    background: #00B29D;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 126, 167, 0.4);
    color: #fff;
}

/* Secondary Button (SPEC SHEET) */
.mbk-pfc-btn-secondary,
.mbk-pfc-btn-secondary:visited {
    background: #ffffff;
    color: #00B29D;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    line-height: 1.2
}

.mbk-pfc-btn-secondary:hover {
    background: #f0f0f0;
    color: #00B29D;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.mbk-product-feature-carousel .mbk-pc-glow-pos {
    position: relative;
    width: 100%;
    max-width: 400px;
}
.mbk-pfc-divided.relative{
    display: flex;
    justify-content: center;
}
.mbk-pfc-content .mbk-glow-divider{
    height: 64px;
}
/* Navigation Wrapper Reset - Allow full width absolute positioning */
.mbk-pfc-navigation-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Container passes clicks */
    padding: 0 40px; /* Distance from edges */
    height: 0; /* Don't take up space */
    overflow: visible;
}

/* Swiper Navigation - Standard Side Positioning */
.mbk-product-feature-carousel .swiper-button-next,
.mbk-product-feature-carousel .swiper-button-prev {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 178, 157, 0.15) 0%, rgba(0, 139, 122, 0.15) 100%);
    border-radius: 50%;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 178, 157, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
                0 0 40px rgba(0, 178, 157, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; /* Inside the flex wrapper */
    pointer-events: auto; /* Enable clicks */
    margin: 0;
    z-index: 20;
}
.mbk-product-feature-carousel .swiper-button-next{
    right: -80px;
}
.mbk-product-feature-carousel .swiper-button-prev{
    left: -80px;
}
/* Specific Positioning Reset */
.mbk-product-feature-carousel .mbk-nav-prev,
.mbk-product-feature-carousel .mbk-nav-next {
    margin: 0 !important;
    padding: 0 !important;
    z-index: 20;
    background: linear-gradient(135deg, rgba(0, 178, 157, 0.15) 0%, rgba(0, 139, 122, 0.15) 100%);
}

/* Remove default Swiper arrows */
.mbk-product-feature-carousel .swiper-button-next:after,
.mbk-product-feature-carousel .swiper-button-prev:after {
    content: none;
    display: none;
}

/* Icons */
.mbk-product-feature-carousel .swiper-button-next svg,
.mbk-product-feature-carousel .swiper-button-prev svg {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
}

/* SVG Icon Styling */
.mbk-product-feature-carousel .swiper-button-next .nav-icon,
.mbk-product-feature-carousel .swiper-button-prev .nav-icon {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

/* Glow effect on hover */
.mbk-product-feature-carousel .swiper-button-next:hover,
.mbk-product-feature-carousel .swiper-button-prev:hover {
    background: linear-gradient(135deg, rgba(0, 178, 157, 0.35) 0%, rgba(0, 139, 122, 0.35) 100%);
    border-color: rgba(0, 178, 157, 0.8);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3),
                0 0 50px rgba(0, 178, 157, 0.4);
}

.mbk-product-feature-carousel .swiper-button-next:hover .nav-icon,
.mbk-product-feature-carousel .swiper-button-prev:hover .nav-icon {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(0, 178, 157, 0.8));
}

/* Active (Click) state */
.mbk-product-feature-carousel .swiper-button-next:active,
.mbk-product-feature-carousel .swiper-button-prev:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(0, 178, 157, 0.5);
}

/* Slide animations */
@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@keyframes slideLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}

/* Demo / Editor Styles */
.mbk-pfc-demo-image {
    background: #f0f0f0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 500;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

/* Responsive */
@media (max-width: 1022px) {
    .mbk-pfc-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
.mbk-product-feature-carousel {
        padding: 0;
    }
    .mbk-pfc-title {
        font-size: 2.5rem;
    }

    .mbk-pfc-content {
        text-align: center;
    }
    .mbk-pfc-product-info {
        padding: 15px;
    }
    .mbk-pfc-description, .mbk-pfc-description p{
        font-size: 22px;
    }
    .mbk-product-feature-carousel .swiper-button-next{
        right: -60px;
    }
    .mbk-product-feature-carousel .swiper-button-prev{
        left: -60px;
    }
}

@media (max-width: 768px) {
    .mbk-product-feature-carousel {
        padding: 0;
    }

    .mbk-pfc-container {
        gap: 2rem;
        grid-template-columns: 1fr;
    }

    .mbk-pfc-title {
        font-size: 2rem;
    }

    .mbk-pfc-product-card {
        min-height: auto;
    }

    .mbk-pfc-buttons {
        flex-direction: row;
        width: 100%;
    }

    .mbk-pfc-btn {
        width: 100%;
    }

    .mbk-pfc-slider-wrapper .swiper-button-next,
    .mbk-pfc-slider-wrapper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .mbk-pfc-slider-wrapper .swiper-button-next:after,
    .mbk-pfc-slider-wrapper .swiper-button-prev:after {
        font-size: 1rem;
    }
    .mbk-pfc-product-info {
        padding: 10px;
    }
     .mbk-product-feature-carousel .swiper-button-next{
        right: -40px;
    }
    .mbk-product-feature-carousel .swiper-button-prev{
        left: -40px;
    }
}

/* =========================================
   Spec Sheet Modal Styles (Copied from Product Card 360)
   ========================================= */

/* Overlay */
.mbk-360-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    padding: 20px;
}

/* Modal Content Container */
.mbk-360-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px; /* Reduced from 1200px */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 0;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh; /* Constrain height */
    display: flex;
    flex-direction: column;
}

/* Close Button */
.mbk-360-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mbk-360-modal-close i {
    font-size: 20px;
    color: #1e293b;
    transition: color 0.2s ease;
}

.mbk-360-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mbk-360-modal-close:hover i {
    color: #ef4444;
}

/* Scroll Wrapper */
.mbk-360-scroll-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 85vh; /* Fits within content max-height */
    overflow: auto; /* Enable scrolling if content is long */
    border-radius: 12px;
    background-color: #fff;
    /* Custom Scrollbar for Webkit */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.mbk-360-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.mbk-360-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.mbk-360-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* Image */
.mbk-360-modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* Animations */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
