/*
Theme Name: Eastern Medicine Theme
Theme URI: http://localhost:8000
Author: Your Name
Description: Кастомная тема для магазина восточной медицины
Version: 1.0
Text Domain: eastern-med
*/
@import url("https://fonts.googleapis.com/css2?family=Advent+Pro:wght@100;200;300;400;500;600;700&display=swap");
:root {
    --accent-orange: #ff5c33; /* Приблизительный цвет из макета */
    --text-white: #ffffff;
    --text-black: black;
    --bg-dark: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, "Inter", sans-serif;
    color: var(--text-white);
    background-color: #f8f8f6;
}
.container {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 60px 20px;
}
.header-main {
    height: 800px;
    /*display: flex;*/
    /*align-items: center;*/
    /*padding: 60px 20px;*/
    /*width: 100%;*/
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("./assets/images/background.jpg") no-repeat center center;
    background-size: cover;
}
.header {
    position: relative;
    /*min-height: 70vh;*/
    width: 100%;
}
.i {
    width: 87%;
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 25px;
    padding-top: 30px;
}
.search__bar {
    display: flex;
    flex-direction: row;
    /*margin-left: 10%;*/
    width: 100%;
    height: 100%;
    /*gap: 1.5rem;*/
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
}
.logo {
    background-color: #d9d9d9;
    color: #000;
    padding: 0 18px;
    height: 2.9rem;
    /*width: 100%;
    max-width: 200px;*/
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 300;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /*letter-spacing: 2px;*/
    text-transform: uppercase;
    @media (max-width: 860px) {
        display: none;
    }
}

.search-box {
    display: flex;
    width: 100%;
    /*width: ;*/
    max-width: 600px;
    /*min-width: 200px;*/
    background-color: #f9f9f7;
    border: 2px solid #f46036;
    border-radius: 10px;
    /*overflow: hidden;*/
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background-color: #f46036;
    color: white;
    border: none;
    padding: 0 30px;

    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

@media (max-width: 632px) {
    .search-button {
        padding: 0 20px;
    }
    .search-input {
        padding: 12px 9px;
    }
}
.search-button:hover {
    background-color: #d6693d;
}
.catalog-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px;
    text-decoration: none;

    min-width: 260px;

    /*gap: 24px;*/
    background-color: #ff5d32;
    color: white;
    width: 30%;
    height: 3rem;
    border: 2px solid #ff5d32;
    border-radius: 10px;
    overflow: hidden;
    /*padding: 0 30px;*/
    font-size: 16px;
    font-weight: 400;

    cursor: pointer;
    transition: background-color 0.2s;
}
.login-button {
    align-items: center;
    /*padding: 16px 12px;*/
    text-decoration: none;

    min-width: 100px;

    /*gap: 24px;*/
    background-color: #ff5d32;
    color: white;
    width: 15%;
    height: 3rem;
    border: 2px solid #ff5d32;
    border-radius: 10px;
    overflow: hidden;
    /*padding: 0 30px;*/
    font-size: 16px;
    font-weight: 400;

    cursor: pointer;
    transition: background-color 0.2s;
}
.login-button:hover {
    background-color: #d6693d;
}
.icon-btn {
    all: unset;
}

.catalogue-button:hover {
    background-color: #d6693d;
}

