/* Product Gallery */
.page-product {
    padding: 60px 0;
}

.product__wrapper {
    display: flex;
    gap: 32px;
}

.product__left {
    width: 624px;
    overflow: hidden;
    flex-shrink: 0;
}

.product__right {
    width: 100%;
    background: white;
    padding: 24px;
    border-radius: 24px;
}

.product__sliders {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
}

.product__image {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 24px;
}

.product__swiper {
    width: 515px;
    border-radius: 32px;
    overflow: hidden;
}

.product__swiper-thumb {
    width: 97px;
}

.product__swiper-thumb .swiper-wrapper {
    height: 515px;
}

.product__swiper-thumb .swiper-slide img {
    object-fit: cover;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 1/1;
}

.product__params {
    margin-top: 32px;
}

.product__title {
    color: var(--Black, #0D0D0D);
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    margin-top: 12px;
    letter-spacing: -0.96px;
}

.product__stock {
    width: fit-content;
    top: 20px;
    left: 20px;
    padding: 4px 12px;
    border-radius: 12px;
    background: #00B223;
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 18px */
}

.product__stock_red {
    background: #B22300;
}

.product__params-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product__params-item {
    display: flex;
    align-items: flex-end;
}

.product__params-line {
    display: block;
    width: 100%;
    border-bottom: 1px dashed #C5C5C5;
    margin-bottom: 5px;
}

.product__params-name {
    width: fit-content;
    flex-shrink: 0;
    color: var(--Grey, #807F7D);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 136%;
    /* 19.04px */
    letter-spacing: -0.14px;
}

.product__params-value {
    width: fit-content;
    flex-shrink: 0;
    color: var(--Black, #16170C);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 136%;
    /* 19.04px */
    letter-spacing: -0.14px;
}

.product__sku {
    margin-top: 8px;
    color: var(--Grey, #807F7D);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 136%;
    /* 21.76px */
    letter-spacing: -0.16px;
}

.product__descr {
    margin-top: 24px;
    color: var(--Grey80, #313131);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    /* 26px */
}
.product__price {
    margin-top: 24px;
    color: #93764c;
    font-size: 36px;
    font-weight: 700;
    line-height: 100%;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product__price p {
    margin: 0;
}

.product__one-click {
    margin-top: 0;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid #93764c;
    border-radius: 16px;
    background: transparent;
    color: #93764c;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    cursor: pointer;
    transition: all 0.3s;
}

.product__one-click:hover {
    background: #93764c;
    color: #FFF;
}

.product__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    width: fit-content;
}

.product__btn_g {
    width: 208px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 24px !important;
}

.product__btn_g .min-size {
    font-size: 12px;
    font-weight: 400;
}

.cart-btn-wrapper {
    /* margin-top: 36px; */
    margin-top: 36px;
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.not-available {
    width: fit-content;
    margin-top: 32px;
}

.product__params_mobile {
    display: none;
}

.product__delivery {
    margin-top: 16px;
    color: var(--Grey60, #626262);
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 120%;
    cursor: pointer;
    /* 19.2px */
}

.cart-btns {
    display: flex;
    align-items: center;
}

.product-info__quantity {
    height: fit-content;
}

.product-info__quantity {
    margin-left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-qty-btn {
    display: flex;
    width: 56px;
    height: 56px;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: #93764C;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.product-qty-btn svg path {
    transition: all 0.3s;
    stroke: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.product-qty-btn:hover {
    background: #685236;
}


@media(width < 1200px) {

    .product__swiper {
        width: 100%;
    }

    .product__swiper-thumb {
        width: 107px;
        flex-shrink: 0;
    }

    .product__wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .product__params {
        display: none;
    }

    .product__params_mobile {
        display: block;
        margin-top: 0;
    }

    .product__right {
        padding: 0;
        background: none;
    }

    .product__left {
        width: 100%;
    }

    .product__descr {
        margin-top: 24px;
    }

    .product__price {
        margin-top: 32px;
    }
    .cart-btn-wrapper{
        margin-top: 12px;
    }
    .product__one-click{
        margin-top: 0;
    }
    .product__descr{
        margin-top: 40px;
    }
}

@media(width < 768px) {
    .page-product {
        padding: 32px 0;
    }

    .product__wrapper {
        gap: 24px;
    }

    .swiper-button {
        display: none;
    }

    .product__swiper-thumb{
        display: none;
    }

    .product__swiper, .product__left{
        overflow: visible;
    }

    .page-product{
        overflow: hidden;
    }

    .product__title {
        font-size: 40px;
    }

    .product__one-click{
        margin-top: 0;
    }
    .product__sku {
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 136%;
        /* 19.04px */
        letter-spacing: -0.14px;
    }

    .product__descr {
        margin-top: 20px;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 136%;
        /* 19.04px */
        letter-spacing: -0.14px;
    }

    .product__price {
        margin-top: 20px;
    }
}

/* Popup ограничения количества */
.cart-stock-popup {
    position: fixed;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-stock-popup_active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1000;
}

.cart-stock-popup__content {
    width: 100%;
    max-width: 460px;
    padding: 28px;
    box-sizing: border-box;
    border-radius: 20px;
    background: #FFFFFF;
    color: #16170C;
    text-align: center;
}

.cart-stock-popup__text {
    margin: 0;
    color: #16170C;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
}

.cart-stock-popup__btn {
    margin-top: 24px;
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    background: #93764C;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-stock-popup__btn:hover {
    background: #685236;
}

@media(width < 768px) {
    .cart-stock-popup__content {
        max-width: 100%;
        padding: 24px 18px;
    }

    .cart-stock-popup__text {
        font-size: 16px;
    }

    .cart-stock-popup__btn {
        width: 100%;
    }
}

/* Правки для блока категорий каталога */

.products__category {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--Black, #0D0D0D);
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.products__category:hover {
    background: #93764C;
    box-shadow: 0 12px 32px rgba(147, 118, 76, 0.25);
    transform: translateY(-2px);
}

.products__category-img {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.products__category-img img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.products__category:hover .products__category-img img {
    transform: scale(1.03);
}

.products__category-name {
    display: block;
    margin: 0;
    padding: 16px;
    color: var(--Black, #0D0D0D);
    transition: color 0.3s ease;
}

.products__category:hover .products__category-name {
    color: #FFFFFF;
}

