/* ==========================================================================
   custom.css — нашите промени по дизайна на Ecomus за Banizona.
   Зарежда се след всички CSS файлове на шаблона, затова правилата тук надделяват.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Снимките на продуктите винаги в квадрат
   --------------------------------------------------------------------------
   Снимката се вписва изцяло в квадрата (contain), без да се реже,
   а празното място отстрани/отгоре е бяло. Така и вертикалните (душ кабини),
   и хоризонталните (вани) снимки изглеждат еднакво подредени.
   Ако предпочиташ снимката да запълва целия квадрат и да се реже по краищата,
   смени "contain" на "cover" на трите места, отбелязани с ★.               */

/* Картите в каталога, търсенето и началната страница */
.card-product .card-product-wrapper {
    aspect-ratio: 1 / 1;
    height: auto;
    background: #fff;
}

.card-product .card-product-wrapper .product-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.card-product .card-product-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* ★ */
    background: #fff;
}

/* Страницата на продукта: голямата снимка и малките отстрани.
   !important е нужен, защото шаблонът задава на тези снимки фиксирана височина
   и изрязване (cover), което реже вертикалните и хоризонталните снимки. */
.tf-product-media-main .swiper-slide,
.tf-product-media-thumbs .swiper-slide {
    height: auto !important;
}

.tf-product-media-main .swiper-slide .item,
.tf-product-media-thumbs .swiper-slide .item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
    border-radius: 12px;
}

.tf-product-media-main .swiper-slide .item img,
.tf-product-media-thumbs .swiper-slide .item img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important; /* ★ */
    background: #fff;
}

.tf-product-media-thumbs .swiper-slide .item {
    border: 1px solid #eef0f2;
    border-radius: 8px;
}

/* Количката (страницата и малката отстрани) */
.tf-mini-cart-image,
.tf-cart-item_product .img-box {
    aspect-ratio: 1 / 1;
    height: auto;
    background: #fff;
    overflow: hidden;
}

.tf-mini-cart-image img,
.tf-cart-item_product .img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ★ */
    background: #fff;
}


/* --------------------------------------------------------------------------
   2. Голямото меню с категориите: компактно, с малка снимка до всяка категория
   -------------------------------------------------------------------------- */
.header-default .mega-menu {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
}

.mega-menu .mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 22px;
    max-height: 72vh;
    overflow-y: auto;
    padding: 2px 4px;
    text-align: left;
}

.mega-menu .mega-cat {
    padding: 6px;
    border-radius: 10px;
    transition: background-color .2s ease;
}

.mega-menu .mega-cat:hover {
    background: #f6f7f9;
}

/* снимка + име на категорията на един ред */
.mega-menu .mega-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.mega-menu .mega-cat-img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.mega-menu .mega-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mega-menu .mega-cat-letter {
    font-weight: 700;
    font-size: 18px;
    opacity: .4;
}

.mega-menu .mega-cat-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-transform: none;
}

.mega-menu .mega-cat-link:hover .mega-cat-title {
    text-decoration: underline;
}

/* подкатегориите: по-малки, подравнени под името (след снимката) */
.mega-menu .mega-cat-sub {
    margin: 4px 0 0;
    padding: 0 0 0 54px;
    list-style: none;
}

.mega-menu .mega-cat-sub li {
    margin: 0;
    line-height: 1.3;
}

.mega-menu .mega-cat-sub a {
    display: inline-block;
    padding: 3px 0;
    font-size: 13.5px;
    color: #555;
}

.mega-menu .mega-cat-sub a:hover {
    color: #000;
}

@media (max-width: 1399px) {
    .mega-menu .mega-menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Менюто на телефон: трето ниво с отстъп */
.sub-menu-level-2 {
    padding-left: 14px;
}


/* --------------------------------------------------------------------------
   3. Карта на продукт и страница на продукт
   -------------------------------------------------------------------------- */
.card-product .card-product-info .product-code {
    font-size: 12px;
    opacity: .6;
}

.tf-product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.tf-product-specs th,
.tf-product-specs td {
    padding: 10px 12px;
    border-bottom: 1px solid #ebebeb;
    text-align: left;
    vertical-align: top;
}

.tf-product-specs th {
    width: 40%;
    font-weight: 600;
}


/* --------------------------------------------------------------------------
   4. Картите на продуктите: заоблени, с лека сянка, повдигат се при посочване
   -------------------------------------------------------------------------- */
.tf-grid-layout {
    gap: 20px;
}

.card-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.card-product:hover {
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    transform: translateY(-4px);
}

/* снимката вътре в картата също е със заоблени ъгли */
.card-product .card-product-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.card-product .card-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding: 12px 4px 4px;
}