.user-actions {
    display: flex;
    justify-content: space-between;
    /*width: 30%;*/
    /*width: 2.3rem;
    height: 2.3rem;*/
    gap: 1.8rem;
    @media (max-width: 860px) {
        gap: 1rem;
    }
    flex-direction: row;
}
.nav a:hover {
    opacity: 1;
}
ul {
    list-style-type: none;
}
.nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 910px;
    /*width: 100%;*/
    height: 100%;
    justify-content: space-between;
    /*justify-content: center;*/
    align-items: center;
    /*gap: auto;*/
}
.nav a {
    color: var(--text-black);
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.nav.second a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.description {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-top: 3rem;
}
.content {
    display: flex;
    max-width: 960px;
    width: 100%;
    flex-direction: column;
    gap: 2rem;
}
.description h1 {
    font-family: "Advent Pro", sans-serif;
    font-weight: 700;
    font-size: 48px;
    max-width: 960px;
}
.description p {
    font-size: 20px;
    font-weight: 300;
    max-width: 38rem;
    text-wrap: wrap;
}
/*.description h1 {
    font-family: "Advent Pro", sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    font-stretch: extra-expanded;
}*/

.stats {
    display: flex;
    flex-direction: space-between;
    margin-top: 2rem;
    /*max-width: 800px;*/
    /*width: 60%;*/
    gap: 96px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-family: "Advent Pro", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    color: #ffffff;
}

.stat-label {
    font-size: 16px;
    line-height: 1.4;
    color: #e5e5e5;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .stats {
        gap: 40px;
    }

    .stat-value {
        font-size: 32px;
    }

    .stat-label {
        font-size: 14px;
    }
}
.content-categories {
    /*max-width: 960px;*/
    /*margin: 0 auto;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 87%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 25px;
    padding-top: 30px;
}
.categories__cont {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
}

.categories {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*max-width: 65%;*/
    /*max-width: 960px;*/
    /*position: relative;*/
    /*min-width: 65%;*/
    /*display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;*/
    /*margin: 0 auto;*/
    margin-top: 3rem;
    /*not sure change it late*/
    /* make it adaptive*/
    /*@media (max-width: 1100px) {
        max-width: 900px;
    }
    @media (max-width: 900px) {
        max-width: 700px;
    }
    @media (max-width: 768px) {
        max-width: 580px;
    }*/
}
.category__container {
    /*width: 87%;*/
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: space-between;*/
    gap: 1.4rem;
    margin-bottom: 25px;
    padding-top: 30px;
}

.cont h2 {
    font-family: "Advent Pro", sans-serif;
    color: black;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cont span {
    color: #ff5e33;
    font-size: 18px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
}

.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    text-decoration: none;
}

/* Стили плейсхолдеров */
.gray-placeholder {
    background-color: #e0ddd7;
    background-image: linear-gradient(
        45deg,
        #e0ddd7 25%,
        #d6d3cc 25%,
        #d6d3cc 50%,
        #e0ddd7 50%,
        #e0ddd7 75%,
        #d6d3cc 75%,
        #d6d3cc 100%
    );
    background-size: 40px 40px;
}

.accent-orange {
    background-color: #ff5e33;
    color: white;
    justify-content: space-between;
}

.card-label {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    /* Тень для читаемости на светлых фото */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.accent-orange .card-label {
    text-shadow: none;
    max-width: 60px;
}

.arrow {
    font-size: 20px;
}

/* Позиционирование в сетке */

/* Акупрессура (левый высокий блок) */
.card:nth-child(1) {
    grid-column: span 4;
    grid-row: span 2;
    height: 100%;
}

/* Оборудование */
.card:nth-child(2) {
    grid-column: span 5;
}

/* Акупунктура */
.card:nth-child(3) {
    grid-column: span 3;
}

/* Банки */
.card:nth-child(4) {
    grid-column: span 3;
}

/* Полный каталог */
.card:nth-child(5) {
    grid-column: span 2;
}

/* Магниты */
.card:nth-child(6) {
    grid-column: span 3;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
    }
    .card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    .card:nth-child(1) {
        grid-column: span 2 !important;
    }
    /*not sure change it late*/
    /* make it adaptive*/

    /*.categories {
        max-width: 580px;
    }*/
}

.offers {
    max-width: 960px;
    margin: 0 auto;
    margin-top: 5rem;
    margin-bottom: 1rem;
}

.content-footer h2 {
    font-family: "Advent Pro", sans-serif;
    color: black;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.header span {
    color: var(--orange);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.image-placeholder {
    background-color: #ffffff;
    border-radius: 12px;
    position: relative;
    /*height: 271px;*/
}
.image-container {
    height: 271px;
    width: 100%;
}
.image-container img {
    width: 100%;
    height: 271px;
    object-fit: cover;
}

/* Имитация серого блока внутри плейсхолдера, если нужно */
/*.image-placeholder::after {
    content: "";
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border-radius: 8px;
}*/

.favorite-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    color: #333;
}

.product-info {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    color: black;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 12px 0;
    height: 40px; /* Фиксируем высоту заголовка для ровной сетки */
    overflow: hidden;
}

.price-row {
    color: black;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
}

.old-price {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: line-through;
    text-decoration-color: #f46036;
}

.add-to-cart {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #d97d5a;
    border-radius: 8px;
    text-decoration: none;
    color: #d97d5a;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}
.add-to-cart span {
    font-family: Arial, "Inter", sans-serif;
}
.add-to-cart:hover {
    background-color: var(--accent-orange);
    color: white;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
