/* ===============================
   CSS HỆ THỐNG CỬA HÀNG
   =============================== */

.cua-hang-navigation-button {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    background-color: #0066b3;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: absolute;
    top: 55%;
    right: 5px;
}

.cua-hang-navigation-button:hover {
    background-color: #28497c;
    color: #faa91e;
}

.cua-hang-store-item {
    position: relative;
    padding: 15px 15px 20px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

.cua-hang-container {
    display: flex;
    align-items: stretch; /* QUAN TRỌNG */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px; /* chặn footer đè */
}

.cua-hang-left-section {
    width: 60%;
    padding-right: 20px;
}

.cua-hang-right-section {
    flex: 1;
    min-height: 100%;
    position: relative; /* KHÔNG absolute */
    overflow: visible;
}

.cua-hang-store-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
}

.cua-hang-filter-container {
    display: flex;
    flex-direction: column;
}

.cua-hang-filter-container h3 {
    margin-bottom: 10px;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
}

.cua-hang-dropdown-row {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.cua-hang-filter-container select {
    width: 48%;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding-right: 27px;
}

#thumbnailContainer img {
    width: 25%;
    border-radius: 6px;
    padding: 0 2px;
    margin-top: 3px;
    cursor: pointer;
}
#thumbnailContainer img :active{
    border-radius: 6px;
}
#storeList {
    max-height: 370px;
    overflow-y: auto;
}
#storeList h3{
    font-size: 1em;
}

/* ===============================
   MOBILE
   =============================== */
@media (max-width: 768px) {

    .cua-hang-container {
        display: block;
        margin-top: -27px;
    }

    .cua-hang-left-section,
    .cua-hang-right-section {
        width: 100%;
        padding-right: 0;
        margin-top: 10px;
    }
    .cua-hang-navigation-button {
        position: relative;
        bottom: -6px;
        right: auto;
        top: auto;
    }
    .cua-hang-store-item p{
        margin: 0;
    }
}