body.com_phocacart .site-grid {
    grid-gap: 0 2em !important;
    grid-template-columns: revert-rule;
    width: 100%;
}

body.itemid-150 .site-grid,
body.itemid-149 .site-grid,
body.itemid-151 .site-grid,
body.itemid-152 .site-grid{
    grid-gap: 0 0em!important;;
    grid-template-columns: [full-start] minmax(0, 1fr) [main-start] repeat(4, minmax(0, 25%)) [main-end] minmax(0, 1fr) [full-end];
}

body {
    background: #FFFDFB;
line-height: 1.3;
}
/* ============================================
   MODERN PRODUCT PAGE - MAIN STYLES
   ============================================ */

/* Базовые стили */
.modern-product-page {
    max-width: 1290px;
    margin: 0 auto;
    font-family: "Rubik", sans-serif;
}

/* ============================================
   СЕТКА ТОВАРА
   ============================================ */
.modern-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px 30px;
}

/* Порядок блоков на десктопе */
.product-image-main {
    grid-column: 1;
    grid-row: 1;
}

.product-info {
    grid-column: 2;
    grid-row: 1;
}

.product-description {
    grid-column: 1;
    grid-row: 2;
}

.product-specifications {
    grid-column: 2;
    grid-row: 2;
}

/* ============================================
   ЛЕВЫЙ ВЕРХНИЙ БЛОК - ИЗОБРАЖЕНИЕ
   ============================================ */
.main-image-container {
    position: relative;
    background: #F8F2EA;
    border-radius: 36px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.zoom-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #C09D5C;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FFFDFB;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zoom-btn:hover {
    background: #FFFDFB;
    transform: scale(1.05);
    color: #C09D5C;
}

/* Миниатюры в правой колонке */
.product-thumbnails-right {
    margin: 24px 0;
}

.thumbnails-slider-right {
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
}

.thumbnail-item-right {
    max-width: 300px;
    height: 228px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #F8F2EA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-item-right.active {
    border-color: #322614;
}

.thumbnail-item-right img {
    width: auto;
    max-width: max-content;
    height: 110%;
    object-fit: contain;
    display: block;
}
.thumbnail-zoom img {
    height: 200%;
}


.thumbnail-item-right:hover {
    transform: scale(1.05);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ДЛЯ ИЗОБРАЖЕНИЙ
   ============================================ */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    cursor: zoom-out;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

/* ============================================
   ПРАВЫЙ ВЕРХНИЙ БЛОК - ИНФОРМАЦИЯ
   ============================================ */
.product-info {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 5px;
}

.product-brand {
    margin-bottom: 16px;
}

.brand-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.product-title {
    font-family: "Noto Sans",sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #322614;
    margin: 0 0 24px 0;
    line-height: 1.2;
}



/* ============================================
   ПИЩЕВАЯ ЦЕННОСТЬ
   ============================================ */
.nutrition-facts-grid {
    background: #FCF9F7;
    border-radius: 17px;
    padding: 30px;
}

.nutrition-title-grid {
    font-family: "Noto Sans",sans-serif;
    text-align: center;
    display: block !important;
}

.nutrition-grid-light {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
}

.nutrition-item-light {
    text-align: center;
    padding: 16px 12px;
    position: relative;
}

.nutrition-item-light:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 45px;
    background: rgba(222, 217, 212, 1);
}

.nutrition-item-light:last-child {
    border-right: none;
}

.nutrition-item-header-light {
    color: rgba(50, 38, 20, 0.51);
    font-weight: 400;
    font-size: 18px;
}

.nutrition-item-value-light {
    font-weight: 600;
    font-size: 20px;
    font-family: "Noto Sans",sans-serif;
}

/* ============================================
   ОПИСАНИЕ
   ============================================ */
.product-description {
    background: #FCF9F7;
    border-radius: 17px;
    padding: 30px;
}

.section-title {
    font-family: "Noto Sans",sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #322614;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #322614;
    display: inline-block;
}

.description-content {

    font-size: 18px;
}

.description-content p {
    margin-bottom: 16px;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4 {
    color: #322614;
    margin-top: 24px;
    margin-bottom: 16px;
}

.description-content ul,
.description-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.description-content li {
    margin: 8px 0;
}

/* ============================================
   ХАРАКТЕРИСТИКИ
   ============================================ */
.product-specifications {
    background: #FCF9F7;
    border-radius: 17px;
    padding: 30px;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid rgba(192, 157, 92, 0.68);
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.specifications-table th,
.specifications-table td {
    padding: 9px 0;
    vertical-align: top;
}

.specifications-table th {
    text-align: left;
    font-weight: 400;
    font-size: 18px;
    color: #322614;
    width: 45%;
    padding-right: 20px;
}

.specifications-table td {
    text-align: right;
    font-weight: 400;
    font-size: 18px;
    color: #322614;
    width: 55%;
    padding-left: 20px;
}

/* ============================================
   БЛОК РЕКОМЕНДАЦИЙ
   ============================================ */
.product-recommendations-fullwidth {
    width: 100%;
    background: rgba(42, 38, 27, 1);
    margin-top: 60px;
    padding: 0;
    border-radius: 28px;
}

.recommendations-container-width {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0;
    align-items: stretch;
}

.recommendations-left {
    display: flex;
    align-items: center;
    padding: 60px;
}

.recommendations-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: rgba(255, 253, 251, 1);
}

.recommendations-icon {
    margin-bottom: 20px;
}

.recommendations-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.recommendations-title {
    font-size: 34px;
    font-weight: 600;
    font-family: "Noto Sans",sans-serif;
    color: rgba(255, 253, 251, 1);
    margin: 0 0 20px 0;
}

.recommendations-text {
    font-size: 18px;
    font-weight: 400;
    font-family: "Rubik", sans-serif;
    color: rgba(255, 253, 251, 1);
    margin: 0;
}

.recommendations-text p {
    margin-bottom: 12px;
}

.recommendations-text p:last-child {
    margin-bottom: 0;
}

.recommendations-right {
    position: relative;
    border-radius: 0 24px 24px 0;
    overflow: hidden;
}

.recommendations-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* .recommendations-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, rgba(42, 38, 27, 1), transparent);
    z-index: 1;
    pointer-events: none;
} */

