/* Поверх теми ThemeForest: перший екран, каталог, мобільна версія.
   Підключається останнім у head.php, тому перекриває style.css і responsive.css. */

:root {
    --brand: rgb(66, 174, 92);
    --brand-dark: #2f8a45;
    --brand-soft: #eaf6ed;
    --ink: #1f2a24;
    --muted: #5f6b64;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(31, 42, 36, .08);
}

h1, h2, h3, h4, h5,
.sec-title h2, .sec-title h3 {
    font-family: 'Manrope', 'Roboto', sans-serif;
    letter-spacing: -0.01em;
}

/* ---------- Шапка ---------- */
.logo-container { cursor: pointer; }
.main-header .beautiful-email {
    border: 1px solid #dfe5e1;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.main-header .beautiful-email:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

/* ---------- Перший екран ---------- */
.hero-intro { margin-bottom: 24px; }
.hero-title {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 16px;
}
.hero-title span { color: var(--brand); display: block; }
.hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 24px;
    max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    transition: transform .15s, box-shadow .15s, background-color .15s;
}
.hero-btn:hover { transform: translateY(-1px); }
.hero-btn-primary { background: var(--brand); color: #fff !important; box-shadow: 0 8px 20px rgba(66, 174, 92, .35); }
.hero-btn-primary:hover { background: var(--brand-dark); }
.hero-btn-secondary { border: 2px solid var(--brand); color: var(--brand) !important; background: #fff; }
.hero-btn-secondary:hover { background: var(--brand-soft); }
.hero-phones { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hero-phones a { color: var(--ink); font-weight: 700; font-size: 17px; white-space: nowrap; }
.hero-phones a::before { content: '\f095'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--brand); font-size: 13px; margin-right: 7px; }
.hero-phones a:hover { color: var(--brand); }

.hero-video {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #eee;
    aspect-ratio: 960 / 482;
}
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

.product-features-section .feature-block-seven h4 { font-size: 20px; line-height: 1.3; }

/* ---------- Каталог ---------- */
.our-shop .shop-item { margin-bottom: 30px; }
.our-shop .shop-item .inner-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #edf0ee;
    border-radius: var(--radius);
    padding: 16px;
    transition: box-shadow .2s, transform .2s;
}
.our-shop .shop-item .inner-box:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
/* image-box розгортаємо, щоб кнопка «В кошик» стала внизу картки, під ціною */
.our-shop .shop-item .image-box { display: contents; }
.our-shop .shop-item .image-box .image { order: 1; }
.our-shop .shop-item .lower-content { order: 2; }
.our-shop .shop-item .image-box .image {
    height: 180px !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.our-shop .shop-item .image-box .image img { max-height: 170px !important; max-width: 100%; object-fit: contain !important; }
.our-shop .shop-item .lower-content { display: flex; flex-direction: column; flex: 1; text-align: left; padding-top: 12px; }
.our-shop .shop-item .lower-content .name { font-size: 15px; line-height: 1.4; margin-bottom: 6px; }
.our-shop .shop-item .lower-content .name a {
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.our-shop .shop-item .lower-content .name a:hover { color: var(--brand); }
.our-shop .shop-item .lower-content > div:not(.price) { color: #9aa39e; font-size: 13px; }
.our-shop .shop-item .lower-content .price { margin-top: auto; padding-top: 8px; font-size: 20px; font-weight: 800; color: var(--brand); }
.our-shop .shop-item .image-box .modal-btn { order: 3; width: 100%; margin-top: 14px !important; }

/* ---------- Плаваюча кнопка дзвінка (мобільні) ---------- */
.call-fab { display: none; }

@media (max-width: 991px) {
    .hero-title { font-size: 30px; }
    .hero-lead { font-size: 16px; }
    .hero-main { margin-bottom: 30px; }

    /* Послуги 2×2 замість стовпчика великих кругів */
    .hero-services .inner-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .hero-services .feature-block-seven { margin: 0; }
    .hero-services .feature-block-seven .inner-box {
        padding: 16px 12px !important;
        min-height: 0 !important;
        background: #fff;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        text-align: center;
    }
    .hero-services .feature-block-seven .icon {
        position: static !important;
        width: 56px !important;
        height: 56px !important;
        line-height: 56px !important;
        font-size: 26px !important;
        margin: 0 auto 10px !important;
    }
    .hero-services .feature-block-seven h4 { font-size: 15px !important; margin-bottom: 6px; }
    .hero-services .feature-block-seven .text { font-size: 13px; line-height: 1.45; }

    .call-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 16px;
        bottom: 16px;
        z-index: 999;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: var(--brand);
        color: #fff !important;
        font-size: 24px;
        box-shadow: 0 8px 24px rgba(66, 174, 92, .45);
    }
}

@media (max-width: 575px) {
    .hero-title { font-size: 26px; }
    .hero-actions .hero-btn { flex: 1 1 100%; justify-content: center; }
    .hero-phones { justify-content: center; }
    .our-shop .shop-item { flex: 0 0 50%; max-width: 50%; padding: 0 6px; margin-bottom: 12px; }
    .our-shop .shop-item .inner-box { padding: 10px; }
    .our-shop .shop-item .image-box .image { height: 120px !important; }
    .our-shop .shop-item .image-box .image img { max-height: 115px !important; }
    .our-shop .shop-item .lower-content .price { font-size: 17px; }
    .our-shop .shop-item .image-box .modal-btn { font-size: 12px; padding: 6px 8px 4px; }
}

/* ---------- Форма консультації ---------- */
#email-form .order-required { color: #e53935; }
#email-form textarea { height: 120px !important; }
#email-form input::placeholder, #email-form textarea::placeholder { color: #b0b6ba; opacity: 1; }
#email-form .response .success { color: var(--brand-dark); font-weight: 600; }

/* відступ між меню і заголовком на десктопі */
@media (min-width: 992px) { .hero-intro { padding-top: 24px; } }
/* каталог на мобільному: менші проміжки між рядками */
@media (max-width: 575px) { .our-shop .shop-item .inner-box { margin-bottom: 0; } }

.contact-map-section .contact-block a { color: var(--ink); font-weight: 600; }
.contact-map-section .contact-block a:hover { color: var(--brand); }

/* ---------- Сторінка товару ---------- */
.product-page { margin-top: 40px; padding-bottom: 60px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin: 0 8px; color: #c5ccc8; }

.product-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #edf0ee;
    border-radius: var(--radius);
    padding: 20px;
    cursor: zoom-in;
}
.product-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.product-thumbs a {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #edf0ee;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    transition: border-color .15s;
}
.product-thumbs a:hover { border-color: var(--brand); }
.product-thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-title { font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.product-sku { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.product-sku strong { color: var(--ink); }
.product-price { font-family: 'Manrope', sans-serif; font-size: 34px; font-weight: 800; color: var(--brand); margin-bottom: 20px; }

.product-buy { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.product-qty { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.product-qty input {
    width: 80px;
    height: 48px;
    border: 1px solid #dfe5e1;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}
.product-qty input:focus { outline: none; border-color: var(--brand); }
.theme-btn.product-add {
    height: 48px;
    padding: 0 30px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0;
    box-shadow: 0 8px 20px rgba(66, 174, 92, .3);
}
.theme-btn.product-add:hover { background: var(--brand-dark); color: #fff; }

.product-help { background: var(--brand-soft); border-radius: var(--radius); padding: 20px 22px; }
.product-help-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.product-help p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.product-help-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.product-help-actions .hero-btn { padding: 11px 22px; font-size: 15px; }
.product-help-alt { color: var(--ink); font-weight: 700; }
.product-help-alt:hover { color: var(--brand); }

.related-products { margin-top: 50px; }
.related-title { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 20px; }
.related-more { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--brand); }
.related-more:hover { color: var(--brand-dark); }

@media (max-width: 767px) {
    .product-main { grid-template-columns: 1fr; gap: 20px; }
    .product-photo { aspect-ratio: 4 / 3; padding: 14px; }
    .product-title { font-size: 21px; }
    .product-price { font-size: 28px; margin-bottom: 16px; }
    .product-buy { margin-bottom: 20px; }
    .theme-btn.product-add { flex: 1; }
}

/* Плаваюча кнопка не повинна перекривати контент унизу сторінки */
@media (max-width: 991px) {
    body { padding-bottom: 80px; }
}
/* На сторінці товару є власний блок із телефоном — плаваюча кнопка там лише заважає */
body:has(.product-page) .call-fab { display: none; }
