/* ==========================================================
   AtriumMall
   Home Shop Directory
   ========================================================== */

.home-shop-directory {
    position: relative;
    padding: 92px 0 105px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(63, 165, 122, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(63, 165, 122, 0.05),
            transparent 28%
        ),
        #ffffff;
}

.home-shop-directory::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(33, 86, 70, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(33, 86, 70, 0.025) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 20%,
            black 80%,
            transparent
        );
}

.home-shop-directory > .container {
    position: relative;
    z-index: 2;
}


/* ==========================================================
   Header
   ========================================================== */

.home-shop-directory__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;

    margin-bottom: 34px;
}

.home-shop-directory__header > div:first-child {
    max-width: 720px;
}

.home-shop-directory__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;
    padding: 8px 15px;

    border: 1px solid rgba(63, 165, 122, 0.14);
    border-radius: 999px;

    color: #2f8f68;
    background: rgba(63, 165, 122, 0.08);

    font-size: 0.84rem;
    font-weight: 800;
}

.home-shop-directory__eyebrow i {
    font-size: 1rem;
}

.home-shop-directory__header h2 {
    margin: 0;

    color: #17251f;

    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.home-shop-directory__header p {
    max-width: 680px;

    margin: 15px 0 0;

    color: #74817b;

    font-size: 1rem;
    line-height: 2;
}

.home-shop-directory__sort {
    display: flex;
    align-items: center;
    gap: 7px;

    flex: 0 0 auto;

    padding: 12px 16px;

    border: 1px solid #e8efeb;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.9);

    box-shadow:
        0 10px 35px rgba(31, 78, 62, 0.05);

    color: #7a8781;

    font-size: 0.78rem;
}

.home-shop-directory__sort i {
    color: #3fa57a;
    font-size: 1.1rem;
}

.home-shop-directory__sort strong {
    color: #295e4b;
    font-weight: 850;
}


/* ==========================================================
   Filters
   ========================================================== */

.home-shop-directory__filters {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr))
        auto;

    align-items: end;
    gap: 14px;

    margin-bottom: 36px;
    padding: 20px;

    border: 1px solid #e8efeb;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.93);

    box-shadow:
        0 18px 55px rgba(27, 76, 59, 0.06);

    backdrop-filter: blur(16px);
}

.home-shop-directory__field {
    display: block;

    min-width: 0;

    margin: 0;
}

.home-shop-directory__field > span {
    display: block;

    margin: 0 4px 8px;

    color: #55655e;

    font-size: 0.76rem;
    font-weight: 800;
}

.home-shop-directory__field > div {
    position: relative;

    display: flex;
    align-items: center;
}

.home-shop-directory__field i {
    position: absolute;

    right: 14px;

    z-index: 2;

    color: #8da097;

    font-size: 1rem;

    pointer-events: none;
}

.home-shop-directory__field input,
.home-shop-directory__field select {
    width: 100%;
    height: 48px;

    padding:
        0
        42px
        0
        13px;

    border: 1px solid #e5ece8;
    border-radius: 14px;

    outline: none;

    color: #26352f;
    background: #fafcfb;

    font-family: inherit;
    font-size: 0.86rem;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.home-shop-directory__field input::placeholder {
    color: #a5afa9;
}

.home-shop-directory__field select {
    cursor: pointer;
}

.home-shop-directory__field input:hover,
.home-shop-directory__field select:hover {
    background: #ffffff;
    border-color: #d6e3dc;
}

.home-shop-directory__field input:focus,
.home-shop-directory__field select:focus {
    border-color: rgba(63, 165, 122, 0.75);

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(63, 165, 122, 0.09);
}

.home-shop-directory__filter-actions {
    display: flex;
    gap: 8px;
}

.home-shop-directory__submit,
.home-shop-directory__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    height: 48px;

    padding: 0 17px;

    border-radius: 14px;

    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 850;

    white-space: nowrap;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.home-shop-directory__submit {
    border: 1px solid #3fa57a;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #49b48a,
            #2f8f68
        );

    box-shadow:
        0 10px 25px rgba(63, 165, 122, 0.2);
}

.home-shop-directory__submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(63, 165, 122, 0.27);
}

.home-shop-directory__reset {
    border: 1px solid #e1e9e5;

    color: #66756e;
    background: #ffffff;
}

.home-shop-directory__reset:hover {
    border-color: #d2dfd8;

    color: #315e4e;
    background: #f8fbf9;
}


/* ==========================================================
   Grid
   ========================================================== */

.home-shop-directory__grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* ==========================================================
   Card
   ========================================================== */

