.product-box {
    padding: 0px 0 80px 0;
    overflow: visible;
}
.product-box .onsale {
    display: none;
}
#primary {
    z-index: 3;
    position: relative;
}
/* Product Gallery - Start */
.swiper-wrapper {
    height: fit-content !important;
}
.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 30px);
    display: flex;
    gap: 15px;
    padding-right: 30px;
}
.gallery-top {
    width: calc(100% - 120px);
    height: fit-content;
}
.gallery-top .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--header-height) - 30px - 30px);
    object-fit: contain;
    border-radius: 5px;
    cursor: zoom-in;
}
.gallery-thumbs {
    width: calc(100px + 3px);
    height: fit-content;
    max-height: calc(100dvh - var(--header-height) - 30px - 30px - 30px);
    overflow: auto !important;
    padding-right: 3px !important;
}
.gallery-thumbs .swiper-wrapper {
    transform: translate3d(0px, 0px, 0px) !important;
}
@media (pointer: fine) {
    .gallery-thumbs::-webkit-scrollbar {
        width: 3px;
    }
}
.gallery-thumbs .swiper-slide {
    height: fit-content !important;
    margin-bottom: 10px !important;
}
.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    cursor: pointer;
}
.gallery-top .swiper-button-prev,
.gallery-top .swiper-button-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 5px;
    transition: all 0.3s ease;
}
.gallery-top .swiper-button-prev:hover,
.gallery-top .swiper-button-next:hover {
    background: var(--accent);
}
.gallery-top .swiper-button-prev {
    left: 20px;
}
.gallery-top .swiper-button-next {
    right: 20px;
}
.gallery-top .swiper-button-prev::after,
.gallery-top .swiper-button-next::after {
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    transition: all 0.3s ease;
}
.gallery-top .swiper-button-prev:hover::after,
.gallery-top .swiper-button-next:hover::after {
    color: var(--white);
}
.add_to_cart_button.ajax_add_to_cart.btn-added {
    background: #8bd47b;
}
.add_to_cart_button.ajax_add_to_cart.btn-added span {
    color: var(--black);
}
.add_to_cart_button.ajax_add_to_cart.btn-added img {
    filter: url(#black-color);
}
@media (max-width: 768px) {
    .product-gallery {
        position: relative;
        top: 0;
        display: flex;
        gap: 10px;
        padding-right: 0;
        flex-direction: column-reverse;
    }
    .gallery-thumbs {
        width: 100%;
        height: auto;
    }
    .gallery-top {
        width: 100%;
        height: auto;
    }
    .gallery-top .swiper-button-prev,
    .gallery-top .swiper-button-next {
        width: 38px;
        height: 38px;
    }
    .gallery-top .swiper-button-prev::after,
    .gallery-top .swiper-button-next::after {
        font-size: 20px;
    }
    .gallery-top .swiper-button-prev {
        left: 10px;
    }
    .gallery-top .swiper-button-next {
        right: 10px;
    }
}
/* Product Gallery - End */

/* Product Base - Start */
.product-details h1.product_title {
    font-family: var(--font-family-1);
    font-size: 38px;
    line-height: 44px;
    font-weight: 500;
    color: var(--black);
    max-width: calc(100% - 0px);
    margin-bottom: 10px;
}
#main-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 38px;
    line-height: 44px;
    margin-bottom: 20px;
}
.short-desc {
    color: #a7a7a7;
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 30px;
}
.need-to-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #F7F7FB;
    border-radius: 9px;
    margin: 10px 0 20px;
}
.woocommerce-product-rating,
.product-details form.cart,
.product-details .quantity,
.product-details .compare-btn,
.product-details .wishlist-btn,
.product-details .product_meta,
.product-details .woocommerce-product-details__short-description {
    display: none;
}
@media (max-width: 1279px) {
    .product-details h1.product_title {
        font-size: 24px;
        line-height: 28px;
        max-width: calc(100% - 140px);
    }
    .stock-status {
        right: 15px;
        font-size: 14px;
        line-height: 14px;
    }
}
@media (max-width: 768px) {
    .product-details h1.product_title {
        max-width: calc(100% - 0px);
    }
    .col-50 {
        position: relative;
        width: calc(100% - 0px);
    }
    .stock-status {
        position: relative;
        right: initial;
        margin-bottom: 20px;
    }
}
/* Product Base - End */

