/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/








/* ==============================================================
   КАСТОМНАЯ КАРТОЧКА ТОВАРА (ДИЗАЙНЕРСКИЙ СВЕТ)
   ============================================================== */

/* --- Сетка Hero --- */
.final-v3-layout { max-width: 1300px; margin: 20px auto; padding: 0 15px; }
.product-hero-row { display: flex; gap: 40px; align-items: flex-start; }
.info-card { flex: 0 0 45%; }

/* Фото */
.ast-woocommerce-container div.product div.images { width: 90% !important;}
.woocommerce-product-gallery img { border-radius: 10px; width: 100% !important; }

/* Отступ от шапки */
.product-template-default #primary .ast-woocommerce-container {max-width: 1400px !important; }

/* Мета и Заголовок */
.custom-sku-row { font-size: 13px; color: #999; margin-bottom: 0px!important; text-transform: uppercase; }
.custom-sku-row .sku { color: #333; font-weight: 700; }
.price-wrapper .price { font-size: 30px !important; font-weight: 700; color: #000; margin-bottom: 0px!important; display: block; }

/* --- Ряд кнопок (Наличие + Файлы) --- */
.acf-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
    align-items: center;
}

.mini-dl-btn, .stock-badge {
    height: 36px;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.mini-dl-btn {
    background: #f5f5f5;
    color: #333 !important;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.mini-dl-btn:hover { background: #000; color: #fff !important; }

.stock-badge { background: #f2f9f4; color: #28a745; border: 1px solid #d4edda; }
.stock-badge.out-of-stock { background: #fff3e0; color: #ef6c00; border-color: #ffe0b2; }

.status-dot {
    width: 6px; height: 6px; background-color: currentColor; border-radius: 50%;
    margin-right: 8px; display: inline-block;
}

/* --- Кнопка расчета проекта --- */
.project-calc-wrapper { margin-top: 15px; }
.btn-project-calc {
    display: flex; align-items: center; justify-content: center; width: 100%;
    padding: 14px; background: #fff; color: #000; border: 1px solid #e5e5e5;
    border-radius: 4px; font-size: 13px; font-weight: 700; text-transform: uppercase;
    text-decoration: none; transition: 0.2s;
}
.btn-project-calc:hover { border-color: #000; background: #fafafa; }
.btn-project-calc svg { margin-right: 10px; }

/* --- Блок доверия --- */
.trust-badges-row {
    display: flex; justify-content: space-between; margin-top: 25px;
    padding-top: 20px; border-top: 1px solid #eee; gap: 10px;
}
.trust-badge { display: flex; flex-direction: column; align-items: center; text-align: center; width: 32%; }
.trust-badge span { font-size: 10px; color: #777; margin-top: 8px; line-height: 1.3; font-weight: 500; text-transform: uppercase; }

/* --- Характеристики и описание --- */
.specs-block { padding: 40px; background: #fafafa; border-radius: 15px;}
.specs-grid-v3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 60px; }
.spec-item { display: flex; align-items: baseline; font-size: 14px; }
.spec-name { color: #888; white-space: nowrap; }
.spec-dots { flex-grow: 1; border-bottom: 1px dotted #ccc; margin: 0 10px; }
.bottom-split-v3 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; border-top: 1px solid #eee; padding-top: 40px; }

/* Фикс: Скрытие лишних характеристик и центрирование кнопки */
.spec-extra { display: none; }
.specs-more-btn {
    display: block;
    margin: 25px auto 0;
    padding: 10px 24px;
    background: transparent;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.specs-more-btn:hover { background: #000; color: #fff; border-color: #676767; }

/* --- Системные фиксы Astra/Woo --- */
.ast-woocommerce-container > .product-title-wrap { display: none !important; }
.summary.entry-summary h1.product_title { display: block !important; line-height: 1.2; margin-bottom: 10px; }
.woocommerce-variation-price { display: none !important; }
.related.products ul.products, .up-sells ul.products { display: block !important; }

/* --- Мобильная версия и липкая кнопка --- */
@media screen and (max-width: 991px) {
    .product-hero-row, .bottom-split-v3, .specs-grid-v3 { display: flex; flex-direction: column; }
    .info-card { width: 100%; }
}

@media screen and (max-width: 768px) {
    .single_variation_wrap {
        position: fixed; bottom: 0; left: 0; width: 100%;
        background: #fff; padding: 12px 20px; z-index: 9999;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.07);
    }
    body.single-product { padding-bottom: 100px; }
    .woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: center; }
    .woocommerce-variation-add-to-cart button { flex-grow: 1; margin: 0 !important; }
}

/*Другие исправления*/
.single_variation_wrap {gap:0px!important}
.owl-carousel.owl-loaded {grid-template-columns: auto!important;}

/* Ряд заголовка и логотипа */
.title-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0px;
}

.title-brand-row h1 {
    margin-bottom: 0 !important;
    flex: 1;
}

/* Обновленное оформление логотипа производителя у заголовка */
.brand-logo-wrapper {
    height: 40px; /* Чуть выше, чтобы соответствовать весу заголовка */
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-logo-wrapper p { margin: 0; display: flex; align-items: center; }

.brand-logo-wrapper img {
    max-height: 35px;
    width: auto;
    object-fit: contain;
    /* Убрал grayscale, раз логотип теперь акцентный у названия */
    opacity: 0.9;
}

.brand-logo-wrapper:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Адаптив для мобилок */
@media screen and (max-width: 600px) {
    .title-brand-row {
        flex-direction: column;
        gap: 10px;
    }
    .brand-logo-wrapper {
        align-self: flex-start;
        height: 32px;
    }
}

/* Оформление копирования артикула */
.copy-sku-wrapper {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}
.copy-sku-wrapper:hover { background: #e8e8e8; }
.copy-sku-wrapper:hover .sku { color: #000; }
.copy-icon { color: #aaa; }
.copy-sku-wrapper:hover .copy-icon { color: #000; }

.copy-tooltip {
    position: absolute;
    font-size: 11px;
    color: #28a745;
    margin-left: 10px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.copy-tooltip.show { opacity: 1; transform: translateY(0); }


/* --- Блок наличия в салонах (Дизайнерская карточка) --- */
.showroom-info-card {
    margin-top: 25px;
    background: #f9f9f9; /* Светлый фон как у блока характеристик */
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}

.sr-card-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sr-card-label svg {
    color: #888;
}

.sr-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sr-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    background: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.sr-card-item:hover {
    border-color: #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transform: translateY(-1px);
}

.sr-card-addr {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Зеленая приписка "в салоне" */
.sr-card-badge {
    font-size: 11px;
    font-weight: 700;
    color: #28a745;
    background: #eef9f1;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: lowercase;
}

.sr-card-item:hover .sr-card-addr {
    color: #000;
}

/* Фикс кнопки открытия характеристик (Центрирование) */
.specs-more-btn {
    display: block;
    margin: 30px auto !important; 
    padding: 12px 35px;
    background: #fff;
    border: 1px solid #000;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.specs-more-btn:hover {
    background: #000;
    color: #fff;
}


/* ==============================================================
   КАЛЬКУЛЯТОР СВЕТИЛЬНИКОВ (СТРОГИЙ МИНИМАЛИЗМ)
   ============================================================== */
.st-calc-container {
    background: #fafafa;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #eee;
    box-sizing: border-box;
}

.st-calc-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000;
}

.st-calc-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.4;
}

.st-calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.st-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.st-input-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
}

.st-input-group input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
    color: #000;
}

.st-input-group input:focus {
    border-color: #000;
    outline: none;
}

/* Переключатель яркости */
.st-brightness-group {
    margin-bottom: 25px;
}

.st-brightness-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.st-brightness-toggle {
    display: flex;
    background: #eef0f2;
    border-radius: 8px;
    padding: 4px;
}

.st-brightness-toggle input { display: none; }

.st-brightness-toggle label {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
}

.st-brightness-toggle input:checked + label {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Блок результатов */
.st-calc-results {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #676767;
    overflow: hidden;
}

.st-result-main {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #eee;
}

.st-result-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
}

.st-result-value strong {
    font-size: 36px;
    line-height: 1;
    color: #000;
}

.st-result-value span {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-left: 4px;
}

.st-result-secondary {
    padding: 12px 20px;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.st-result-secondary strong {
    color: #000;
    font-size: 14px;
}

#square-meters {width: 100px!important;max-width:100px!important}
#ceiling-height {width: 100px!important;max-width:100px!important}