/* Hide "show more" button in product sliders on all screens */
.product-slider__all {
    display: none !important;
}

/* Calculator button — hidden by default, shown only for bamboo via JS class */
#btn-open-calc-modal {
    display: none !important;
}
#btn-open-calc-modal.is-visible {
    display: flex !important;
}

section.enter-main {
    display: none;
    position: fixed;
    left: 0;
    justify-content: flex-end;
    top: 0;
    height: 100vh;
    background: #00000080;
    z-index: 9999;
    width: 100%;
}

.swiper-pagination-bullet-active{
    background: #fff;
}
.sort-block-catalog{
    margin-top: 10px;
    margin-bottom: 10px;
}

ul.lang button {
    font-size: 13px;
    color: #656565;
    font-weight: 400;
}

ul.lang button.active {
    font-size: 13px;
    color: #656565;
    font-weight: 600;
}

@media (max-width:575px) {

    .swiper{
        z-index: 0;
    }

    .checkout-form__item-shipping {
        align-items: center;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }


    .form-group.row-customer_telephone .iti__flag-container {
        height: 58px;
    }

    input#customer_telephone{
        margin-bottom: 20px!important;
    }
    select{
        min-height: 50px!important;
        height: 50px!important;
    }
}
.review-open-modal{
    width: 340px !important;
}
#review-modal{
    display: none;
}

/* .alert-danger, #alert-danger{
    color: red;
    width: 100%;
    height: 41px;
    margin-bottom:10px;
  } */

.alert-danger__no-select-color{
    display: none;
    width: 100%;
    height: 41px;
    gap: 0px;
    border: 0.5px solid #D20921;
    color: red;
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
}

section.enter-main.active {
    display: flex;
}

.enterBlock {
    cursor: pointer;
}

.enter-main .wrapper {
    max-width: 460px;
    background: #16161A;
    border-left: 1px solid rgba(200,146,42,0.18);
    width: calc(100% - 20px);
    padding: 56px 48px 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: auto;
    box-shadow: -8px 0 48px rgba(0,0,0,0.55);
}

.enter-main .enter-header {
    display: flex;
    gap: 0;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.enter-main .left-part {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enter-main .enter-header button.active {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.02em;
    line-height: 1;
    position: relative;
}
.enter-main .enter-header button.active::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: #C8922A;
    margin-top: 6px;
}

.enter-main .enter-header button {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.enter-main .enter-header button:not(.active):hover {
    color: rgba(255,255,255,0.65);
}

.enter-main .right-part .clouse {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-top: 4px;
}
.enter-main .right-part .clouse:hover {
    opacity: 1;
}
.enter-main .right-part .clouse img {
    filter: invert(1);
    width: 20px;
    height: 20px;
}

.enter-body {
    display: none;
}
.enter-body.active {
    display: flex;
}
.enter-footer {
    display: none;
}
.enter-footer.active {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    gap: 6px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}
.enter-footer .green {
    cursor: pointer;
    color: #C8922A;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.enter-footer .green:hover {
    color: #e0a832;
}

.enter-main form {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    gap: 16px;
}

.enter-main form input {
    height: 54px;
    transition: 0.2s ease all;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    font-family: FuturaPT, Helvetica, Arial, sans-serif;
    font-size: 15px;
    border-radius: 2px;
    outline: none;
}
.enter-main form input::placeholder {
    color: rgba(255,255,255,0.3);
}
.enter-main form input:focus {
    border-color: rgba(200,146,42,0.6);
    background: rgba(255,255,255,0.07);
}

.enter-main form button {
    height: 54px;
    border: none;
    background: #C8922A;
    color: #fff;
    text-transform: uppercase;
    font-family: FuturaPT, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 2px;
    margin-top: 8px;
}
.enter-main form button:hover {
    background: #b87e20;
}

.review-modal-textarea {
    max-width: 340px;
    width: 340px;
    font-family: FuturaPT, Helvetica, Arial, sans-serif;
    resize: vertical;
    max-height: 400px;
}
.review-modal-textarea:focus {
    overflow: auto;
    outline: none;
}

.enter-main form input:active,
.enter-main form input:hover {
    border-color: rgba(200,146,42,0.4);
}

.enter-main form .answer {
    display: flex;
    min-height: 48px;
    opacity: 0;
    transition: 0.2s ease all;
    padding: 10px;
    border-radius: 2px;
}

.enter-main form .answer.active {
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: 1px solid rgba(200,50,50,0.6);
    background: rgba(200,50,50,0.08);
    color: #ff7070;
    padding: 12px;
}

.enter-main form .answer.active.green {
    border: 1px solid rgba(200,146,42,0.6) !important;
    background: rgba(200,146,42,0.08) !important;
    color: #C8922A !important;
}

#telephone-form-register{
    width: 100%;
}
#form-review span.h2{
    width: 340px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #018A7A;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}
#review-single-star {
    color: #00c5ae;
    display: none;
}
.review-stars-author {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    color: #018A7A;
    text-transform: capitalize;
}
.review-top {
    display: flex;
    flex-direction: row;
    padding-top: 1rem;
    font-size: 2rem;
    padding-bottom: 1rem;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}