/* заглавието е до 3 реда, за да са картите еднакво високи */
.card-product .card-product-info .title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    font-size: 14px;
}

/* цената винаги най-долу в картата */
.card-product .card-product-info .price {
    margin-top: auto;
    padding-top: 6px;
    font-weight: 600;
}

/* етикетът с отстъпката */
.card-product .on-sale-wrap .on-sale-item {
    border-radius: 999px;
}

/* на телефон без повдигане и с по-малки отстояния */
@media (max-width: 767px) {
    .tf-grid-layout {
        gap: 12px;
    }

    .card-product {
        padding: 8px;
        border-radius: 12px;
    }

    .card-product:hover {
        transform: none;
    }
}


/* --------------------------------------------------------------------------
   5. Началната страница: секции по категории с по 12 продукта
   -------------------------------------------------------------------------- */
.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f2;
}

.home-section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* 12 продукта: 6 в ред на голям екран (2 реда), по-малко на по-тесните */
.home-products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1399px) {
    .home-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .home-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .home-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .home-section-title { font-size: 19px; }
}


/* --------------------------------------------------------------------------
   6. Горното меню: повече място за пунктовете (до 6 категории + Каталог)
   --------------------------------------------------------------------------
   В layout-а логото и иконите са по-тесни (col-xl-2), а менюто по-широко (col-xl-8).
   Менюто започва малко след логото (отстъп отляво), за да не опира в него,
   а на по-тесни екрани дългите имена минават на два реда.                   */
.header-default .box-navigation {
    padding-left: 32px;
}

.header-default .box-nav-ul {
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    gap: 24px !important;
}

.header-default .box-nav-ul .item-link {
    white-space: nowrap;
    font-size: 15px;
}

@media (max-width: 1599px) {
    .header-default .box-nav-ul {
        gap: 16px !important;
    }

    .header-default .box-nav-ul .item-link {
        white-space: normal;
        max-width: 135px;
        line-height: 1.2;
        font-size: 14px;
        text-align: left;
    }
}

@media (max-width: 1299px) {
    .header-default .box-navigation {
        padding-left: 20px;
    }

    .header-default .box-nav-ul {
        gap: 12px !important;
    }

    .header-default .box-nav-ul .item-link {
        font-size: 13px;
        max-width: 115px;
    }
}

/* --------------------------------------------------------------------------
   7. Логото горе: да не се застъпва с менюто
   -------------------------------------------------------------------------- */
.header-default .logo-header {
    display: block;
    max-width: 100%;
}

.header-default .logo-header img.logo {
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}


/* --------------------------------------------------------------------------
   8. Бързата поръчка: полетата едно под друго
   -------------------------------------------------------------------------- */
#quick-order-form {
    display: grid;
    gap: 10px;
}

#quick-order-form input,
#quick-order-form textarea {
    width: 100%;
    border-radius: 8px;
}

#quick-order-form textarea {
    resize: vertical;
    min-height: 80px;
}


/* --------------------------------------------------------------------------
   9. „Безплатна доставка“ върху картата и в страницата на продукта
   -------------------------------------------------------------------------- */
.card-product .card-product-wrapper .free-shipping-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: #1a7f37;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.free-shipping-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 8px 14px;
    font-weight: 600;
    color: #1a7f37;
    background: #eaf6ee;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .card-product .card-product-wrapper .free-shipping-badge {
        font-size: 10.5px;
        padding: 3px 8px;
    }
}


/* --------------------------------------------------------------------------
   10. Страницата на продукта: срок на доставка и текстовете под бутоните
   -------------------------------------------------------------------------- */
.delivery-time-line {
    margin-top: 6px;
    font-size: 15px;
}

.product-notes {
    display: grid;
    gap: 12px;
    margin-top: 6px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.55;
    background: #f7f8fa;
    border-radius: 12px;
}

.product-notes:empty {
    display: none;
}

.product-notes .product-note p:last-child {
    margin-bottom: 0;
}

.product-notes a {
    text-decoration: underline;
}


