/*-----------------------------------------------------------------*/
/*  Enhanced AR Description Modal Styles                          */
/*  Professional, modular styling for AR product descriptions     */
/*-----------------------------------------------------------------*/

/* Modal Overlay */
.ar-desc-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

/* Modal Content Container */
.ar-desc-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
}

/* Modal Header */
.ar-desc-header {
    background: linear-gradient(90deg, #faf100 0%, #e6d900 100%);
    color: #000;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #444;
}

.ar-desc-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ar-desc-close {
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    transition: color 0.3s ease;
    line-height: 1;
}

.ar-desc-close:hover {
    color: #666;
}

/* Modal Body */
.ar-desc-body {
    display: flex;
    padding: 0;
    max-height: calc(90vh - 120px);
    overflow: hidden;
}

/* Images Section */
.ar-desc-images {
    flex: 0 0 40%;
    background: #000;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #444;
}

.ar-desc-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #111;
}

.ar-main-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.ar-main-img:hover {
    transform: scale(1.05);
}

.ar-desc-image-gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    gap: 10px;
    background: #1a1a1a;
    max-height: 120px;
    overflow-y: auto;
}

.ar-gallery-item {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.ar-gallery-item:hover,
.ar-gallery-item.active {
    border-color: #faf100;
}

.ar-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ar-gallery-img:hover {
    transform: scale(1.1);
}

/* Content Section */
.ar-desc-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #1a1a1a;
    color: #fff;
}

.ar-desc-text {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
}

.ar-desc-text h3 {
    color: #faf100;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 18px;
}

.ar-desc-text p {
    margin-bottom: 15px;
}

/* Specifications */
.ar-desc-specs {
    margin-bottom: 30px;
}

.ar-desc-specs h3 {
    color: #faf100;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 18px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.ar-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.ar-spec-item {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #faf100;
    transition: background 0.3s ease;
}

.ar-spec-item:hover {
    background: #3d3d3d;
}

.ar-spec-label {
    font-weight: 700;
    color: #faf100;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 14px;
}

.ar-spec-value {
    color: #ddd;
    font-size: 16px;
}

/* Features */
.ar-desc-features h3 {
    color: #faf100;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 18px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.ar-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ar-feature-item {
    background: #2d2d2d;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #faf100;
    color: #ddd;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.ar-feature-item:hover {
    background: #3d3d3d;
    transform: translateX(5px);
}

.ar-feature-item:before {
    content: "✓";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: #faf100;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* Footer */
.ar-desc-footer {
    background: #111;
    padding: 20px 30px;
    border-top: 2px solid #444;
}

.ar-desc-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ar-category-tag {
    background: #faf100;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Body class when modal is open */
body.ar-modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ar-desc-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .ar-desc-body {
        flex-direction: column;
    }
    
    .ar-desc-images {
        flex: 0 0 300px;
        border-right: none;
        border-bottom: 2px solid #444;
    }
    
    .ar-desc-main-image {
        flex: 1;
        min-height: 200px;
    }
    
    .ar-desc-image-gallery {
        max-height: 80px;
    }
    
    .ar-gallery-item {
        width: 50px;
        height: 50px;
    }
    
    .ar-spec-grid {
        grid-template-columns: 1fr;
    }
    
    .ar-desc-title {
        font-size: 20px;
    }
    
    .ar-desc-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ar-desc-modal-content {
        width: 98%;
        margin: 1% auto;
        border-radius: 8px;
    }
    
    .ar-desc-header {
        padding: 15px 20px;
    }
    
    .ar-desc-title {
        font-size: 18px;
    }
    
    .ar-desc-content {
        padding: 15px;
    }
    
    .ar-desc-images {
        flex: 0 0 250px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ar-desc-modal-content {
    animation: slideInUp 0.3s ease-out;
}

/* Scrollbar Styling */
.ar-desc-content::-webkit-scrollbar,
.ar-desc-image-gallery::-webkit-scrollbar {
    width: 8px;
}

.ar-desc-content::-webkit-scrollbar-track,
.ar-desc-image-gallery::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.ar-desc-content::-webkit-scrollbar-thumb,
.ar-desc-image-gallery::-webkit-scrollbar-thumb {
    background: #faf100;
    border-radius: 4px;
}

.ar-desc-content::-webkit-scrollbar-thumb:hover,
.ar-desc-image-gallery::-webkit-scrollbar-thumb:hover {
    background: #e6d900;
}