/*
Theme Name: Uhty Mebel Final v17
Author: Me
*/

/* --- БАЗА --- */
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: 'Helvetica Neue', Arial, sans-serif; background: #fff; color: #333; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul, li { list-style: none !important; padding: 0; margin: 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 15px; }
.hidden-field { display: none !important; }

/* --- ШАПКА --- */
.site-header { border-bottom: 1px solid #eee; padding: 15px 0; background: #fff; position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 24px; font-weight: 900; color: #000; text-transform: uppercase; border: 3px solid #000; padding: 5px 10px; line-height: 1; white-space: nowrap; }
.header-search { flex-grow: 1; max-width: 600px; }
.search-form { display: flex; border: 2px solid #eee; }
.search-field { width: 100%; border: none; padding: 10px; outline: none; }
.search-submit { background: #333; color: #fff; border: none; padding: 0 20px; cursor: pointer; }
.header-actions { display: flex; gap: 20px; font-weight: bold; font-size: 14px; align-items: center; white-space: nowrap; }
.cart-btn { background: #e67e22; color: #fff !important; padding: 8px 15px; border-radius: 4px; }

/* --- БЛОКИ ГЛАВНОЙ --- */
.main-body-padding { padding-top: 40px; padding-bottom: 60px; }
.top-categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 30px; }
.modern-card { height: 280px; border-radius: 15px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-color: #eee; box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.modern-card::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.card-overlay { position: relative; z-index: 2; }
.card-overlay h2 { color: #fff; font-size: 32px; font-weight: 800; text-transform: uppercase; border: 3px solid #fff; padding: 10px 25px; margin: 0; }

.full-width-banner-wrap { margin-bottom: 50px; }
.big-banner-card { display: flex; align-items: center; padding-left: 60px; height: 350px; border-radius: 15px; background-size: cover; background-position: center; background-color: #eee; position: relative; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.big-banner-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%); }
.banner-content { position: relative; z-index: 2; color: #fff; }
.banner-content h2 { font-size: 42px; font-weight: 900; margin: 0 0 10px 0; text-transform: uppercase; }
.banner-content p { font-size: 20px; margin: 0; font-weight: 300; }

/* --- ТОВАРЫ --- */
.catalog-title { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 40px; text-transform: uppercase; }
ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 30px !important; margin: 0 !important; padding: 0 !important; }

/* !!! УБИРАЕМ БЕЛЫЙ КВАДРАТ !!! */
ul.products::before, ul.products::after { display: none !important; content: none !important; }

li.product { text-align: center; width: 100% !important; margin: 0 !important; position: relative; }
li.product img { height: 220px; object-fit: contain; margin: 0 auto 15px; width: 100%; }
.onsale { position: absolute; top: 0; right: 0; background: #e67e22; color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; z-index: 10; }
li.product h2 { font-size: 16px; margin: 10px 0; color: #333; line-height: 1.4; min-height: 44px; }
li.product .price { font-weight: 800; font-size: 18px; color: #e67e22; display: block; margin: 15px 0; }
li.product .price del { color: #999; font-size: 14px; margin-right: 5px; }
li.product .button { background: #333; color: #fff; padding: 12px 20px; border-radius: 5px; width: 100%; display: block; }
li.product .button:hover { background: #e67e22; }

/* --- ОФОРМЛЕНИЕ ЗАКАЗА (FIX) --- */
/* Делаем все в одну колонку */
.woocommerce-checkout .col2-set { float: none; width: 100%; display: flex; flex-direction: column; }
.woocommerce-checkout .col-1, .woocommerce-checkout .col-2 { float: none; width: 100%; max-width: 100%; flex: 0 0 100%; }

/* Прячем заголовок "Детали" (который справа) */
.woocommerce-checkout .woocommerce-additional-fields > h3 { display: none; }

/* Убираем ненужные отступы */
.woocommerce-billing-fields h3 { font-size: 24px; margin-bottom: 20px; }
.form-row label { font-weight: bold; margin-bottom: 5px; display: block; }
.form-row input, .form-row textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }

/* --- АДАПТИВ --- */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .header-search { width: 100%; order: 3; margin-top: 10px; }
    .header-actions span, .desktop-link { display: none; }
    .top-categories-grid { grid-template-columns: 1fr; gap: 15px; }
    .modern-card { height: 200px; }
    .big-banner-card { height: 250px; padding-left: 0; justify-content: center; text-align: center; }
    ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    li.product img { height: 140px; }
}