/* --------------------------------------------------------------------------
   11. Статична страница на категория (Гранитогрес): .category-landing
   -------------------------------------------------------------------------- */
.category-landing {
    --land-accent: #c8102e;
    --land-dark: #1d2733;
    --land-soft: #f5f6f8;
    color: var(--land-dark);
}

.category-landing section,
.category-landing .pdf-catalogs {
    margin-bottom: 56px;
}

.category-landing h2 {
    margin-bottom: 24px;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}

.category-landing h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

/* плавно показване */
.category-landing .fade1 {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.category-landing .fade1.is-visible {
    opacity: 1;
    transform: none;
}

/* горната част */
.category-landing .hero1 {
    padding: 56px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f7f4ef 0%, #eceff3 100%);
    border-radius: 20px;
}

.category-landing .hero1 h1 {
    margin-bottom: 16px;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
}

.category-landing .promo-bar1 {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 22px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: var(--land-accent);
    border-radius: 999px;
}

.category-landing .hero-description1 {
    max-width: 820px;
    margin: 0 auto 14px;
    font-size: 17px;
    line-height: 1.6;
}

.category-landing .price-text1 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
    color: var(--land-accent);
}

.category-landing .cta-row1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}

.category-landing .btn1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--land-dark);
    border-radius: 999px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-landing .btn1:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.category-landing .btn-phone1 {
    background: #1a7f37;
}

.category-landing .cta-trust1 {
    margin-bottom: 18px;
    font-size: 14px;
    color: #5b6470;
}

.category-landing .cta-text1 {
    max-width: 760px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}

.category-landing .highlight1 {
    font-weight: 700;
    color: var(--land-accent);
}

/* PDF каталози и фирми: карти */
.category-landing .pdf-catalogs,
.category-landing .top-companies1,
.category-landing .reviews-grid1,
.category-landing .faq-grid1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.category-landing .pdf-card,
.category-landing .company-card1,
.category-landing .review1,
.category-landing .faq-item1 {
    padding: 22px;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}

.category-landing .pdf-card {
    text-align: center;
}

.category-landing .pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--land-accent);
    border-radius: 12px;
}

.category-landing .pdf-card a {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
    color: var(--land-accent);
}

.category-landing .company-card1 p,
.category-landing .faq-item1 p,
.category-landing .pdf-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5b6470;
}

/* завършени обекти */
.category-landing .grid1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.category-landing .card1 {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
}

.category-landing .card1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .4s ease;
}

.category-landing .card1:hover img {
    transform: scale(1.05);
}

/* отзиви */
.category-landing .review1 {
    font-size: 18px;
    color: #f2a900;
}

.category-landing .review1 p {
    margin: 10px 0;
    font-size: 15px;
    color: var(--land-dark);
}

.category-landing .review1 span {
    font-size: 14px;
    font-weight: 700;
    color: #5b6470;
}

/* предимства */
.category-landing .features1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-landing .feature1 {
    padding: 10px 18px;
    font-weight: 600;
    background: var(--land-soft);
    border-radius: 999px;
}

.category-landing .feature1::before {
    content: "✓ ";
    color: #1a7f37;
}

/* снимка на цял екран */
.category-landing .lightbox1,
.category-landing .popup-overlay1 {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
}

.category-landing .lightbox1.is-open,
.category-landing .popup-overlay1.is-open {
    display: flex;
}

.category-landing .lightbox-img1 {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}

.category-landing .close1,
.category-landing .nav1 {
    position: absolute;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.category-landing .close1 {
    top: 16px;
    right: 28px;
}

.category-landing .nav1 {
    top: 50%;
    padding: 10px 18px;
    transform: translateY(-50%);
}

.category-landing .left1 {
    left: 10px;
}

.category-landing .right1 {
    right: 10px;
}

/* формата „Вземи оферта“ */
.category-landing .popup-overlay1 {
    background: rgba(0, 0, 0, .55);
}

.category-landing .popup-content1 {
    position: relative;
    width: min(420px, 92vw);
    padding: 30px 26px;
    background: #fff;
    border-radius: 18px;
}

.category-landing .popup-content1 h2 {
    font-size: 24px;
}

.category-landing .close-popup1 {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 30px;
    cursor: pointer;
}

.category-landing #offerForm {
    display: grid;
    gap: 12px;
}