#review-text {
    font-size: 16px;
}
.block-review{
    display: none;
}
.block-review.active {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: #02020273;
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* ── Dark contact modal (#modal-screen + #modal-screen-header) ──────────── */
#modal-screen .modal-form,
#modal-screen-header .modal-form,
#modal-screen .modal-body .modal-form,
#modal-screen-header .modal-body .modal-form {
    background: transparent !important;
    padding: 0 !important;
}
#modal-screen .modal-body,
#modal-screen-header .modal-body {
    background: #16161A !important;
    border: 1px solid rgba(200,146,42,0.2) !important;
    border-radius: 12px !important;
    padding: 40px 48px !important;
    min-width: 360px;
    max-width: 480px;
    width: 90vw;
    gap: 2rem !important;
}
#modal-screen .modal-top-section,
#modal-screen-header .modal-top-section {
    align-items: center;
}
#modal-screen .modal-text-to-show,
#modal-screen-header .modal-text-to-show {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    border-bottom: none !important;
}
#modal-screen .modal-text-to-show::after,
#modal-screen-header .modal-text-to-show::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: #C8922A;
    margin-top: 8px;
}
#modal-screen .modal-close-x,
#modal-screen-header .modal-close-x {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.45) !important;
    font-size: 1.75rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: color 0.2s;
}
#modal-screen .modal-close-x:hover,
#modal-screen-header .modal-close-x:hover {
    color: rgba(255,255,255,0.85) !important;
}
#modal-screen .modal-form .form-group label,
#modal-screen-header .modal-form .form-group label {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}
#modal-screen .modal-form .form-group input,
#modal-screen-header .modal-form .form-group input {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.13) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    height: 50px !important;
    width: 100% !important;
    font-size: 1rem !important;
}
#modal-screen .modal-form .form-group input:focus,
#modal-screen-header .modal-form .form-group input:focus {
    border-color: rgba(200,146,42,0.55) !important;
    outline: none !important;
    background: rgba(255,255,255,0.08) !important;
}
#modal-screen .modal-form .form-group input::placeholder,
#modal-screen-header .modal-form .form-group input::placeholder {
    color: rgba(255,255,255,0.25) !important;
}
#modal-screen .modal-form .btn--color,
#modal-screen-header .modal-form .btn--color {
    background: #C8922A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    height: 52px !important;
    width: 100% !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    margin-top: 4px !important;
}
#modal-screen .modal-form .btn--color:hover,
#modal-screen-header .modal-form .btn--color:hover {
    background: #d9a030 !important;
}
/* intl-tel-input dark fix */
#modal-screen .iti,
#modal-screen-header .iti {
    width: 100% !important;
}
#modal-screen .iti__flag-container,
#modal-screen-header .iti__flag-container {
    background: rgba(255,255,255,0.06) !important;
}
#modal-screen .iti__selected-flag,
#modal-screen-header .iti__selected-flag {
    background: transparent !important;
}
#modal-screen .iti__selected-dial-code,
#modal-screen-header .iti__selected-dial-code {
    color: rgba(255,255,255,0.7) !important;
}

