/* Premium Quick-View Product Modal Styling */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --ss-blue: #033096;
    --ss-blue-dark: #001f66;
    --ss-red: #ff0000;
    --ss-bg-light: #f8fafc;
    --ss-text-dark: #0f172a;
    --ss-text-muted: #64748b;
    --ss-border: rgba(3, 48, 150, 0.08);
    --ss-shadow-sm: 0 4px 12px rgba(3, 48, 150, 0.04);
    --ss-shadow-lg: 0 20px 50px rgba(1, 8, 24, 0.15);
}

/* Modal Overlay */
.ss-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(1, 8, 24, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ss-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Box Wrapper */
.ss-modal-wrapper {
    background: #ffffff;
    width: 92%;
    max-width: 1200px;
    height: 85vh;
    max-height: 780px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--ss-shadow-lg);
    display: flex;
    overflow: hidden;
    position: relative;
    transform: translate3d(0, 40px, 0) scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ss-modal-overlay.active .ss-modal-wrapper {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

/* Close Button */
.ss-modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--ss-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-modal-close-btn:hover {
    background: var(--ss-red);
    color: #ffffff;
    transform: rotate(90deg);
    border-color: var(--ss-red);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.25);
}

.ss-modal-close-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* ----------------------------------------------------
   LEFT SIDE - PRODUCT INFORMATION (45%)
   ---------------------------------------------------- */
.ss-modal-left {
    width: 45%;
    background: var(--ss-bg-light);
    border-right: 1px solid var(--ss-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.ss-modal-left-scroll {
    padding: 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    scrollbar-width: thin;
    scrollbar-color: rgba(3, 48, 150, 0.15) transparent;
}

.ss-modal-left-scroll::-webkit-scrollbar {
    width: 6px;
}

.ss-modal-left-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ss-modal-left-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(3, 48, 150, 0.15);
    border-radius: 20px;
}

/* Brand Header */
.ss-modal-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ss-modal-logo {
    height: 60px;
    object-fit: contain;
}

.ss-modal-category {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ss-blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(3, 48, 150, 0.05);
    padding: 8px 18px;
    border-radius: 50px;
}

/* Titles */
.ss-modal-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ss-modal-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: var(--ss-text-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.ss-modal-description {
    font-size: 1.22rem;
    line-height: 1.7;
    color: var(--ss-text-muted);
    margin: 0;
}

/* Tech Specs */
.ss-modal-section-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ss-text-dark);
    letter-spacing: -0.01em;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ss-modal-section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--ss-blue);
    border-radius: 3px;
}

.ss-modal-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.ss-modal-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(3, 48, 150, 0.04);
    box-shadow: var(--ss-shadow-sm);
    font-size: 1.15rem;
}

.ss-modal-spec-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-text-dark);
}

.ss-modal-spec-value {
    font-size: 14px;
    color: #3b3b3b;
    font-weight: 500;
}

/* Features List */
.ss-modal-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ss-modal-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 1.4rem;
    line-height: 1.55;
    color: var(--ss-text-dark);
    font-weight: 500;
}

.ss-modal-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(3, 48, 150, 0.06);
    color: var(--ss-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ss-modal-feature-icon svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3px;
}

/* Applications */
.ss-modal-applications {
    background: rgba(3, 48, 150, 0.03);
    border-left: 5px solid var(--ss-blue);
    padding: 20px 26px;
    border-radius: 0 16px 16px 0;
}

.ss-modal-applications h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ss-blue);
    margin: 0 0 8px 0;
}

.ss-modal-applications p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--ss-text-dark);
    font-weight: 500;
    margin: 0;
}

