@import "variables.css";
@import "filterfinder.css";
@import "select.css";

.status {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}
.status.available { color: #1C7D31; }
.status.low-stock { color: #D5AB00; }
.status.out-of-stock { color: #981D13; }
.store-finder {
    background-color: #f8f8f8;

    padding-bottom: 30px;
}

.dsa-page__header {
    padding: 32px 0 24px;
    text-align: center;
    margin-bottom: 24px;
}

.dsa-page__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.dsa-page__desc {
    font-size: 14px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.i-services {
    background-image: var(--i_services);
    background-repeat: no-repeat;
    background-size: contain;
    width: 20px;
    height: 20px;
    display: inline-block;
}

.i_call_line {
    background-image: var(--i_call_line);
    background-repeat: no-repeat;
    background-size: contain;
    width: 18px;
    height: 18px;
    display: inline-block;
}

.i_percent_discount {
    background-image: var(--i_percent_discount);
    background-repeat: no-repeat;
    background-size: contain;
    width: 13px;
    height: 13px;
    display: inline-block;

}

.i_location_map {
    background-image: var(--i_location_map);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
    width: 23px !important;
    height: 23px;
    display: inline-block;
}

.partner-section {
    max-width: 1200px;
    margin: auto;
}

/* ── View List Finder Container ─────────────────────────── */
.view-list-finder {
    min-height: calc(100vh - 350px);
}

.partner-grid-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.results-count {
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.badge-newly {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 15px;
}

.partner-notice {
    background-color: #fff8e1;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 15px;
    color: #725604;
    display: inline-block;
}

.partner-notice strong {
    font-weight: 500;
}

.badge-newly i {
    color: var(--primary_orange);
    font-size: 6px;
    margin-right: 6px;
}

.partner-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.partner-search {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.partner-search input {
    width: 420px;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.use-location {
    background: #fff;
    border: 1px solid var(--primary_orange);
    color: var(--primary_orange);
    border-radius: 8px;
    cursor: pointer;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    min-height: 294px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.partner-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.partner-info {
    display: flex;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #191919;
}

.partner-img {
    border-radius: 8px;
    height: 147px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 12px;
}

.partner-info .icon {
    font-size: 14px;
}

.email {
    color: var(--primary_orange);
}

.store-link {
    font-size: 16px;
    display: inline-block;
    margin-top: 10px;
    color: var(--primary_orange);
    text-decoration: none;
    font-weight: 600;
}

.store-link i {
    padding-left: 8px;
    font-size: 13px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination span {
    padding: 8px 12px;
    width: 33px;
    height: 32px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.pagination .active {
    background: #E6E6E6;
}

.pagination .arrow {
    font-weight: bold;

}

.pagination .arrow.disable {
    color: #7e7e7e;
}

@media(max-width:900px) {

    .partner-grid-inner {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width:500px) {

    .partner-grid-inner {
        grid-template-columns: 1fr;
    }

    .partner-search {
        flex-direction: column;
        align-items: center;
    }

    .partner-search input {
        width: 100%;
    }

}

/* .partner-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    margin-bottom: 12px;
    color: #444;
} */

.partner-info span {
    line-height: 1.5;
}

.partner-info i {
    width: 18px;
    margin-top: 4px;
    color: #555;
    flex-shrink: 0;
}



.search-box-container {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0px 7px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #F2F2F2;
    height: 44px;
    padding: 12px 16px;
    border-radius: 8px;
}

.search-input i {
    color: #999;
    font-size: 20px;
}

.search-input input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    outline: none;
    color: #333;
}

.search-input input::placeholder {
    color: #999;
}

.use-location {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--primary_orange);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.use-location i {
    font-size: 16px;
}

@media(max-width:768px) {

    .search-box-container {
        flex-direction: column;
        align-items: stretch;
    }

    .use-location {
        justify-content: center;
    }


}

.store-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.store-modal-content {
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    width: 766px;
    max-width: 100%;
    border-radius: 22px;
    padding: 30px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    animation: modalFade .25s ease;
}

/* Services Grid */
.store-modal-content .services .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    padding-left: 30px;
}

@media (max-width: 767px) {
    .store-modal-content .services .services-grid {
        grid-template-columns: 1fr;
        padding-left: 15px;
        gap: 10px;
    }

    .store-detail .button-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
}

.store-modal-content .services .service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.store-modal-content .store-modal-inner {
    max-height: 80vh;
    overflow: auto;
}

.store-modal-content .services .service-item i {
    color: #3b4d8c;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 22px;
    right: 26px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.store-modal-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
}
@media (max-width: 767px) {
    .store-modal-content h2 {
        font-size: 24px;
        text-transform: capitalize;

    }
}
.store-detail {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 17px;
}

.detail-item i {
    width: 18px;
    color: #333;
    margin-top: 4px;
}

.detail-item span {
    max-width: 85%;
}

.detail-item.email span {
    color: var(--primary_orange);
    font-weight: 500;
}

.direction-btn {
    display: inline-block;
    background: var(--primary_orange);
    color: #fff;
    padding: 12px 24px;
    border-radius: 28px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    transition: .2s;
}

.direction-btn:hover {
    background: #e95e00;
}

.store-detail .button-group {
    display: flex;
    gap: 12px;

}

.store-detail .button-group+.alert-banner {
    margin-top: 12px;
}

.store-detail .button-group .btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid var(--primary_orange);
    transition: opacity 0.2s;
}


.store-detail .button-group .btn.btn-filled {
    background-color: var(--primary_orange);
    color: white;
}

.store-detail .button-group .btn.btn-outline {
    background-color: transparent;
    color: var(--primary_orange);
}

.store-detail .alert-banner {
    background-color: #FEF9EA;
    display: block;
    color: #725604;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
}


.store-detail .button-group .btn:hover {
    opacity: 0.9;
}

.store-modal hr {
    border: none;
    border-top: 1px solid #CCCCCC;
    background-color: transparent;
    margin: 30px 0;
}

.store-modal h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-inner .time-list {
    max-width: 420px;
    padding-left: 30px;
}

.list-inner {
    max-width: 420px;
    padding-left: 30px;
}


.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 16px;
}

#storeEmail {
    color: var(--primary_orange);
}



/* promotions */

.promotions {
    position: relative;
}

.promotions>h3 {
    margin-bottom: 0;
}

.promotions .i_percent_discount {
    filter: brightness(0);
    background-image: var(--i_percent_discount_line);
    width: 20px;
    height: 20px;
}

.promotions-container .swiper-wrapper {
    padding: 20px 0;
        gap: 16px;
}

.promotions-container {
    height: fit-content;
    position: relative;
}

.promotions-container .swiper-button-next,
.promotions-container .swiper-button-prev {
    background-color: var(--primary_orange);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.promotions-container .swiper-button-next:after,
.promotions-container .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
}

.promotions-container .swiper-button-prev.swiper-button-disabled,
.promotions-container .swiper-button-next.swiper-button-disabled {
    display: none;
}

/* .promotions-container::after {
    content: '';
    background-image: var(--bgr_gradient);
    position: absolute;
    right: -1px;
    top: 0;
    height: 100%;
    width: 194px;
    z-index: 5;

} */

.promotions-container .promo-card {
    width: 300px;
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    height: fit-content;
}

.promotions-container .promo-card:hover {
    transform: translateY(-5px);
}


.promotions-container .card-image img {
    width: 100%;
    height: 112px;
    object-fit: cover;

    display: block;
}


.promotions-container .card-content {
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 5px;
}

.promotions-container .card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0;
}

.promotions-container .card-desc {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.promotions-container .card-date {
    font-size: 12px;
    font-weight: 500;
    color: #4D4D4D;
    margin-top: auto;

}

/* Link Learn More */
.promotions-container .learn-more {
    text-decoration: none;
    color: var(--primary_orange);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.promotions-container .learn-more i {
    font-size: 12px;
}

/* view map */
.map-finder {
    display: none;
    height: 606px;
    background-color: #f5f5f5;
    border-radius: 18px;
    overflow: hidden;
}

/* Sidebar */
.map-finder .sidebar {
    width: 350px;
    padding: 20px;
    overflow-y: auto;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.map-finder .store-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.map-finder .store-card.active {
    border: 1px solid var(--primary_orange);

}

.map-finder .store-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.map-finder .store-card .store-info {
    display: flex;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #191919;
}

.map-finder .store-card .store-info .icon {
    font-size: 14px;
}


.map-finder .store-card .store-link {
    font-size: 16px;
    display: inline-block;
    margin-top: 10px;
    color: var(--primary_orange);
    text-decoration: none;
    font-weight: 600;
}

.map-finder .store-card .store-info>span {
    width: 85%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.map-finder .store-card .store-link i {
    padding-left: 8px;
    font-size: 13px;
}

.map-finder .store-card .info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.map-finder .store-info-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary_orange);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Map Section */
.map-finder .map-container {
    flex: 1;
    position: relative;
}

/* Giả lập Tooltip trên bản đồ */
.map-finder .map-tooltip {
    position: absolute;
    top: 20%;
    left: 20%;
    background: white;
    padding: 15px;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-finder .map-tooltip h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.map-finder .map-tooltip p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.map-finder .map-tooltip a {
    color: var(--primary_orange);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .map-finder {
        flex-direction: column;


    }

    .map-finder .list-address {
        order: 2;
        overflow: auto;

    }

    .map-finder .store-card {

        flex: 0 0 288px;
    }

    .map-finder .sidebar {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        padding: 20px;
        scroll-behavior: smooth;
        width: 100%;
        padding-left: 0;
        box-shadow: none;
        scroll-behavior: smooth;
        background: transparent;
    }

    .map-finder .map-container {
        order: 1;
        height: 606px;
    }

}

