.product_page_body {
    background: #FFFFFF;
}

.product_hero_block {
    padding: 42px 0 32px;
}

.product_breadcrumbs {
    max-width: 100%;
    margin-bottom: 28px;
}

.product_breadcrumbs span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product_hero h1 {
    max-width: 1320px;
    font-size: 50px;
    line-height: 130%;
    letter-spacing: -0.05em;
}

.product_detail_block {
    padding: 0 0 60px;
}

.product_detail {
    display: grid;
    grid-template-columns: 650px 1fr;
    gap: 20px;
    align-items: start;
}

.product_gallery {
    display: grid;
    grid-template-columns: 538px 92px;
    gap: 20px;
    align-items: start;
}

.product_gallery_main {
    width: 100%;
    height: 538px;
    border-radius: 20px;
    overflow: hidden;
    background: #D9D9D9;
}

.product_gallery_main .swiper-slide,
.product_gallery_main a {
    width: 100%;
    height: 100%;
    display: block;
}

.product_gallery_main img,
.product_gallery_thumbs img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product_gallery_thumbs {
    width: 92px;
    height: 538px;
}

.product_gallery_thumbs .swiper-slide {
    position: relative;
    width: 92px;
    height: 92px !important;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 20px;
    background: #D9D9D9;
    cursor: pointer;
    transition: border-color 0.25s ease, opacity 0.25s ease;
}

.product_gallery_thumbs .swiper-slide-thumb-active {
    border-color: #60534B;
}

.product_gallery_thumbs .swiper-slide:hover {
    opacity: 0.88;
}

.product_thumb_more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 83, 75, 0.82);
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    text-align: center;
    letter-spacing: -0.05em;
    color: #FFFFFF;
    pointer-events: none;
}

.product_info {
    padding-top: 4px;
}

.product_meta_row {
    min-height: 25px;
    padding-bottom: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #D2D2D2;
}

.product_article {
    font-weight: 500;
    font-size: 14px;
    line-height: 130%;
    color: #676767;
}

.product_description {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product_summary {
    margin-top: 28px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 203px 1fr;
    gap: 13px 38px;
    background: #F4F4F4;
    border-radius: 15px;
}

.product_summary div {
    display: contents;
}

.product_summary dt,
.product_summary dd {
    font-size: 14px;
    line-height: 130%;
    color: #000000;
}

.product_summary dt {
    font-weight: 600;
}

.product_summary dd {
    margin: 0;
    font-weight: 400;
}

.product_color_dot {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: -2px;
    border: 1px solid #757575;
    border-radius: 50%;
    background: #000000;
}

.product_price {
    margin-top: 26px;
    display: block;
    font-weight: 500;
    font-size: 30px;
    line-height: 130%;
    color: #000000;
}

.product_specs_block {
    padding: 0 0 80px;
}

.product_specs_wrap h2,
.viewed_head h2 {
    margin-bottom: 28px;
    font-size: 42px;
    line-height: 130%;
    letter-spacing: -0.05em;
}

.product_specs {
    max-width: 873px;
    margin: 0;
}

.product_spec_row {
    min-height: 33px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #D2D2D2;
}

.product_spec_row:nth-child(1),
.product_spec_row:nth-child(3),
.product_spec_row:nth-child(5) {
    min-height: 24px;
    padding: 3px 0;
    border-bottom: none;
    background: #F4F4F4;
    border-radius: 20px;
}

.product_spec_row:nth-child(2),
.product_spec_row:nth-child(4) {
    border-bottom: none;
}

.product_spec_row dt,
.product_spec_row dd {
    padding: 0 10px;
    font-size: 14px;
    line-height: 130%;
    color: #000000;
}

.product_spec_row dt {
    font-weight: 600;
}

.product_spec_row dd {
    margin: 0;
    font-weight: 400;
}

.viewed_products_block {
    padding: 0 0 90px;
}

.viewed_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.viewed_nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.viewed_slider_btn {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F4F4F4;
    transition: background 0.25s ease;
}

.viewed_slider_btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-left: 1.5px solid #988B83;
    border-bottom: 1.5px solid #988B83;
}

.viewed_slider_prev::before {
    transform: translate(-35%, -50%) rotate(45deg);
}

.viewed_slider_next::before {
    transform: translate(-65%, -50%) rotate(-135deg);
}

.viewed_slider_btn:hover {
    background: #E8E8E8;
}

.viewed_products_slider {
    overflow: hidden;
}

.viewed_products_slider>.swiper-wrapper {
    align-items: stretch;
}

.viewed_products_slider .swiper-slide {
    height: auto;
}

.viewed_product_card {
    height: 100%;
}

.viewed_product_card .catalog_product_slider {
    aspect-ratio: 315 / 315;
}

