/* Shopping page (Partners/location_search.ctp) */
.list-gear-main-page .gr-quantity {
    display: flex !important;
}

.fixed-nav.bar-menu {
    display: flex !important;
}

.back-categories {
    position: sticky;
    top: 100px;
    z-index: 999;
    background: #fff;
}

.product-image,
.product-detail {
    cursor: pointer;
}

.show-all-categories {
    font-weight: 500;
    line-height: 1;
    color: #00AAB7;
    cursor: pointer;
}

@media (min-width: 768px) {
    #GearFistMainPage .container {
        width: calc(100% - 40px) !important;
    }
}

@media (min-width: 1200px) {
    #GearFistMainPage.shop-listing .container {
        width: calc(100% - 128px) !important;
    }
}

@media (max-width: 768px) {
    .fixed-nav.bar-menu.hidden-sp {
        display: none !important;
    }

    /*
     * The bar uses the mobile category list up to 768px, like the header and the cart. .hidden-sp / .hidden-pc
     * (style.css) and the mobile list styles (gear-first-style.css) switch at 767px, so at exactly 768px both lists
     * would otherwise be mixed. Mirrors the max-width: 767px rules of #headers-categories-mobile and .left-column.
     */
    .shop-listing .bar-menu #headers-categories.hidden-sp {
        display: none !important;
    }

    .shop-listing .bar-menu #headers-categories-mobile.hidden-pc {
        display: flex !important;
    }

    .shop-listing .bar-menu .left-column {
        width: calc(100% - 20px);
        margin-left: auto;
    }

    .shop-listing .bar-menu #headers-categories-mobile {
        overflow-x: auto;
        width: 100%;
        margin: 0 auto;
        border-left: none;
        border-right: none;
    }

    .shop-listing .bar-menu #headers-categories-mobile .nav-item.sub_item {
        position: absolute;
        left: 0;
    }

    .shop-listing .bar-menu #headers-categories-mobile .nav-item:nth-child(2) .nav-link {
        padding-left: 0;
    }

    /* The dropdown shows the mobile content (category tiles) instead of the desktop "All Categories" list */
    .shop-listing .bar-menu #headers-categories-mobile .sub_menu_link .hidden-pc {
        display: block !important;
    }

    .shop-listing .bar-menu #headers-categories-mobile .sub_menu_link .hidden-sp {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .back-categories > div {
        font-weight: 500;
        padding: 15px;
        border-bottom: 1px solid #E4E4E4;
    }

    .container {
        max-width: 100%;
    }
}

.shop-listing .shop-listing__header {
    display: block;
    margin-top: 32px;
    margin-bottom: 12px;
    text-align: left;
}

.shop-listing .shop-listing__header .title-qp-gated {
    margin-bottom: 0 !important;
}

.shop-listing .shop-listing__title {
    margin: 0;
    padding: 10px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.219;
    color: #334155;
    text-align: left;
}

/* Hidden per Figma; the shared script still writes to them */
.shop-listing .breadcrumbs-gearfirst,
.shop-listing .location-category-title {
    display: none !important;
}

.shop-listing .shop-listing__intro {
    text-align: left;
}

.shop-listing .shop-listing__disclaimer {
    margin: 0 0 32px;
    font-size: 14px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.219;
    color: #000000;
    text-align: left;
}

.shop-listing .shop-listing__list-container {
    margin-top: 12px;
}

