/*
Theme Name: ART USTO
Author: Partner
Version: 1.1
*/

:root {
    --gold: #C5A059;
    --dark: #1A1A1A;
    --light: #F8F8F8;
}

body { font-family: 'Montserrat', sans-serif; margin: 0; padding: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Уровень 1 */
.top-bar { background: var(--dark); color: #fff; padding: 10px 0; font-size: 13px; }
.top-bar a { color: #fff; text-decoration: none; }

/* Уровень 2 */
.middle-bar { padding: 25px 0; border-bottom: 1px solid #eee; }
.header-grid { display: grid; grid-template-columns: 250px 1fr 200px; gap: 30px; align-items: center; }

.site-logo { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--dark); text-decoration: none; font-weight: bold; }
.site-description { font-size: 11px; text-transform: uppercase; color: #888; margin: 0; letter-spacing: 1px; }

.search-area form { display: flex; border: 2px solid var(--gold); border-radius: 5px; overflow: hidden; }
.search-area input { flex: 1; border: none; padding: 12px; outline: none; }
.search-area button { background: var(--gold); color: #fff; border: none; padding: 0 20px; cursor: pointer; }

.header-icons { display: flex; justify-content: flex-end; gap: 20px; font-size: 20px; }
.header-icons a { text-decoration: none; color: var(--dark); }

/* Уровень 3 */
.main-nav { background: #fff; padding: 15px 0; }
.nav-list { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; justify-content: center; }
.nav-list a { text-decoration: none; color: var(--dark); font-weight: 600; text-transform: uppercase; font-size: 14px; }

/* Орнамент-разделитель */
.header-ornament {
    height: 15px;
    background-image: url('images/pattern.svg'); /* Загрузи сюда свой SVG */
    background-repeat: repeat-x;
    background-size: contain;
    opacity: 0.2;
}  
/* Стили футера */
.site-footer {
    background-color: var(--light);
    padding: 60px 0 30px;
    border-top: 1px solid #eee;
    margin-top: 50px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #666;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

/* Кнопка "Напишите нам" */
.btn-contact {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    margin-top: 10px;
    font-weight: 600;
    border-radius: 3px;
}

/* Нижняя часть */
.footer-divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0 30px;
}

.footer-bottom {
    text-align: center;
    color: #888;
}

.footer-tech-links {
    margin-bottom: 20px;
}

.footer-tech-links a {
    margin: 0 15px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
}

.footer-address p {
    margin: 5px 0;
    line-height: 1.6;
} 
/* Основной фон сайта - очень легкий серый, чтобы белые карточки товаров "выстреливали" */
body {
    background-color: #fcfcfc;
}

/* Секция Hero */
.hero-section {
    background: #f0f0f0 url('images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
    text-align: center;
}

.hero-box {
    background: rgba(255, 255, 255, 0.9);
    display: inline-block;
    padding: 40px 60px;
    border-radius: 2px;
}

.hero-box h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--dark);
}

/* Сетка товаров WooCommerce */
.products-grid-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
}

/* Стилизация карточек товаров WooCommerce */
ul.products li.product {
    background: #fff; /* Нейтральный фон для товара */
    padding: 15px !important;
    border: 1px solid #eee;
    transition: 0.3s;
    text-align: center;
}

ul.products li.product:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--gold);
}

ul.products li.product img {
    margin-bottom: 20px !important;
    background: #f9f9f9; /* Светлый фон под самим фото, если оно на прозрачном фоне */
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 10px;
}

.price {
    color: var(--gold) !important;
    font-weight: 600;
    font-size: 18px !important;
}

/* Разделитель с орнаментом */
.ornament-divider-line {
    height: 40px;
    background: url('images/pattern.svg') repeat-x center;
    background-size: 30px;
    opacity: 0.15;
    margin: 20px 0;
}

/* Кнопка купить */
.button.product_type_simple {
    background-color: var(--dark) !important;
    color: #fff !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    font-size: 12px !important;
    padding: 12px 20px !important;
}  
/* Страница Мастеров */
.artisans-page { background-color: #fff; }

.page-hero {
    padding: 80px 0;
    text-align: center;
    background: #fdfbf7; /* Очень легкий кремовый оттенок */
    border-bottom: 1px solid #f0f0f0;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: var(--dark);
    margin-bottom: 15px;
}

.ornament-center {
    width: 100px;
    height: 20px;
    margin: 20px auto;
    background: url('images/pattern.svg') no-repeat center;
    background-size: contain;
    opacity: 0.4;
}

/* Сетка карточек */
.artisans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.vendor-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.vendor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--gold);
}

.vendor-image-wrapper {
    margin-bottom: 25px;
}

.vendor-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.vendor-location {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: 600;
}

.vendor-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 10px 0;
}

.vendor-divider {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 15px auto;
}

.vendor-desc {
    color: #777;
    font-size: 14px;
    margin-bottom: 25px;
}

