/* =========================================================
   CATALOG / SHOP
   ========================================================= */

.woocommerce-page #content {
    padding-top: 40px;
    padding-bottom: 80px;
}

.woocommerce-page #content > .col-full {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 30px;
}

/* =========================================
   PRODUCT TOP
========================================= */

.topprod-cont {
    display: grid;
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 60px;
    align-items: start;

    margin-bottom: 20px;
}


/* =========================================
   GALLERY
========================================= */

.topprod-cont .woocommerce-product-gallery {
    width: 100%;
    max-width: 460px;
    margin: 0;
    float: none;
}


/* прибираємо стандартні відступи */
.topprod-cont .woocommerce-product-gallery__wrapper {
    margin: 0;
}


/* усі елементи галереї */
.topprod-cont .woocommerce-product-gallery__image {
    margin: 0;
}


/* основне зображення */
.topprod-cont .woocommerce-product-gallery__image:first-child {
    display: block;
}


/* саме зображення */
.topprod-cont .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: contain;

    border-radius: 18px;
}


/* =========================================
   GALLEY THUMBNAILS
========================================= */

/*
   WooCommerce за замовчуванням показує всі
   картинки одна під одною.

   Робимо основною тільки першу.
*/

.topprod-cont .woocommerce-product-gallery__image:not(:first-child) {
    display: none;
}


/* =========================================
   SUMMARY
========================================= */

.topprod-cont .summary.entry-summary {
    width: 100%;
    margin: 0;
    padding: 10px 0 0;
}


/* заголовок */
.topprod-cont .product_title {
    margin: 0 0 18px;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 600;
}


/* ціна */
.topprod-cont .price {
    margin: 0 0 25px;
    font-size: 28px;
    line-height: 1;
    font-weight: 600;
}


/* короткий опис */
.topprod-cont .woocommerce-product-details__short-description {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.65;
}


.topprod-cont .woocommerce-product-details__short-description p {
    margin: 0;
}


/* =========================================
   CART / ACTION
========================================= */

.topprod-cont .cart {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 30px;
}


/* кількість */
.topprod-cont .quantity {
    margin: 0;
}


.topprod-cont .quantity .qty {
    width: 70px;
    height: 52px;

    border: 1px solid #d7ded9;
    border-radius: 10px;

    text-align: center;
    font-size: 16px;
}


/* кнопка */
.topprod-cont .single_add_to_cart_button {
    height: 52px;

    padding: 0 28px;

    border: 0;
    border-radius: 10px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}


/* =========================================
   META
========================================= */

.topprod-cont .product_meta {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding-top: 20px;

    border-top: 1px solid #e5ebe7;

    font-size: 14px;
}


.topprod-cont .product_meta span {
    display: block;
}


.topprod-cont .product_meta a {
    text-decoration: none;
}


/* =========================================
   GALLERY ZOOM BUTTON
========================================= */

.topprod-cont .woocommerce-product-gallery__trigger {
    z-index: 5;

    top: 12px;
    right: 12px;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: rgba(255,255,255,.9);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .topprod-cont {
        grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
        gap: 35px;
    }

    .topprod-cont .product_title {
        font-size: 30px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
	.topprod-cont .woocommerce-product-gallery__image:first-child{
		aspect-ratio: auto;
	}
    .topprod-cont {
        display: flex;
        flex-direction: column;
        gap: 35px;

        margin-bottom: 50px;
    }


    .topprod-cont .woocommerce-product-gallery {
        width: 100%;
        max-width: 100%;
    }


    .topprod-cont .woocommerce-product-gallery__image img {
        max-height: 350px;
    }


    .topprod-cont .summary.entry-summary {
        padding: 0;
    }


    .topprod-cont .product_title {
        font-size: 28px;
    }


    .topprod-cont .price {
        font-size: 24px;
    }

}
/* =========================================
   PRODUCT GALLERY — MODERN
========================================= */

.topprod-cont .woocommerce-product-gallery {
    position: relative;
}

/* Велике фото */
.topprod-cont .woocommerce-product-gallery__wrapper {
    position: relative;
    margin: 0;
}

/* Основне зображення */
.topprod-cont .woocommerce-product-gallery__image:first-child {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;

    background: #f4f7f4;
    border: 1px solid #e1e8e2;
    border-radius: 20px;
}

/* Картинка */
.topprod-cont .woocommerce-product-gallery__image:first-child img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    padding: 25px;

    transition: opacity .2s ease, transform .3s ease;
}

/* При наведенні */
.topprod-cont .woocommerce-product-gallery__image:first-child:hover img {
    transform: scale(1.025);
}


/* =========================================
   THUMBNAILS
========================================= */

.topprod-cont .product-gallery-thumbs {
    display: flex;
    gap: 10px;

    margin-top: 12px;
}

