/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* ============================================================
   FULL_ACCTUAL_CSS — Optimized version
   Source: FULL_ACCTUAL_CSS.css (2484 lines → this ~1500 lines)
   All duplicates removed, only final winning rules kept
   ============================================================ */

/* ============================================================
   1. ГЛОБАЛЬНЫЕ НАСТРОЙКИ
   ============================================================ */

/* Отступ от шапки для всех страниц */
#content {
    padding-top: 120px !important;
    padding-bottom: 80px !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* Убираем полоски и границы Astra в шапке */
.main-header-bar {
    border-bottom: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Скрываем дублирующий заголовок на странице товара */
.single-product .entry-header { display: none !important; }
.single-product .summary.entry-summary .posted_in,
.single-product .summary.entry-summary .ast-woo-product-category,
.single-product .single-product-category,
.single-product .summary .posted_in { display: none !important; }

/* Скрываем плашку "Распродажа!" */
.woocommerce-page span.onsale { display: none !important; }


/* ============================================================
   2. СТРАНИЦА ОФОРМЛЕНИЯ ЗАКАЗА (CHECKOUT)
   ============================================================ */

/* Блок заказа (белая карточка справа) */
#order_review {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 24px !important;
    border: 2px solid #dcedee !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important;
}

/* Заголовки */
.woocommerce-checkout h3,
.woocommerce-cart h2,
#order_review_heading {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    color: #1d4e46 !important;
    margin-bottom: 25px !important;
    text-transform: none !important;
    font-size: 1.5rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

/* Сетка формы (две колонки) */
@media (min-width: 992px) {
    .woocommerce-checkout form.checkout {
        display: grid !important;
        grid-template-columns: 45% 52% !important;
        column-gap: 3% !important;
        align-items: start !important;
    }
    #customer_details {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
    }
    #order_review_heading {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin-bottom: 15px !important;
    }
    #order_review {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
    }
}

/* Поля ввода */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last,
.woocommerce-checkout .form-row-wide {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper p.form-row,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper p.form-row {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
}

.woocommerce-checkout #customer_details .form-row,
.woocommerce-billing-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
    margin-bottom: 20px !important;
}

/* Пухлые поля ввода */
.woocommerce-checkout #customer_details input.input-text,
.woocommerce-checkout #customer_details textarea,
.woocommerce-checkout #customer_details .select2-selection--single {
    width: 100% !important;
    border-radius: 12px !important;
    padding: 18px 20px !important;
    font-size: 16px !important;
    height: auto !important;
    border: 2px solid #dcedee !important;
    background-color: #f9fbfb !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease-in-out !important;
    resize: none !important;
}

.woocommerce-checkout #customer_details input.input-text:focus {
    background-color: #fff !important;
    border-color: #1d4e46 !important;
    box-shadow: 0 0 0 4px rgba(29, 78, 70, 0.05) !important;
}

.woocommerce-checkout #customer_details label {
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    display: inline-block;
}

.woocommerce-checkout #customer_details textarea {
    height: 120px !important;
}

/* Выравнивание блоков по верхней линии */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#order_review { margin-top: -12px !important; }

/* Общий стиль уведомлений */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 20px 25px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #2b2c2e !important;
    line-height: 1.5 !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none !important; }

