﻿body.single-product {
    overflow-y: auto;
}

body.single-product .options_layout_wrapper,
body.single-product .options_layout_wrapper .options_layout_container,
body.single-product #content_main,
body.single-product .kne-product-main,
body.single-product .kne-product-content,
body.single-product .woocommerce,
body.single-product .related.products,
body.single-product .upsells.products {
    overflow: visible !important;
}

body.single-product .options_layout_container {
    float: none;
}

body.single-product .kne-product-hero {
    padding: 28px 0 24px;
    background: linear-gradient(135deg, #edf7ee 0%, #ffffff 55%, #f6fbf7 100%);
    border-top: 1px solid #e4efe6;
    border-bottom: 1px solid #e4efe6;
}

body.single-product .kne-product-hero__inner {
    max-width: 860px;
}

body.single-product .kne-product-hero .woocommerce-breadcrumb {
    margin: 0 0 12px;
    color: #5f6b61;
    font-size: 14px;
    line-height: 1.6;
}

body.single-product .kne-product-hero .woocommerce-breadcrumb a {
    color: #2f9e44;
}

body.single-product .kne-product-hero__title {
    margin: 0;
    color: #15803d;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.single-product .kne-product-hero__meta {
    margin-top: 10px;
    color: #647168;
    font-size: 14px;
}

body.single-product .kne-product-main {
    padding: 38px 0 56px !important;
    background: #f5f7f4;
}

body.single-product .kne-product-content {
    margin-bottom: 0 !important;
}

body.single-product div.product {
    float: none;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: start;
    margin-bottom: 36px;
}

body.single-product div.product div.images,
body.single-product div.product div.summary {
    float: none;
    width: auto;
    margin: 0;
}

body.single-product div.product div.images {
    position: sticky;
    top: 110px;
    align-self: start;
    background: #fff;
    border: 1px solid #e6ece7;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(18, 61, 33, 0.06);
}

body.single-product div.product div.images .woocommerce-product-gallery__wrapper {
    overflow: hidden;
    border-radius: 18px;
    background: #f7faf7;
}

body.single-product .woocommerce div.product div.images .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

body.single-product .woocommerce div.product div.images .flex-control-thumbs li {
    width: 100%;
    margin: 0;
}

body.single-product .woocommerce div.product div.images .flex-control-thumbs img {
    border: 1px solid #dbe6dd;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
}

body.single-product div.product .summary {
    background: #fff;
    border: 1px solid #e6ece7;
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow: 0 16px 40px rgba(18, 61, 33, 0.06);
}

body.single-product .woocommerce div.product .product_title {
    margin: 0 0 14px !important;
    color: #101717;
    font-size: 42px !important;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-transform: none;
}

body.single-product .woocommerce div.product p.price,
body.single-product .woocommerce div.product span.price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 18px !important;
    color: #d62828;
    font-size: 34px !important;
    font-weight: 700;
}

body.single-product .woocommerce div.product p.price del,
body.single-product .woocommerce div.product span.price del {
    color: #7c8a80;
    font-size: 20px;
}

body.single-product .woocommerce-product-details__short-description {
    color: #4f5c52;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 24px;
}

body.single-product .woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 24px;
}

body.single-product .woocommerce div.product form.cart .quantity {
    margin: 0 !important;
}

body.single-product .woocommerce .quantity .qty {
    width: 92px;
    height: 52px !important;
    border-radius: 14px;
    border: 1px solid #d4ddd5;
    font-size: 18px;
}

body.single-product .woocommerce div.product form.cart .button {
    min-width: 190px;
    height: 52px;
    line-height: 52px !important;
    border-radius: 14px !important;
    padding: 0 28px !important;
    background: linear-gradient(135deg, #1ea64b 0%, #15803d 100%) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 0.02em !important;
    box-shadow: 0 12px 24px rgba(21, 128, 61, 0.2);
}

body.single-product .woocommerce div.product form.cart .button:hover {
    background: linear-gradient(135deg, #15803d 0%, #116530 100%) !important;
}

body.single-product .product_meta {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf1ed;
    color: #506052;
    font-size: 14px;
    line-height: 1.9;
}

body.single-product .product_meta a {
    color: #15803d !important;
}

body.single-product .woocommerce-tabs,
body.single-product .related.products {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #e6ece7;
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow: 0 16px 40px rgba(18, 61, 33, 0.05);
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li,
body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    margin: 0;
    border: 0;
    background: transparent;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 18px !important;
    border-radius: 999px;
    background: #eef5ef;
    color: #35523e !important;
    font-size: 13px;
    font-weight: 700;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background: #15803d;
    color: #fff !important;
}

body.single-product .woocommerce-Tabs-panel {
    color: #304034;
    line-height: 1.85;
}

body.single-product .related.products > h2 {
    margin: 0 0 22px;
    color: #15803d;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

body.single-product .related.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 0 !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after {
    display: none;
}

body.single-product .kne-product-content .related.products ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 18px;
    border: 1px solid #ebefeb;
    border-radius: 18px;
    background: #fcfdfc;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.single-product .related.products ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(18, 61, 33, 0.08);
}

body.single-product .related.products ul.products li.product a {
    border-radius: 0;
}

body.single-product .related.products ul.products li.product img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: 16px !important;
    border: 1px solid #edf1ed;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px !important;
    line-height: 1.45;
    color: #16211a;
    min-height: 52px;
}

body.single-product .related.products ul.products li.product .price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #d62828;
    font-weight: 700;
}

body.single-product .related.products ul.products li.product .button {
    width: 100%;
    margin-top: 10px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ef3b2d 0%, #d62828 100%) !important;
    color: #fff !important;
}

body.single-product .woocommerce-message,
body.single-product .woocommerce-error,
body.single-product .woocommerce-info {
    border-radius: 16px;
    border-color: #d8e6da !important;
    background: #fff !important;
}
