/* =========================================
   COMMON MODAL STYLING (Base)
========================================= */

/* Common Backdrop */
.modal.fade {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Common Dialog */
.modal-dialog {
    margin: 3rem auto;
}
@media (max-width: 991px) {
    .modal-dialog {
        max-width: 90%;
    }
}
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem auto;
        width: 95%;
    }
}

/* Common Content */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    padding: 1rem;
    position: relative;
}

/* Common Close Button */
.modal .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #333;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 100;
}
.modal .close-button:hover {
    color: #e72463;
}


/* =========================================
   LATEST PRODUCTS MODAL
========================================= */
#latestProductModal .modal-dialog {
    max-width: 1000px;
}
#latestProductModal .modal-product-img img {
    max-height: 400px;
    object-fit: contain;
}
#latestProductModal .modal-product .product-title .title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}
#latestProductModal .modal-product .regular-price {
    color: #e72463;
    font-weight: bold;
    font-size: 18px;
}
#latestProductModal .modal-product .desc-content {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}
#latestProductModal .add-to_btn .btn {
    background-color: #e72463;
    border: none;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}
#latestProductModal .add-to_btn .btn:hover {
    background-color: #c91d55;
}


/* =========================================
   CATEGORY PRODUCT MODAL
========================================= */
[id^="categoryProductModal"].flosun-modal .modal-dialog {
    max-width: 1000px;
}
[id^="categoryProductModal"].flosun-modal .modal-product-img img {
    max-height: 400px;
    object-fit: contain;
}
[id^="categoryProductModal"].flosun-modal .product-title .title {
    font-size: 20px;
    font-weight: bold;
}
[id^="categoryProductModal"].flosun-modal .regular-price {
    color: #e72463;
    font-size: 18px;
    font-weight: bold;
}
[id^="categoryProductModal"].flosun-modal .desc-content {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}
[id^="categoryProductModal"].flosun-modal .add-to_btn .btn {
    background-color: #e72463;
    color: #fff;
    border-radius: 6px;
    padding: 10px 15px;
    border: none;
    transition: background-color 0.3s ease;
}
[id^="categoryProductModal"].flosun-modal .add-to_btn .btn:hover {
    background-color: #c91d55;
}


/* =========================================
   MY ORDERS MODAL
========================================= */
#customerOrderModal .modal-dialog {
    max-width: 500px;
}
#customerOrderModal .alert {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}
#customerOrderModal form {
    margin-top: 1.5rem;
}
#customerOrderModal .form-group {
    margin-bottom: 1rem;
}
#customerOrderModal label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}
#customerOrderModal input[type="email"],
#customerOrderModal input[type="text"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}
#customerOrderModal input[type="email"]:focus,
#customerOrderModal input[type="text"]:focus {
    border-color: #4CAF50;
    outline: none;
}
#customerOrderModal .btn-success,
#customerOrderModal .flosun-button.dark-btn {
    width: 100%;
    padding: 0.6rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #4CAF50;
    border: none;
    transition: background-color 0.3s ease;
}
#customerOrderModal .btn-success:hover,
#customerOrderModal .flosun-button.dark-btn:hover {
    background-color: #45a049;
}


/* =========================================
   RESPONSIVE FIXES
========================================= */
@media (max-width: 576px) {
    .modal-content {
        padding: 1rem;
    }
    .modal .close-button {
        font-size: 1.25rem;
    }
    .modal-product .product-title .title {
        font-size: 18px;
    }
    .modal-product .regular-price {
        font-size: 16px;
    }
}