/* Footer / CTA Actions */
.ss-modal-actions {
    padding: 28px 40px;
    background: #ffffff;
    border-top: 1px solid var(--ss-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ss-modal-btn-row {
    display: flex;
    gap: 14px;
}

.ss-modal-btn {
    flex: 1;
    height: 54px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.ss-modal-btn.btn-primary {
        font-size: 13px;
    background: var(--ss-blue);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(3, 48, 150, 0.25);
}

.ss-modal-btn.btn-primary:hover {
        font-size: 13px;
    background: var(--ss-blue-dark);
    box-shadow: 0 8px 22px rgba(3, 48, 150, 0.35);
    transform: translateY(-2px);
}

.ss-modal-btn.btn-secondary {
    font-size: 13px;
    background: transparent;
    border: 2px solid var(--ss-blue);
    color: var(--ss-blue);
}

.ss-modal-btn.btn-secondary:hover {
    font-size: 13px;
    background: rgba(3, 48, 150, 0.05);
    transform: translateY(-2px);
}

.ss-modal-btn.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #075e54) !important;
    color: #ffffff !important;
    border: none !important;
    flex: 1;
    height: 54px !important;
    padding: 10px;
    border-radius: 14px !important;
    font-size: 1.3rem !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.22) !important;
    display: inline-flex !important;
}

.ss-modal-btn.btn-whatsapp:hover {
    background: linear-gradient(135deg, #22c35e, #065249) !important;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.32) !important;
    transform: translateY(-2px) !important;
}

.ss-modal-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* ----------------------------------------------------
   RIGHT SIDE - IMAGE SHOWCASE (55%)
   ---------------------------------------------------- */
.ss-modal-right {
    width: 55%;
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
}

/* Image Container */
.ss-modal-image-display {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ss-modal-main-image {
    max-width: 100%;
    max-height: 710px;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(3, 48, 150, 0.12));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    will-change: transform;
}

.ss-modal-image-display:hover .ss-modal-main-image {
    transform: scale(1.05);
    filter: drop-shadow(0 25px 45px rgba(3, 48, 150, 0.18));
}

/* Inner Navigation Buttons */
.ss-modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--ss-border);
    color: var(--ss-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(3, 48, 150, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.ss-modal-nav-btn:hover {
    background: var(--ss-blue);
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 8px 24px rgba(3, 48, 150, 0.2);
}

.ss-modal-nav-btn.prev {
    left: 20px;
}

.ss-modal-nav-btn.next {
    right: 20px;
}

.ss-modal-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.ss-modal-nav-btn.prev:hover svg {
    transform: translateX(-2px);
}

.ss-modal-nav-btn.next:hover svg {
    transform: translateX(2px);
}

/* Thumbnails Gallery */
.ss-modal-gallery {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    width: 100%;
}

.ss-modal-thumb-btn {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 1.5px solid var(--ss-border);
    background: var(--ss-bg-light);
    cursor: pointer;
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ss-modal-thumb-btn img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.ss-modal-thumb-btn:hover {
    border-color: rgba(3, 48, 150, 0.4);
    transform: translateY(-2px);
}

.ss-modal-thumb-btn.active {
    border-color: var(--ss-blue);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(3, 48, 150, 0.08);
}

.ss-modal-thumb-btn.active img {
    transform: scale(1.08);
}

/* Loading Spinner Screen */
.ss-modal-loader {
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.ss-modal-loader.active {
    opacity: 1;
    visibility: visible;
}

.ss-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(3, 48, 150, 0.08);
    border-top: 3.5px solid var(--ss-blue);
    border-radius: 50%;
    animation: ss-spin 0.8s linear infinite;
}

@keyframes ss-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ----------------------------------------------------
   RESPONSIVENESS (MOBILE & TABLET VIEWPORTS)
   ---------------------------------------------------- */
@media (max-width: 991px) {
    .ss-modal-wrapper {
        flex-direction: column-reverse;
        height: 90vh;
        max-height: none;
    }

    .ss-modal-right {
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        padding: 30px 20px 10px 20px;
        border-bottom: 1px solid var(--ss-border);
    }

    .ss-modal-left {
        width: 100%;
        height: auto;
        flex: 1;
        border-right: none;
    }

    .ss-modal-left-scroll {
        padding: 30px;
        gap: 24px;
    }

    .ss-modal-image-display {
        height: auto;
    }

    .ss-modal-main-image {
        max-height: 380px;
    }

    .ss-modal-gallery {
        margin-top: 15px;
        gap: 8px;
    }

    .ss-modal-thumb-btn {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        padding: 4px;
    }

    .ss-modal-title {
        font-size: 2.4rem;
    }

    .ss-modal-actions {
        padding: 20px 30px;
    }
}

@media (max-width: 575px) {
    .ss-modal-wrapper {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .ss-modal-close-btn {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .ss-modal-right {
        padding: 10px 10px 10px 10px;
    }

    .ss-modal-left-scroll {
        padding: 20px;
        gap: 20px;
    }

    .ss-modal-main-image {
        max-height: 400px;
    }

    .ss-modal-nav-btn {
        width: 40px;
        height: 40px;
    }

    .ss-modal-nav-btn.prev {
        left: 5px;
    }

    .ss-modal-nav-btn.next {
        right: 5px;
    }

    .ss-modal-title {
        font-size: 2.2rem;
    }

    .ss-modal-actions {
        padding: 16px 20px;
        gap: 10px;
    }
    
    .ss-modal-btn-row {
        flex-direction: column;
        gap: 10px;
    }

    .ss-modal-btn {
        flex: none;
        width: 100%;
        height: 50px;
        font-size: 1.15rem;
    }

    .ss-modal-btn.btn-whatsapp {
        height: 54px !important;
        font-size: 1.35rem !important;
    }
}