/* ── ITI phone placeholder fix: make room for +380 badge ─── */
#modal-screen-header .iti--separate-dial-code input[type="tel"],
#modal-screen-header .iti input[type="tel"] {
    padding-left: 90px !important;
}

/* ── reCAPTCHA: data-theme="dark" handles styling; cancel main.css invert ── */
#modal-screen-header fieldset {
    border: none !important;
    padding: 4px 0 !important;
    margin: 8px 0 0 !important;
}
#modal-screen-header [id*="recaptcha"] {
    border-radius: 8px !important;
    overflow: hidden !important;
    display: inline-block !important;
}
/* Cancel main.css's filter:invert() that inverts the already-dark widget */
#modal-screen-header [id*="recaptcha"] iframe,
#modal-screen-header fieldset iframe {
    filter: none !important;
    display: block !important;
}

/* ── Close button: force flex layout so × is always in top-right ───────── */
#modal-screen-header .modal-body .modal-top-section {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 0 0 1rem 0 !important;
    position: static !important;
}
#modal-screen-header .modal-body .modal-top-section .modal-close-x {
    position: static !important;
    flex-shrink: 0 !important;
    color: rgba(255,255,255,0.55) !important;
    font-size: 1.75rem !important;
    line-height: 1 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 0 0 12px !important;
    margin: 0 !important;
    align-self: flex-start !important;
}
#modal-screen-header .modal-body .modal-top-section .modal-close-x:hover {
    color: #C8922A !important;
}

/* ── Submit button: disabled = 50% opacity, cursor not-allowed ──────────── */
#modal-screen-header .modal-form button[type="submit"]:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}
#modal-screen-header .modal-form button[type="submit"]:not(:disabled) {
    opacity: 1 !important;
    cursor: pointer !important;
}

.modal-form {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 51px 46px;
}
.modal-top-section .modal-text-to-show.text {
    font-size: 1.75rem;
    font-weight: 600;
}
.modal-form #close-search-btn {
    width: 11px;
}
/* ── Product page mobile fixes ───────────────────────────── */

/* Attributes row: align to top so multi-line values don't break layout */
.product-detail-chars {
    align-items: flex-start !important;
}
.product-detail-chars__item {
    align-self: stretch !important;
    justify-content: flex-start !important;
}

/* Tabs (Опис / Характеристики / Відгуки): equal height, vertically centred */
.nav-tabs {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
}
.nav-tabs > li {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
}
.nav-tabs > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: 100% !important;
    width: 100% !important;
    padding: 12px 8px !important;
    line-height: 1.2 !important;
}

/* Tabs Опис/Характеристики/Відгуки — mobile fix */
@media (max-width: 767px) {
    .description-block .tablink-header {
        gap: 16px !important;
    }
    .description-block .tablink {
        font-size: 16px !important;
        white-space: nowrap !important;
    }
    .description-block .tablink.active::after,
    .description-block .tablink::after {
        top: 12px !important;
    }
}

