@import "./reset.css";
/* @import "./card.css"; */
@import url('https://fonts.googleapis.com/css2?family=Poiret+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

.body {
    font-family: "Poiret One", "Montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: white;
    border: 0.3px solid gray;
    max-width: 428px;
    margin: 0 auto;
}

.black-line {
    width: 100%;
    max-width: 428px;
    height: 43px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.header-marquee {
    display: flex;
    width: max-content;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    animation: header-marquee 9s linear infinite;
}

.header-marquee span {
    flex: 0 0 auto;
    padding-right: 36px;
}

@keyframes header-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.header {
    /* display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 6px;*/
    display: block;
    position: fixed;
    z-index: 10;
    width: 100%;
    max-width: 428px;
    border-bottom: 1px solid gray;
    height: 87px;
    box-sizing: border-box;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

/* .header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 428px;
    margin: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
} */

.header__label {
    height: 43px;
    width: 43px;
    filter: contrast(1.2);
    mix-blend-mode: multiply;
}

.header__basket {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 19px;
    font-family: inherit;
    padding: 4px 8px;
    transition: opacity 0.2s;
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    /* чтобы сохранить выравнивание */
    align-items: center;
}

.header__basket:hover {
    opacity: 0.8;
}

.header__basket-num {
    font-weight: 100;
    margin: 0 4px;
}

/* .cover {
    position: relative;
    margin-bottom: 5px;
    height: 705px;
    background: url("../img/tree.png") center / contain no-repeat;
} */

/* Стили видео  */

.cover {
    position: relative;
    width: 100%;
    height: 705px;
    /* или используйте vh, например height: 100vh; */
    overflow: hidden;
    /* чтобы видео не выходило за границы */
    background: url("../img/tree.png") center / contain no-repeat;
}

.cover-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.cover-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    /* другие стили */
}

.scroll-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 5px;
    background: transparent;
    border: 2px solid gray;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    padding: 15px 25px;
    background-color: white;
    text-transform: uppercase;
    color: gray;
    cursor: pointer;
    transition: opacity 0.2s;
}

.scroll-btn:hover {
    opacity: 0.5;
}

/* Каталог */
.catalog {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    padding: 40px 10px;
}

.catalog-section {
    position: relative;
    width: 100%;
    position: relative;
    z-index: 2;
}

.catalog-background {
    position: relative;
    /* background-image: url('../img/back_photo.png'); */
    background-image: url('../img/back-catalog.png');
    /* укажите путь к вашему изображению */
    background-size: contain;
    /* равномерно заполняет контейнер, обрезая края */
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    /* отступы сверху и снизу, чтобы фон не прилипал */
    height: 100%;
    /* min-height: 500px; */
    /* минимальная высота, если карточек мало */
}

.catalog-title {
    text-align: center;
    margin-top: 50px;
    font-size: 42px;
    font-weight: 250;
    padding: 2px 5px
}


/* Карточка товара */
.card {
    width: 175px;
    height: 285px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border: 2px solid gray;
    background-color: white;
    /* чтобы фон не просвечивал сквозь карточку */
    /* возможно, добавить тень или границу для отделения от фона */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden; */
}

.card:hover {
    cursor: pointer;
}

/* Контейнер изображения */
.card__image-box {
    flex: 1;
    /* Занимает всё доступное пространство */
    overflow: hidden;
    border-bottom: 2px solid gray;
    height: 215px;
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Обрезает изображение, сохраняя пропорции */
}

/* Текстовые блоки */
.card__title,
.card__price {
    padding: 3px 4px;
    text-align: right;
    font-size: 12px;
}

/* Шахматный порядок: смещаем чётные карточки вниз на половину высоты */
.card:nth-child(odd) {
    margin-top: 50px;
}

.card:nth-child(6) {
    margin-top: 200px;
}

/* Адаптация для узких экранов (одна колонка) */
/* Для очень узких экранов (меньше 360px) можно оставить одну колонку */
@media (max-width: 360px) {
    .catalog {
        grid-template-columns: 1fr;
    }

    .card:nth-child(even) {
        margin-top: 0;
    }
}

.stop-scrolling {
    overflow: hidden;
    height: 100%;
}

.bottom-image {
    width: 425px;
    /* или 100%, если нужно под родителя */
    height: 300px;
    /* оставляем исходную высоту */
    background-image: url("../img/bottom.png");
    background-size: cover;
    /* масштабирует с заполнением контейнера, обрезая лишнее */
    background-position: bottom;
    /* прижимает видимую область к нижнему краю */
    background-repeat: no-repeat;
    margin-bottom: 5px;
}

.footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2px 0;
    margin-top: 20px;
    border-top: 1px solid gray;
}

