/* Overlay */
.qwl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease;
}

.qwl-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}


/* Modal */
.qwl-modal {
    background: #fff;
    width: 90%;
    max-width: 1100px;
    border-radius: 10px;
    padding: 24px;
    position: relative;
}

/* Close */
.qwl-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

/* Header */
.qwl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.qwl-header-text {
    font-size: 14px;
    color: #333;
    text-align: right;
    max-width: 420px;
}

.qwl-logo img {
    height: 48px;
}

/* Search */
.qwl-search {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qwl-search input {
    border: none;
    padding: 8px 12px;
    outline: none;
    min-width: 200px;
}

.qwl-search button {
    border: none;
    background: #0d6efd;
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
}

/* Cards */
.qwl-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.qwl-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.qwl-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay gradient */
.qwl-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 20%,
        rgba(0,0,0,0.55) 45%,
        rgba(0,0,0,0.15) 70%,
        rgba(0,0,0,0) 100%
    );
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.qwl-card-content {
    background: #000;
    color: #fff;
    padding: 16px;
}

.qwl-card-content h4 {
    font-size: 22px;
    margin: 0 0 4px;
}

.qwl-price {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.qwl-card-content p {
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0 12px;
}

.qwl-card-info p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 18px;
    opacity: 0.95;
}

/* Button */
.qwl-btn {
    align-self: flex-start;
    background: #0d6efd;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.qwl-btn:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

/* Footer */
.qwl-modal-footer {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
}

@media (max-width: 1024px) {
    .qwl-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .qwl-header-text {
        display: none;
    }

    .qwl-modal {
        height: 90vh;
        overflow: auto;
        padding: 12px;
    }
}

@media (max-width: 640px) {
    .qwl-cards {
        grid-template-columns: 1fr;
    }

    .qwl-card {
        height: 270px;
    }

    .qwl-card-info h4 {
        font-size: 20px;
    }

    .qwl-card-info p {
        font-size: 13px;
    }

    .qwl-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        display: block;
    }

    .qwl-modal-footer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}