/* Price block: stack vertically on mobile (no color picker on bamboo panels) */
@media (max-width: 1024px) {
    .product-detail-price {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .product-detail-price__value,
    .product-detail-price__available,
    .product-detail-price__noavailable,
    .product-detail-price__color {
        grid-row: unset !important;
    }
}

/* Description — dark theme fix: remove fade-out overlay entirely */
.about__text {
    max-height: 12rem !important;
}
.about__content.opened .about__text {
    max-height: none !important;
    overflow: visible !important;
}
.about__text:after,
.about__text::after,
.product-detail-content .about__text:after,
.product-detail-content .about__text::after,
.characteristics-product .about__text:after,
.characteristics-product .about__text::after {
    content: none !important;
    display: none !important;
}
/* Force white text in product description */
.about__text,
.about__text p,
.about__text span,
.about__text li,
.about__text strong,
.about__text em,
.about__text a,
.about__text * {
    color: rgba(255,255,255,0.85) !important;
}

/* ── /Product page mobile fixes ──────────────────────────── */

.modal-form  .title-h3 {
    margin-bottom: 51px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
}
.modal-form  .title-h3 span{
    font-size: 1.75rem;
    font-weight: 600;
}

/* Mobile nav heading: replaced h3 with p for correct heading hierarchy */
.nav-mobile__heading {
    margin-bottom: 1.875rem;
    color: #ababab;
}

/* ── Account page dark theme ─────────────────────────────────────────────── */
.account-bar {
    background: #16161A !important;
    border: 1px solid rgba(200,146,42,0.15);
}

/* On the account page the sidebar has no toggle button — always show it */
#account-account .account-bar {
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* Stack sidebar above content on narrow screens */
@media (max-width: 1024px) {
    #account-account .account__inner {
        flex-direction: column;
    }
    #account-account .account-bar {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem;
    }
}
.account-bar-user {
    border-bottom-color: rgba(255,255,255,0.1) !important;
}
.account-bar-user__name {
    color: #ffffff !important;
}
.account-bar-menu__ttl {
    color: rgba(255,255,255,0.4) !important;
}
.account-nav li a span,
.account-nav li button span {
    color: rgba(255,255,255,0.75) !important;
}
.account-nav li a svg,
.account-nav li button svg {
    fill: rgba(255,255,255,0.5) !important;
}
.account-nav li.active a span,
.account-nav li.active button span {
    color: #C8922A !important;
}
.account-nav li.active a svg,
.account-nav li.active button svg {
    fill: #C8922A !important;
}
.account-nav li a:hover span,
.account-nav li button:hover span {
    color: #C8922A !important;
}
.account-nav li a:hover svg,
.account-nav li button:hover svg {
    fill: #C8922A !important;
}
/* Content area */
.account-content__ttl,
.account-content h1 {
    color: #ffffff !important;
}
.account-content__dsc,
.account-content p {
    color: rgba(255,255,255,0.7) !important;
}
.account-content a {
    color: #C8922A !important;
}
/* Textarea on account page */
.form_send-sample textarea {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.14) !important;
    color: #ffffff !important;
}
.form_send-sample textarea::placeholder {
    color: rgba(255,255,255,0.3) !important;
}
/* ── Account inner layout (всі сторінки кабінету) ───────────────────────── */
#account-account .account__inner,
#account-order .account__inner,
#account-download .account__inner,
.account__inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 2rem;
    padding: 2rem 0;
}
#account-account .account-content,
#account-order .account-content,
#account-download .account-content,
.account__inner .account-content,
.account__inner .download_right-column,
.account__inner .customer_edit_form_section {
    flex: 1 1 0;
    min-width: 0;
}

/* ── Account form layout ─────────────────────────────────────────────────── */
.account-case__form .form__row {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    align-items: flex-start;
}
.account-case__form .form__col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.account-case__form .form__col input,
.account-case__form .form__col textarea {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid #656565 !important;
    color: #F8F8F8 !important;
    border-radius: 4px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
}
.account-case__form .form__col input::placeholder,
.account-case__form .form__col textarea::placeholder {
    color: rgba(255,255,255,0.35) !important;
}
.account-case__form .form__col textarea {
    min-height: 120px;
    resize: vertical;
}
.account-case__form .form__submit button {
    width: 100%;
    max-width: 400px;
}
.account-case__ttl {
    color: rgba(217,217,217,0.7);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.account-case__form {
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .account__inner {
        flex-direction: column !important;
    }
    .account-case__form .form__row {
        flex-direction: column !important;
    }
}
/* ── /Account inner layout ───────────────────────────────────────────────── */

/* ── /Account page dark theme ────────────────────────────────────────────── */

/* ── Product card image — hover zoom ────────────────────────────────────── */
.product-item__img-wrap {
    overflow: hidden !important;
    background: #1a1a1a;
}
.product-item__img-wrap img,
.product-item__img img {
    transition: transform 0.45s ease !important;
    will-change: transform;
}
.product-item:hover .product-item__img-wrap img,
.product-item:hover .product-item__img img {
    transform: scale(1.06) !important;
}
/* ── /Product card image ─────────────────────────────────────────────────── */

/* ── Category grid — real background images ─────────────────────────────── */
.cat-img-bamboo {
    background-image: url('/image/catalog/Bamboo/Exclusive/Asfalt.png') !important;
    background-size: cover !important;
    background-position: center !important;
}
.cat-img-poly {
    background-image: url('/image/catalog/Bruklin/Bruck4474789.png') !important;
    background-size: cover !important;
    background-position: center !important;
}
.cat-img-fibro {
    background-image: url('/image/catalog/FIBROCEMENT/FCDeco-001.png') !important;
    background-size: cover !important;
    background-position: center !important;
}
.cat-img-glass {
    background-image: url('/image/catalog/Glass%20Brick/GB-01.png') !important;
    background-size: cover !important;
    background-position: center !important;
}
.cat-img-flex {
    background-image: url('/image/catalog/FlexibleTile/FT-01.png') !important;
    background-size: cover !important;
    background-position: center !important;
}
/* Overlay darkening so text remains readable */
.cat-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 100%);
}
/* ── /Category grid ──────────────────────────────────────────────────────── */