/* Product Options - Start */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.color-options .option-head {
    width: 100%;
}
.color-option {
    position: relative;
    display: flex;
    width: 45px;
    height: 45px;
    background: red;
    border-radius: 100%;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all 0.3s ease;
}
.color-option.gold {
    background: #d7bd82;
}
.color-option.black {
    background: #616169;
}
.color-option.silver {
    background: #e6e6e6;
}
.color-option.gold.selected {
    border: 4px solid #a99055;
}
.color-option.black.selected {
    border: 4px solid #3a3a3a;
}
.color-option.silver.selected {
    border: 4px solid #b3b3b3;
}
span.color-option:before {
    content: "не додано";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    padding: 10px;
    border-radius: 5px;
    background: #f0f0f3;
    box-shadow: 0 0 8px rgb(0 0 0 / 15%);
    font-family: var(--font-family-1);
    font-size: 14px;
    line-height: 14px;
    color: #0a121f;
    position: absolute;
    top: 48px;
    left: -10px;
    margin: 0 auto;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}
span.color-option.gold:before {
    content: "Gold";
}
span.color-option.black:before {
    content: "Grafit";
}
span.color-option.silver:before {
    content: "Inox";
}
span.color-option:hover:before {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
/* Product Options - End */

/* Buy Group - Start */
.buy-group {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 40px;
}
.buy-group .col-left {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.buy-group .price {
    position: relative;
    display: flex;
    width: fit-content;
    margin-bottom: 30px;
    font-family: var(--font-family-1);
    font-size: 25px;
    line-height: 35px;
    font-weight: 500;
    color: var(--black);
}
.buy-group .price ins {
    text-decoration: none;
}
.buy-group .price del {
    display: flex;
    align-items: center;
    color: #d3d3d3;
    font-size: 20px;
    line-height: 31px;
    font-weight: 600;
    text-decoration-line: line-through;
    margin-right: 10px;
}
.buy-group .price .per-product {
    margin-left: 5px;
}
.buy-group .col-left .btn-group {
    gap: 20px;
}
.buy-group .col-right {
    display: flex;
    flex-direction: column;
    width: 20%;
}
.buy-group .col-right .btn-group {
    justify-content: flex-end;
    gap: 16px;
    padding-top: 31px;
}
.buy-group .col-right .btn-group > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.buy-group .col-right .btn-group .btn {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 5px;
}
.buy-group .col-right .btn-group .btn img {
    height: 22px;
}
p.stock {
    display: none;
}
.custom-quantity-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.custom-quantity-input.weight-based:before {
    content: "кг";
    position: absolute;
    top: 26px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    font-size: 14px;
    font-weight: bold;
    color: #6b6b6b; 
    width: fit-content;
}
.quantity-btn {
    background: transparent;
    border: none;
    color: #333;
    font-size: 21px;
    line-height: 21px;
    padding: 16px 5px;
    width: 52px;
    height: 55px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.quantity-btn:hover {
    background: var(--gray);
}
.quantity-display {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    width: 70px;
    height: 55px;
    padding-left: 0;
    padding-right: 0;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: 0px;
    outline: none;
    background: #fff;
}
.custom-quantity-input.weight-based .quantity-display {
    padding-bottom: 29px;
}
@media (max-width: 1279px) {
    .buy-group {
        flex-direction: column;
        justify-content: flex-start;
    }
    .buy-group .col-left {
        width: 100%;
    }
    .buy-group .col-right {
        width: 100%;
    }
    .buy-group .col-right .btn-group {
        padding-top: 25px;
    }
}
@media (max-width: 1279px) {
    .product-box .btn-group {
        flex-direction: column;
        gap: 15px;
    }
    .product-box .btn-group .btn {
        width: 100%;
    }
    .product-box .buy-group .col-right .btn-group {
        flex-direction: row;
    }
    .buy-group .col-right .btn-group > div {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 50%;
    }
    .buy-group .col-right .btn-group > div {
        justify-content: center;
        padding: 5px 0;
        border: 1px solid var(--yellow);
    }
    .buy-group .col-right .btn-group .btn.btn-yellow {
        background: transparent;
    }
    .buy-group .col-right .btn-group .btn.btn-yellow:hover {
        background: transparent;
    }
}
@media (max-width: 768px) {
    .custom-quantity-input {
        width: 100%;
    }
    .quantity-btn {
        width: 25%;
    }
    .quantity-display {
        width: 50%;
    }
}
/* Buy Group - End */

/* Scroll Price - Start */
.mob.scroll-price {
    position: fixed;
    bottom: 0;
    left: 0;
    background: #fafbff;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
    box-shadow: 0px 0px 24px 0px #8e8e8e33;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
    z-index: 99999;
}
.mob.scroll-price.active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}
.mob.scroll-price .price {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 3px;
}
.mob.scroll-price .btn {
    min-width: 50%;
}
@media (max-width: 1279px) {
    body.product-template-default #scrollToTopBtn,
    body.single #scrollToTopBtn,
    body.single-product #scrollToTopBtn {
        display: none !important;
    }
}
/* Scroll Price - End */

/* Product Tabs - Start */
.product-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}
.product-tabs .tab {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    padding: 0px 0;
    cursor: pointer;
}
.product-tabs .tab .tab-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    line-height: 20px;
    height: 20px;
    font-weight: 600;
    color: #2e2e2e;
}
.product-tabs .tab .tab-title::after {
    content: "";
    display: flex;
    width: 21px;
    height: 21px;
    background: url(/wp-content/themes/shop/img/icons/black/arrow-right.svg) no-repeat center center;
    background-size: contain;
    transform: rotate(90deg);
    transition: all 0.3s ease-in-out;
}
.product-tabs .tab.active .tab-title::after {
    transform: rotate(270deg);
}
.product-tabs .tab .tab-content {
    padding-top: 20px;
}
.product-tabs .tab .tab-content table {
    display: flex;
    width: 100%;
}
#tab-composition * {
    color: #a7a7a7;
    font-size: 18px;
    line-height: 22px;
}
/* Product description */
#tab-description {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#tab-description div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#tab-description * {
    margin: 0 !important;
    padding: 0 !important;
}
#tab-description h2,
#tab-description h2 *,
#tab-description h3,
#tab-description h3 * {
    font-size: 20px !important;
    line-height: 26px !important;
}
#tab-description ul,
#tab-description ol {
    display: flex;
    flex-direction: column;
    gap: 5px;
    list-style: none !important;
    margin: 0 !important;
    margin-left: 5px !important;
    padding: 0 !important;
}
#tab-description ul li,
#tab-description ol li {
    display: flex;
    list-style: none !important;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
}
#tab-description ul li:before {
    content: "";
    display: flex;
    width: 6px;
    min-width: 6px;
    height: 6px;
    background: #000;
    border-radius: 100%;
    margin-top: 4px !important;
    margin-right: 5px !important;
}
#tab-description ol li {
    counter-increment: list-counter;
}
#tab-description ol li:before {
    content: counter(list-counter) ". ";
    display: flex;
    border-radius: 100%;
    margin-right: 3px !important;
}
/* Product attributes */
.woocommerce-product-attributes tbody {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    width: 100%;
}
.woocommerce-product-attributes tbody tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 5px 0;
}
.woocommerce-product-attributes tbody tr:nth-child(4n + 3),
.woocommerce-product-attributes tbody tr:nth-child(4n + 4) {
    background: #fff;
}
.woocommerce-product-attributes tbody tr th {
    width: 40%;
    color: #0a121f;
    font-size: 18px;
    line-height: 21px;
    font-weight: 400;
    min-width: fit-content;
    text-align: left;
}
.woocommerce-product-attributes tbody tr td {
    width: 60%;
    font-size: 18px;
    line-height: 21px;
    color: #a7a7a7;
    text-align: left;
}
.woocommerce-product-attributes tbody tr td p {
    font-size: 18px;
    line-height: 21px;
    color: #a7a7a7;
}
@media (max-width: 1440px) {
    .product-details h1.product_title {
        font-family: var(--font-family-1);
        font-size: 30px;
        line-height: 35px;
    }
    #main-price {
        font-size: 30px;
        line-height: 35px;
    }
    .short-desc {
        font-size: 16px;
        line-height: 19px;
    }
    .woocommerce-product-attributes tbody tr th {
        width: 60%;
        font-size: 16px;
        line-height: 19px;
    }
    .woocommerce-product-attributes tbody tr td {
        width: 40%;
        font-size: 16px;
        line-height: 19px;
    }
    .woocommerce-product-attributes tbody tr td p {
        font-size: 16px;
        line-height: 19px;
    }
    #tab-composition * {
        font-size: 16px;
        line-height: 19px;
    }
}
@media (max-width: 1279px) {
    .woocommerce-product-attributes tbody tr {
        width: calc(100% - 0px);
    }
}
@media (max-width: 768px) {
    .product-tabs {
        flex-direction: column;
    }
    .woocommerce-product-attributes tbody tr td {
        text-align: right;
    }
}
/* Product Tabs - End */

