/* Root background for subtle contrast */
body {
    
}

/* Navbar */
.bg-maroon {
    background-color: #800000 !important;
}

/* Text utilities */
.text-maroon {
    color: #800000 !important;
}

/* Button variants */
.btn-maroon {
    background-color: #800000;
    border-color: #800000;
    color: #fff;
}

    .btn-maroon:hover {
        background-color: #660000;
        border-color: #660000;
    }

.btn-outline-maroon {
    color: #800000;
    border-color: #800000;
}

    .btn-outline-maroon:hover {
        background-color: #800000;
        color: #fff;
    }

/* Form focus states */
.form-control:focus {
    border-color: #800000;
    box-shadow: 0 0 0 .2rem rgba(128, 0, 0, 0.25);
}

/* Table header */
.table thead {
    background-color: #800000;
    color: #fff;
}

/* Card container override */
.card {
    border-color: #800000;
}

/* Custom carousel controls */
.custom-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 3rem;
    color: #800000;
    z-index: 2;
    padding: 0 1rem;
}

.custom-carousel-control:hover {
    color: #660000;
}

.carousel-control-prev.custom-carousel-control {
    left: 0;
}

.carousel-control-next.custom-carousel-control {
    right: 0;
}

.carousel-arrow {
    pointer-events: none;
}

/* Carousel wrapper with responsive height */
.carousel-wrapper {
    height: 55vh; /* 55% of viewport height */
    max-height: 550px;
    min-height: 300px;
    overflow: hidden;
}

/* Ensure all carousel items and images fill the space */
.carousel-inner,
.carousel-item,
.carousel-item img {
    height: 100%;
}

/* Custom arrows */
.custom-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 3rem;
    color: #800000;
    z-index: 2;
    padding: 0 1rem;
}

.custom-carousel-control:hover {
    color: #660000;
}

.carousel-control-prev.custom-carousel-control {
    left: 0;
}

.carousel-control-next.custom-carousel-control {
    right: 0;
}

.card[data-bs-toggle="modal"] {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.card[data-bs-toggle="modal"]:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(128, 0, 0, 0.2); /* subtle maroon glow */
}

#modalThumbnails img {
    height: 80px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#modalProductAttributes .badge {
    margin-right: 6px;
    margin-bottom: 6px;
}

.modal-image-wrapper {
    height: 500px;
    max-height: 70vh;
    overflow: hidden;
    background-color: #fff;
}

#modalMainImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.modal-body .row {
    min-height: 500px;
}

.product-details {
    max-width: 320px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .modal-body .col-lg-4 {
        display: flex;
    }
}

/* Whatsapp button */
@media (max-width: 768px) {
    #modalContactBtn {
        display: block;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

.nav-link.active {
    border-bottom: 1px solid maroon;
    color: maroon !important;
    font-weight: bold;
}