/* ── Catalog sidebar layout ─────────────────────────────────────────────── */
.catalog-layout {
    display: flex !important;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 1.5rem 0 3rem;
}
.catalog-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 1.5rem;
}
.catalog-main {
    flex: 1;
    min-width: 0;
}
.catalog-main__ttl {
    color: #fff !important;
    font-size: 1.6rem !important;
    font-weight: 600;
    margin: 0 0 1.5rem 0 !important;
}
/* Vertical category items */
.catalog-sidebar .category-item {
    position: relative;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background 0.2s;
}
.catalog-sidebar .category-item::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px; height: 70%;
    background: #C8922A;
    border-radius: 2px;
    transition: transform 0.2s;
}
.catalog-sidebar .category-item:hover::before,
.catalog-sidebar .category-item.active::before {
    transform: translateY(-50%) scaleY(1);
}
.catalog-sidebar .category-item:hover { background: rgba(200,146,42,0.07); }
.catalog-sidebar .category-item.active { background: rgba(200,146,42,0.1); }
.catalog-sidebar .s-filter__title,
.catalog-sidebar .s-filter__link {
    display: block !important;
    padding: 0.45rem 0.75rem 0.45rem 1rem !important;
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    text-decoration: none !important;
    transition: color 0.2s, padding-left 0.2s !important;
}
.catalog-sidebar .s-filter__title {
    color: rgba(255,255,255,0.3) !important;
    font-size: 0.68rem !important;
}
.catalog-sidebar .category-item:hover .s-filter__link,
.catalog-sidebar .category-item.active .s-filter__link,
.catalog-sidebar .category-item.active .s-filter__title {
    color: #C8922A !important;
    padding-left: 1.25rem !important;
}
/* Sort bar — below collections, above products */
.catalog-sort-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.catalog-sort-bar .sort-container { padding: 0 !important; }