/* Мініатюра */
.topprod-cont .product-gallery-thumb {
    width: 72px;
    height: 72px;

    padding: 5px;

    border: 1px solid #dce5df;
    border-radius: 12px;

    background: #f7f9f7;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

/* картинка всередині */
.topprod-cont .product-gallery-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 8px;
}

/* hover */
.topprod-cont .product-gallery-thumb:hover {
    border-color: #557a68;
    background: #eef4ef;
    transform: translateY(-2px);
}

/* активна */
.topprod-cont .product-gallery-thumb.active {
    border-color: #315b49;
    background: #e8f0eb;
    box-shadow: 0 0 0 2px rgba(49, 91, 73, .12);
}


/* =========================================
   SUMMARY COLORS
========================================= */

.topprod-cont .summary.entry-summary {
    color: #24352d;
}

/* Назва */
.topprod-cont .product_title {
    color: #173d2e;
}

/* Ціна */
.topprod-cont .price,
.topprod-cont .price .amount {
    color: #315b49;
}

/* Опис */
.topprod-cont .woocommerce-product-details__short-description {
    color: #596861;
}


/* =========================================
   BUTTON
========================================= */

.topprod-cont .single_add_to_cart_button {
    background: #315b49;
    color: #fff;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.topprod-cont .single_add_to_cart_button:hover {
    background: #244938;
    color: #fff;

    transform: translateY(-1px);

    box-shadow: 0 6px 18px rgba(49, 91, 73, .18);
}


/* =========================================
   QUANTITY
========================================= */

.topprod-cont .quantity .qty {
    color: #315b49;
    background: #fff;
}

.topprod-cont .quantity .qty:focus {
    outline: none;
    border-color: #315b49;
    box-shadow: 0 0 0 3px rgba(49, 91, 73, .1);
}


/* =========================================
   META
========================================= */

.topprod-cont .product_meta {
    color: #68766f;
}

.topprod-cont .product_meta a {
    color: #315b49;
    font-weight: 500;
}

.topprod-cont .product_meta a:hover {
    color: #244938;
}


/* =========================================
   ZOOM
========================================= */

.topprod-cont .woocommerce-product-gallery__trigger {
    background: #fff;
    color: #315b49;

    border: 1px solid #e0e7e2;

    box-shadow: 0 4px 15px rgba(30, 60, 45, .08);

    transition: all .2s ease;
}

.topprod-cont .woocommerce-product-gallery__trigger:hover {
    background: #315b49;
    color: #fff;
}
/* =========================================
   SHORT DESCRIPTION — QUOTE STYLE
========================================= */

.topprod-cont .woocommerce-product-details__short-description {
    position: relative;

    margin: 28px 0 30px;
    padding: 20px 24px 20px 26px;

    background: #eef5f0;
    border-radius: 14px;

    color: #52635a;
    font-size: 15px;
    line-height: 1.65;

    border-left: 4px solid #315b49;
}


/* прибираємо стандартні відступи */
.topprod-cont .woocommerce-product-details__short-description p {
    margin: 0;
}
/* =========================================
   PRODUCT TABS
========================================= */

.topprod-cont + .woocommerce-tabs,
.woocommerce-tabs.wc-tabs-wrapper {
    width: 100%;
    margin: 0 0 70px;

    color: #263a31;
}


/* =========================================
   TABS NAVIGATION
========================================= */

.woocommerce-tabs .wc-tabs {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;

    border-bottom: 1px solid #dce5df;
}


/* окремий tab */
.woocommerce-tabs .wc-tabs li {
    position: relative;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
}


/* посилання */
.woocommerce-tabs .wc-tabs li a {
    display: block;

    padding: 15px 24px;

    color: #718078;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition:
        color .2s ease,
        background .2s ease;
}


/* hover */
.woocommerce-tabs .wc-tabs li a:hover {
    color: #315b49;
}


/* активний tab */
.woocommerce-tabs .wc-tabs li.active a {
    color: #315b49;
}


/* зелена лінія під активним */
.woocommerce-tabs .wc-tabs li.active::after {
    content: "";

    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;

    height: 3px;

    background: #315b49;
    border-radius: 3px 3px 0 0;
}


/* =========================================
   TAB CONTENT
========================================= */

.woocommerce-tabs .woocommerce-Tabs-panel {
    margin: 0;
    padding: 38px 40px;

    background: #f5f8f5;

    border-radius: 0 0 18px 18px;
}


/* =========================================
   DESCRIPTION
========================================= */

.woocommerce-tabs #tab-description {
    font-size: 16px;
    line-height: 1.7;
    color: #53635b;
}


/* заголовок */
.woocommerce-tabs #tab-description h2 {
    margin: 0 0 28px;

    color: #173d2e;

    font-size: 25px;
    line-height: 1.25;
    font-weight: 600;
}


