/* ============================================
   DROPDOWN WRAPPER
============================================ */

#hqs-dropdown {
    position: absolute;
    z-index: 99999;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.16);
    overflow: hidden;
    display: none;
    width: 1200px !important;
    max-height: 80vh;
}

/* Center dropdown under input */

#hqs-dropdown.hqs-desktop {
    left: 50% !important;
    transform: translateX(-50%);
}

/* ============================================
   GRID WRAPPER
============================================ */

.hqs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100%;
    max-height: 80vh;
}

/* ============================================
   LEFT COLUMN
============================================ */

.hqs-left {
    border-right: 1px solid rgba(0,0,0,0.08);
    padding: 16px;
    overflow-y: auto;
}

.hqs-left h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 6px;
    color: #555;
}

.hqs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.hqs-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 5px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
}

.hqs-item:hover {
    background: rgba(0,82,109,0.08);
    color: #00526d;
}

/* ============================================
   RIGHT COLUMN
============================================ */

.hqs-right {
    padding: 18px 18px 24px;
    overflow-y: auto;
}

/* GRID 3 COLUNAS */

.hqs-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ============================================
   PRODUCT CARD
============================================ */

.hqs-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: .2s;
}

.hqs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    border-color: rgba(0,82,109,0.35);
}

.hqs-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* IMAGE */

.hqs-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f7f7f7;
}

.hqs-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .25s;
}

.hqs-card:hover .hqs-img img {
    transform: scale(1.04);
}

/* INFO */

.hqs-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hqs-title {
    font-size: 14px;
    font-weight: 600;
    height: 38px;
    overflow: hidden;
}

.hqs-meta {
    font-size: 12px;
    color: #888;
}

.hqs-price {
    font-size: 14px;
    font-weight: 700;
    color: #00526d;
}

/* ============================================
   FOOTER BUTTON
============================================ */

.hqs-footer {
    margin-top: 18px;
}

.hqs-viewall {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    background: #00526d;
    color: #fff;
    cursor: pointer;
    transition: .2s;
}

.hqs-viewall:hover {
    background: #0079a1;
    transform: translateY(-1px);
}

/* ============================================
   MOBILE
============================================ */

@media(max-width: 768px) {

    #hqs-dropdown {
        left: 0 !important;
        width: 100% !important;
        border-radius: 0 0 14px 14px;
        max-height: 75vh;
    }

    .hqs-container {
        grid-template-columns: 1fr;
    }

    .hqs-left {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .hqs-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