.category-landing #offerForm input {
    padding: 12px 14px;
    border: 1px solid #d9dde2;
    border-radius: 10px;
}

.category-landing #offerForm button {
    padding: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--land-accent);
    border: 0;
    border-radius: 999px;
}

.category-landing #offerForm button:disabled {
    opacity: .6;
}

.category-landing .offer-message.is-ok {
    color: #1a7f37;
}

.category-landing .offer-message.is-error {
    color: var(--land-accent);
}


/* --------------------------------------------------------------------------
   12. Плаващ бутон за обаждане (долу вляво)
   -------------------------------------------------------------------------- */
.sticky-call {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 990;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    color: #fff;
    background: #1a7f37;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sticky-call:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}

.sticky-call-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    animation: sticky-call-ring 2.4s ease-in-out infinite;
}

/* пулсиращ кръг около слушалката */
.sticky-call-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #1a7f37;
    border-radius: 50%;
    animation: sticky-call-pulse 2.4s ease-out infinite;
}

.sticky-call-text {
    padding-right: 14px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

@keyframes sticky-call-ring {
    0%, 60%, 100% { transform: rotate(0); }
    65% { transform: rotate(-14deg); }
    70% { transform: rotate(14deg); }
    75% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
}

@keyframes sticky-call-pulse {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* на телефон: само кръглата слушалка, за да не закрива съдържанието */
@media (max-width: 767px) {
    .sticky-call {
        left: 14px;
        bottom: 80px; /* над долната лента на темата */
    }

    .sticky-call-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sticky-call-icon,
    .sticky-call-icon::after {
        animation: none;
    }
}


/* --------------------------------------------------------------------------
   13. Страница „Не е намерена“ (404)
   -------------------------------------------------------------------------- */
.not-found {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.not-found-code {
    font-size: clamp(90px, 18vw, 170px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
    color: #1d2733;
}

/* нулата е като отводнителен сифон: кръг с „капка“ в средата, който се върти */
.not-found-code span {
    position: relative;
    display: inline-block;
    width: .74em;
    height: .74em;
    margin: 0 .03em;
    overflow: hidden;
    line-height: .74em;
    color: transparent;
    vertical-align: -.02em;
    border: .13em solid #1d2733;
    border-radius: 50%;
    animation: not-found-spin 6s linear infinite;
}

.not-found-code span::after {
    content: "";
    position: absolute;
    top: 18%;
    left: 50%;
    width: .12em;
    height: .12em;
    background: #3b82c4;
    border-radius: 50%;
    transform: translateX(-50%);
}

@keyframes not-found-spin {
    to { transform: rotate(360deg); }
}

.not-found-title {
    margin: 10px 0 12px;
    font-size: 30px;
    font-weight: 700;
}

.not-found-text {
    margin-bottom: 26px;
    font-size: 16px;
    color: #5b6470;
}

.not-found-search {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.not-found-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border: 1px solid #d9dde2;
    border-radius: 999px;
}

.not-found-search .tf-btn {
    gap: 6px;
    border-radius: 999px;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.not-found-subtitle {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.not-found-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.not-found-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    text-align: center;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.not-found-cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

.not-found-cat-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
}

.not-found-cat-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.not-found-cat-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 26px;
    font-weight: 700;
    background: #f5f6f8;
    border-radius: 50%;
}

.not-found-cat-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 575px) {
    .not-found-search {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .not-found-code span {
        animation: none;
    }
}


/* --------------------------------------------------------------------------
   14. Цените: първо цената (оранжева), после старата цена (по-малка, зачертана)
   -------------------------------------------------------------------------- */
:root {
    --price-color: #fd8709;
}

/* в списъците (картите) */
.card-product .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
}

.card-product .price .current-price,
.card-product .price.current-price {
    font-weight: 700;
    color: var(--price-color);
}

.card-product .price .old-price {
    font-size: .8em;
    font-weight: 400;
    color: #8a9099;
    text-decoration: line-through;
}

/* в страницата на продукта */
.tf-product-info-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.tf-product-info-price .price-on-sale {
    font-size: clamp(26px, 6vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--price-color);
    white-space: nowrap;
}

.tf-product-info-price .compare-at-price {
    font-size: 18px;
    color: #8a9099;
    text-decoration: line-through;
    white-space: nowrap;
}

.tf-product-info-price .badges-on-sale {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    background: var(--price-color);
    border-radius: 999px;
}


/* --------------------------------------------------------------------------
   15. Телефон: картите да не избутват страницата встрани
   Колоните на мрежата се разширяваха според най-широкото нещо вътре
   (дълга дума в заглавието като „Размери:185x85x45см“ или широка снимка),
   и цялата страница ставаше по-широка от екрана.
   -------------------------------------------------------------------------- */
.tf-grid-layout > *,
.home-products-grid > * {
    min-width: 0;
}

.card-product .card-product-wrapper img {
    max-width: 100%;
}

.card-product .card-product-info .title,
.card-product .card-product-info .brand,
.card-product .card-product-info .product-code {
    overflow-wrap: anywhere;
}

/* предпазна мрежа: нищо да не излиза вдясно от екрана (clip не чупи залепналото меню) */
html,
body {
    overflow-x: clip;
}

/* цената в картите: по-силно правило, за да надделее над темата */
.card-product .card-product-info .price .current-price,
.card-product .card-product-info .price.current-price {
    font-weight: 700;
    color: var(--price-color, #fd8709);
}

.card-product .card-product-info .price .old-price {
    font-size: .8em;
    font-weight: 400;
    color: #8a9099;
    text-decoration: line-through;
}


/* --------------------------------------------------------------------------
   16. Горното меню: дългите имена да не се застъпват
   Пунктовете имаха фиксирана максимална ширина в пиксели и дълга дума
   като „Хидромасажни“ или „инфрачервени“ излизаше върху съседния пункт.
   Сега: всеки пункт е широк колкото най-дългата си дума, никога не се свива
   под нея, а името минава на най-много 2 реда.
   -------------------------------------------------------------------------- */
.header-default .box-nav-ul > li {
    flex: 0 0 auto;
}

@media (max-width: 1599px) {
    .header-default .box-nav-ul .item-link {
        max-width: 9.5em;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
        line-height: 1.15;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .header-default .box-navigation {
        padding-left: 12px;
    }

    .header-default .box-nav-ul {
        gap: 14px !important;
    }

    .header-default .box-nav-ul .item-link {
        font-size: 14px !important;
    }
}


/* --------------------------------------------------------------------------
   17. „Безплатен монтаж“ — над „Безплатна доставка“
   -------------------------------------------------------------------------- */
/* в картата: двата етикета един над друг в долния ляв ъгъл на снимката */
.card-product .card-product-wrapper .card-badges {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.card-product .card-product-wrapper .card-badges .free-shipping-badge {
    position: static;
}

.card-product .card-product-wrapper .free-installation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: #1f5fa8;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

/* в продукта: един под друг */
.benefit-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
}

.benefit-lines .free-shipping-line {
    margin-top: 0;
}

.free-installation-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-weight: 600;
    color: #1f5fa8;
    background: #e8f0fa;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .card-product .card-product-wrapper .free-installation-badge {
        font-size: 10.5px;
        padding: 3px 8px;
    }
}


/* --------------------------------------------------------------------------
   18. Платен монтаж: отметка в продукта и в количката
   -------------------------------------------------------------------------- */
.installation-option {
    margin: 4px 0 14px;
    padding: 12px 14px;
    background: #e8f0fa;
    border: 1px solid #c9dbf2;
    border-radius: 12px;
}

.installation-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    color: #1d2733;
}

.installation-check input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #1f5fa8;
    cursor: pointer;
}

.installation-check .installation-price {
    margin-left: 4px;
    font-weight: 700;
    color: #1f5fa8;
}

.installation-check small {
    color: #5b6470;
}

.installation-text {
    margin-top: 6px;
    padding-left: 30px;
    font-size: 13px;
    line-height: 1.45;
    color: #5b6470;
}

.cart-installation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 14px;
    cursor: pointer;
}

.cart-installation input {
    width: 18px;
    height: 18px;
    accent-color: #1f5fa8;
}

.cart-installation b,
.cart-installation-sum,
.mini-cart-installation,
.checkout-installation {
    color: #1f5fa8;
}

.cart-installation-sum {
    font-size: 13px;
}

/* Началната страница: дълго заглавие на секция */
.home-section-title {
    flex: 1;
    min-width: 0;
    line-height: 1.25 !important;
}

.home-section-head .tf-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .home-section-title {
        font-size: 18px !important;
    }

    .home-section-head .tf-btn {
        font-size: 13px;
    }
}