.btn-view-store {
    display: inline-block;
    padding: 12px 30px;
    background: var(--dark);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-view-store:hover {
    background: var(--gold);
}  
/* --- КАРТОЧКА ТОВАРА (Single Product) --- */

/* Контейнер страницы товара */
.woocommerce-full-width-content .site-main {
    padding-top: 40px;
}

/* Галерея изображений */
.woocommerce-product-gallery {
    background: #fff;
    border: 1px solid #f2f2f2;
    padding: 10px;
}

/* Заголовок товара */
.product_title {
    font-family: 'Playfair Display', serif !important;
    font-size: 38px !important;
    color: var(--dark) !important;
    margin-bottom: 10px !important;
}

/* Цена */
.summary .price {
    font-size: 28px !important;
    color: var(--gold) !important;
    font-weight: 300 !important;
}

/* Информация о мастере */
.product-vendor-info {
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.product-vendor-info a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Кнопка "В корзину" */
.single_add_to_cart_button {
    background-color: var(--dark) !important;
    border-radius: 0 !important;
    padding: 15px 40px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    transition: 0.3s !important;
}

.single_add_to_cart_button:hover {
    background-color: var(--gold) !important;
}

/* Вкладки (Описание, Отзывы) */
.woocommerce-tabs {
    margin-top: 60px !important;
    border-top: 1px solid #eee;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    justify-content: center;
    border: none !important;
    background: none !important;
    padding: 20px 0 !important;
}

.woocommerce-tabs ul.tabs li {
    border: none !important;
    background: none !important;
}

.woocommerce-tabs ul.tabs li a {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #999 !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--dark) !important;
}

/* Декоративный элемент в описании */
.woocommerce-Tabs-panel--description h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 15px 0;
}  
/* --- КОРЗИНА И ОФОРМЛЕНИЕ ЗАКАЗА --- */

/* Скрываем ненужные заголовки для чистоты */
.woocommerce-cart .entry-title, 
.woocommerce-checkout .entry-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

/* Таблица товаров в корзине */
.shop_table {
    border: none !important;
    border-radius: 0 !important;
    background: #fff;
}

.shop_table thead {
    background: var(--light);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.shop_table td {
    padding: 20px 12px !important;
}

/* Итоги корзины (Cart Totals) */
.cart-collaterals {
    background: #fdfbf7;
    padding: 30px;
    border: 1px solid #f0e6d2;
}

.cart-collaterals h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
}

/* СТРАНИЦА ОФОРМЛЕНИЯ ЗАКАЗА (Checkout) */

/* Делим на две колонки: Данные слева, Заказ справа */
@media (min-width: 992px) {
    .col2-set {
        width: 60%;
        float: left;
        padding-right: 50px;
    }
    #order_review_heading, #order_review {
        width: 40%;
        float: left;
        background: #fff;
        padding: 30px;
        border: 2px solid var(--gold);
    }
}

/* Поля ввода */
input[type="text"], input[type="email"], input[type="tel"], textarea {
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding: 12px !important;
    background: #fcfcfc !important;
}

input:focus {
    border-color: var(--gold) !important;
    outline: none;
}

/* Блок доверия */
.checkout-trust-note {
    margin-top: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid var(--gold);
    font-size: 13px;
    color: #666;
}

.mini-ornament {
    width: 40px;
    height: auto;
    display: block;
    margin-bottom: 10px;
    opacity: 0.3;
}

/* Кнопка подтверждения заказа */
#place_order {
    background-color: var(--dark) !important;
    color: #fff !important;
    padding: 20px !important;
    width: 100% !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
}

#place_order:hover {
    background-color: var(--gold) !important;
}   
/* Стили переключателя языков */
.lang-switcher {
    display: flex;
    gap: 15px;
    list-style: none; /* Убираем точки, если Polylang выводит списком */
    margin: 0;
    padding: 0;
}

.lang-switcher li {
    display: inline;
}

.lang-switcher a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    transition: 0.3s;
    opacity: 0.7;
}

.lang-switcher a:hover, 
.lang-switcher .current-lang a {
    opacity: 1;
    color: var(--gold); /* Подсвечиваем выбранный язык золотым */
}  
/* Контейнер, который объединяет все 4 блока */
.footer-grid {
    display: flex;             /* Включаем гибкую верстку */
    flex-direction: row;       /* Выстраиваем элементы в ряд */
    justify-content: space-between; /* Распределяем их равномерно по всей ширине */
    align-items: flex-start;   /* Выравниваем по верхней линии */
    gap: 20px;                 /* Расстояние между колонками */
    flex-wrap: wrap;           /* Чтобы на мобильных они могли переноситься */
    padding: 40px 0;
}

/* Стили для каждой отдельной колонки */
.footer-col {
    flex: 1;                   /* Каждый блок будет занимать равную часть ширины */
    min-width: 200px;          /* Минимальная ширина блока, чтобы они не были слишком узкими */
    margin-bottom: 20px;
}

/* Убираем точки у списков внутри футера */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Адаптация для мобильных телефонов */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column; /* На телефонах блоки снова встанут друг под друга */
        text-align: center;     /* И будут по центру для удобства */
    }
} 
/* Настройка контейнера для колонок */
.footer-grid {
    display: flex;             /* Включаем гибкий контейнер */
    flex-direction: row;       /* Выстраиваем элементы в ряд */
    justify-content: space-between; /* Распределяем их равномерно по ширине */
    align-items: flex-start;   /* Выравниваем по верху */
    flex-wrap: wrap;           /* Если экран станет узким, блоки перенесутся */
    gap: 20px;                 /* Расстояние между колонками */
    padding: 40px 0;
}

/* Настройка каждой колонки */
.footer-col {
    flex: 1;                   /* Каждая колонка занимает равное место */
    min-width: 200px;          /* Но не меньше 200px (для мобильных) */
    margin-bottom: 20px;
}

/* Стили заголовков в футере */
.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Стили списков */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #C5A059; /* Твой золотой цвет */
}

/* Силовой метод выстраивания в ряд */
.footer-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Запрещаем перенос, чтобы точно встали в ряд */
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 20px !important;
}

/* Каждая колонка */
.footer-col {
    width: 23% !important; /* Примерно четверть ширины */
    display: block !important;
}

/* Убираем точки у списков, если они есть */
.footer-col ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}