/**
 * Modal Fixes CSS - Ensures consistent modal styling throughout the site
 */

/* Modal Dialog */
.modal-dialog.modal-lg {
    max-width: 800px;
}

/* Modal Header */
.modal-header {
    background-color: #ff0000 !important;
    color: white !important;
    padding: 15px 20px !important;
    border-bottom: none !important;
}

/* Modal Body */
.modal-body {
    padding: 25px !important;
}

/* Carousel Container */
.carousel.slide {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Carousel Item Container */
.carousel-item .d-flex.justify-content-center {
    width: 100%;
    height: 350px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    background-color: #f8f9fa;
}

/* Carousel Images */
.carousel-item img.d-block {
    max-width: 80%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Carousel Controls */
.carousel-control-prev, 
.carousel-control-next {
    width: 10%;
    opacity: 0.7;
    background-color: rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.2);
}

/* Modal Footer */
.modal-footer {
    border-top: none !important;
    padding: 15px 20px !important;
}

/* Modal Buttons */
.modal-footer .btn-primary {
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
}

.modal-footer .btn-primary:hover {
    background-color: #d10000 !important;
    border-color: #d10000 !important;
    transform: translateY(-2px);
}

/* Aspect Ratio Fixes */
@media (min-width: 768px) {
    /* Product specifications */
    .specs-list {
        margin-bottom: 15px;
    }
    
    .specs-list li {
        margin-bottom: 8px;
    }
    
    /* Tab Content */
    .tab-content {
        min-height: 150px;
    }
}

/* Square Image Containers for Different Screen Sizes */
@media (max-width: 767px) {
    .carousel-item .d-flex.justify-content-center {
        height: 280px;
        padding: 15px;
    }
    
    .carousel-item img.d-block {
        max-width: 90%;
        max-height: 250px;
    }
} 