/* ========================================================= 
   home.css — Полноэкранный дизайн для главной страницы
========================================================= */

/* ============================ 
   ШРИФТЫ
============================ */
@font-face {
    font-family: 'Heading';
    src: url('../font/aeonik-pro-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================
   ХЕРО — ФОН + ТЕКСТ
============================ */
.fullscreen-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/photo/1photo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    /* hover-анимация фона героя */
    transition: transform 0.3s ease;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -90px;
    padding-top: 100px;
    z-index: 1;
}

header {
    position: relative;
    z-index: 2;
}

.hero-center-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 1;
}

.text-line {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.text-word {
    font-family: 'Heading';
    font-weight: 400;
    font-size: 32px;
    line-height: 100%;
    text-align: center;
    color: #000;
    background: rgba(255, 255, 255, 0.9);
    display: inline-block;
    padding: 6px 12px;
}

/* ============================
   ЗЕЛЁНАЯ ПОЛОСА
============================ */
.accent-strip {
    position: relative;
    width: 100%;
    height: 20px;
    background: var(--Accent-Chartreuse, #7FFF00);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.accent-strip .strip-content {
    display: flex;
    gap: 315px;
    white-space: nowrap;
}

.accent-strip span {
    font-family: 'Body', 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    text-transform: uppercase;
    color: #000;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* ============================
   ОСНОВНОЙ КОНТЕНТ
============================ */
.content-section {
    position: relative;
    z-index: 2;
    background: #f2f2f2;
}

.content-container {
    max-width: 1420px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.content-section .product-row:first-child {
    margin-top: 120px;
}

/* ============================
   КАРТОЧКА ТОВАРА
============================ */
.product-row {
    width: 100%;
    height: 700px;
    display: grid;
    grid-template-columns: 1180px 240px;
    box-sizing: border-box;
}

.product-photo {
    width: 100%;
    height: 700px;
    overflow: hidden;
    background: #fff;
}

.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* спец-карточка с другим кадрированием */
.product-photo3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Ховер-зум для больших карточек (все product-row) */
.product-row:hover .product-photo img,
.product-row:hover .product-photo3 img {
    transform: scale(1.03);
}

.product-side {
    width: 220px;
    height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2px;
    box-sizing: border-box;
    margin-left: 20px;
}

.product-side1 {
    width: 179px;
    height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2px;
    box-sizing: border-box;
    margin-left: 100px;
}

/* выравнивание слева для третьей */
.product-side3 {
    width: 164px;
    height: 824px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    /* было flex-end / визуально «по центру», теперь слева */
    gap: 2px;
    box-sizing: border-box;
    margin-left: 55px;
}

.product-header {
    width: 220px;
    height: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* блок заголовка прижат влево */
    justify-content: flex-start;
    gap: 2px;
    position: relative;
    opacity: 1;
}

/* вариант хэдера для 4-й карточки */
.product-header4 {
    width: 220px;
    height: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    position: relative;
    opacity: 1;
}

.product-header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    width: 175px;
    margin-right: 45px;
}

.product-title-line {
    display: inline-flex;
    max-width: 195px;
    justify-content: flex-start;
    /* текст внутри влево */
}

.product-prefix,
.product-title {
    font-family: 'Body', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    padding: 2px 4px;
    display: inline-block;
    width: auto;
    max-width: 195px;
    text-align: left;
    /* слева */
    transition: all 0.25s ease;
}

.product-price {
    font-family: 'Body', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    padding: 2px 4px;
    display: inline-block;
    width: auto;
    max-width: 195px;
    margin-right: 0;
    /* без ухода вправо */
    text-align: left;
    transition: all 0.25s ease;
}

/* Ховер по самой надписи */
.product-title:hover,
.product-prefix:hover,
.product-price:hover {
    background: #000;
    color: var(--Text-Accent, #7FFF00);
}

/* Ховер по всей карточке product-row */
.product-row:hover .product-title,
.product-row:hover .product-prefix,
.product-row:hover .product-price {
    background: #000;
    color: var(--Text-Accent, #7FFF00);
}

.product-footer-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Heading';
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 4px;
    text-align: center;
    color: #000;
    margin-top: auto;
    padding-top: 0px;
    margin-right: 200px;
}

.product-footer-text1 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Heading';
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 4px;
    text-align: center;
    color: #000;
    margin-top: auto;
    padding-top: 0px;
    margin-right: 55px;
    margin-left: 200px;
}

/* ============================
   АЛЬТЕРНАТИВНАЯ КАРТОЧКА
============================ */
.product-row--alt {
    width: 940px;
    height: 1180px;
    grid-template-columns: 700px 700px;
    column-gap: 0px;
    margin: 0 auto;
    margin-top: 0px;
}

.product-row--alt1 {
    width: 940px;
    grid-template-columns: 220px 700px;
    column-gap: 20px;
    margin: 0 auto;
    margin-top: 120px;
}

.product-row--alt .product-side {
    width: 220px;
    height: 1180px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2px;
}

.product-row--alt .product-photo {
    width: 700px;
    height: 1180px;
    overflow: hidden;
    background: #fff;
}

.product-row--alt .product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-row--alt .product-header {
    width: 220px;
    height: auto;
    align-items: flex-start;
    gap: 2px;
}

.product-row--alt .product-title-line {
    max-width: 100%;
}

.product-row--alt .product-title,
.product-row--alt .product-prefix {
    text-align: left;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    padding: 2px 4px;
}

.product-row--alt .product-price {
    text-align: left;
    max-width: 100%;
    margin: 0;
    padding: 2px 4px;
}

.product-row--alt .product-footer-text {
    margin-left: 0;
    margin-right: 0;
}

.product-row--alt .product-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-row--alt .product-footer-logo img {
    width: 36px;
    height: 376px;
    object-fit: contain;
    transform: rotate(360deg);
    transform-origin: center;
    display: block;
}

/* ============================
   КАРТОЧКА SUPER (специальный порядок)
============================ */
.product-row--super {
    width: 100%;
    height: 700px;
    display: grid;
    grid-template-columns: 240px 1180px;
    box-sizing: border-box;
    margin-top: 120px;
}

/* ============================
   ГРИД 2×2
============================ */
.product-row--quad {
    width: 100%;
    margin-top: 0px;
    display: flex;
    justify-content: center;
    position: relative;
    background: #f2f2f2;
    padding: 120px 0 0;
    z-index: 1;
}

.product-row--quad .product-quad {
    display: grid;
    grid-template-columns: repeat(2, 700px);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    width: 1420px;
    margin: 0 auto;
}

.product-row--quad .quad-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 700px;
    background: transparent;
    text-decoration: none;
    color: inherit;
    margin-bottom: 120px;
}

.product-row--quad .quad-image {
    width: 700px;
    height: 1180px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.product-row--quad .quad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.product-row--quad .quad-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
}

.product-row--quad .quad-title {
    font-family: 'Body', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    padding: 2px 4px;
    display: inline-block;
    text-align: left;
    transition: all 0.25s ease;
    width: auto;
}

.product-row--quad .quad-price {
    font-family: 'Body', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    padding: 2px 4px;
    display: inline-block;
    text-align: left;
    transition: all 0.25s ease;
    width: auto;
}

.product-row--quad .quad-card:hover .quad-image img {
    transform: scale(1.03);
}

.product-row--quad .quad-card:hover .quad-title,
.product-row--quad .quad-card:hover .quad-price {
    background: #000;
    color: var(--Text-Accent, #7FFF00);
}

/* ============================
   СЕКЦИИ С ТОВАРАМИ WOOCOMMERCE
============================ */
.element-section,
.element-section1 {
    width: 100%;
    margin: 0 auto;
    padding: 0px;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.element-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1420px;
    /* такая же ширина, как у остальных блоков */
    width: 100%;
    margin: 0 auto;
    /* по центру */
    padding: 0px;
    /* убрали боковые отступы, чтобы выровняться по краям */
    border-left: 1px solid #000;
    border-right: 2px solid #000;
    border-top: 0px solid #000;
    border-bottom: 1px solid #000;
}

/* чуть подправим базовую карточку в сетке */
.element-grid .element-card {
    width: 100%;
}

@media (max-width: 900px) {

    /* Герой секция */
    .hero-section {
        height: 70vh;
        min-height: 620px;
        margin-top: -88px;
        padding-top: 80px;
    }

    .hero-center-text {
        top: 45%;
        gap: 2px;
    }

    .text-word {
        font-size: 24px;
        padding: 8px 16px;
    }

    /* Зелёная полоса */
    .accent-strip {
        height: 16px;
    }

    .accent-strip span {
        font-size: 12px;
    }

    .product-footer-logo1 {
        display: none;
    }

    .accent-strip .strip-content {
        gap: 100px;
    }

    /* Основной контент */
    .content-container {
        padding: 0;
        gap: 15px;
        max-width: 100%;
        width: 100%;
    }

    /* расстояние от зелёной полосы до первой карточки = 80px */
    .content-section .product-row:first-child {
        margin-top: 80px;
    }

    /* === БОЛЬШИЕ КАРТОЧКИ (1 и 2, и остальные product-row) === */
    .product-row:not(.product-row--super),
    .product-row--alt {
        height: auto;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        margin: 80px 0 0 0;
    }

    .product-row--alt1 {
        padding: 0 10px !important;
    }

    .product-row:not(.product-row--super) .product-photo,
    .product-row--alt .product-photo {
        width: 100%;
        height: 600px;
        order: 1;
        margin: 0;
    }

    /* 3-я фотка (первый .product-row--alt перед 2×2) */
    .content-container>section.product-row.product-row--alt:nth-of-type(2) .product-photo {
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    /* последняя фотка после секций с товарами и 2-в-1 */
    .content-container>section.product-row.product-row--alt:nth-of-type(7) .product-photo {
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    /* SEIZE CTRL — фиксим фото на мобиле */
    .product-row--alt1 .product-photo3 {
        width: 100% !important;
        height: 600px;
        /* как у остальных больших карточек */
        order: 1;
        margin: 0;
    }

    .product-row--alt1 .product-photo3 img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }

    /* Сайдбары на мобиле на всю ширину, но плашки не full-width */
    .product-side,
    .product-side1,
    .product-side3,
    .product-row--alt .product-side,
    .product-row--super .product-side {
        width: 100%;
        height: auto;
        align-items: flex-start;
        order: 2;
        gap: 10px;
        padding: 0 10px;
        margin-left: 0;
    }

    .product-header,
    .product-row--alt .product-header,
    .product-header4 {
        width: 100%;
        align-items: flex-start;
        height: auto;
        margin-bottom: 10px;
    }

    /* плашки как на десктопе, не на всю ширину */
    .product-title,
    .product-prefix,
    .product-price,
    .product-row--alt .product-title,
    .product-row--alt .product-prefix,
    .product-row--alt .product-price {
        width: auto;
        max-width: 195px;
    }

    /* Убираем вертикальные подписи и логотип */
    .product-footer-text,
    .product-footer-text1,
    .product-row--alt .product-footer-logo {
        display: none !important;
    }

    /* === КАРТОЧКА SUPER === */
    .product-row--super {
        height: auto;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        margin: 80px 0 0 0;
    }

    .product-row--super .product-photo {
        width: 100%;
        height: 600px;
        order: 1;
        margin: 0;
    }

    .product-row--super .product-side {
        width: 100%;
        height: auto;
        align-items: flex-start;
        order: 2;
        gap: 10px;
        padding: 0 10px;
        margin-left: 0;
    }

    .product-row--super .product-header {
        width: 100%;
        align-items: flex-start;
        height: auto;
        margin-bottom: 10px;
    }

    .product-row--super .product-price {
        margin-right: 0;
        margin-top: 5px;
    }

    /* Убираем вертикальные подписи */
    .product-row--super .product-footer-text1 {
        display: none !important;
    }

    /* === ГРИД 2×2 === */
    .product-row--quad {
        margin-top: 80px;
        padding: 0;
        background: #f2f2f2;
    }

    .product-row--quad .product-quad {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 80px;
        width: 100%;
        padding: 0 10px;
    }

    .product-row--quad .quad-card {
        width: 100%;
        margin-bottom: 0;
    }

    .product-row--quad .quad-image {
        width: 100%;
        height: 400px;
    }

    .product-row--quad .quad-info {
        margin-top: 10px;
        padding: 0;
        width: 100%;
    }

    .product-row--quad .quad-title,
    .product-row--quad .quad-price {
        font-size: 14px;
        width: auto;
        text-align: left;
    }

    /* === ИСПРАВЛЕННАЯ СЕТКА WOOCOMMERCE ТОВАРОВ 2×2 === */
    .element-section,
    .element-section1 {
        margin-top: 40px;
        width: 100%;
        box-sizing: border-box;
    }

    .element-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* СБРОС ВСЕХ СТИЛЕЙ ДЛЯ КАРТОЧЕК */
    .element-grid>* {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .element-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        position: relative !important;
        align-self: start !important;
        float: none !important;
        clear: none !important;
        box-sizing: border-box !important;
        min-height: 0 !important;
    }

    .element-card__image {
        width: 100% !important;
        height: 542px !important;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        position: relative;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .element-card__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        transition: transform 0.3s ease;
    }

    .element-card__info {
        margin-top: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        width: 100% !important;
        min-height: 40px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .element-card__title,
    .element-card__price {
        font-family: 'Body', sans-serif !important;
        font-weight: 400 !important;
        font-size: 12px !important;
        line-height: 100% !important;
        text-transform: uppercase !important;
        color: #000 !important;
        background: #fff !important;
        padding: 2px 4px !important;
        display: inline-block !important;
        text-align: left !important;
        transition: all 0.25s ease;
        width: auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Бейджи */
    .element-card__badges {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        z-index: 2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .element-card__badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        margin: 0 !important;
    }

    /* Иконки */
    .element-card__icons {
        position: absolute !important;
        top: 10px !important;
        right: 5px !important;
        z-index: 2 !important;
        display: flex !important;
        gap: 5px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .element-card__icon-img {
        width: 24px !important;
        height: 24px !important;
    }

    /* Скрываем ненужные элементы на мобилке */
    .element-card__size-panel,
    .element-card__add-to-cart {
        display: none !important;
    }

    /* Ховер-эффекты */
    .element-card:hover .element-card__img {
        transform: scale(1.03);
    }

    .element-card:hover .element-card__title,
    .element-card:hover .element-card__price {
        background: #000;
        color: var(--Text-Accent, #7FFF00);
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: auto;
        min-height: 620px;
        margin-top: -68px;
        padding-top: 60px;
    }

    .product-footer-logo1 {
        display: none;
    }

    .text-word {
        font-size: 20px;
        padding: 6px 12px;
    }

    .accent-strip .strip-content {
        gap: 50px;
    }

    .product-photo,
    .product-row--alt .product-photo,
    .product-row--super .product-photo {
        width: 100%;
        height: 600px;
        margin: 0;
    }

    .content-container>section.product-row.product-row--alt:nth-of-type(2) .product-photo {
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    .content-container>section.product-row.product-row--alt:nth-of-type(7) .product-photo {
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    .product-row--quad .quad-image {
        height: 350px;
    }

    .product-title,
    .product-price,
    .product-row--alt .product-title,
    .product-row--alt .product-price,
    .product-row--super .product-title,
    .product-row--super .product-price {
        font-size: 14px;
    }

    /* Адаптация сетки WooCommerce для маленьких экранов */
    .element-grid {
        padding: 0 px !important;
    }

    .element-card__image {
        height: 290px !important;
    }

    .element-card__title,
    .element-card__price {
        font-size: 11px !important;
    }

    .element-card__info {
        min-height: 36px !important;
    }
}

@media (max-width: 360px) {
    .element-card__image {
        height: 290px !important;
    }

    .element-grid {
        gap: 8px !important;
        padding: 0 6px !important;
    }

    .element-card__title,
    .element-card__price {
        font-size: 10px !important;
        padding: 1px 3px !important;
    }
}

/* Вертикальный логотип */
@media (max-width: 900px) {
    .product-row--alt .product-footer-logo img {
        width: 150px;
        height: auto;
    }
}

.product-footer-logo1 {
    margin-left: 90px;
}

/* ==== ТОЛЬКО ДЛЯ СПЕЦ-КАРТОЧКИ SEIZE CTRL (product-row--alt1) ==== */

/* ряд — по контенту, а не фикс 700px */
.product-row.product-row--alt1 {
    height: auto !important;
}

/* грид-ячейка с фото — без фиксированной высоты */
.product-row--alt1 .product-photo3 {
    width: 700px;
    height: auto !important;
    background: #fff;
    overflow: hidden;
}

/* картинка — вертикальная, без квадрата */
.product-row--alt1 .product-photo3 img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    /* либо contain, если хочешь без обрезки */
    object-position: 50% 0 !important;
}

/* SEIZE CTRL: колонка слева тянется по высоте фото */
.product-row--alt1 .product-side3 {
    height: 100% !important;
    /* растягиваем по высоте всей строки (как фото) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* заголовок сверху, логотип снизу */
    align-items: flex-start;
}

@media (max-width: 900px) {

    .element-section,
    .element-section1,
    .element-grid {
        border: none !important;
        margin-top: 80px !important;
    }
}

@media (max-width: 900px) {
    .product-row--logo {
        margin-top: 0 !important;
    }
}

@media (max-width: 900px) {
    .product-row--quad-3 .quad-card {
        margin-bottom: 0 !important;
    }
}

/* ==== Последняя WooCommerce-сетка на главной ==== */
.element-section1--last {
    margin-top: 0 !important;
    /* убираем верхний отступ */
    padding-top: 0 !important;

    margin-bottom: 80px !important;
    /* добавляем нижний */
}