/* підзаголовки всередині опису */

.woocommerce-tabs #tab-description > p {
    margin: 28px 0 12px;

    color: #315b49;

    font-size: 17px;
    font-weight: 600;
}


/* список */
.woocommerce-tabs #tab-description ul {
    margin: 0 0 25px;
    padding: 0;

    list-style: none;
}


/* елемент списку */
.woocommerce-tabs #tab-description li {
    position: relative;

    margin: 0;
    padding: 9px 0 9px 28px;

    color: #53635b;
}


/* зелена крапка */
.woocommerce-tabs #tab-description li::before {
    content: "";

    position: absolute;
    left: 3px;
    top: 18px;

    width: 7px;
    height: 7px;

    background: #315b49;
    border-radius: 50%;
}


/* =========================================
   REVIEWS
========================================= */

.woocommerce-tabs #tab-reviews {
    color: #53635b;
}


/* заголовок відгуків */
.woocommerce-tabs .woocommerce-Reviews-title {
    margin: 0 0 25px;

    color: #173d2e;

    font-size: 25px;
    font-weight: 600;
}


/* коли відгуків немає */
.woocommerce-tabs .woocommerce-noreviews {
    margin: 0;

    padding: 22px 25px;

    background: #fff;
    border: 1px solid #e0e8e2;
    border-radius: 12px;

    color: #718078;
}


/* форма */
.woocommerce-tabs #review_form_wrapper {
    margin-top: 25px;
}


/* текст "увійти" */
.woocommerce-tabs .must-log-in {
    margin: 0;

    padding: 20px;

    background: #fff;
    border-radius: 12px;

    border: 1px solid #e0e8e2;

    color: #718078;
}


.woocommerce-tabs .must-log-in a {
    color: #315b49;
    font-weight: 600;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .woocommerce-tabs.wc-tabs-wrapper {
        margin-bottom: 45px;
    }


    .woocommerce-tabs .wc-tabs {
        gap: 0;
    }


    .woocommerce-tabs .wc-tabs li {
        flex: 1;
    }


    .woocommerce-tabs .wc-tabs li a {
        padding: 14px 10px;

        text-align: center;
        font-size: 14px;
    }


    .woocommerce-tabs .wc-tabs li.active::after {
        left: 10px;
        right: 10px;
    }


    .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 25px 20px;

        border-radius: 0 0 14px 14px;
    }


    .woocommerce-tabs #tab-description {
        font-size: 15px;
    }


    .woocommerce-tabs #tab-description h2,
    .woocommerce-tabs .woocommerce-Reviews-title {
        font-size: 22px;
    }

}
li#tab-title-reviews {
    display: none;
}

/* =========================================
   СХОЖІ ТОВАРИ
   ========================================= */

.related.products {
    width: 100%;
    margin-top: 60px;
}

.related.products > h2 {
    margin: 0 0 28px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #173f35;
}

/* Сітка */
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

/* Прибираємо стандартні WooCommerce float/width */
.related.products ul.products li.product,
.related.products ul.products li.product.first,
.related.products ul.products li.product.last {
    width: auto !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Картка */
.related.products .product-card {
    min-width: 0;
    height: 100%;
}

/* Посилання */
.related.products .product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Зображення */
.related.products .product-visual {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: #f2f6f3;
}

.related.products .product-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    margin: 0 !important;
    transition: transform .3s ease;
}

.related.products .product-card:hover .product-visual img {
    transform: scale(1.04);
}

/* Категорія поверх картинки */
.related.products .product-visual figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;

    padding: 6px 10px;
    border-radius: 8px;

    background: #174b3d;
    color: #fff;

    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Контент */
.related.products .product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 16pxpx 4px;
}

/* Наявність */
.related.products .availability {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 8px;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    color: #527066;
}

.related.products .availability i {
    display: block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #4f9b72;
}

/* Назва */
.related.products .woocommerce-loop-product__title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 650 !important;
    color: #173f35 !important;
    padding-bottom: 8px !important;
}

/* Кнопка */
.related.products .product-action {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: auto;
    padding-top: 16px;

    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    color: #174b3d;
}

.related.products .product-action > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;
    background: #e5eee9;

    font-size: 17px;
    transition: all .25s ease;
}

.related.products .product-card:hover .product-action > span {
    background: #174b3d;
    color: #fff;
    transform: translateX(3px);
}


/* =========================================
   АДАПТИВ
   ========================================= */