.home-shop-directory__card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #e9efec;
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 14px 40px rgba(27, 70, 55, 0.055);

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.home-shop-directory__card:hover {
    transform: translateY(-6px);

    border-color: rgba(63, 165, 122, 0.24);

    box-shadow:
        0 24px 55px rgba(27, 70, 55, 0.11);
}

.home-shop-directory__card-link {
    position: absolute;
    inset: 0;

    z-index: 5;

    border-radius: inherit;
}

.home-shop-directory__card-link:focus-visible {
    outline: 3px solid rgba(63, 165, 122, 0.55);
    outline-offset: -4px;
}


/* ==========================================================
   Card Media
   ========================================================== */

.home-shop-directory__media {
    position: relative;

    height: 210px;

    overflow: hidden;

    background: #f2f6f4;
}

.home-shop-directory__media::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(12, 28, 22, 0.17),
            transparent 45%
        );

    pointer-events: none;
}

.home-shop-directory__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}

.home-shop-directory__card:hover
.home-shop-directory__media img {
    transform: scale(1.045);
}

.home-shop-directory__status,
.home-shop-directory__category-badge {
    position: absolute;

    z-index: 3;

    display: inline-flex;
    align-items: center;

    border-radius: 999px;

    backdrop-filter: blur(12px);
}

.home-shop-directory__status {
    top: 14px;
    right: 14px;

    gap: 6px;

    padding: 7px 11px;

    color: #34463e;
    background: rgba(255, 255, 255, 0.9);

    font-size: 0.7rem;
    font-weight: 850;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.08);
}

.home-shop-directory__status > span {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.home-shop-directory__status.is-open > span {
    background: #27ae60;

    box-shadow:
        0 0 0 4px rgba(39, 174, 96, 0.13);
}

.home-shop-directory__status.is-closed > span {
    background: #e17055;

    box-shadow:
        0 0 0 4px rgba(225, 112, 85, 0.13);
}

.home-shop-directory__category-badge {
    left: 14px;
    bottom: 14px;

    max-width: calc(100% - 28px);

    padding: 7px 12px;

    overflow: hidden;

    color: #ffffff;
    background: rgba(34, 90, 69, 0.82);

    font-size: 0.7rem;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1);
}


/* ==========================================================
   Card Body
   ========================================================== */

.home-shop-directory__body {
    padding: 19px 19px 17px;
}

.home-shop-directory__heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.home-shop-directory__heading > div {
    min-width: 0;
}

.home-shop-directory__heading small {
    display: block;

    margin-bottom: 4px;

    color: #91a098;

    font-size: 0.65rem;
    font-weight: 700;
}

.home-shop-directory__heading h3 {
    margin: 0;

    overflow: hidden;

    color: #1d2d26;

    font-size: 1.08rem;
    font-weight: 950;

    text-overflow: ellipsis;
    white-space: nowrap;

    transition:
        color 0.2s ease;
}

.home-shop-directory__card:hover
.home-shop-directory__heading h3 {
    color: #2f8f68;
}

.home-shop-directory__rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    flex: 0 0 auto;

    min-height: 32px;

    padding: 5px 9px;

    border: 1px solid #f1e3aa;
    border-radius: 11px;

    color: #685918;
    background: #fffaf0;

    font-size: 0.76rem;
}

.home-shop-directory__rating i {
    color: #f4b400;
    font-size: 0.76rem;
}

.home-shop-directory__rating strong {
    font-weight: 900;
}


/* ==========================================================
   Meta
   ========================================================== */

.home-shop-directory__meta {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin-top: 17px;
}

.home-shop-directory__meta > span {
    min-width: 0;

    padding: 9px 9px 8px;

    border: 1px solid #edf2ef;
    border-radius: 12px;

    background: #fafcfb;
}

.home-shop-directory__meta i {
    display: block;

    margin-bottom: 4px;

    color: #5c9e83;

    font-size: 0.85rem;
}

.home-shop-directory__meta small {
    display: block;

    color: #96a29c;

    font-size: 0.59rem;
    font-weight: 700;
}

.home-shop-directory__meta strong {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    color: #405149;

    font-size: 0.7rem;
    font-weight: 850;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================
   View Shop Action
   ========================================================== */

.home-shop-directory__action {
    margin-top: 16px;
}

.home-shop-directory__view-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 42px;

    padding: 9px 16px;

    border: 1px solid rgba(63, 165, 122, 0.16);
    border-radius: 13px;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #49b48a,
            #2f8f68
        );

    font-size: 0.74rem;
    font-weight: 900;

    box-shadow:
        0 8px 20px rgba(63, 165, 122, 0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.home-shop-directory__view-button i {
    font-size: 0.9rem;

    transition:
        transform 0.2s ease;
}

.home-shop-directory__card:hover
.home-shop-directory__view-button {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(63, 165, 122, 0.24);
}

.home-shop-directory__card:hover
.home-shop-directory__view-button i {
    transform: translateX(-4px);
}


/* ==========================================================
   Footer
   ========================================================== */

.home-shop-directory__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    margin-top: 15px;
    padding-top: 13px;

    border-top: 1px solid #eef2f0;

    color: #89958f;

    font-size: 0.66rem;
}