.woocommerce-message { border-left: 5px solid #76d9bd !important; }
.woocommerce-info    { border-left: 5px solid #dcedee !important; }
.woocommerce-error   { border-left: 5px solid #e25b49 !important; }

/* Кнопка в уведомлении */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    background-color: #f0f4f4 !important;
    color: #1d4e46 !important;
    border-radius: 10px !important;
    padding: 8px 18px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    border: 1px solid #dcedee !important;
    transition: all 0.3s ease !important;
    order: 2;
}

.woocommerce-message .button:hover {
    background-color: #1d4e46 !important;
    color: #ffffff !important;
}

/* Кнопка "Отменить" */
.woocommerce-message a.restore-item {
    background: #f0f4f4 !important;
    color: #1d4e46 !important;
    padding: 8px 15px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
}

.woocommerce-message a.restore-item:hover {
    background: #1d4e46 !important;
    color: #ffffff !important;
}

/* Скрываем уведомления на странице корзины */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info { display: none !important; }

/* Скрываем блок купона */
.woocommerce-form-coupon-toggle,
.woocommerce-form-coupon,
.checkout_coupon,
.coupon { display: none !important; }

/* Кнопка оформления заказа */
.woocommerce-checkout #place_order {
    background-color: #1d4e46 !important;
    color: #ffffff !important;
    padding: 20px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    width: 100% !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.woocommerce-checkout #place_order:hover {
    background-color: #c94838 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(226, 91, 73, 0.3) !important;
}

/* Футер таблицы в чекауте */
.woocommerce-checkout-review-order-table tfoot tr th,
.woocommerce-checkout-review-order-table tfoot tr td {
    border-top: 1px solid #f0f4f4 !important;
    padding: 15px 0 !important;
    display: table-cell !important;
}

/* Итог */
.order-total .amount {
    color: #e25b49 !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
}

.woocommerce-checkout .order-total th { font-size: 1.2rem !important; vertical-align: middle !important; }

.woocommerce-checkout .order-total .amount,
.woocommerce-checkout .order-total .woocommerce-Price-currencySymbol {
    color: #e25b49 !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
}


/* ============================================================
   3. КОРЗИНА — ТОВАРЫ (CART ITEMS)
   ============================================================ */

/* Таблица товаров в корзине/чекауте */
.woocommerce-checkout-review-order-table thead { display: none !important; }

table.woocommerce-checkout-review-order-table,
table.woocommerce-checkout-review-order-table tbody {
    display: block !important;
    width: 100% !important;
}

.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table tr {
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
}

/* Скрываем вторую колонку с ценой */
.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table th.product-total { display: none !important; }

.woocommerce-checkout-review-order-table td.product-name {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    border: none !important;
}

/* Строка товара в корзине */
.al-row {
    display: flex !important;
    gap: 20px !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #f0f4f4 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    align-items: flex-start !important;
    width: 100%;
    position: relative;
}

.cart_item:last-of-type .al-row { border-bottom: none !important; }

/* Картинка товара */
.al-img {
    width: 125px !important;
    height: 125px !important;
    flex-shrink: 0;
    border: 2px solid #f0f7f6 !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.al-img img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
}

/* Контейнер текста и кнопок */
.al-content-stack {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Строка: Название + Цена */
.al-top-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.al-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px !important;
    font-weight: 600;
    color: #2b2c2e;
    line-height: 1.4 !important;
    max-width: 75%;
}

.al-price {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px;
    font-weight: 800;
    color: #1d4e46;
    white-space: nowrap;
}

/* Управление количеством */
.al-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.al-qty-control {
    display: flex !important;
    align-items: center !important;
    background: #f2f3f7;
    border-radius: 12px;
    padding: 4px;
    height: 40px;
    gap: 12px;
}

.al-qty-control button {
    width: 32px !important;
    height: 32px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    color: #1d4e46 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.al-qty-control button:hover { background: #e2e4eb !important; }
.al-qty-control button:active { transform: scale(0.95); }

.al-qty-num {
    min-width: 35px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #2b2c2e;
}

.al-qty-control input.qty-input {
    width: 40px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2b2c2e !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
}

.al-qty-control input::-webkit-outer-spin-button,
.al-qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Иконка корзины (мусорное ведро) */
.al-trash-btn {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0bec5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M10 11v6M14 11v6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    margin-left: 5px;
}

.al-trash-btn:hover {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e25b49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M10 11v6M14 11v6'/%3E%3C/svg%3E") !important;
    transform: scale(1.1);
}

/* ── ФИКС: радио-кнопки доставки в чекауте (ОБНОВЛЕННЫЕ ЦВЕТА И ОБЪЕМ) ── */
#order_review #shipping_method li {
    display: grid !important;
    grid-template-columns: 20px 1fr !important; /* Чекбокс в отдельной колонке 20px */
    align-items: center !important;
    gap: 25px !important; /* Щедрый зазор между точкой и текстом */
    
    /* УВЕЛИЧИВАЕМ ОБЪЕМ КНОПОК */
    padding: 15px 20px !important; 
    
    /* ВОЗВРАЩАЕМ ЦВЕТА */
    background: #ffffff !important; /* Чистый белый фон */
    border: 1px solid #ebebeb !important; /* Тонкая серая рамка */
    border-radius: 14px !important; /* Скругление 14px */
    
    margin-bottom: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Эффект наведения */
#order_review #shipping_method li:hover {
    border-color: #dcedee !important;
    background: #f9fbfb !important; /* Легкий ховер-эффект */
}

/* Сама точка (крупнее) */
#order_review #shipping_method input[type="radio"] {
    width: 20px !important; /* Было 18px */
    height: 20px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    accent-color: #1d4e46 !important;
    cursor: pointer !important;
}

/* Текст внутри (крупнее и выровнен влево) */
#order_review #shipping_method label {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important; /* Было 14px */
    font-weight: 500 !important;
    color: #2b2c2e !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important; /* Текст строго влево */
}

/* Активный вариант */
#order_review #shipping_method input[type="radio"]:checked + label {
    color: #1d4e46 !important;
    font-weight: 600 !important;
}

#order_review #shipping_method li:has(input:checked) {
    border-color: #76d9bd !important;
    background: #edfaf5 !important;
}

/* Строка товара в чекауте (старый стиль — фото слева) */
.checkout-img-wrap img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 12px !important;
    object-fit: contain !important;
    background: #fff !important;
}

.checkout-txt-wrap {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #2b2c2e !important;
}

.woocommerce-checkout td.product-total {
    text-align: right !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: #1d4e46 !important;
    white-space: nowrap !important;
}

.woocommerce-checkout td.product-name {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    border: none !important;
    padding: 0 !important;
    flex-grow: 1 !important;
}

.woocommerce-checkout-review-order-table tr.cart_item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 15px !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f0f7f6 !important;
}

/* Пустая корзина */
.woocommerce-cart .return-to-shop,
.woocommerce-cart .cart-empty.woocommerce-info { display: none !important; }

.al-empty-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
    width: 100%;
    min-height: 60vh;
}

.al-empty-card {
    background: #ffffff;
    border: 2px solid #f0f7f6;
    border-radius: 24px;
    padding: 60px 50px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(29, 78, 70, 0.04);
    animation: fadeUp 0.5s ease forwards;
}

.al-cart-icon {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 30px;
    background: #fdfdfd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #eef6f5;
}

.cart-svg { width: 54px; height: 54px; transform: translateX(-3px); }

.al-cart-badge {
    position: absolute;
    top: 26px;
    right: 23px;
    width: 27px;
    height: 27px;
    background: #e25b49;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(226, 91, 73, 0.25);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.4s;
    opacity: 0;
    transform: scale(0);
}

.al-cart-badge svg { width: 14px; height: 14px; transform: none; }
.al-cart-icon svg { width: 50px; height: 50px; }

@keyframes popIn { to { opacity: 1; transform: scale(1); } }

/* Тексты пустой корзины */
.al-empty-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #1d4e46 !important;
    margin-bottom: 15px !important;
    border: none !important;
    padding: 0 !important;
}