.shop-listing .shop-listing__row,
.shop-listing .shop-listing__grid-section {
    margin-bottom: 64px !important;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.shop-listing .shop-listing__row-title {
    margin: 0 0 16px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.219;
    color: #334155;
}

.shop-listing .shop-listing__carousel .slick-list {
    margin: 0 -16px;
}

.shop-listing .shop-listing__carousel .slick-track {
    display: flex;
    margin-left: 0;
}

.shop-listing .shop-listing__carousel .slick-slide {
    float: none;
    height: auto;
    padding: 0 16px;
}

.shop-listing .shop-listing__carousel .slick-slide > div,
.shop-listing .shop-listing__carousel .slick-slide > div > div {
    height: 100%;
}

/* top set by shop-listing.js; !important beats slick's inline display */
.shop-listing .shop-listing__arrow {
    position: absolute;
    top: calc(50% - 40px);
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #FFFFFF;
    border-radius: 300px;
    color: #334155;
    transform: translateY(-50%);
    cursor: pointer;
}

.shop-listing .shop-listing__arrow,
.shop-listing .category-filter__arrow {
    border: 1px solid #E2E8F0;
    box-shadow: 0px 2px 3px 0px #94A3B84D, 0px 6px 10px 4px #94A3B826;
}

.shop-listing .shop-listing__arrow:hover,
.shop-listing .category-filter__arrow:hover {
    border-color: #CBD5E1;
    box-shadow: 0px 8px 12px 6px #94A3B826, 0px 4px 4px 0px #94A3B84D, 0px -1px 4px 0px #0000000D;
}

/* Ignore global img vertical-align */
.shop-listing .shop-listing__arrow img {
    display: block;
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.shop-listing .shop-listing__arrow--prev {
    left: -15px;
}

.shop-listing .shop-listing__arrow--prev img {
    transform: rotate(180deg);
}

.shop-listing .shop-listing__arrow--next {
    right: -15px;
}

.shop-listing .shop-listing__arrow.slick-disabled {
    display: none !important;
}

.shop-listing .shop-listing__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 64px;
}

.shop-listing .shop-listing__pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: #FFFFFF;
    border: 1px solid #94A3B8;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    color: #1E293B;
    white-space: nowrap;
    cursor: pointer;
}

.shop-listing .shop-listing__pill:hover {
    background-color: #F1F5F9;
}

.shop-listing .shop-listing__pill:focus {
    outline: none;
}

.shop-listing .shop-listing__pill--active {
    background: #F1F5F9;
    border-color: #1E293B;
}

.shop-listing .shop-listing__pill-close {
    width: 15px;
    height: 15px;
    padding: 3px;
}

.shop-listing .shop-listing__grid {
    --shop-listing-cols: 5;
    --shop-listing-container: min(1140px, 100vw - 128px);
    --shop-listing-card-width: calc((var(--shop-listing-container) - 30px - (var(--shop-listing-cols) - 1) * 32px - 17px) / var(--shop-listing-cols));
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--shop-listing-card-width));
    justify-content: space-between;
    column-gap: 32px;
    row-gap: 64px;
}

@media (min-width: 1441px) {
    .shop-listing .shop-listing__grid {
        --shop-listing-container: min(1440px, 100vw - 128px);
    }
}

.shop-listing .shop-listing__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 0;
}

.shop-listing .shop-listing__card .shop-listing__card-image {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 100% 0 0;
    background: #F5F5F5;
    border: none;
    border-radius: 16px;
}

.shop-listing .shop-listing__card .shop-listing__card-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 59%;
    height: 59%;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.shop-listing .shop-listing__card .shop-listing__card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
}

.shop-listing .shop-listing__card .shop-listing__card-name {
    display: -webkit-box;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.219;
    color: #334155;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shop-listing .shop-listing__card .shop-listing__card-price {
    margin: 0;
    padding: 4px 0;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.219;
    color: #334155;
}

.shop-listing .shop-listing__card .shop-listing__card-price b {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2727;
}

.shop-listing .shop-listing__card .select-btn,
.shop-listing .shop-listing__card .gr-quantity {
    margin-top: auto;
}

/* Overrides getAddQtyBtnHtml() inline width */
.shop-listing .shop-listing__card .select-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100% !important;
    height: 38px;
    padding: 0 16px !important;
    background-color: #334155;
    border-radius: 300px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.219;
    color: #FFFFFF;
}

/* 15px icon in an 18px box */
.shop-listing .shop-listing__card .select-btn::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: url('../../img/icon-plus-white.svg') no-repeat center / 15px 15px;
}

/* Stepper after Add: overrides the absolute-positioned teal one in gear-first-style.css */
.shop-listing .shop-listing__card .gr-quantity {
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    height: 38px;
    border-color: #334155;
}

.shop-listing .shop-listing__card .gr-quantity:hover,
.shop-listing .shop-listing__mcard .mobile-qty-stepper.visible:hover {
    background-color: #F1F5F9;
}

/* Plus is not rendered at max qty: reserve its slot (24px + gap) so the group keeps the same spacing and position */
.shop-listing .shop-listing__card .gr-quantity:not(:has(.add-qty)) {
    padding-right: 32px;
}

.shop-listing .shop-listing__card .gr-quantity input[type="number"] {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    width: 24px;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.219;
    color: #334155;
}

.shop-listing .shop-listing__card .gr-quantity .add-qty,
.shop-listing .shop-listing__card .gr-quantity .minus-qty,
.shop-listing .shop-listing__card .gr-quantity .trash-qty {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 24px;
    height: 100%;
    padding: 0;
    background: none no-repeat center / 18px 18px;
    /* Hides the "+" / "-" text; the icon comes from the background */
    font-size: 0;
}