/* Upsell Tab Right - Start */
.upsell-tab {
    display: none !important;
}
/* Upsell Tab Right - End */

/* Product Reviews - Start */
.review-block {
    margin-top: 50px;
}
#reviews {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
}
#tab-title-reviews {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#tab-title-reviews .h3 {
    font-size: 30px;
    line-height: 36px;
}
.woocommerce-Reviews-title,
.clear {
    display: none;
}
#tab-reviews {
    margin-top: 28px;
}
#tab-reviews ol.commentlist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#tab-reviews ol.commentlist > li {
    display: flex;
    padding: 25px;
    background: #f8f9fb;
    border-radius: 5px;
}
#tab-reviews ol.commentlist > li .comment_container {
    display: flex;
    gap: 10px;
    width: 100%;
}
#tab-reviews ol.commentlist > li img.avatar {
    border-radius: 100%;
    width: 43px;
    height: 43px;
}
#tab-reviews ol.commentlist > li .comment-text {
    display: flex;
    flex-direction: column;
    width: 100%;
}
#tab-reviews ol.commentlist > li .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    order: 1;
}
#tab-reviews ol.commentlist > li .meta > * {
    display: flex;
    font-size: 18px;
    line-height: 20px;
    font-weight: 600;
}
#tab-reviews ol.commentlist > li .meta > span {
    display: none;
}
#tab-reviews ol.commentlist > li .meta > time {
    margin-left: auto;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
}
#tab-reviews ol.commentlist > li .star-rating {
    display: flex;
    gap: 5px;
    order: 2;
    margin-top: 10px;
    font-size: 20px;
}
#tab-reviews ol.commentlist > li .description {
    font-size: 16px;
    line-height: 24px;
    margin-top: 15px;
    order: 3;
}
#review_form_wrapper {
    display: none;
}
#review_form .comment-reply-title {
    display: flex;
    font-size: 16px;
    line-height: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