/* .recommendations-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, rgba(42, 38, 27, 1), transparent);
    z-index: 1;
    pointer-events: none;
} */

.recommendations-image {
    /* width: 100%; */
    height: auto;
    display: block;
    object-fit: cover;
}
.recommendations-image-wrapper img {
max-width: inherit;
}

/* ============================================
   АДАПТИВНОСТЬ - ПЛАНШЕТЫ
   ============================================ */
@media (max-width: 1024px) {
    .product-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .nutrition-item-header-light,
    .nutrition-item-value-light {
        font-size: 14px;
    }
    
    .specifications-table th,
    .specifications-table td {
        font-size: 16px;
        padding: 9px 0;
    }
    
    .recommendations-grid {
        grid-template-columns: 40% 60%;
    }
    
    .recommendations-left {
        padding: 20px;
    }
    
    .recommendations-right {
    position: relative;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}
    
    .recommendations-title {
        font-size: 28px;
    }
    
    .recommendations-text {
        font-size: 16px;
    }
}

/* ============================================
   АДАПТИВНОСТЬ - МОБИЛЬНЫЕ (порядок блоков)
   ============================================ */
@media (max-width: 768px) {
    .modern-product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Порядок блоков на мобильных */
    .product-image-main {
        grid-column: 1;
        grid-row: 1;
    }
    
    .product-info {
        grid-column: 1;
        grid-row: 2;
    }
    
    .product-description {
        grid-column: 1;
        grid-row: 3;
    }
    
    .product-specifications {
        grid-column: 1;
        grid-row: 4;
    }
    
    .product-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    /* Миниатюры на мобильных */
    .thumbnails-slider-right {
        gap: 15px;
    }
    
    .thumbnail-item-right {
        height: 150px;
    }
    
    /* Пищевая ценность на мобильных */
    .nutrition-facts-grid,
    .product-description,
    .product-specifications {
        padding: 20px;
    }
    
    .nutrition-grid-light {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .nutrition-item-light:not(:last-child)::after {
        display: none;
    }
    
    .nutrition-item-light {
        border-right: none;
        border-bottom: 1px solid rgba(222, 217, 212, 1);
    }
    
    .nutrition-item-header-light,
    .nutrition-item-value-light {
        font-size: 14px;
    }
    
    /* Характеристики на мобильных */
    .specifications-table th,
    .specifications-table td {
        font-size: 14px;
        padding: 9px 0;
    }
    
    .specifications-table th {
        width: 40%;
    }
    
    .specifications-table td {
        width: 60%;
    }
    
    /* Блок рекомендаций на мобильных */
    .product-recommendations-fullwidth {
        margin-top: 40px;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .recommendations-left {
        padding: 10px;
        text-align: center;
    }
    
    .recommendations-content {
        align-items: center;
    }
    
    .recommendations-title {
        font-size: 24px;
        text-align: center;
    }
    
    .recommendations-text {
        font-size: 14px;
        text-align: center;
    }
    
    .recommendations-image-wrapper::before,
    .recommendations-image-wrapper::after {
        width: 50px;
    }
}

/* ============================================
   АДАПТИВНОСТЬ - МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ============================================ */
@media (max-width: 480px) {
    .modern-product-page {
        padding: 0;
    }
    
    .modern-product-grid {
        gap: 20px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .nutrition-facts-grid,
    .product-description,
    .product-specifications {
        padding: 16px;
    }
    
    .thumbnail-item-right {
        height: 100px;
    }
    
    .thumbnails-slider-right {
        gap: 10px;
    }
    
    .specifications-table th,
    .specifications-table td {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .specifications-table th {
        width: 45%;
        padding-right: 12px;
    }
    
    .specifications-table td {
        width: 55%;
        padding-left: 12px;
    }
    
    .recommendations-title {
        font-size: 20px;
    }
    
    .recommendations-text {
        font-size: 13px;
    }
    
    .recommendations-icon img {
        width: 36px;
        height: 36px;
    }
    
    .recommendations-icon {
        margin-bottom: 16px;
    }
    
    .recommendations-image-wrapper::before,
    .recommendations-image-wrapper::after {
        width: 30px;
    }
}



