/* Quick View Modal & UI Styles */
:root {
    --ots-navy: #1B365D;
    --ots-cyan: #00A3E0;
    --ots-border: #E2E8F0;
    --ots-text-main: #2D3748;
    --ots-text-light: #718096;
}

/* Modal Core */
.ots-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.ots-modal.active {
    display: flex !important;
}

.ots-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 25, 47, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    cursor: pointer !important;
}

.ots-modal-content {
    position: relative !important;
    background: #fff !important;
    width: 100% !important;
    max-width: 850px !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    animation: ots-qv-zoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    scrollbar-width: thin !important;
}

@keyframes ots-qv-zoom {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ots-modal-close {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    background: #F1F5F9 !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 22px !important;
    color: var(--ots-navy) !important;
    z-index: 100 !important;
    transition: 0.3s !important;
}

.ots-modal-close:hover {
    background: var(--ots-navy) !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
}

.ots-modal-body {
    padding: 40px !important;
}

/* Quick View Product Layout */
.ots-qv-product-layout {
    display: grid !important;
    grid-template-columns: 42% 54% !important;
    gap: 4% !important;
    align-items: start !important;
    direction: rtl !important;
}

.ots-qv-gallery {
    position: sticky !important;
    top: 0 !important;
}

.ots-qv-gallery img {
    width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
    border: 1px solid var(--ots-border) !important;
    object-fit: contain !important;
}

.ots-qv-summary {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    text-align: right !important;
}

.ots-qv-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--ots-navy) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.ots-qv-price {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--ots-cyan) !important;
}

.ots-qv-price ins {
    text-decoration: none !important;
}

.ots-qv-price del {
    font-size: 13px !important;
    color: var(--ots-text-light) !important;
    margin-left: 10px !important;
    opacity: 0.7 !important;
}

.ots-qv-specs {
    font-size: 12px !important;
    color: var(--ots-text-main) !important;
    line-height: 1.6 !important;
    margin: 5px 0 !important;
}

.ots-qv-specs ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px 15px !important;
}

.ots-qv-specs li {
    position: relative !important;
    padding-right: 18px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ots-qv-specs li::before {
    content: "✓" !important;
    position: absolute !important;
    right: 0 !important;
    color: var(--ots-cyan) !important;
    font-weight: 900 !important;
}

/* Action Buttons */
.ots-qv-actions {
    margin-top: 15px !important;
    display: flex !important;
    gap: 10px !important;
}

.ots-qv-add-btn {
    flex: 1 !important;
    height: 44px !important;
    background: var(--ots-cyan) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}

.ots-qv-add-btn:hover {
    background: #0089bd !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 163, 224, 0.2) !important;
}

.ots-qv-more-link {
    font-size: 13px !important;
    color: var(--ots-navy) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 10px !important;
}

.ots-qv-more-link:hover {
    color: var(--ots-cyan) !important;
}

/* Spinner */
.ots-qv-loading {
    padding: 100px 0 !important;
    text-align: center !important;
}

.ots-spinner {
    width: 45px !important;
    height: 45px !important;
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid var(--ots-cyan) !important;
    border-radius: 50% !important;
    display: inline-block !important;
    animation: ots-spin 0.8s linear infinite !important;
}

@keyframes ots-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ots-modal {
        padding: 10px !important;
    }

    .ots-modal-content {
        max-height: 95vh !important;
        border-radius: 20px !important;
    }

    .ots-modal-body {
        padding: 25px 15px !important;
    }

    .ots-qv-product-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .ots-qv-title {
        font-size: 18px !important;
    }

    .ots-qv-price {
        font-size: 18px !important;
    }

    .ots-qv-excerpt {
        font-size: 13px !important;
    }
}

/* Integration with Product Cards */
.ax-product-media {
    position: relative !important;
    overflow: hidden !important;
}

.ots-quick-view-btn {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(27, 54, 93, 0.06) !important;
    border-radius: 50% !important;
    color: var(--ots-navy) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    opacity: 0 !important;
    z-index: 20 !important;
    backdrop-filter: blur(4px) !important;
}

.ax-product-card:hover .ots-quick-view-btn {
    opacity: 1 !important;
    transform: none !important;
}

.ots-quick-view-btn:hover {
    background: var(--ots-cyan) !important;
    color: #fff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 14px rgba(0, 163, 224, 0.25) !important;
}

.ots-quick-view-btn svg {
    width: 16px !important;
    height: 16px !important;
}

.ots-quick-view-btn:hover svg {
    stroke: #fff !important;
}

@media (max-width: 1024px) {
    .ots-quick-view-btn {
        opacity: 1 !important;
        transform: none !important;
        width: 30px !important;
        height: 30px !important;
        top: 10px !important;
        left: 10px !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .ots-quick-view-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
}