@media (max-width: 1000px) {
    .related.products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .related.products {
        margin-top: 45px;
    }

    .related.products > h2 {
        font-size: 26px;
    }

    .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .related.products .woocommerce-loop-product__title {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .related.products ul.products {
        gap: 14px;
    }

    .related.products .product-visual {
        border-radius: 14px;
    }

    .related.products .product-visual img {
        padding: 12px;
    }

    .related.products .product-content {
        padding-top: 12px;
    }

    .related.products .product-action {
        font-size: 12px;
    }
}
.related.products .product-visual figcaption{
	display: none;
}
/* =========================================
   НАВІГАЦІЯ МІЖ ТОВАРАМИ
   ========================================= */

.storefront-product-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;

    width: 100%;
    margin-top: 55px;
    padding-top: 28px;

    border-top: 1px solid #dce7e2;
}

/* Обидві картки */
.storefront-product-pagination a {
    display: grid;
    grid-template-columns: 90px 1fr;
    grid-template-rows: auto 1fr;

    position: relative;
    min-width: 0;

    padding: 12px;

    border: 1px solid #dce7e2;
    border-radius: 16px;

    background: #f5f8f6;
    color: #173f35;
    text-decoration: none;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.storefront-product-pagination a:hover {
    background: #fff;
    border-color: #b9cec5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 63, 53, .08);
}

/* Картинка */
.storefront-product-pagination img {
    grid-row: 1 / 3;
    grid-column: 1;

    width: 90px !important;
    height: 90px !important;

    object-fit: contain;

    margin: 0 !important;
    padding: 8px;

    border-radius: 11px;
    background: #fff;
}

/* Текст */
.storefront-product-pagination__title {
    grid-column: 2;

    align-self: center;

    padding: 4px 32px 4px 16px;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    color: #173f35;
}

/* Напрямок */
.storefront-product-pagination a::before {
    position: absolute;
    top: 12px;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: #71877f;
}

.storefront-product-pagination a[rel="prev"]::before {
    content: "←  Попередній товар";
    left: 116px;
}

.storefront-product-pagination a[rel="next"]::before {
    content: "Наступний товар  →";
    right: 14px;
}

/* Відступ для назви під написом */
.storefront-product-pagination a[rel="prev"] .storefront-product-pagination__title,
.storefront-product-pagination a[rel="next"] .storefront-product-pagination__title {
    padding-top: 24px;
}


/* =========================================
   МОБІЛЬНА ВЕРСІЯ
   ========================================= */

@media (max-width: 700px) {

    .storefront-product-pagination {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 40px;
        padding-top: 22px;
    }

    .storefront-product-pagination a {
        grid-template-columns: 76px 1fr;
        min-height: 76px;
    }

    .storefront-product-pagination img {
        width: 76px !important;
        height: 76px !important;
    }

    .storefront-product-pagination a[rel="prev"]::before {
        left: 98px;
    }

    .storefront-product-pagination__title {
        font-size: 13px;
        padding-left: 14px;
        padding-right: 10px;
    }

    .storefront-product-pagination a[rel="prev"] .storefront-product-pagination__title,
    .storefront-product-pagination a[rel="next"] .storefront-product-pagination__title {
        padding-top: 22px;
    }
}
/* =========================================
   ДІЇ НА СТОРІНЦІ ТОВАРУ
   ========================================= */

.product-actions {
    margin-top: 28px;
    padding: 22px;

    border-radius: 16px;
    background: #eef5f1;
    border: 1px solid #dce8e2;
}

.product-actions__text {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin-bottom: 18px;
}

.product-actions__text strong {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #173f35;
}

.product-actions__text span {
    font-size: 13px;
    line-height: 1.5;
    color: #60766e;
}


/* Кнопки */

.product-actions__buttons {
    display: flex;
    gap: 10px;
}


/* Основна кнопка */

.product-action-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    flex: 1;

    min-height: 50px;
    padding: 10px 14px 10px 18px;

    border-radius: 10px;

    background: #174b3d;
    color: #fff !important;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition: background .25s ease, transform .25s ease;
}

.product-action-main:hover {
    background: #123d32;
    color: #fff !important;
    transform: translateY(-1px);
}

.product-action-main > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;
    background: rgba(255,255,255,.14);

    font-size: 17px;
}


/* Телефон */

.product-action-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 50px;
    padding: 10px 17px;

    border-radius: 10px;

    background: #fff;
    border: 1px solid #cbdcd5;

    color: #174b3d !important;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition: all .25s ease;
}

.product-action-call:hover {
    background: #f7faf8;
    border-color: #174b3d;
    color: #174b3d !important;
}

.product-action-call__icon {
    font-size: 17px;
    line-height: 1;
}


/* =========================================
   META
   ========================================= */

.summary.entry-summary .product_meta {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid #dce7e2;

    font-size: 12px;
    color: #70827c;
}

.summary.entry-summary .product_meta a {
    color: #174b3d;
    font-weight: 600;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .product-actions {
        padding: 18px;
    }

    .product-actions__buttons {
        flex-direction: column;
    }

    .product-action-main,
    .product-action-call {
        width: 100%;
    }
}
a.woocommerce-product-gallery__trigger {
    display: none;
}