.home-shop-directory__location {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-shop-directory__location i {
    flex: 0 0 auto;

    color: #4fa17f;
}

.home-shop-directory__reviews {
    flex: 0 0 auto;

    white-space: nowrap;
}


/* ==========================================================
   Empty
   ========================================================== */

.home-shop-directory__empty {
    margin-top: 10px;
    padding: 55px 20px;

    border: 1px dashed #dce7e1;
    border-radius: 22px;

    text-align: center;

    background: #fbfdfc;
}

.home-shop-directory__empty[hidden] {
    display: none;
}

.home-shop-directory__empty i {
    display: block;

    margin-bottom: 13px;

    color: #86aa9a;

    font-size: 2.5rem;
}

.home-shop-directory__empty strong {
    display: block;

    color: #34473e;

    font-size: 1rem;
    font-weight: 900;
}

.home-shop-directory__empty p {
    margin: 7px 0 0;

    color: #89968f;

    font-size: 0.8rem;
}


/* ==========================================================
   Loader
   ========================================================== */

.home-shop-directory__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 70px;

    color: #708179;

    font-size: 0.75rem;
    font-weight: 700;
}

.home-shop-directory__loader[hidden] {
    display: none;
}

.home-shop-directory__loader > span:first-child {
    width: 22px;
    height: 22px;

    border: 3px solid #deebe5;
    border-top-color: #3fa57a;
    border-radius: 50%;

    animation:
        homeShopDirectorySpin 0.75s linear infinite;
}

@keyframes homeShopDirectorySpin {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================
   Error
   ========================================================== */

.home-shop-directory__error {
    margin: 18px auto 0;
    padding: 11px 16px;

    max-width: 560px;

    border: 1px solid rgba(210, 80, 65, 0.17);
    border-radius: 13px;

    color: #9f463c;
    background: #fff7f6;

    text-align: center;

    font-size: 0.76rem;
    font-weight: 700;
}

.home-shop-directory__error[hidden] {
    display: none;
}


/* ==========================================================
   Sentinel
   ========================================================== */

.home-shop-directory__sentinel {
    width: 100%;
    height: 2px;

    margin-top: 12px;

    pointer-events: none;
}


/* ==========================================================
   Busy State
   ========================================================== */

.home-shop-directory.is-filtering
.home-shop-directory__grid {
    opacity: 0.45;

    transition:
        opacity 0.18s ease;
}

.home-shop-directory.is-filtering
.home-shop-directory__filters {
    pointer-events: none;
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 1199.98px) {

    .home-shop-directory__filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-shop-directory__filter-actions {
        grid-column:
            1
            /
            -1;

        justify-content: flex-end;
    }

}


/* ==========================================================
   Small Tablet
   ========================================================== */

@media (max-width: 991.98px) {

    .home-shop-directory {
        padding:
            75px
            0;
    }

    .home-shop-directory__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-shop-directory__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 767.98px) {

    .home-shop-directory {
        padding:
            60px
            0
            70px;
    }

    .home-shop-directory__header {
        margin-bottom: 25px;
    }

    .home-shop-directory__header h2 {
        letter-spacing: -0.8px;
    }

    .home-shop-directory__sort {
        width: 100%;

        justify-content: center;
    }

    .home-shop-directory__filters {
        grid-template-columns: 1fr;

        padding: 15px;

        border-radius: 19px;
    }

    .home-shop-directory__filter-actions {
        grid-column: auto;

        width: 100%;
    }

    .home-shop-directory__submit,
    .home-shop-directory__reset {
        flex: 1;
    }

    .home-shop-directory__grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .home-shop-directory__media {
        height: 225px;
    }

}


/* ==========================================================
   Small Mobile
   ========================================================== */

@media (max-width: 420px) {

    .home-shop-directory__body {
        padding:
            17px
            15px
            15px;
    }

    .home-shop-directory__meta {
        gap: 6px;
    }

    .home-shop-directory__meta > span {
        padding:
            8px
            6px;
    }

    .home-shop-directory__footer {
        align-items: flex-start;
        flex-direction: column;
    }

}