.al-empty-title span { color: #e25b49; }

.al-empty-desc {
    font-family: 'Inter', sans-serif;
    font-size: 17px !important;
    color: #37474f !important;
    font-weight: 500 !important;
    line-height: 1.6;
    margin-bottom: 35px !important;
}

.al-empty-desc strong { color: #1d4e46; }

/* Плашки */
.al-perks {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.al-perk {
    background: #fafcfc;
    border: 1px solid #eef6f5;
    border-radius: 12px;
    padding: 10px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1d4e46;
}

/* Кнопки */
.al-empty-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.al-btn-primary {
    background: #1d4e46 !important;
    color: #fff !important;
    padding: 18px 36px !important;
    border-radius: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(226,91,73,0.2) !important;
    transition: all 0.2s !important;
}

.al-btn-primary:hover {
    background: #c94838 !important;
    transform: translateY(-2px);
}

.al-btn-secondary {
    background: transparent !important;
    color: #1d4e46 !important;
    padding: 16px 32px !important;
    border-radius: 14px !important;
    border: 2px solid #1d4e46 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.al-btn-secondary:hover { background: #f0f7f6 !important; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast-уведомление */
.al-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(29, 78, 70, 0.95);
    color: #fff;
    padding: 15px 30px;
    border-radius: 20px;
    font-family: 'Montserrat';
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
}

.al-toast.show { transform: translateX(-50%) translateY(0); }


/* ============================================================
   4. КАТАЛОГ — СЕТКА ТОВАРОВ (PRODUCT GRID)
   ============================================================ */

/* Сетка каталога — 4 колонки */
.woocommerce ul.products,
.ast-woocommerce-container ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

/* Ядерная сетка (ломаем контейнер Astra) */
body.woocommerce-page .site-content,
body.woocommerce-page .site-content > .ast-container,
body.woocommerce-page #primary,
body.woocommerce-page #main,
body.woocommerce-page .ast-woocommerce-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

body.woocommerce-page .site-content > .ast-container {
    padding-left: 8% !important;
    padding-right: 8% !important;
}

body.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
}

/* Карточка товара */
.woocommerce ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #ebebeb !important;
    border-radius: 16px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    min-width: 0 !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-0px) !important;
}

/* Убираем плашку "Распродажа!" */
.woocommerce ul.products li.product .onsale { display: none !important; }

/* Выравнивание кнопок */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
}

/* Картинка */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link img {
    width: 100% !important;
    height: 400px !important;
    object-fit: contain !important;
    margin-bottom: 20px !important;
}

/* Заголовок */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2d2f33 !important;
    line-height: 1.3 !important;
    margin-bottom: 14px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
}

/* Скрываем категорию "Другое" */
.woocommerce ul.products li.product .ast-woo-product-category { display: none !important; }

/* Убираем дубли описания */
.woocommerce ul.products li.product .ast-woo-shop-product-description p:nth-child(n+2) { display: none !important; }

/* Описание */
.woocommerce ul.products li.product .ast-woo-shop-product-description {
    margin-bottom: 0 !important;
    height: 72px !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

.woocommerce ul.products li.product .ast-woo-shop-product-description,
.woocommerce ul.products li.product .ast-woo-shop-product-description * {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    line-height: 1.4 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.woocommerce ul.products li.product .ast-woo-shop-product-description p,
.woocommerce ul.products li.product .ast-woo-shop-product-description div,
.woocommerce ul.products li.product .ast-woo-shop-product-description span { display: inline !important; }

.woocommerce ul.products li.product .ast-woo-shop-product-description > *:nth-child(n+2) { display: none !important; }

/* Градиент-завеса в конце текста */
.woocommerce ul.products li.product .ast-woo-shop-product-description::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 40% !important;
    height: 24px !important;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1) 80%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* Цена */
.woocommerce ul.products li.product .price {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    align-items: baseline !important;
    gap: 12px !important;
    margin-top: auto !important;
    margin-bottom: 10px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price > .woocommerce-Price-amount {
    text-decoration: none !important;
    font-size: 35px !important;
    font-weight: 800 !important;
    color: #e4053b !important;
    letter-spacing: -0.5px !important;
}

.woocommerce ul.products li.product .price ins .woocommerce-Price-currencySymbol,
.woocommerce ul.products li.product .price > .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
    font-weight: 500 !important;
    margin-left: -12px !important;
}

.woocommerce ul.products li.product .price del {
    font-size: 19px !important;
    color: #8a8c96 !important;
}

/* Кнопка "В корзину" */
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    font-family: 'Montserrat', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 55px !important;
    background: #276563 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    border-radius: 25px !important;
    transition: background 0.2s ease !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce ul.products li.product .button:hover {
    background: #235c5a !important;
    color: #ffffff !important;
}

/* Строка цен из PHP-фильтра */
.price-wrapper {
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    margin-top: auto !important;
    margin-bottom: 20px !important;
}

.price-wrapper ins {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #e4053b !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.price-wrapper .old-price-group {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 6px !important;
}

.price-wrapper .old-price-group del {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #8a8c96 !important;
    text-decoration: line-through !important;
}

.price-wrapper .old-price-group .discount-badge {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    color: #e4053b !important;
}


/* ============================================================
   5. ФИЛЬТРЫ
   ============================================================ */

.wpc-filters-section,
.wpc-filters-widget-main-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
}