.shop-listing .shop-listing__card .gr-quantity .add-qty {
    background-image: url('../../img/icon-shopping-add.svg');
}

.shop-listing .shop-listing__card .gr-quantity .minus-qty {
    background-image: url('../../img/icon-shopping-minus.svg');
}

.shop-listing .shop-listing__card .gr-quantity .trash-qty img {
    content: url('../../img/icon-shopping-remove.svg');
    width: 18px;
    height: 18px;
}

.shop-listing .shop-listing__banner {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 64px;
    padding: 16px 12px;
    border-radius: 12px;
}

.shop-listing .shop-listing__banner-icon {
    flex-shrink: 0;
}

.shop-listing .shop-listing__banner--clean {
    background: #F4FCFC;
    color: #029DB1;
}

.shop-listing .shop-listing__banner-title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.219;
}

.shop-listing .shop-listing__banner-text {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2727;
}

.shop-listing .shop-listing__banner--cfar {
    background: #FDF6F6;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.219;
    color: #334155;
}

.shop-listing .shop-listing__banner--cfar p {
    margin: 0;
}

.shop-listing .shop-listing__divider {
    margin-bottom: 64px;
    padding: 10px 0;
}

.shop-listing .shop-listing__divider::before {
    content: '';
    display: block;
    height: 1px;
    background: #E2E8F0;
}

.shop-listing .shop-listing__section-title {
    margin: 0 0 64px;
    padding: 10px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.219;
    color: #334155;
}

@media (max-width: 1199px) {
    .shop-listing .shop-listing__grid {
        --shop-listing-cols: 4;
        --shop-listing-container: min(960px, 100vw - 40px);
    }
}

@media (max-width: 991px) {
    .shop-listing .shop-listing__grid {
        --shop-listing-cols: 3;
        --shop-listing-container: min(720px, 100vw - 40px);
    }
}

@media (max-width: 767px) {
    .shop-listing .category-filter {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .shop-listing .category-filter .category-filter__track {
        margin-top: 20px !important;
    }

    .shop-listing .category-filter #gear-categories-mobile {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* The divider sits under the disclaimer, not between it and the tiles */
    .shop-listing .category-filter + .shop-listing__categories-disclaimer {
        margin-bottom: 0;
        padding-bottom: 12px;
        border-bottom: 1px solid #E2E8F0;
    }
}

/* No vertical scroll on the tile row */
.shop-listing #gear-categories-mobile {
    overflow-y: hidden;
    overscroll-behavior-x: contain;
}

.shop-listing .shop-listing__categories-disclaimer {
    margin: 12px 0;
    padding: 0 15px;
    font-size: 8px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.219;
    color: #000000;
    text-align: left;
}

@media (max-width: 767px) {
    .shop-listing .shop-listing__disclaimer {
        display: none;
    }

    .shop-listing .shop-listing__list-container {
        margin-top: 26px;
    }
}

@media (min-width: 768px) {
    .shop-listing .shop-listing__categories-disclaimer {
        display: none;
    }
    .shop-listing .category-filter__track {
        justify-content: flex-start !important;
    }
    .shop-listing #gear-categories-mobile {
        gap: 12px;
    }
    .shop-listing .category-filter__arrow img {
        width: 7px;
    }
}

@media (max-width: 767px) {
    .shop-listing .category-gear-mobile .gear-img {
        position: relative;
        width: 58px !important;
        height: 58px;
        padding: 6px !important;
        background: #E5E5E5;
        border: 1px solid #FFFFFF;
        border-radius: 12px !important;
    }

    .shop-listing .category-gear-mobile .gear-img img {
        width: 46px;
        height: 46px;
        max-width: none;
        object-fit: contain;
    }

    .shop-listing .category-gear-mobile.active .gear-img {
        background: #D4D4D4;
        border-color: #1E293B !important;
        box-shadow: none !important;
    }

    .shop-listing .category-gear-mobile .gear-desc {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2727;
        color: #334155;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .shop-listing .category-filter .category-gear-mobile .gear-img {
        border: 1.5px solid #FFFFFF;
        border-radius: 16px !important;
        width: 95px !important;
        height: 95px !important;
    }
    .shop-listing .category-filter .category-gear-mobile.active .gear-img {
        background-color: #E5E5E5;
        border-color: #1E293B;
    }
    .shop-listing .category-filter .category-gear-mobile img {
        width: 50px;
        height: 50px;
    }
}

