.store-rank {
    position: relative;
    width: 100%;
    padding: 3.660322108% 0 4.172767204% 0;
    background-color: #F6F4F4;
}

.store-rank__container {
    max-width: 75rem;
    margin: 0 auto;
    width: 100%;
}

.store-rank__header {
    text-align: center;
    margin-bottom: 1rem;
}

.editor-styles-wrapper .block-editor-block-list__layout h2.store-rank__title,
.single-content h2.store-rank__title {
    font-size: 2.375rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1rem 0;
    background: linear-gradient(266.9deg, #700C1C 0.67%, #E41E26 99.13%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
}

.store-rank__description {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    line-height: 1.4444;
    color: #2D2D2D;
    font-weight: 400;
}

.store-rank__filters {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3.125rem;
}

.store-rank__filters-inner {
    display: inline-flex;
    padding: 1rem 1.25rem;
    -webkit-border-radius: 5.625rem;
    border-radius: 5.625rem;
    gap: 0.625rem;
    background: linear-gradient(0deg, #CECECE 5%, #F3F3F3 100%);
    box-shadow: 0px 0.3125rem 0.3125rem 0px #00000033 inset;
}

.store-rank__custom-select,
.store-list__dropdown {
    position: relative;
    user-select: none;
    display: inline-block;
}

.store-rank__custom-select-trigger,
.store-list__dropdown-btn {
    position: relative;
    background: linear-gradient(266.9deg, #700C1C 0.67%, #E41E26 99.13%);
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 700;
    padding: 0.625rem 2.625rem 0.625rem 1.25rem;
    box-shadow: 0px 5px 25px 0px #00000026;
    -webktit-border-radius: 3.75rem;
    border-radius: 3.75rem;
    cursor: pointer;
}


.store-rank__custom-select-trigger:focus,
.store-list__dropdown-btn:focus,
.store-rank__custom-select-trigger:active,
.store-list__dropdown-btn:active,
.store-rank__custom-select.is-open .store-rank__custom-select-trigger,
.store-list__dropdown.is-active .store-list__dropdown-btn {
    background: linear-gradient(266.9deg, #700C1C 0.67%, #E41E26 99.13%) !important;
    color: #fff !important;
    box-shadow: 0px 0.3125rem 1.5625rem 0px #00000026 !important;
}

.store-rank__custom-select-trigger::after,
.store-list__dropdown-btn::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.75rem;
    background-image: url('../../assets/images/arrow-down.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    -webkit-transition: transform 0.25s ease;
    transition: transform 0.25s ease;
}

.store-rank__custom-select.is-open .store-rank__custom-select-trigger::after,
.store-list__dropdown.is-active .store-list__dropdown-btn::after {
    -webkit-transform: translateY(-50%) rotate(180deg);
    transform: translateY(-50%) rotate(180deg);
}

.store-rank__custom-select-options,
.store-list__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 8px 0 !important;
    margin: 8px 0 0 0 !important;
    list-style: none;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.store-rank__custom-select-options::-webkit-scrollbar,
.store-list__dropdown-menu::-webkit-scrollbar {
    width: 5px;
}

.store-rank__custom-select-options::-webkit-scrollbar-track,
.store-list__dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.store-rank__custom-select-options::-webkit-scrollbar-thumb,
.store-list__dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 100px;
}

.store-rank__custom-select.is-open .store-rank__custom-select-options,
.store-list__dropdown.is-active .store-list__dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
}

.store-list__dropdown--sort .store-list__dropdown-menu {
    left: auto;
    right: 0;
    -webkit-transform: translateX(0) translateY(10px);
    transform: translateX(0) translateY(10px);
}

.store-list__dropdown--sort.is-active .store-list__dropdown-menu {
    -webkit-transform: translateX(0) translateY(0);
    transform: translateX(0) translateY(0);
}

.store-rank__custom-select-options li,
.store-list__dropdown-item {
    padding: 10px 16px;
    margin: 2px 6px;
    border-radius: 8px;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.store-rank__custom-select-options li:hover,
.store-list__dropdown-item:hover {
    background-color: #f1f5f9;
    color: #c20e1a;
}

.store-rank__custom-select-options li.is-selected,
.store-list__dropdown-item.is-selected {
    background-color: rgba(194, 14, 26, 0.08);
    color: #c20e1a;
}

/* Grid Layout */
.store-rank__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.875rem 3.125rem;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.store-rank__grid.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

.store-rank__card {
    display: flex;
    flex-direction: column;
    width: 28.916666667%;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #fff;
    box-shadow: 0px 0.3125rem 3.125rem 0px #0000001A;
    padding: 1.25rem;
}

.store-rank__thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 74.918566775%;
    overflow: hidden;
}

.store-rank__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.store-rank__card:hover .store-rank__thumb {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.store-rank__badge-img {
    position: absolute;
    right: -0.375rem;
    top: -0.375rem;
    width: 8.0625rem;
    height: auto;
}


/* Card Content details */
.store-rank__content {
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.store-rank__name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.625rem 0;
    color: #000000;
}


.store-rank__details {
    display: flex;
    flex-direction: column;
    padding: 0.625rem;
    gap: 0.25rem;
}

.store-rank__detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.3125rem;
}

.store-rank__icon {
    position: relative;
    width: 1.25rem;
    height: auto;
    top: 0.225rem;
}

.store-rank__text {
    flex-grow: 1;
    font-size: 1.0625rem;
    font-weight: 400;
    color: #4E4E4E;
}


/* Google Maps Link */
.store-rank__map-link {
    display: inline-block;
    color: #BC132A;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid #BC132A;
    padding-bottom: 2px;
    -webkit-transition: color 0.2s ease, border-color 0.2s ease;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.store-rank__map-link:hover {
    color: #a00b14;
    border-color: #a00b14;
}

.store-rank__phone-link {
    font-size: 1.0625rem;
    font-weight: 400;
    color: #4E4E4E;
    text-decoration: none;
}

.store-rank__phone-link:hover {
    color: #BC132A;
}

.store-rank__no-posts {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    -webkit-border-radius: 24px;
    border-radius: 24px;
    border: 1px dashed #cbd5e1;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
}

.store-rank__no-posts-icon {
    width: 64px;
    height: 64px;
    background: rgba(194, 14, 26, 0.06);
    color: #c20e1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.store-rank__no-posts:hover .store-rank__no-posts-icon {
    transform: scale(1.08);
}

.store-rank__no-posts-icon svg {
    width: 32px;
    height: 32px;
}

.store-rank__no-posts-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.store-rank__no-posts-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    max-width: 520px;
    line-height: 1.6;
    margin: 0;
}

.store-rank__cta-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 3.4375rem;
}




/* Responsive design */
@media (max-width: 991px) {

    .store-rank {
        padding: 3.125rem 1.25rem;
    }

    .editor-styles-wrapper .block-editor-block-list__layout h2.store-rank__title,
    .single-content h2.store-rank__title {
        font-size: 2rem;
    }

    .store-rank__grid {
        gap: 1.875rem;
    }

    .store-rank__card {
        width: calc(50% - 0.9375rem);
        max-width: calc(50% - 0.9375rem);
    }
}

@media (max-width: 767px) {
    .store-rank__card {
        width: 100%;
        max-width: 100%;
    }

    .store-rank__cta-container {
        margin-top: 1.875rem;
    }

    .store-rank__cta-container .btn-ariston {
        width: 100%;
        text-align: center;
    }
    .store-rank__description {
        padding: 0 1rem;
    }
}