.footer__label {
    display: block;
    height: 35px;
    width: 35px;
    margin: 0 auto;
}

.footer-ref {
    padding: 1px 20px;
    color: gray;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
}

.footer-ref:hover {
    text-decoration: underline;
}

.footer-admin-link {
    display: block;
    text-decoration: none;
}

.footer-admin-link:hover {
    text-decoration: none;
}


/* ===== Контакты (выпадающий блок) ===== */
.contacts-wrapper {
    position: relative;
    display: inline-block;
}

.contacts-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.contacts-dropdown.show {
    display: block;
}

.contact-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-item span {
    font-weight: bold;
    margin-right: 5px;
}

.contact-item a {
    color: #0066cc;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ===== О нас (выпадающий блок) ===== */
.about-wrapper {
    position: relative;
    display: inline-block;
}

.about-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    /* появляется над кнопкой */
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 5px;
    /* добавили отступ */
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.about-dropdown.show {
    display: block;
}

.about-dropdown p {
    margin: 8px 0;
}

.about-dropdown strong {
    font-weight: 600;
}

/* Стили для dropdown'ов ВОЗВРАТ И ОПЛАТА, ДОСТАВКА, ПОЛИТИКА */
.returns-payment-dropdown,
.delivery-dropdown,
.privacy-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 1000;
    margin-bottom: 10px;
    text-align: left;
}

.returns-payment-dropdown p,
.delivery-dropdown p,
.privacy-dropdown p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.returns-payment-dropdown strong,
.delivery-dropdown strong,
.privacy-dropdown strong {
    font-weight: 600;
    color: #000;
}

/* Общий стиль для кнопок-действий (Контакты, О нас) */
.action-button {
    padding: 8px 16px;
    background: none;
}

.action-button:hover {
    background: #e0e0e0;
}

/* Убираем лишние отступы у кнопки внутри span в футере */
.footer-ref .action-button {
    margin: 0;
    padding: 1px 8px;
    line-height: 1.1;
    /* можно подстроить под футер */
}

/* Для блока контактов в хедере */
.contacts-wrapper .action-button {
    margin-right: 10px;
    /* отступ от корзины */
}

/* Стили для дропдауна "Обмен и возврат" */
.return-wrapper {
    position: relative;
    display: inline-block;
}

.return-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 1000;
    margin-bottom: 10px;
    text-align: left;
}

.return-dropdown p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.return-dropdown strong {
    font-weight: 600;
    color: #000;
}

/* Стили для новых wrapper'ов ВОЗВРАТ И ОПЛАТА, ДОСТАВКА, ПОЛИТИКА */
.returns-payment-wrapper,
.delivery-wrapper,
.privacy-wrapper {
    position: relative;
    display: inline-block;
}

/* Refinements */
.header-marquee {
    font-weight: 400;
    letter-spacing: 0;
}

.card {
    border: 0.75px solid #8a8a8a;
}

.card__image-box {
    border-bottom: 0.75px solid #8a8a8a;
}

.footer {
    align-items: stretch;
}

.footer-ref {
    font-size: 7px;
    line-height: 1.15;
}

.footer-ref .action-button {
    font-size: 7px;
    padding-left: 8px;
    padding-right: 8px;
}

.footer-admin-link {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

.contacts-dropdown,
.about-dropdown,
.returns-payment-dropdown,
.delivery-dropdown,
.privacy-dropdown {
    font-size: 8px;
}

.contacts-dropdown .contact-item,
.about-dropdown,
.returns-payment-dropdown p,
.delivery-dropdown p,
.privacy-dropdown p {
    font-size: 8px;
    line-height: 1.3;
}

.personal-data-notice {
    position: fixed;
    left: 50%;
    bottom: 12px;
    z-index: 2000;
    width: min(392px, calc(100% - 24px));
    transform: translateX(-50%);
    padding: 12px;
    border: 1px solid #999;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    line-height: 1.35;
    color: #333;
}

.personal-data-notice[hidden] {
    display: none;
}

.personal-data-notice__text {
    margin: 0 0 10px;
}

.personal-data-notice__text a {
    color: inherit;
    text-decoration: underline;
}

.personal-data-notice__button {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #777;
    background: white;
    color: #333;
    font: inherit;
    text-transform: uppercase;
    cursor: pointer;
}