.shop-listing .category-gear-mobile:not(.active):hover .gear-img {
    background-color: #FAFAFA;
    border-color: #334155;
}

.shop-listing .shop-listing__mobile-row,
.shop-listing .shop-listing__mobile-all .shop-listing__banner {
    margin-bottom: 32px;
}

.shop-listing .shop-listing__mobile-scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}

.shop-listing .shop-listing__pills--scroll {
    margin-bottom: 22px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shop-listing .shop-listing__pills--scroll::-webkit-scrollbar {
    display: none;
}

.shop-listing .shop-listing__pills--scroll .shop-listing__pill {
    flex-shrink: 0;
    border-color: #E2E8F0;
    font-size: 11px;
}

.shop-listing .shop-listing__pills--scroll .shop-listing__pill--active {
    border-color: #1E293B;
}

.shop-listing .shop-listing__grid--mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
}

.shop-listing .shop-listing__mcard {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: auto;
    min-width: 0;
}

.shop-listing .shop-listing__mobile-scroller .shop-listing__mcard {
    width: 165px;
    min-width: 165px;
}

.shop-listing .shop-listing__mcard .shop-listing__mcard-image {
    position: relative;
    display: block;
    width: 100% !important;
    height: auto !important;
    padding: 100% 0 0;
    background: #F5F5F5;
    border-radius: 16px;
    overflow: hidden;
}

.shop-listing .shop-listing__mcard .shop-listing__mcard-image .image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 73%;
    height: 73%;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.shop-listing .shop-listing__mcard .shop-listing__mcard-info {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 16px 0;
}

.shop-listing .shop-listing__mcard .shop-listing__mcard-info .shop-listing__mcard-name {
    flex: 1;
    display: -webkit-box;
    height: auto;
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.219;
    color: #334155;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shop-listing .shop-listing__mcard .shop-listing__mcard-info .shop-listing__mcard-price {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.219;
    color: #334155;
    white-space: nowrap;
}

.shop-listing .shop-listing__mcard .shop-listing__mcard-price b {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2727;
}

.shop-listing .shop-listing__mcard .shop-listing__mcard-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 38px;
    margin-top: auto;
    padding: 0 16px;
    background: #334155;
    border: none;
    border-radius: 300px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.219;
    color: #FFFFFF;
}

.shop-listing .shop-listing__mcard .shop-listing__mcard-add::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: url('../../img/icon-plus-white.svg') no-repeat center / 15px 15px;
}

.shop-listing .shop-listing__mcard .shop-listing__mcard-add.in-cart {
    display: none;
}

.shop-listing .shop-listing__mobile-panel .shop-listing__recommendation {
    margin-top: 32px;
}

.shop-listing .shop-listing__mobile-panel .shop-listing__divider {
    margin-bottom: 16px;
}

.shop-listing .shop-listing__mobile-panel .shop-listing__section-title {
    margin-bottom: 16px;
    font-size: 16px;
}

.shop-listing .shop-listing__mcard .mobile-qty-stepper.visible {
    align-self: stretch;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    margin-top: auto;
    border-color: #334155;
}

.shop-listing .shop-listing__mcard .mobile-qty-dec,
.shop-listing .shop-listing__mcard .mobile-qty-inc {
    min-width: 24px;
    height: 100%;
    padding: 0;
}

.shop-listing .shop-listing__mcard .mobile-qty-dec img,
.shop-listing .shop-listing__mcard .mobile-qty-inc img {
    width: 18px;
    height: 18px;
}

/* content: url() beats the src that script_add_to_cart_gear_first.ctp swaps */
.shop-listing .shop-listing__mcard .mobile-qty-dec .icon-trash {
    content: url('../../img/icon-shopping-remove.svg');
}

.shop-listing .shop-listing__mcard .mobile-qty-dec .icon-minus {
    content: url('../../img/icon-shopping-minus.svg');
}

.shop-listing .shop-listing__mcard .mobile-qty-inc img {
    content: url('../../img/icon-shopping-add.svg');
}

.shop-listing .shop-listing__mcard .mobile-qty-inc:disabled {
    opacity: 0.2;
}

.shop-listing .shop-listing__mcard .mobile-qty-val {
    min-width: 24px;
    padding: 0;
    font-size: 14px;
    line-height: 1.219;
    color: #334155;
}
