/** -----------------------------------------------------
 * LAYOUT
 * ----------------------------------------------------- */
.acpv-wrapper {
    display: flex;
    gap: 30px;
}

.acpv-cats {
    width: 30%;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.acpv-products {
    width: 70%;
    padding: 10px;
}

/** -----------------------------------------------------
 * CATEGORY LIST
 * ----------------------------------------------------- */
.acpv-cat {
    cursor: pointer;
    display: block;
    padding: 20px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.acpv-cat:hover {
    background: #020176;
    color: #fff;
    /*border: 1px solid #020176;*/
}

.active-cat {
    /*font-weight: bold;*/
    background: #020176;
    color: white;
}

/** -----------------------------------------------------
 * PRODUCT GRID
 * ----------------------------------------------------- */
.acpv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Keep card max width but allow responsive shrinking */
.acpv-card {
    background: #fff;
    border: 1px solid #020176;
    border-radius: 10px;
    padding: 35px 16px;
    text-align: center;
    max-width: 350px;
    margin: 0 auto;
}

.acpv-card-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.acpv-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 15px 0 5px;
    color: #4a4a4a;
}

.acpv-card-price {
    font-size: 22px;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: 10px;
}

.acpv-card-desc {
    font-size: 14px;
    color: #7a7a7a;
    min-height: 40px;
    margin-bottom: 15px;
    overflow: hidden;
}

.acpv-card-btn {
    display: inline-block;
    background-color: #020176;
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.acpv-card-btn:hover {
    background-color: #fff;
    border: 1px solid;
}

.acpv-products h3,
.acpv-cats h3 {
    margin-bottom: 30px;
}

/* Centered Loading Wrapper */
.acpv-loading-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px; /* enough space for center alignment */
}

/* Circular Spinner */
.acpv-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e6e6e6;
    border-top-color: #020176;  /* your theme color */
    border-radius: 50%;
    animation: acpv-spin 0.9s linear infinite;
}

@keyframes acpv-spin {
    to {
        transform: rotate(360deg);
    }
}


/* MODAL BACKDROP */
/*.acpv-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}*/
.acpv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;

    display: flex;               /* Centering */
    justify-content: center;     
    align-items: center;         
    padding: 20px;               /* Mobile spacing */
}

/* MODAL BOX */
/*.acpv-modal-content {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: acpvModalIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}*/
.acpv-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;            /* scroll if long content */
    position: relative;
    overflow-x: hidden;
    box-shadow: 0px 5px 25px rgba(0,0,0,0.25);
}


/* ANIMATION */
@keyframes acpvModalIn {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* CLOSE BUTTON */
.acpv-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
}
.acpv-close:hover {
    color: #ff0000;
}

/* TITLES */   
#acpvModalTitle {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

#acpvModalCategory {
font-size: 26px;
    font-weight: 700;
    color: #020176;
    margin-bottom: 15px;
}

#acpvModalDesc {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* CHECKOUT BUTTON */
.acpv-modal-btn {
    display: inline-block;
    background: #020176;
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.acpv-modal-btn:hover {
    /* background: #7aa315; */
    background: transparent;
    border: 1px solid;
}
   
#acpvSearch{
    width: 100%;
    margin-bottom: 15px;
}

.acpv-no-results { 
    text-align: center;
    font-size: 18px;
    color: red;
    margin-top: 20px;
    font-weight: bold;
}

.disabled-btn {
    opacity: 0.5;
    pointer-events: none;
}
/* ------------ MODAL LAYOUT -------------- */
#acpvModal .acpv-modal-content {
    width: 90%;
    max-width: 900px;
    padding: 20px;
}

/* Wrapper for calendar + times */
.acpv-booking-wrapper {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

/* Calendar Column */
.acpv-calendar-box {
    width: 50%;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Time Slots Column */
.acpv-times-box {
    width: 50%;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Calendar Styling */
#bookingCalendar {
    width: 100%;
    margin-top: 5px;
}

.available-date a {
    background: #020176 !important;
    color: #fff !important;
    /*border-radius: 50%;*/
}

#timeSlots{
    display: flex;
}

#bookingCalendar .ui-datepicker-inline{
    width: 100%;
}
/* Time Slot Buttons */
.time-slot-btn {
    display: block;
    /* width: 100%; */
    padding: 1px 12px;
    margin: 5px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: 0.2s;
    font-size: 16px !important;
}
 
.time-slot-btn:hover { 
    background: #4CAF50;
    color: #fff;
}

/* Active Selected Time */
.time-slot-btn.active-time {
    border-color: #f5f5f5;
    background: #fff;
    color: #020176 !important;
}

/* ------------ RESPONSIVE -------------- */
@media (max-width: 768px) {
    .acpv-booking-wrapper {
        flex-direction: column;
    }

    .acpv-calendar-box,
    .acpv-times-box {
        width: 100%;
    }
}


/* -----------------------------------------------------
 * RESPONSIVE BREAKPOINTS
 * ----------------------------------------------------- */

/* Tablet (1024px and below): 2 columns */
@media (max-width: 1024px) {

    .acpv-wrapper {
        gap: 20px;
    }

    .acpv-cats {
        width: 35%;
        padding: 20px;
    }

    .acpv-products {
        width: 65%;
    }

    .acpv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large (768px and below): Categories go on top, 2 columns */
@media (max-width: 768px) {

    .acpv-wrapper {
        flex-direction: column;
    }

    .acpv-cats {
        width: 100%;
        position: relative;
        top: 0;
    }

    .acpv-products {
        width: 100%;
    }

    .acpv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Small (480px and below): 1 column */
@media (max-width: 480px) {

    .acpv-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .acpv-card {
        max-width: 100%;
    }
}