.shop {
    display: flex;
    flex-direction: column;
    padding: 170px 150px;
}
.shop-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 100px;
}
.shop-section__title {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #012D5C;
    margin-bottom: 35px;
}
.shop-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 50px;
}
.shop-product {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.shop-product__link {
    text-decoration: none;
}
.shop-product__thumb {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    border: 1px solid #C7C3BC;
    background: white;
    aspect-ratio: 37 / 44;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}
.shop-product__image {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.shop-product__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.shop-section-gift-sets .shop-product__image img {
    object-fit: cover;
}
.shop-product__naming {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
}
.shop-product__text {
    text-decoration: none;
}
.shop-product__name {
    min-height: 78px;
    font-family: Raleway;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 2px;
    text-decoration: none;
    color: #424242;
    font-variant-numeric: lining-nums;
}
.shop-product__volume {
    font-family: Raleway;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 13px;
    color: #7F7F7F;
    font-variant-numeric: lining-nums;
}
.shop-product__badge img {
    height: 40px;
}
.shop-product__price {
    font-family: Raleway;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: #7f7f7f;
    font-variant-numeric: lining-nums;
    margin-bottom: 14px;
}
.shop-product__price:has(del) span .amount {
    color: #972321;
}
.shop-product__price del {
    color: #7f7f7f;
}
.shop-product__icons {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.product .shop-product__icons {
    align-items: flex-start;
}
.shop-product__icon {
    cursor: pointer;
}
.shop-product__icon:hover {
    opacity: 0.7;
}
.shop-product__icon.woosw-btn svg, .shop-product__icon.add-to-cart-btn svg {
    width: 23px;
    height: 21px;
}
.woosw-btn-has-icon {
    display: block !important;
}
.product .woosw-btn-has-icon {
    display: flex !important;
}
.shop-product__icon.woosw-btn.is-in-favorites svg path {
    fill: #972321;
    stroke: #972321;
}
.shop-product__advantages-left, .shop-product__advantages-right {
    position: absolute;
    z-index: 2;
    top: 17px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.shop-product__advantages-left {
    left: 0;
    align-items: flex-start;
}
.shop-product__advantages-left .shop-product__advantage {
    border-top-right-radius: 22px;
    border-bottom-right-radius: 22px;
    padding: 2px 16px 2px 19px;
}
.shop-product__advantages-right {
    right: 0;
    align-items: flex-end;
}
.shop-product__advantages-right .shop-product__advantage {
    border-top-left-radius: 22px;
    border-bottom-left-radius: 22px;
    padding: 2px 19px 2px 8px;
}
.shop-product__advantage {
    display: flex;
    gap: 8px;
    font-family: Raleway;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}
.shop-product__advantage-bestseller {
    color: white;
    background: #236e53;
}
.shop-product__advantage-special {
    color: white;
    background: #134b87;
}
.shop-product__advantage-discount {
    color: white;
    background: #972321;
}
.shop-product__advantage-gourmet {
    color: #012d5c;
    background: #dcc6a1;
}
.shop-product__advantage-premium {
    color: #012d5c;
    background: #bfbfbf;
}

.shop-toolbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F1EEE8;
    border-radius: 30px;
    padding: 8px 8px 8px 24px;
    font-family: Raleway;
    margin-bottom: 100px;
}
.shop-filters {
    display: flex;
    align-items: center;
    gap: 75px;
}
.filter-dropdown {
    position: relative;
}
.filter-dropdown p {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #04133C;
}
.filter-select {
    background: white;
    display: none;
    flex-direction: column;
    position: absolute;
    z-index: 3;
    left: 0;
    top: 100%;
    border-radius: 8px;
    box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.1);
}
.filter-dropdown:hover > .filter-select {
    display: flex;
}
.filter-select a {
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    color: #04133C;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius:8px;
}
.filter-select a:hover {
    background: #eeeeee;
}
.sort-dropdown {
    position: relative;
    background: white;
    padding: 10px 18px;
    border-top-right-radius: 22px;
    border-bottom-right-radius: 22px;
    width: 230px;
}
.sort-dropdown p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #04133C;
}
.sort-select {
    background: white;
    display: none;
    flex-direction: column;
    position: absolute;
    z-index: 3;
    left: 0;
    top: 100%;
    border-radius: 8px;
    box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.1);
}
.sort-dropdown:hover > .sort-select {
    display: flex;
}
.sort-select a {
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    color: #04133C;
    white-space: nowrap;
    padding: 6px 18px;
    border-radius:8px;
}
.sort-select a:hover {
    background: #eeeeee;
}
.shop-sorting {
    display: flex;
    align-items: center;
    background: #DCC6A1;
    border-radius: 22px;
    border: 1px solid #DCC6A1;
}
.shop-sorting span {
    padding: 0 18px;
    color: #04133C;
    font-weight: 500;
    font-size: 18px;
}
.gift-toggle {
    font-weight: 700;
    font-size: 18px;
    color: #04133C;
    text-decoration: none;
    border-radius: 100px;
    border: 1px solid #DCC6A1;
    padding: 4px 8px;
}
.gift-toggle.is-active {
    background-color: #DCC6A1;
}

.no-items {
    font-family: Raleway;
}

.coming-soon {
    color: #972321;
}

@media screen and (max-width: 1400px) {
    .shop {
        padding: 120px 100px;
    }
    .shop-product__advantages-right .shop-product__advantage {
        padding: 2px 5px 2px 8px;
    }
}

@media screen and (max-width: 1300px) {
    .shop-product__advantage span {
        display: none;
    }
}

@media screen and (max-width: 1200px) {
    .shop-section__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .shop-product__advantages-right {
        top: 9px;
    }
    .shop-product__advantages-right .shop-product__advantage {
        padding: 3px 6px 3px 5px;
    }
}

@media screen and (max-width: 769px) {
    .shop {
        padding: 95px 20px;
    }
    .shop-toolbar {
        margin-bottom: 35px;
        position: relative;
        padding: 6px 14px;
    }
    .shop-filters {
        width: 100%;
        justify-content: space-between;
    }
    .filter-dropdown p {
        font-size: 12px;
    }
    .filter-select {
        top: calc(100% + 15px);
    }
    .filter-dropdown:last-child .filter-select {
        left: auto;
        right: 0;
    }
    .filter-select a {
        font-size: 14px;
    }
    .shop-sorting {
        position: absolute;
        bottom: calc(100% + 5px);
        right: 0;
    }
    .shop-sorting span {
        padding: 0 11px;
        font-size: 12px;
    }
    .sort-dropdown {
        padding: 6px 10px;
        width: 150px;
    }
    .sort-dropdown p {
        font-size: 12px;
    }
    .shop-section__title {
        font-size: 24px;
        margin-bottom: 18px;
    }
    .shop-section {
        margin-bottom: 40px;
    }
    .shop-section__grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 12px;
        row-gap: 20px;
    }
    .shop-product__link {
        position: relative;
    }
    .shop-product__badge {
        position: absolute;
        top: 10px;
        left: 10px;
    }
    .shop-product__thumb {
        border-radius: 7px;
        margin-bottom: 11px;
    }
    .shop-product__name {
        min-height: 59px;
        font-size: 15px;
    }
    .shop-product__volume {
        font-size: 12px;
        margin-bottom: 6px;
    }
    .shop-product__price {
        font-size: 14px;
    }
}