form#commentform {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.comment-form .stars > span {
    display: flex;
    gap: 6px;
}
.comment-form .stars > span a {
    display: flex;
    padding-top: 3px;
    background: var(--gray);
    border-radius: 5px;
    width: 35px;
    height: 35px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}
.comment-form .stars > span a.active,
.comment-form .stars > span a:hover {
    background: var(--primary);
}
.comment-form .comment-form-comment {
    display: flex;
    flex-direction: column;
}
.comment-form #comment {
    width: 100%;
    color: var(--black);
    padding: 12px 12px 12px 10px;
    outline: none;
    border: none;
    border: 1px solid #e2e2e2;
}

.comment-form input#submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: min-content;
    width: fit-content;
    padding: 15px 24px;
    background: var(--primary);
    color: var(--black);
    margin: 0;
    border: 0;
    font-size: 14px;
    line-height: 14px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    border-radius: 4px;
    cursor: pointer;
}
/* Product Reviews - End */

/* Same Category Products - Start */
.same-category-products {
    padding-bottom: 80px;
}
.same-category-products .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.same-category-products .container .btn {
    margin: 0 auto;
}
.product-card .product-badge:not(:has(.onsale)) {
    display: none;
}
/* Same Category Products - End */

/* Upsell Products - Start */
.upsell-products {
    padding-bottom: 80px;
}
.upsell-products .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
/* Upsell Products - End */

/* Related Products - Start */
.related-products {
    padding-bottom: 80px;
}
.related-products .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.related-products .category-chips {
    margin-top: -20px;
}
/* Related Products - End */

/* Recently Viewed Products - Start */
.recently-viewed-products {
    padding-bottom: 80px;
}
.recently-viewed-products .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
/* Recently Viewed Products - End */

@media (max-width: 1440px) {
    .product-list .product-card:nth-child(6) {
        display: none;
    }
}
@media (max-width: 1279px) {
    .product-list .product-card:nth-child(5) {
        display: none;
    }
}
@media (max-width: 1024px) {
    .product-list .product-card:nth-child(4) {
        display: none;
    }
}
@media (max-width: 768px) {
    .product-list .product-card:nth-child(3) {
        display: none;
    }
}
.glightbox-clean .gslide-description {
    display: none !important;
}