@media (max-width: 1200px) {
    .product_hero h1 {
        font-size: 42px;
    }
    .product_detail {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .product_gallery {
        width: min(650px, 100%);
    }
    .product_info {
        padding-top: 0;
    }
    .product_summary {
        max-width: 650px;
    }
}

@media (max-width: 768px) {
    .product_hero_block {
        padding: 26px 0 18px;
    }
    .product_breadcrumbs {
        display: none;
    }
    .product_hero h1 {
        max-width: 330px;
        font-size: 30px;
        line-height: 130%;
    }
    .product_detail_block {
        padding-bottom: 45px;
    }
    .product_detail {
        gap: 22px;
    }
    .product_gallery {
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 20px;
        width: 100%;
        align-items: stretch;
    }
    .product_gallery_main {
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 20px;
    }
    .product_gallery_thumbs {
        width: 72px;
        height: 256px;
    }
    .product_gallery_thumbs .swiper-slide {
        width: 72px;
        height: 72px !important;
        border-radius: 10px;
    }
    .product_gallery_thumbs .swiper-slide:nth-child(n+4) {
        display: none;
    }
    .product_thumb_more {
        font-size: 15px;
    }
    .product_meta_row {
        order: -1;
        padding-bottom: 14px;
        border-bottom: none;
    }
    .product_article {
        max-width: 230px;
    }
    .product_description {
        margin-top: 18px;
    }
    .product_price {
        margin-top: 18px;
        font-size: 30px;
    }
    .product_summary {
        margin-top: 22px;
        padding: 18px 14px;
        grid-template-columns: 1fr 1fr;
        gap: 10px 18px;
    }
    .product_specs_block {
        padding-bottom: 52px;
    }
    .product_specs_wrap h2,
    .viewed_head h2 {
        margin-bottom: 18px;
        font-size: 28px;
    }
    .product_specs {
        max-width: none;
    }
    .product_spec_row {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        min-height: 31px;
    }
    .product_spec_row dt,
    .product_spec_row dd {
        padding: 0 6px;
        font-size: 14px;
    }
    .viewed_products_block {
        padding-bottom: 55px;
    }
    .viewed_head {
        align-items: flex-end;
    }
    .viewed_nav {
        display: none;
    }
    .viewed_products_slider {
        overflow: visible;
    }
    .viewed_product_card .catalog_product_slider {
        aspect-ratio: 164 / 164;
    }
}

@media (max-width: 420px) {
    .product_gallery {
        grid-template-columns: calc(100% - 92px) 72px;
    }
    .product_summary dt,
    .product_summary dd,
    .product_spec_row dt,
    .product_spec_row dd {
        font-size: 13px;
    }
}


/* ========================================================================== */


/* Final mobile tuning for product page */


/* ========================================================================== */

@media (max-width: 768px) {
    .product_page_body .header_menu a.is_active,
    .product_page_body .header_menu a:hover,
    .product_page_body .catalog_dropdown.is_open>.catalog_toggle,
    .product_page_body .catalog_dropdown.is_open>.catalog_toggle span {
        color: #000000 !important;
    }
    .product_page .container {
        width: calc(100% - 42px);
    }
    .product_hero_block {
        padding: 28px 0 18px;
    }
    .product_hero h1 {
        max-width: 348px;
        font-size: 30px;
        line-height: 130%;
        letter-spacing: -0.05em;
    }
    .product_detail_block {
        padding: 0 0 45px;
    }
    .product_detail {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .product_info {
        display: contents;
    }
    .product_meta_row {
        order: 1;
        width: 100%;
        min-height: 25px;
        padding: 0 0 18px;
        border-bottom: 0;
        gap: 14px;
    }
    .product_article {
        min-width: 0;
        font-size: 14px;
    }
    .product_gallery {
        order: 2;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 256px) 72px;
        justify-content: space-between;
        gap: 20px;
        margin: 0;
    }
    .product_gallery_main {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 20px;
    }
    .product_gallery_thumbs {
        width: 72px;
        height: 256px;
    }
    .product_gallery_thumbs .swiper-slide {
        width: 72px;
        height: 72px !important;
        border-radius: 10px;
    }
    .product_gallery_thumbs .swiper-slide:nth-child(n+4) {
        display: none;
    }
    .product_summary {
        order: 3;
        width: 100%;
        margin: 22px 0 0;
        padding: 18px 14px;
        grid-template-columns: 1fr 1fr;
        gap: 10px 18px;
        border-radius: 15px;
    }
    .product_price {
        order: 4;
        margin-top: 18px;
        font-size: 30px;
        line-height: 130%;
    }
    .product_description {
        order: 5;
        margin-top: 18px;
        gap: 18px;
    }
    .product_description .p14 {
        font-size: 14px;
        line-height: 130%;
    }
    .product_specs_block {
        padding: 0 0 52px;
    }
    .product_specs_wrap h2,
    .viewed_head h2 {
        margin-bottom: 18px;
        font-size: 28px;
        line-height: 130%;
        letter-spacing: -0.05em;
    }
    .product_spec_row {
        min-height: 31px;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .product_spec_row dt,
    .product_spec_row dd {
        padding: 0 6px;
        font-size: 14px;
        line-height: 130%;
    }
    .viewed_products_block {
        padding: 0 0 55px;
    }
    .viewed_products_slider {
        overflow: hidden;
    }
    .viewed_product_card .catalog_product_slider {
        aspect-ratio: 164 / 164;
        border-radius: 14px;
    }
    .viewed_product_card .catalog_product_card h3 {
        font-size: 18px;
        line-height: 110%;
        letter-spacing: -0.04em;
    }
}

@media (max-width: 420px) {
    .product_gallery {
        grid-template-columns: minmax(0, calc(100% - 92px)) 72px;
    }
}
/* WooCommerce product controls inside custom product template */
.product_wc_buy {
    margin-top: 24px;
}

.product_wc_buy form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.product_wc_buy .quantity input {
    width: 82px;
    height: 44px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 30px;
    text-align: center;
}

.product_wc_buy .single_add_to_cart_button {
    min-height: 47px;
    padding: 0 28px;
    border-radius: 30px;
    background: #7F7470;
    color: #FFFFFF;
    font-weight: 600;
}

.viewed_products_slider .catalog_product_card {
    width: 100%;
}