.wpc-filter-widget {
    position: relative !important;
    flex: 1 1 auto !important;
    min-width: 190px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpc-filters-widget-main-wrapper { display: none !important; }

/* Кастомные фильтры */
.custom-artlife-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.custom-filter-dropdown { position: relative; min-width: 180px; }

.custom-filter-toggle {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    height: 48px;
    padding: 0 45px 0 20px;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #2d2f33;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s;
}

.custom-filter-toggle:hover { border-color: #8a8c96; }
.custom-filter-toggle::after {
    content: "▼";
    position: absolute;
    right: 20px;
    font-size: 10px;
    color: #8a8c96;
    transition: transform 0.3s;
}

.custom-filter-dropdown.is-open .custom-filter-toggle::after { transform: rotate(180deg); }

.custom-filter-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 10px 0;
    max-height: 300px;
    overflow-y: auto;
}

.custom-filter-dropdown.is-open .custom-filter-menu { display: block; }

.custom-filter-option {
    display: block;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #2d2f33;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-filter-option:hover { background: #f4f5f7; }

.custom-filter-option.is-selected {
    background: #276563;
    color: #ffffff;
    font-weight: 500;
}

.custom-filter-reset {
    background: #cccccc;
    color: #ffffff;
    padding: 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    height: 48px;
    line-height: 48px;
    display: inline-block;
    transition: background 0.2s;
    cursor: pointer;
}

.custom-filter-reset:hover { background: #b3b3b3; color: #fff; }

/* Стрелка в заголовке фильтра (Filter Everything) */
.wpc-filter-header { display: flex !important; align-items: center !important; justify-content: space-between !important; }
.wpc-filters-section .wpc-filter-header .wpc-filter-title { padding-right: 30px !important; }
.wpc-open-icon { flex-shrink: 0 !important; margin-left: auto !important; }
.wpc-filter-header .wpc-toggle-btn { display: none !important; }

.wpc-filter-header .wpc-toggle-icon {
    display: block !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    color: #8a8c96 !important;
    font-size: 12px !important;
}

/* Выпадающее меню */
.wpc-filter-content {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    width: 280px !important;
    background: #ffffff !important;
    border: 1px solid #ebebeb !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08) !important;
    z-index: 9999 !important;
    padding: 10px 0 !important;
    max-height: 320px !important;
    overflow-y: auto !important;
}

.wpc-filter-content::-webkit-scrollbar { width: 6px; }
.wpc-filter-content::-webkit-scrollbar-track { background: transparent; }
.wpc-filter-content::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 10px; }

.wpc-filter-content ul { list-style: none !important; margin: 0 !important; padding: 0 !important; width: 100% !important; }
.wpc-checkbox-item { margin: 0 !important; padding: 0 !important; width: 100% !important; display: block !important; }
.wpc-checkbox-item input { display: none !important; }

.wpc-checkbox-item label {
    font-family: 'Montserrat', sans-serif !important;
    display: block !important;
    width: calc(100% - 16px) !important;
    margin: 2px 8px !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #2d2f33 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    line-height: 1.4 !important;
}

.wpc-checkbox-item label a { color: inherit !important; text-decoration: none !important; }
.wpc-checkbox-item label:hover { background: #f4f5f7 !important; color: #2d2f33 !important; }
.wpc-term-selected label { background: #276563 !important; color: #ffffff !important; font-weight: 500 !important; }
.wpc-term-selected label a { color: #ffffff !important; }
.wpc-term-count { display: none !important; }

/* Кнопка сброса */
.wpc-filters-reset-widget { margin: 0 !important; }

.wpc-filters-reset-widget a {
    font-family: 'Montserrat', sans-serif !important;
    background: #cccccc !important;
    color: #ffffff !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    height: 48px !important;
    line-height: 48px !important;
    display: inline-block !important;
    white-space: nowrap !important;
    transition: background 0.2s !important;
}

.wpc-filters-reset-widget a:hover { background: #b3b3b3 !important; }

/* ==========================================
   ОБНОВЛЕННЫЙ ПОИСК (УКРУПНЕНИЕ + ФИКС ДВОЙНОЙ ЛУПЫ)
   ========================================== */

/* 1. Скрываем родную блеклую лупу/кнопку плагина, которая двоилась */
/* Полностью скрываем родной span с блеклой лупой плагина */
.wpc-search-icon {
    display: none !important;
}

/* 2. Делаем поле поиска крупнее (Confident look) */
.wpc-search-field {
    width: 100% !important;
    height: 52px !important; /* Увеличили высоту до 52px */
    background: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 12px !important;
    
    padding: 0 20px 0 46px !important; /* Увеличили отступы под крупный шрифт */
    
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important; /* Увеличили шрифт до 16px */
    color: #2d2f33 !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    
    /* Оставляем ОДНУ нашу сочную зеленую лупу */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23276563' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 18px center !important; /* Сместили чуть вправо для баланса */
    background-size: 18px !important; /* Слегка увеличили саму лупу */
}

/* Эффект фокуса */
.wpc-search-field:focus {
    border-color: #276563 !important;
    box-shadow: 0 4px 15px rgba(39, 101, 99, 0.08) !important;
}

/* Стилизуем заголовок "Поиск" */
.wpc-filter-widget .wpc-filter-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2d2f33 !important;
    margin-bottom: 12px !important;
}


/* ==========================================
   УДАЛЕНИЕ ЛИШНЕГО МУСОРА СТРАНИЦЫ
   ========================================== */

/* Полностью скрываем унылую надпись "Отображение 1-16 из 225" */
.woocommerce-result-count,
#main > div > p.woocommerce-result-count,
.woocommerce-result-count-wrapper {
    display: none !important;
}


/* ============================================================
   6. ПАГИНАЦИЯ
   ============================================================ */

.woocommerce nav.woocommerce-pagination {
    margin-top: 70px !important;
    text-align: center !important;
}

.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    gap: 8px !important;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #2d2f33 !important;
    background: #ffffff !important;
    border: 1px solid #ebebeb !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #f4f5f7 !important;
    color: #276563 !important;
    border-color: #276563 !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #276563 !important;
    color: #ffffff !important;
    border-color: #276563 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(39, 101, 99, 0.2) !important;
}

.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce nav.woocommerce-pagination ul li a.prev {
    width: auto !important;
    padding: 0 20px !important;
    border-radius: 40px !important;
}


/* ============================================================
   7. СТРАНИЦА ТОВАРА (SINGLE PRODUCT)
   ============================================================ */

.single-product div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 50px !important;
    align-items: flex-start !important;
}

/* Левая колонка (картинки) */
.single-product div.product div.images {
    flex: 0 0 38% !important;
    max-width: 38% !important;
    margin: 0 !important;
    width: 450px !important;
    margin-right: 50px !important;
}

/* Правая колонка (контент) */
.single-product div.product div.summary {
    flex: 1 1 0% !important;
    max-width: 58% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    width: auto !important;
}

/* Единый стиль — grid-сетка внутри summary */
.single-product div.product div.summary {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px !important;
}

/* Убираем жёсткую grid-row — пусть grid сам расставляет */
.single-product .product_meta,
.single-product .product_title,
.single-product .woocommerce-product-details__short-description,
.single-product .al-info-text-block,
.single-product .al-purpose-badges-wrapper,
.single-product div.summary.entry-summary .al-buy-box,
.single-product div.summary.entry-summary form.cart,
.single-product .al-purpose-full-text,
.single-product .woocommerce-tabs,
.single-product .custom-active-elements {
    grid-row: unset !important;
    grid-column: 1 !important;
}

/* Order — управление порядком */
.single-product .product_meta     { order: 1 !important; margin-bottom: 10px !important; border: none !important; padding: 0 !important; }
.single-product .product_title    { order: 2 !important; margin-bottom: 15px !important; }
.single-product .woocommerce-product-details__short-description { order: 3 !important; margin-bottom: 25px !important; }
.single-product .al-info-text-block        { order: 4 !important; }
.single-product .al-purpose-badges-wrapper { order: 5 !important; }
.single-product .al-buy-box                { order: 6 !important; }
.single-product form.cart                  { order: 7 !important; }
.single-product .al-purpose-full-text      { order: 8 !important; }
.single-product .woocommerce-tabs          { order: 9 !important; width: 100% !important; }
.single-product .custom-active-elements    { order: 10 !important; }

/* Строка 1: артикул */
.single-product .product_meta {
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: #8a8c96 !important;
    padding: 0 !important;
}

.single-product .product_meta > span.posted_in,
.single-product .product_meta > span.tagged_as { display: none !important; }

.single-product .product_meta .sku_wrapper {
    font-size: 0 !important;
    color: transparent !important;
}

.single-product .product_meta .sku_wrapper .sku {
    font-size: 13px !important;
    color: #8a8c96 !important;
    font-weight: 400 !important;
}

.single-product .product_meta .sku_wrapper::before {
    content: "Артикул: " !important;
    font-size: 13px !important;
    color: #8a8c96 !important;
}

/* Строка 2: название */
.single-product .product_title {
    margin: 0 !important;
    font-size: 50px !important;
    font-weight: 700 !important;
    color: #2d2f33 !important;
    line-height: 1.2 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Строка 3: краткое описание */
.single-product .woocommerce-product-details__short-description {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 23px !important;
    color: #414555 !important;
    line-height: 1.6 !important;
}

.single-product .woocommerce-product-details__short-description > *:nth-child(n+2),
.single-product .woocommerce-product-details__short-description strong { display: none !important; }

/* Строка 4: инфо-блок */
.al-info-text-block {
    grid-row: 4 !important;
    grid-column: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 23px !important;
    color: #414555 !important;
    line-height: 1.6 !important;
}

.al-info-text-block p { margin: 0 0 4px 0 !important; padding: 0 !important; }

.al-info-text-block strong {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: #2d2f33 !important;
}

.al-info-text-block a {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    color: #276563 !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}

.al-info-text-block a:hover {
    color: #76d9bd !important;
    text-decoration: underline !important;
}

/* Строка 5: плашки назначения */
.al-purpose-badges-wrapper {
    grid-row: 5 !important;
    grid-column: 1 !important;
    margin: 10px 0 0 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.al-purpose-label { display: none !important; }

.al-purpose-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.al-purpose-badge {
    display: inline-block;
    box-sizing: border-box;
    margin: 0;
    border: 0;
    vertical-align: baseline;
    text-decoration: none !important;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    color: #276563 !important;
    background-color: #cae3e5 !important;
    padding: 10px 20px !important;
    border-radius: 16px !important;
    letter-spacing: 0.44px;
    line-height: 1 !important;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 0px rgba(39, 101, 99, 0.1);
}

.al-purpose-badge:hover {
    background-color: #276563 !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39, 101, 99, 0.2);
}

.al-purpose-badge:active { transform: translateY(1px); box-shadow: none; }

/* Строка 6-7: блок покупки */
.single-product div.summary.entry-summary .al-buy-box {
    justify-self: start !important;
    width: 100% !important;
    max-width: 420px !important;
    background: #ffffff !important;
    border: 1px solid #eaf2f2 !important;
    border-radius: 18px 18px 0 0 !important;
    padding: 24px 24px 15px !important;
    margin: 10px 0 0 0 !important;
    box-sizing: border-box !important;
}

.single-product div.summary.entry-summary form.cart {
    justify-self: start !important;
    width: 100% !important;
    max-width: 420px !important;
    background: #ffffff !important;
    border: 1px solid #eaf2f2 !important;
    border-top: none !important;
    border-radius: 0 0 18px 18px !important;
    padding: 0 24px 24px !important;
    margin: 0 !important;
    margin-top: -21px !important;
    box-shadow: 0 10px 25px rgba(43,44,46,0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

body.single-product form.cart > .quantity,
body.single-product form.cart .woocommerce-quantity-input,
body.single-product form.cart input.input-text.qty { display: none !important; }

/* Цена в блоке покупки */
.al-price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.al-current-price {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 44px !important;
    font-weight: 800 !important;
    color: #e25b49 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
}

.al-currency {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #666666 !important;
}

.al-old-price-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.al-old-price-group del {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    color: #666666 !important;
}

.al-discount-badge {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1d4e46 !important;
    background: #dcedee !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
}

/* Фикс: summary должна быть flex-колонкой, не grid */
.single-product div.product div.summary.entry-summary {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    gap: 12px !important;
}

/* Убираем grid-row у всех дочерних — они не нужны в flex */
.single-product .product_meta,
.single-product .product_title,
.single-product .woocommerce-product-details__short-description,
.single-product .al-info-text-block,
.single-product .al-purpose-badges-wrapper,
.single-product .al-buy-box,
.single-product form.cart,
.single-product .al-purpose-full-text,
.single-product .woocommerce-tabs,
.single-product .custom-active-elements {
    grid-row: unset !important;
    grid-column: unset !important;
}
.al-qty-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f6fbfa !important;
    border: 1px solid #eaf2f2 !important;
    border-radius: 14px !important;
    padding: 0 20px !important;
    height: 56px !important;
    margin: 0 !important;
}

.al-qty-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #666666 !important;
}

.al-qty-controls {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.al-qty-input {
    width: 36px !important;
    background: transparent !important;
    border: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2b2c2e !important;
    text-align: center !important;
    outline: none !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}

.al-qty-input::-webkit-outer-spin-button,
.al-qty-input::-webkit-inner-spin-button { -webkit-appearance: none !important; }

.al-qty-change {
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #4c776d !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    padding: 0 !important;
    line-height: 1 !important;
    transition: background 0.15s, color 0.15s !important;
}

.al-qty-change:hover {
    background: #dcedee !important;
    color: #1d4e46 !important;
}

body.single-product form.cart .single_add_to_cart_button,
body.single-product form.cart button[type="submit"] {
    display: block !important;
    width: 100% !important;
    height: 56px !important;
    background: #1d4e46 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    margin: 0 !important;
    padding: 0 20px !important;
    box-shadow: 0 6px 18px rgba(29,78,70,0.2) !important;
}

body.single-product form.cart .single_add_to_cart_button:hover {
    background: #76d9bd !important;
    color: #1d4e46 !important;
    transform: translateY(-1px) !important;
}

/* Строка 8: полное описание */
.al-purpose-full-text {
    grid-row: 8 !important;
    grid-column: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #f9fbfc !important;
    border-left: 3px solid #276563 !important;
    border-radius: 0 12px 12px 0 !important;
    padding: 16px 20px !important;
    margin: 0 !important;
}

.al-purpose-full-text p,
.al-purpose-full-text div {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    color: #414555 !important;
    line-height: 1.6 !important;
    margin: 0 0 10px 0 !important;
    display: block !important;
}

.al-purpose-full-text p:last-child { margin-bottom: 0 !important; }

/* Строка 9: вкладки */
.single-product .woocommerce-tabs {
    margin-top: 25px !important;
}

/* Строка 10: активные элементы */
.single-product .custom-active-elements {
    margin-top: 20px !important;
}


/* ============================================================
   8. ГАЛЕРЕЯ (SINGLE PRODUCT)
   ============================================================ */

.flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 15px !important;
    padding: 0 !important;
    list-style: none !important;
}

.flex-control-thumbs li {
    width: 120px !important;
    margin: 0 !important;
    float: none !important;
}

.flex-control-thumbs img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border: 1px solid #ebebeb !important;
    border-radius: 8px !important;
    opacity: 0.6 !important;
    transition: 0.3s !important;
    cursor: pointer !important;
}

.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover {
    opacity: 1 !important;
    border-color: #276563 !important;
}

.woocommerce-product-gallery__trigger { display: none !important; }

.woocommerce-product-gallery__wrapper {
    background: #ffffff !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    height: 700px !important;
    display: block !important;
}

.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
    height: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
    height: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}


/* ============================================================
   9. ХЛЕБНЫЕ КРОШКИ
   ============================================================ */

.single-product .woocommerce-breadcrumb {
    width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 30px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a8c96;
    display: block !important;
}

.single-product .woocommerce-breadcrumb a {
    color: #76d9bd !important;
    text-decoration: none;
    transition: color 0.2s;
}

.single-product .woocommerce-breadcrumb a:hover { color: #276563 !important; }

.single-product .summary .woocommerce-breadcrumb { display: none !important; }

#main > .ast-container > .woocommerce-breadcrumb,
#main > div > .woocommerce-breadcrumb {
    display: block !important;
    width: 100% !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
}


/* ============================================================
   10. ПРОЧИЕ СТИЛИ
   ============================================================ */

/* Прячем старую цену на странице товара */
.single-product .summary > .price,
.single-product .summary > .price-wrapper { display: none !important; }

/* Убираем пустые абзацы */
.single-product .summary.entry-summary p:empty,
.single-product .summary.entry-summary > p:nth-child(6) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Цена на странице товара */
.single-product .price {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #e4053b !important;
}

.single-product .single_add_to_cart_button {
    background: #276563 !important;
    height: 54px !important;
    padding: 0 40px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
}


/* ============================================================
   11. RESPONSIVE — АДАПТИВНОСТЬ
   ============================================================ */

/* ФИКС ДЛЯ МОБИЛОК (Убираем наезд шапки на текст) */
@media (max-width: 768px) {
    #content {
        padding-top: 90px !important; /* Увеличили отступ с 20px до 90px, чтобы вытолкнуть контент из-под меню */
    }
}

/* Grid — защита от сжатия */
@media (max-width: 1220px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

@media (max-width: 1400px) { body.woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 1024px) {
    body.woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    body.woocommerce-page .site-content > .ast-container { padding-left: 15px !important; padding-right: 15px !important; }
}
@media (max-width: 600px) { body.woocommerce-page ul.products { grid-template-columns: 1fr !important; } }

/* Фильтры на мобилках */
@media (max-width: 768px) {
    .wpc-filters-section { flex-direction: column !important; align-items: stretch !important; }
    .wpc-filter-content { width: 100% !important; position: static !important; box-shadow: none !important; }
}

/* Single product mobile */
@media (max-width: 768px) {
    .single-product div.product div.images,
    .single-product div.product div.summary {
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* Empty cart mobile */
@media (max-width: 600px) {
    .al-empty-container { padding-top: 100px !important; align-items: flex-start !important; min-height: 80vh !important; }
    .al-empty-card { padding: 40px 20px !important; border-radius: 20px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important; }
    .al-empty-title { font-size: 26px !important; line-height: 1.2 !important; }
    .al-btn-primary, .al-btn-secondary { width: 100% !important; justify-content: center !important; padding: 16px 20px !important; }
}

/* Notifications mobile */
@media (max-width: 600px) {
    .woocommerce-message, .woocommerce-info, .woocommerce-error { flex-direction: column; text-align: center; }
    .woocommerce-message .button { width: 100%; margin: 0 !important; }
}

/* Buy-box mobile */
@media (max-width: 480px) {
    .al-current-price { font-size: 30px !important; }
    .al-buy-box { padding: 18px 18px 16px !important; }
    body.single-product form.cart { padding: 0 18px 18px !important; }
}

/* ============================================================
   12. МЕГАМЕНЮ «КАТАЛОГ»
   ============================================================ */

/* Кнопка-триггер в меню */
.al-mega-item { position: static !important; }

/* Высокая специфичность чтобы перебить стили Astra */
.main-header-bar .al-mega-trigger,
.ast-primary-menu .al-mega-trigger,
header .al-mega-trigger,
.al-mega-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 24px 12px 18px !important;
    background: #1d4e46 !important;
    border-radius: 10px !important;
    font-size: 1.1em !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s !important;
    white-space: nowrap !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.main-header-bar .al-mega-trigger:hover,
.main-header-bar .al-mega-trigger.is-active,
.al-mega-trigger:hover,
.al-mega-trigger.is-active {
    background: #276563 !important;
    color: #ffffff !important;
}

.al-burger-svg { flex-shrink: 0 !important; }

/* Панель мегаменю — рендерится в <body> через wp_footer, вне шапки */
#al-mega-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    background: #f8fafa !important;
    border-top: 3px solid #276563 !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12) !important;
    padding: 40px 48px !important;
    box-sizing: border-box !important;
}

/* Внутренняя сетка — на всю ширину панели */
.al-mega-inner {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 2.2fr 1fr 1fr 1fr !important;
    gap: 48px !important;
}

/* Заголовок колонки */
.al-mega-heading {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #1d4e46 !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #ddeeed !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Цветные иконки колонок */
.al-mega-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
}

.al-icon-orange { background: #fff0e4 !important; color: #e07a3e !important; }
.al-icon-green  { background: #e8f5ec !important; color: #2e9955 !important; }
.al-icon-blue   { background: #e8f0fb !important; color: #3f72c0 !important; }
.al-icon-pink   { background: #fce8f0 !important; color: #c0456e !important; }

/* Два под-столбца в колонке Назначение */
.al-mega-two-cols {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 24px !important;
}

/* Список ссылок */
.al-mega-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.al-mega-list li { margin: 0 !important; padding: 0 !important; }

.al-mega-list a {
    display: block !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #2d3035 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    transition: background 0.15s, color 0.15s !important;
}

.al-mega-list a:hover {
    background: #e2efee !important;
    color: #1d4e46 !important;
}

/* ==========================================
   ТОТАЛЬНЫЙ БЛОК ГОРИЗОНТАЛЬНОГО СКРОЛЛА
   ========================================== */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
}

/* Блокируем скролл на главных обертках темы Astra */
#page, .site, .site-content {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ==========================================
   МОБИЛЬНАЯ КОМПАКТИЗАЦИЯ КАРТОЧЕК (МАКСИМУМ ОБЪЕМА)
   ========================================== */

@media (max-width: 768px) {
    /* 1. Паддинги карточки */
    .woocommerce ul.products li.product, 
    .woocommerce-page ul.products li.product,
    .ast-woocommerce-container ul.products li.product {
        padding: 16px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        border-radius: 14px !important;
    }

    /* 2. ДЕЛАЕМ КАРТИНКУ ЕЩЕ КРУПНЕЕ (Подняли до 240px!) */
    .woocommerce ul.products li.product .woocommerce-LoopProduct-link img,
    .woocommerce-page ul.products li.product .woocommerce-LoopProduct-link img {
        height: 240px !important; /* Вот теперь товар будет виден во всей красе */
        margin-bottom: 12px !important;
    }

    /* 3. Возвращаем аккуратный заголовок (чтобы не прыгал) */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #2d2f33 !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    /* 4. ЦЕНА: ЖЕСТКИЙ ФИКС ОТСТУПА ДЛЯ "BYN" ВЕЗДЕ */
    .woocommerce ul.products li.product .price-wrapper {
        gap: 6px 12px !important;
    }
    
    .woocommerce ul.products li.product .price-wrapper ins {
        font-size: 21px !important;
    }

    /* ЖЕСТКИЙ ФИКС BYN: Заставляем отступ работать и в новой, и в старой цене */
    .woocommerce ul.products li.product .price-wrapper bdi .woocommerce-Price-currencySymbol,
    .woocommerce ul.products li.product .price-wrapper ins .woocommerce-Price-currencySymbol,
    .woocommerce ul.products li.product .price-wrapper del .woocommerce-Price-currencySymbol {
        margin-left: 0px !important; /* Гарантированный зазор для BYN везде */
        display: inline-block !important;
    }

    .woocommerce ul.products li.product .price-wrapper .old-price-group {
        gap: 0px !important;
    }

    /* Плашка скидки */
    .woocommerce ul.products li.product .price-wrapper .old-price-group .discount-badge {
        font-size: 20px !important;
        font-weight: 500 !important;
        padding: 3px 8px !important;
    }

    /* 5. Краткое описание */
    .woocommerce ul.products li.product .ast-woo-shop-product-description {
        font-size: 11px !important;
        margin-bottom: 15px !important;
        max-height: 48px !important; 
    }

    /* 6. Кнопка корзины */
    .woocommerce ul.products li.product .button {
        height: 42px !important;
        font-size: 13px !important;
        border-radius: 25px !important;
    }
}


/* ============================================================
   13. МЕГАМЕНЮ — МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================================ */

@media (max-width: 900px) {
    #al-mega-panel {
        padding: 24px 20px !important;
        overflow-y: auto !important;
        max-height: calc(100vh - 70px) !important;
    }

    .al-mega-inner {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .al-mega-two-cols {
        grid-template-columns: 1fr 1fr !important;
        gap: 0 12px !important;
    }

    .al-mega-list a {
        font-size: 15px !important;
        padding: 5px 8px !important;
    }

    .al-mega-heading {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 480px) {
    #al-mega-panel {
        padding: 16px !important;
    }

    .al-mega-two-cols {
        grid-template-columns: 1fr !important;
    }

    .al-mega-list a {
        font-size: 14px !important;
    }
}

/* ============================================================
   14. КАРТОЧКИ ТОВАРОВ НА ГЛАВНОЙ — МОБИЛЬНЫЙ ФИХ
   ============================================================ */

/* 1 колонка для шорткода [products columns="4"] на любой странице */
@media (max-width: 768px) {
    .woocommerce ul.products.columns-4,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-2 {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    /* Цена — уменьшаем и разрешаем перенос */
    .woocommerce ul.products li.product .price {
        flex-wrap: wrap !important;
        gap: 4px 10px !important;
    }

    .woocommerce ul.products li.product .price ins,
    .woocommerce ul.products li.product .price > .woocommerce-Price-amount {
        font-size: 26px !important;
    }

    .woocommerce ul.products li.product .price del {
        font-size: 15px !important;
    }
}

/* === Категории: запрет переносов в заголовках === */
.artlife-categories .category-title,
h3.category-title {
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}
@media (max-width: 480px) {
    .artlife-categories .category-title { font-size: 1.35rem !important; }
}

/* === Центровка блока популярных товаров на главной === */
.woocommerce ul.products {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* === Центровка блока популярных товаров (замена float на grid) === */
.page-id-1670 .woocommerce.columns-4 {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}
.page-id-1670 .woocommerce ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
.page-id-1670 .woocommerce ul.products.columns-4 li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* === ГЛАВНАЯ: секция "Хиты продаж" [artlife_hits] === */
.artlife-hits {
    max-width: 1280px;
    margin: 0 0 60px;
    padding: 0;
    box-sizing: border-box;
}
.artlife-hits__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1d4e46;
    text-align: center;
    margin-bottom: 32px;
}
.artlife-hits__woo {
    width: 100%;
}
/* === artlife-hits: брейкпоинты как у каталога === */
.artlife-hits ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 1400px) {
    .artlife-hits ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
    .artlife-hits ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
    .artlife-hits ul.products { grid-template-columns: 1fr !important; }
}
/* === ГЛАВНАЯ: полноширинный контейнер (как каталог) === */
body.home .ast-container {
    max-width: none !important;
    padding-left: 8% !important;
    padding-right: 8% !important;
}
/* Снимаем Astra block-layout ограничение 1200px с нашего блока */
body.home section.artlife-hits {
    max-width: none !important;
    width: 100% !important;
}
/* === ХЛЕБНЫЕ КРОШКИ НА СТРАНИЦАХ === */
.al-breadcrumb {
    justify-content: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a8c96;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.al-breadcrumb a {
    color: #76d9bd;
    text-decoration: none;
    transition: color 0.2s;
}
.al-breadcrumb a:hover { color: #276563; }
.al-breadcrumb > * { margin: 0 !important; }
.al-breadcrumb-sep {
    margin: 0 8px;
    color: #c0c4cc;
}
.al-breadcrumb-current {
    color: #8a8c96;
}
/* === СТРАНИЦА: ПРАВОВАЯ ИНФОРМАЦИЯ === */
.page-id-6902 .entry-title { display: none; }

.al-legal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 700px;
    margin: 0 0 60px;
}
.al-legal-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    background: #fff;
    border: 1px solid #edf0f0;
    border-radius: 14px;
    text-decoration: none;
    color: #2b2c2e;
    transition: all 0.25s ease;
}
.al-legal-item:hover {
    border-color: #1d4e46;
    box-shadow: 0 4px 20px rgba(29,78,70,0.08);
    transform: translateX(4px);
}
.al-legal-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #e3f2f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}
.al-legal-item:hover .al-legal-icon { background: #1d4e46; }
.al-legal-icon svg { width: 22px; height: 22px; fill: #1d4e46; transition: fill 0.25s; }
.al-legal-item:hover .al-legal-icon svg { fill: #fff; }
.al-legal-name {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
}
.al-legal-badge {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #76d9bd;
    background: #e3f2f0;
    padding: 3px 8px;
    border-radius: 6px;
}.al-legal-badge { text-decoration: none !important; }

/* === КНОПКА «ЗАГРУЗИТЬ ЕЩЁ» === */
.al-loadmore-wrap {
    text-align: center;
    padding: 32px 0 48px;
}
.al-loadmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1d4e46;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.al-loadmore-btn:hover:not(:disabled) {
    background: #276563;
    transform: translateY(-1px);
}
.al-loadmore-btn:disabled { opacity: 0.7; cursor: default; }
.al-loadmore-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: al-spin 0.7s linear infinite;
}
@keyframes al-spin { to { transform: rotate(360deg); } }
/* Шапка на главной остаётся центрированной */
body.home .main-header-bar .ast-container,
body.home .site-header .ast-container {
    max-width: 1240px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}