/* New sort dropdown */
.sort-dropdown {
    position: relative;
    display: inline-block;
}
.sort-dropdown__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #D9D9D9;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
    min-width: 180px;
    justify-content: space-between;
}
.sort-dropdown__btn:hover {
    border-color: rgba(200,146,42,0.5);
    background: #252525;
}
.sort-dropdown__btn[aria-expanded="true"] {
    border-color: #C8922A;
    border-radius: 8px 8px 0 0;
}
.sort-dropdown__arrow {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: rgba(255,255,255,0.4);
}
.sort-dropdown__btn[aria-expanded="true"] .sort-dropdown__arrow {
    transform: rotate(180deg);
}
.sort-dropdown__list {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 100%;
    background: #1e1e1e;
    border: 1px solid #C8922A;
    border-top: none;
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.sort-dropdown__list.is-open { display: block; }
.sort-dropdown__item a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.sort-dropdown__item a:hover {
    color: #C8922A;
    background: rgba(200,146,42,0.07);
}
@media (max-width: 900px) {
    .catalog-layout { flex-direction: column !important; align-items: stretch !important; }
    .catalog-sidebar {
        width: 100% !important;
        position: static;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 6px !important;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .catalog-sidebar::-webkit-scrollbar { display: none; }
    .catalog-sidebar .category-item { flex-shrink: 0; }
    .catalog-sidebar .category-item::before { display: none; }
    .catalog-sidebar .s-filter__link,
    .catalog-sidebar .s-filter__title {
        padding: 5px 12px !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
    }
    .catalog-sidebar .category-item.active .s-filter__link,
    .catalog-sidebar .category-item.active .s-filter__title { border-color: #C8922A !important; }
    .catalog-main { width: 100% !important; }
    .filter-collections__nav { display: none !important; }
}
/* ── /Catalog sidebar layout ─────────────────────────────────────────────── */

/* ── Filter collections (Ексклюзив, Дерево...) — горизонтальний ряд ──────── */
.filter-collections-wrapper {
    position: relative;
    margin-bottom: 2rem;
}
.filter-collections {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.filter-collections::-webkit-scrollbar { display: none; }
.filter-collections a {
    text-decoration: none;
    flex-shrink: 0;
}
.filter-collection__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 90px !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.filter-collection__item:hover { opacity: 0.8; }
.filter-collection__image {
    width: 90px !important;
    height: 90px !important;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.filter-collections a:hover .filter-collection__image,
.filter-collections a.active .filter-collection__image {
    border-color: #C8922A;
}
.filter-collection__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.filter-collection__title {
    color: rgba(255,255,255,0.65);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 6px;
    line-height: 1.3;
}
.filter-collections__nav[hidden] { display: none !important; }

/* ============================================================
   SORT DROPDOWN — moved from filter.twig inline <style>
   ============================================================ */
/* ── Sort dropdown: high-specificity rules so david.css beats main.css even loading first ── */
/* display fix: main.css hides .sort-container .custom-select:first-child */
.catalog-sort-bar .sort-container .custom-select.sort-select,
.catalog-main .sort-container .custom-select.sort-select { display: block !important; }

/* strip outer wrappers */
.catalog-sort-bar .sort-container.sort-block-catalog,
.catalog-sort-bar .sort-block-catalog { background: transparent !important; border: none !important; border-radius: 0 !important; padding: 0 !important; }
.catalog-sort-bar .sort-container .custom-select,
.catalog-sort-bar .sort-block-catalog .custom-select { background: transparent !important; border: none !important; border-radius: 0 !important; padding: 0 !important; }
.catalog-sort-bar .custom-sort-dropdown { background: transparent !important; border: none !important; }

.sort-select { min-width: 180px; }
.custom-sort-dropdown, .custom-collection-dropdown { position: relative; }

/* the actual button */
.catalog-sort-bar .sort-block-catalog .selected-sort-option,
.catalog-sort-bar .sort-block-catalog .selected-collection-option,
.catalog-main .sort-block-catalog .selected-sort-option,
.selected-sort-option,
.selected-collection-option {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 8px 14px !important;
    background: #1e1e1e !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    color: #D9D9D9 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: border-color 0.2s !important;
    user-select: none;
}
.catalog-sort-bar .selected-sort-option:hover,
.catalog-sort-bar .selected-collection-option:hover,
.selected-sort-option:hover,
.selected-collection-option:hover {
    border-color: rgba(200,146,42,0.5) !important;
    background: #252525 !important;
}

/* dropdown list */
.selection-sort-options,
.selection-collection-options {
    display: none;
    position: absolute;
    right: 0; top: 100%;
    min-width: 100%;
    background: #1e1e1e !important;
    border: 1px solid #C8922A !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.selection-sort-options a,
.selection-collection-options a {
    display: block !important;
    padding: 8px 14px !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.selection-sort-options a:hover,
.selection-collection-options a:hover {
    color: #C8922A !important;
    background: rgba(200,146,42,0.07) !important;
}
.icon_arrow-down { width: 14px; height: 14px; fill: rgba(255,255,255,0.5) !important; }
.arrow_container-down {
    display: flex; align-items: center;
    width: 20px; height: 14px;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.arrow_container-down.rotate { transform: rotate(180deg); }
/* ── About video overlay — dark instead of white ──────────── */
.about-video__content {
    background: rgba(20, 20, 26, 0.78) !important;
    backdrop-filter: blur(3px) !important;
}
.about-video__ttl {
    color: #ffffff !important;
}
.about-video__btn svg {
    border-color: rgba(255,255,255,0.75) !important;
    stroke: rgba(255,255,255,0.9) !important;
    fill: none !important;
}
.about-video__btn span {
    color: rgba(255,255,255,0.85) !important;
}

/* ── /Filter collections ─────────────────────────────────────────────────── */

/* ── Mobile menu overrides ───────────────────────────────────────────────── */
/* Remove account-bar card appearance inside mobile drawer */
.nav-mobile .account-bar {
  background: transparent !important;
  border: none !important;
  height: auto !important;
  overflow: visible !important;
}
/* Hide empty user block (visible only when logged in) */
.nav-mobile .account-bar-user:not(:has(.account-bar-user__name)) {
  display: none !important;
}
.nav-mobile .account-bar-user {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
/* Social icons — no square border */
.nav-mobile__footer .socials__link {
  width: 28px !important;
  height: 28px !important;
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
}
.nav-mobile__footer .socials__link svg {
  width: 20px !important;
  height: 20px !important;
  fill: rgba(255,255,255,0.4) !important;
}
.nav-mobile__footer .socials__link:hover svg {
  fill: #C8922A !important;
}
/* Compact panel height — only as tall as content */
.nav-mobile__inner {
  min-height: 0 !important;
  height: auto !important;
  max-height: 100dvh !important;
}


/* ── Modal: fit on mobile screen ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .modal-body {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100vw - 2rem) !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    padding: 1.5rem !important;
    gap: 1rem !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
  .modal-body .modal-form .form-group input {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1rem !important;
    height: 3rem !important;
  }
  .modal-body .modal-form form {
    gap: 0.75rem !important;
  }
  .modal-body .modal-form form :nth-last-child(2) input {
    height: 4.5rem !important;
  }
}

/* ── Mobile language switcher: hide HTML separator dots ─────────────────── */
.nav-mobile .lang-sep { display: none !important; }
.nav-mobile__lang .lang-btn { margin: 0 0.2rem !important; }

/* ── Prevent horizontal page scroll from product slider overflow:visible ── */
@media (max-width: 1024px) {
  .product-slider { overflow: clip !important; }
}

/* ── Search overlay: disable pointer-events when hidden so phone stays clickable ── */
#search:not([style*="visible"]) {
  pointer-events: none !important;
}

/* ── Header phone centering: between cart and callback button ───────────── */
@media (min-width: 1025px) {
  .header__block .header-actions {
    margin-right: 0 !important;
  }
  .header__block .phone-block {
    flex: 1 !important;
    margin: 0 1.5rem !important;
    position: relative !important;
  }
  .header__block .phone-block .phone-block__current {
    width: fit-content !important;
    margin: 0 auto !important;
  }
  .header__block .phone-block .phone-block__current {
    width: fit-content !important;
    margin: 0 auto !important;
    position: relative !important;
  }
  .header__block .phone-block .phone-block__list {
    top: calc(100% + 6px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 200 !important;
    background: rgba(14, 14, 16, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(200, 146, 42, 0.3) !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45) !important;
    padding: 0.2rem 0 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }
  .header__block .phone-block .phone-block__list li {
    padding: 0.4rem 1.25rem !important;
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.9) !important;
    justify-content: center !important;
    text-align: center !important;
    transition: background 0.15s ease !important;
    border-radius: 0 !important;
  }
  .header__block .phone-block .phone-block__list li:first-child { border-radius: 10px 10px 0 0 !important; }
  .header__block .phone-block .phone-block__list li:last-child  { border-radius: 0 0 10px 10px !important; }
  .header__block .phone-block .phone-block__list li:only-child  { border-radius: 10px !important; }
  .header__block .phone-block .phone-block__list li:hover {
    background: rgba(200, 146, 42, 0.18) !important;
    color: #fff !important;
  }
  .header__block .phone-block .phone-block__list li a {
    color: inherit !important;
    text-decoration: none !important;
  }
  .header__block .phone-block .phone-block__list li::after,
  .header__block .phone-block .phone-block__list li:first-child::after {
    display: none !important;
  }
}
