/* Homepage only. These blocks are removed from the front page. */
#allrecords[data-tilda-page-id="128263773"] #rec2097655433,
#allrecords[data-tilda-page-id="128263773"] #rec2132347183,
#allrecords[data-tilda-page-id="128263773"] #rec2112032813,
#allrecords[data-tilda-page-id="128263773"] #rec2137221593,
#allrecords[data-tilda-page-id="128263773"] #rec2137221893,
#allrecords[data-tilda-page-id="128263773"] #rec2137222143,
#allrecords[data-tilda-page-id="128263773"] #rec2137222603 {
    display: none !important;
}

/* Mobile menu panel is cream. Subcategory links were white, so
   "Течни тапети" and the other items under Категории disappeared. */
@media screen and (max-width: 960px) {
    #rec2073531533 {
        --menusub-text-color: #000000 !important;
    }
}

/* Product-card buttons: both labels stay on one line, fully visible,
   with side padding. The font scales with the button so a two-column
   card still fits "Добави в кошницата" without wrapping. */
.t-catalog__card__btn {
    container-type: inline-size;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 44px;
    padding: 13px 8px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.t-catalog__card__btn.t-btnflex {
    padding: 13px 8px !important;
    gap: 6px !important;
}
.t-catalog__card__btn .t-btnflex__text,
.t-catalog__card__btn .t-catalog__card__btn-text {
    white-space: nowrap !important;
    text-overflow: clip !important;
    overflow: hidden !important;
    min-width: 0 !important;
    line-height: 1.2 !important;
    text-align: center;
    font-size: 14px !important;
}
@container (max-width: 220px) {
    .t-catalog__card__btn .t-btnflex__text,
    .t-catalog__card__btn .t-catalog__card__btn-text {
        font-size: 12.5px !important;
    }
}
@container (max-width: 170px) {
    .t-catalog__card__btn .t-btnflex__icon {
        display: none !important;
    }
}
.t-catalog__card__contentwrapper {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Footer menu on a narrow screen is one nowrap row, so
   "За бизнес" and "За нас" run past the brown panel. Keep the
   links inside the column and let each label use its own width. */
@media screen and (max-width: 479px) {
    #rec2132359813 .tn-group[data-group-id="175761749046770770"],
    #rec2132359813 #molecule-175761749046770770,
    #rec2132359813 .tn-group[data-group-id="175761540517084250"],
    #rec2132359813 #molecule-175761540517084250 {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    #rec2132359813 #molecule-175761540517084250 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        align-content: flex-start !important;
        column-gap: 14px !important;
        row-gap: 8px !important;
    }
    #rec2132359813 #molecule-175761540517084250 > * {
        margin: 0 !important;
    }
    #rec2132359813 #molecule-175761540517084250 > a,
    #rec2132359813 #molecule-175761540517084250 .tn-molecule,
    #rec2132359813 #molecule-175761540517084250 .tn-elem,
    #rec2132359813 #molecule-175761540517084250 .tn-atom {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        white-space: nowrap !important;
    }
}

/* The product gallery is a horizontal strip. Before the slider script
   sets a height, slides wrap under each other: a gray frame, then the
   photo below it. Keep a single square and clip the rest. */
.t-catalog__prod-popup__slider > .js-product-img {
    padding-bottom: 100% !important;
}
/* The first product photo is part of the HTML, so it can paint before
   the catalog script builds the slider. Keep that square visible. */
.sp-lcp-hold,
#sp-lcp {
    opacity: 1 !important;
}
.t-catalog__prod-popup__slider .t-slds__container {
    aspect-ratio: 1 / 1;
    overflow: hidden !important;
    background-color: #ebebeb;
}
.t-catalog__prod-popup__slider .t-slds__items-wrapper:not([style*="height"]) {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
}
.t-catalog__prod-popup__slider .t-slds__items-wrapper:not([style*="height"]) > .t-slds__item {
    flex: 0 0 100%;
    width: 100% !important;
    float: none;
}
.t-catalog__prod-popup__slider .t-slds__items-wrapper:not([style*="height"]) > .t-slds__item_active {
    opacity: 1 !important;
}

/* On the original page this heading has normal letter spacing.
   The shared uptitle style adds 2.5px and makes "Вижте също:" look tracked out. */
.t-catalog__relevants__title.t-uptitle {
    letter-spacing: normal;
}

/* Related products use the same strip. Hold them in one row until sized. */
.t-catalog__relevants__container .t-slds__container {
    overflow: hidden;
}
.t-catalog__relevants__container .t-slds__items-wrapper:not([style*="width"]) {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}
.t-catalog__relevants__container .t-slds__items-wrapper:not([style*="width"]) > .t-slds__item {
    flex: 0 0 50%;
    width: 50% !important;
    float: none;
}
@media (max-width: 960px) {
    .t-catalog__relevants__container .t-slds__items-wrapper:not([style*="width"]) > .t-slds__item {
        flex-basis: 78%;
        width: 78% !important;
    }
}

/* "Нашите услуги" and "Професионален монтаж…" stay a fixed
   narrow column on phones, while the rest of the page uses a
   20px side margin. Stretch those columns to the same edges.
   Card text is shifted 20px right at full width, so give it the
   same inset on the right or the last letters get clipped. */
@media screen and (max-width: 639px) {
    #rec2057823183 .t396__artboard {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    #rec2057823183 .t396__artboard > .tn-group,
    #rec2057823173 .t396__artboard > .tn-group {
        /* The artboard already has the page's 20px side padding. */
        width: 100% !important;
        max-width: none !important;
        left: 0 !important;
    }
    #rec2057823183 .tn-elem,
    #rec2057823173 .tn-elem {
        max-width: 100% !important;
    }
    #rec2057823183 [data-elem-id="1757441473935"],
    #rec2057823173 [data-elem-id="1757441473935"],
    #rec2057823173 [data-elem-id="1768844341952000001"] {
        width: 100% !important;
        left: 0 !important;
    }
    #rec2057823183 .tn-group[data-group-id="175752672009179120"],
    #rec2057823183 .tn-group[data-group-id="175752728706616710"],
    #rec2057823183 .tn-group[data-group-id="175752728456718930"],
    #rec2057823183 .tn-group[data-group-id="175752610026833000"],
    #rec2057823183 .tn-group[data-group-id="175752728091091930"],
    #rec2057823173 .tn-group[data-group-id="175750470619338060"] {
        width: calc(100% - 40px) !important;
        left: 20px !important;
    }
}
@media screen and (max-width: 479px) {
    #rec2057823173 .tn-group[data-group-id="1768844407946000002"],
    #rec2057823173 .tn-group[data-group-id="1768843477747000001"] {
        width: 100% !important;
    }
}