/* ================================================
   MODAL STYLES
   ================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 1400px;
    width: 100%;
    margin: 50px auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    max-height: calc(100vh - 100px);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.5em;
    color: #666;
    cursor: pointer;
    z-index: 100;
    background: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.close-btn:hover {
    background: #f5f5f5;
    transform: rotate(90deg);
    color: #333;
}

/* Modal Image Container */
.modal-image {
    width: 100%;
    height: 100%;
    position: relative;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-image-slider {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 400px;
}

.slider-images {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    flex: 1;
}

.slider-image {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    background: #fafafa;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e0e0e0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #333;
    font-weight: bold;
}

.slider-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: #999;
    transform: scale(1.1);
}

.slider-dot.active {
    background: #667eea;
    transform: scale(1.3);
    border-color: #667eea;
}

.slider-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.slider-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    background: white;
    flex-shrink: 0;
    border-top: 1px solid #e0e0e0;
}

.slider-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.slider-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.slider-thumbnail.active {
    opacity: 1;
    border-color: #667eea;
    transform: scale(1.05);
}

.modal-image-slider[data-single="true"] .slider-btn,
.modal-image-slider[data-single="true"] .slider-indicators,
.modal-image-slider[data-single="true"] .slider-counter {
    display: none;
}

/* Modal Info Section */
.modal-info {
    padding: 40px 45px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: white;
    gap: 20px;
}

.modal-name {
    font-size: 2.2em;
    margin-bottom: 0;
    color: #333;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

.modal-price {
    font-size: 1.8em;
    margin-bottom: 0;
    color: #667eea;
    font-weight: 700;
}

.modal-description {
    font-size: 1.05em;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0;
}

.modal-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 0;
    border: 1px solid #e0e0e0;
}

.modal-details h3 {
    font-family: 'Playfair Display', serif;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
    letter-spacing: 1px;
}

.modal-details ul {
    list-style: none;
    padding: 0;
}

.modal-details li {
    padding: 10px 0;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 300;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.modal-details li:hover {
    color: #333;
    padding-left: 10px;
}

.modal-details li:last-child {
    border-bottom: none;
}

.contact-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    margin-top: auto;
    flex-shrink: 0;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}