/*
Theme Name: Flatsome Child
Description: Child theme for Flatsome
Template: flatsome
*/

/**********************
  BASE
**********************/
:root {
  --accent: #d70000;
  --text: #222;
  --bg: #f5f5f5;
}

body {
  font-family: "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
}

/**********************
  SEARCH FORM
**********************/
.hero-search form select,
.hero-search form input {
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
}

/* пусть браузер сам считает высоту — не фиксируем height,
   только минимальная высота для красоты */
.hero-search form select,
.hero-search form input {
  min-height: 44px;
}

/**********************
  DISABLED STATE
**********************/
.car-search-form select:disabled {
  background: #eee;
  color: #777;
  cursor: not-allowed;
}

/**********************
  CAR SPECS (как было)
**********************/
.car-specs li {
  background:#fafafa;
  border:1px solid #eee;
  border-radius:8px;
  padding:8px 10px;
}

.car-specs-box {
  background:#fafafa;
  border:1px solid #eee;
  border-radius:12px;
  padding:16px;
  margin-top:20px;
}

.car-specs-grid .spec-item {
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px;
}

.car-specs-grid i {
  color:#d70000;
  min-width:16px;
}
.quick-view {
    display: none !important;
}

        /* Обёртка */
        .price-faq-box {
            margin-top: 18px;
            font-size: 15px;
            color: #333;
            border-radius: 10px;
            overflow: hidden;
			max-width: 420px; /* ✔ выравнивание по ширине линии цены */
        }

        /* Кнопка */
        .price-faq-toggle {
            cursor: pointer;
            padding: 14px 16px;
            background: linear-gradient(90deg,#f3f3f3,#efefef);
            border: 1px solid #d8d8d8;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-radius: 10px;
            font-weight: 600;
            transition: background .25s ease, border-radius .35s ease;
            user-select: none;
			line-height: 1.45;
        }

        .price-faq-toggle:hover {
            background: linear-gradient(90deg,#ededed,#e8e8e8);
        }

        /* SVG стрелка */
        .price-faq-arrow {
            width: 18px;
            height: 18px;
            transition: transform .35s cubic-bezier(.25,.46,.45,1.4);
            opacity: .8;
        }

        .price-faq-toggle.active .price-faq-arrow {
            transform: rotate(180deg);
            opacity: 1;
        }

        /* Контент */
        .price-faq-content {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            padding: 0 16px;
            background: #fafafa;
            border-left: 1px solid #dcdcdc;
            border-right: 1px solid #dcdcdc;
            border-bottom: 1px solid #dcdcdc;
			    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto; /* ✔ перенос по словам */
    text-align: left;

            /* анимации */
            transition:
                max-height .45s cubic-bezier(.25,.46,.45,1),
                opacity .45s ease .05s,
                padding .45s ease,
                box-shadow .45s ease;
        }

        .price-faq-content.open {
            opacity: 1;
            max-height: 500px;
            padding: 16px 16px 20px;
            box-shadow: inset 0 8px 20px rgba(0,0,0,0.06);
            border-radius: 0 0 10px 10px;
        }

        /* Пункт текста */
        .price-faq-content > div {
            margin-bottom: 8px;
            line-height: 1.55;
			
        }

        /* Градиент-разделитель */
        .price-faq-divider {
            height: 1px;
            margin: 10px 0;
            background: linear-gradient(
                90deg,
                rgba(0,0,0,0) 0%,
                rgba(0,0,0,0.15) 50%,
                rgba(0,0,0,0) 100%
            );
			
        }
      .dc-action-row{
        margin-top:14px;
        max-width:420px;
        display:flex;
        gap:12px;
        flex-wrap:wrap;
        align-items:stretch;
      }
      .dc-action-row a{
        flex:1 1 180px;              /* в линию, но с переносом если узко */
        display:flex;
        align-items:center;
        justify-content:center;
        text-align:center;
        padding:12px 16px;
        font-size:15px;
        border-radius:10px;
        text-decoration:none;
        font-weight:700;
        color:#fff;
        box-shadow:0 4px 14px rgba(0,0,0,0.15);
        transition:transform .15s ease, filter .15s ease;
        line-height:1.2;
      }
      .dc-action-row a:hover{ transform: translateY(-1px); filter:brightness(.98); }
      .dc-action-row a:active{ transform: scale(.99); }
.dc-action-row a.dc-btn-encar{
  background-color:#25D366;
}
.dc-action-row a.dc-btn-wa{
  background-color:#d70000;
}
		.dc-action-row a.dc-btn-encar:hover{
  background-color:#1ebe5d;
}
.dc-action-row a.dc-btn-wa:hover{
  background-color:#b30000;
}


      @media (max-width: 480px){
        .dc-action-row a{ flex:1 1 100%; } /* на мобиле в столбик */
      }

/* === TOGGLE CALCULATOR === */
.customs-toggle-box {
    margin-top: 16px;
    max-width: 420px;
    border-radius: 14px;
    overflow: hidden;
    background: #f7f7f7; /* 👈 фон всего блока */
    box-shadow: 0 8px 26px rgba(0,0,0,0.08);
}

/* КРАСНАЯ КНОПКА */
.customs-toggle-btn {
    background: linear-gradient(90deg, #d70000, #b30000);
    color: #fff;
    padding: 15px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-radius: 14px;
    user-select: none;
    font-size: 15px;
}

/* стрелка */
.customs-toggle-btn svg {
    width: 18px;
    height: 18px;
    transition: transform .3s ease;
}

/* поворот стрелки */
.customs-toggle-btn.active svg {
    transform: rotate(180deg);
}

/* СКРЫТЫЙ КОНТЕНТ */
.customs-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 18px;
    background: #ffffff; /* 👈 фон раскрытого блока */
    transition: 
        max-height .4s ease,
        opacity .3s ease,
        padding .3s ease;
}

/* РАСКРЫТЫЙ */
.customs-content.open {
    max-height: 2000px;
    opacity: 1;
    padding: 18px;
    border-top: 1px solid #eee;
}
.customs-content label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}

.customs-content input,
.customs-content select {
    width: 100%;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-bottom: 12px;
}

.customs-content input:focus,
.customs-content select:focus {
    outline: none;
    border-color: #d70000;
    box-shadow: 0 0 0 2px rgba(215,0,0,0.12);
}
	.customs-calc-btn {
    width: 100%;
    background: linear-gradient(90deg, #d70000, #b30000);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 18px rgba(215,0,0,0.25);
}

.customs-calc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(215,0,0,0.35);
}

.customs-calc-btn:active {
    transform: scale(0.98);
}
	.customs-toggle-box .customs-calc-btn {
    width: 100%;
    background: linear-gradient(90deg, #d70000, #b30000);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(215,0,0,0.25);
}

.customs-toggle-box .customs-calc-btn:hover {
    background: linear-gradient(90deg, #c40000, #a80000);
}
.customs-content select {
    height: 40px;
    line-height: normal;
    padding: 8px 10px;
}
	.customs-toggle-box .customs-calc-btn {
    padding: 9px 14px;
    font-size: 14px;
    border-radius: 9px;
}
	/* ===== EMPTY STATE ===== */
.no-products {
    list-style: none;
    padding: 40px 20px;
    margin: 20px 0;
    text-align: center;

    font-size: 18px;
    font-weight: 500;
    color: #666;

    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 12px;
}

/**********************
  MOBILE
**********************/
@media only screen and (max-width: 48em) {
  .hero-search form select,
  .hero-search form input {
    font-size: 16px;
  }
}
/* === Фиксированная кнопка WhatsApp на мобильных === */
.fixed-wa-button {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    background: #d70000;
    color: #fff !important;
    padding: 14px 0;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-decoration: none !important;
    z-index: 99999;
}

/* показывать только на мобилках */
@media (max-width: 768px) {
    .fixed-wa-button {
        display: block;
    }
}

/* Убираем flex от Flatsome */
.row .products {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 3 колонки */
@media (max-width: 1400px) {
    .row .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 колонки */
@media (max-width: 900px) {
    .row .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 колонка */
@media (max-width: 600px) {
    .row .products {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Убираем Flatsome ширину li */
.row .products li.product {
    width: 100% !important;
    margin: 0 !important;
}
.woocommerce-product-gallery__image img,
.flickity-slider img {
    object-fit: contain !important;
}

