@media(min-width: 992px) {
    .modal-lg,
    .modal-xl {
        --bs-modal-width: 50rem;
    }
}



@media(max-width: 991px) {

    :root {
        --container-width: 100%;
        --header-height: 4.7rem;
        --header-top-height: 4.7rem;
    }

    html {
        font-size: 1.7vw;
    }


    body.menu-open {
        overflow: hidden;
    }


    /* Header */
    .search-form-inner {
        box-shadow: none;
        border-radius: var(--bs-border-radius-sm) !important;
        background-color: var(--white);
        max-width: 3rem;
        transition: var(--transition);
    }
    .search_form,
    .search_form.active {
        min-width: auto;
    }
    .search-form {
        position: absolute;
        left: auto;
        right: auto;
        margin-left: -3.4rem;
        transition: var(--transition);
    }
    .search_input,
    .search-close-icon {
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    .search-form:not(.active) .icon-search {
        background-color: transparent !important;
        border: 1px solid var(--bs-border-color2);
        border-radius: var(--bs-border-radius-lg);
    }
    .search-form.active {
        margin-left: 0;
        left: 0;
        right: 0;
        z-index: 9;
    }
    .search-form.active .search-form-inner {
        max-width: 100%;
    }
    .search-form.active .search_input,
    .search-form.active .search-close-icon {
        opacity: 1;
        pointer-events: all;
    }

    .header-bottom-part {
        position: fixed;
        width: 100%;
        height: calc(100svh - var(--header-top-height));
        transform: translateX(-100%);
        pointer-events: none;
        visibility: hidden;
        transition: var(--transition);
    }

    .header-bottom-part .container,
    .header-bottom-part .container > .row,
    .header-bottom-part-inner {
        height: 100%;
    }

    .header-bottom-part-inner .navbar {
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
        width: 100%;
        padding: 1rem 0;
    }

    .header-bottom-part-inner .contact-wrapper a {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .header-bottom-part-inner .contact-wrapper .icon {
        padding: 0.6rem;
        background-color: #ffffff14;
    }
    .header-bottom-part-inner .contact-wrapper .contact-item {
        margin-bottom: 0.5rem;
    }
    .header-bottom-part-inner .contact-wrapper .contact-item:last-child {
        margin-bottom: 0;
    }

    /* Menu Opened */
    body.menu-open .header-bottom-part {
        pointer-events: all;
        visibility: visible;
        transform: translateX(0);
    }

    /* .hp-hero-slider {
        display: none;
    } */


}



@media(max-width: 768px) {
    html {
        font-size: 1rem;
    }


    /* Header */
    .navbar-brand {
        max-width: 6rem;
    }

    .navbar {
        --bs-navbar-padding-y: 0;
    }


}









/* ==========================================================================

   PORT RESPONSIV DIN expotehnica-cdin-ro  —  17.08.2026

   Tot ce urmeaza e ADAUGAT. Nicio regula scrisa mai sus nu a fost modificata
   sau stearsa, iar aici nu se repeta niciun selector care exista deja mai sus.
   Ca sa dai inapoi, sterge tot de la acest comentariu pana la finalul
   fisierului (sau copiaza peste mq.css.bak).

   Regulile marcate cu [NECESITA MARKUP] tin de clase care inca nu exista in
   view-urile de pe acest site. Nu strica nimic, sunt inactive pana cand
   markup-ul respectiv e adaugat.

   ========================================================================== */


@media(min-width: 992px) {

    /* [NECESITA MARKUP] user/_nav.php — .user-sidebar-wrapper are aici clasa
       "sticky", nu "sticky-lg". */
    .sticky-lg {
        position: sticky;
        top: calc(var(--header-height) + 2rem);
        transition: var(--transition);
    }
}









@media(max-width: 991px) {

    /* Cat timp search-ul e deschis peste ecran, pagina din spate nu mai scroleaza.
       Clasa o pune custom.js pe click pe lupa. */
    body.search-active {
        overflow: hidden;
    }

    /* iOS mareste automat pagina cand focalizezi un input sub 16px. */
    .form-control {
        font-size: 16px;
    }


    /* ---------- Header ---------- */
    .navbar {
        --bs-navbar-padding-y: 0;
        --bs-nav-link-font-size: 1rem;
    }

    .search_input {
        padding: 0.4rem 1rem;
    }

    .icon-search {
        padding: 0 0.6rem;
    }

    .search-form.active .search_input {
        padding: 0.7rem 1rem;
    }

    .header-top-part {
        background-color: var(--white);
    }

    .header-bottom-part .container {
        overflow: auto;
    }

    .header-bottom-part-inner .navbar-menu {
        width: 100%;
    }

    .header-bottom-part-inner .navbar-menu .nav-link.dropdown-toggle {
        justify-content: space-between;
        padding-right: 0.8rem;
    }

    .nav-link.dropdown-toggle svg {
        width: 0.8rem;
    }

    .navbar-menu .dropdown-menu {
        --bs-dropdown-bg: transparent;
        --bs-dropdown-item-padding-y: 0.25rem;
        --bs-dropdown-item-padding-x: 0;
        --bs-dropdown-spacer: 0.5rem;
        --bs-dropdown-link-color: var(--white);
        max-height: inherit;
        border: none;
        margin-bottom: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #ffffff1a;
    }

    .navbar-menu .dropdown-item {
        --bs-dropdown-item-padding-y: 0.25rem;
        --bs-dropdown-link-hover-color: var(--white);
    }

    .navbar-menu .dropdown-item:hover {
        background-color: transparent;
    }

    .navbar-menu .dropdown-menu .dropdown-item .icon img {
        filter: invert();
        width: 1.7rem;
    }

    .header-bottom-part-inner .navbar-menu-contact {
        width: 100%;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid #ffffff0f;
    }

    .header-bottom-part-inner .contact-wrapper .contact-item:first-child .icon {
        border-top-left-radius: var(--bs-border-radius-lg);
        border-top-right-radius: var(--bs-border-radius-lg);
    }

    .header-bottom-part-inner .contact-wrapper .contact-item:last-child .icon {
        border-bottom-left-radius: var(--bs-border-radius-lg);
        border-bottom-right-radius: var(--bs-border-radius-lg);
    }


    /* ---------- Homepage ---------- */
    .category-hero-item-inner {
        padding: 3rem;
    }

    .dealer-section-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 0;
        overflow-x: initial;
    }

    .dealer-section-inner {
        padding: 1.5rem;
    }

    /* [NECESITA MARKUP] modulul de blog de pe homepage. */
    .home-blog-articles-module > .products-grid > .row > div:nth-child(n+4) {
        display: none;
    }


    /* ---------- Pagina de categorie ---------- */

    /* [NECESITA MARKUP] .categories-cards / .subcategories-cards / .category-card-inner
       — caruselul orizontal de categorii din category.php. */
    .categories-cards .category-card-inner {
        border-radius: var(--bs-border-radius-lg);
    }

    .subcategories-cards {
        --show: 1.5;
        --margin: 0.15rem;
        display: flex;
        flex-wrap: nowrap;
        overflow: auto;
        gap: 0 !important;
    }

    .subcategories-cards .category-card {
        position: relative;
        display: inline-block;
        white-space: normal;
        vertical-align: top;
        margin: 1px var(--margin);
        min-width: calc(100% / var(--show) - (2 * var(--margin)));
    }

    .subcategories-cards .category-card-inner {
        border-radius: var(--bs-border-radius-lg) !important;
    }

    .dropdown-button {
        min-width: auto;
    }

    /* [NECESITA MARKUP] .filters-col / .filters-col-inner — sidebar-ul de filtre
       ca sertar (offcanvas) pe mobil. Aici coloana e inca un simplu .col-lg-3. */
    .category-products .filters-col {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: 80vh;
        background: var(--white);
        border-radius: var(--bs-border-radius-xl) var(--bs-border-radius-xl) 0 0;
        padding: 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .category-products .filters-col-inner {
        padding: 1rem;
        padding-top: 0;
        flex-grow: 1;
        overflow: auto;
    }


    /* ---------- Pagina de produs ---------- */
    .products-slider {
        --show: 1.7;
        --margin: 0.15rem;
        display: flex;
        flex-wrap: nowrap;
        overflow: auto;
    }

    .products-slider .product-card {
        position: relative;
        display: inline-block;
        white-space: normal;
        vertical-align: top;
        margin: 1px var(--margin);
        min-width: calc(100% / var(--show) - (2 * var(--margin)));
    }


    /* ---------- Contul meu ---------- */
    .user-sidebar-wrapper {
        height: auto !important;
        max-height: 70vh !important;
        border-top-left-radius: var(--bs-border-radius-xl);
        border-top-right-radius: var(--bs-border-radius-xl);
    }

    .user-location-card .right {
        max-width: 100%;
    }


    .order-card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .order-card-header .buttons-wrapper {
        flex-wrap: wrap;
    }

    .account-box-body .order-products {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .step-label {
        font-size: 10px;
    }

    .order-details-header {
        flex-wrap: wrap;
    }


    /* ---------- Devino distrib ---------- */
    .become-partner-section .right {
        padding: 1rem;
        max-width: 100%;
    }

    .become-partner-slider .module-fickle {
        height: 200px;
    }

    .become-partner-section .left {
        display: block;
        width: calc(100% - 2rem);
        margin: auto;
        height: 200px !important;
    }

    .partner-slider-dots {
        position: absolute;
        bottom: 1rem;
    }

    .become-partner-slider .module-fickle .fickle-text-content {
        padding: 1rem;
        background: rgba(0,0,0,0.5);
        border-radius: 4px;
    }

    .become-partner-slider .module-fickle .fickle-text-content * {
        font-size: 1rem;
        text-align: left !important;
        line-height: 1.4em;

    }

    .become-partner-slider .module-fickle {
        justify-content: flex-start;
        padding-bottom: 2.5rem;
    }


    footer .module-contact {
        margin-bottom: 2rem;
    }

    .header-bottom-part .social-media-links {
        display: flex;
        gap: 1rem;
        margin-top: 3rem !important;
        margin-bottom: 1rem !important;
    }

    .header-bottom-part .social-media-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--bs-border-radius-lg) !important;
        width: 35px;
        height: 35px;
        background-color: #ffffff14;
    }

    .header-bottom-part .social-media-links svg {
        width: 1rem;
        height: 1rem;
    }

    .header-bottom-part .social-media-links svg path {
        fill: #fff;
    }

    .account-home {
        padding-left: 0 !important;
        margin-top: 5rem;
    }

    .activity-list {
        margin-bottom: 2rem;
    }

    .account-page > .container > .row > div {
        margin-bottom: 5rem;
    }
}









@media(max-width: 768px) {

    :root {
        --heading-md: 1.7rem;
        --heading-lg: 1.8rem;
        --heading-xl: 1.8rem;
        --text-md: 1.25rem;
        --text-xl: 1.5rem;
        --text-xxl: 2rem;
    }

    .icon-sm svg {
        width: 1.1rem;
    }


    /* ---------- Header ---------- */
    .nav-utility .utility {
        min-width: 2.3rem;
    }

    /* Fundalul intunecat de sub search-ul deschis. Elementul exista deja in
       builder/menu/_search.php, dar nu are inca handler de click in custom.js. */
    .search-backdrop {
        position: fixed;
        inset: 0;
        background-color: var(--black);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: -1;
    }

    .search-form.active .search-backdrop {
        opacity: 0.3;
        pointer-events: all;
    }

    .search-results-items .results-item .img_search {
        max-width: 3.5rem;
    }

    .login-dropdown {
        position: fixed;
        top: calc(var(--header-height) - 0.7rem) !important;
        left: 0.6rem !important;
        right: 0.6rem !important;
    }


    /* ---------- Homepage ---------- */
    .category-hero-item-inner {
        padding: 1rem;
    }

    .category-hero-item-inner .btn {
        width: 100%;
    }

    .category-hero-background:before {
        width: 100%;
        background: linear-gradient(to top, var(--black), transparent);
        opacity: 0.8;
        filter: none;
    }

    .categories-hero-slider-thumbnails-wrapper {
        top: 0;
        bottom: auto;
        border-bottom-left-radius: var(--bs-border-radius-xl);
        border-top-left-radius: 0;
        width: 8rem;
        padding-top: 0;
        padding-bottom: 0.5rem;
    }

    .categories-hero-slider-thumbnails {
        width: 100%;
    }

    .categories-hero-slider-thumbnails .slick-list {
        width: 100%;
        height: 100%;
        margin-top: 0;
    }

    .categories-hero-slider-thumbnails .info p {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .categories-hero-slider-thumbnails-wrapper:before {
        top: 0;
        right: 100%;
        bottom: auto;
        transform: scale(-1);
    }

    .categories-hero-slider-thumbnails-wrapper:after {
        right: 0;
        left: auto;
        bottom: auto;
        top: 100%;
        transform: scale(-1);
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
        align-items: flex-start;
    }

    .categories-grid .category-grid-media {
        max-width: 5rem;
    }

    .category-grid-item-inner .title {
        font-size: var(--text-xs);
        line-height: 1.2em;
    }

    .hp-partners-wrapper {
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
    }

    .hp-partners-wrapper .title strong {
        font-size: 3.3rem;
    }

    .hp-partners-wrapper .right {
        padding-top: 1rem;
    }


    /* ---------- Pagina de categorie ---------- */
    .breadcrumbs-container {
        margin: 1rem 0;
        white-space: nowrap;
        overflow: auto;
    }


    .category-header-inner .desc {
        font-size: var(--text-xs);
    }

    /* [NECESITA MARKUP] .categories-cards-wrapper / .categories-cards /
       .category-card-inner / .scrollbar-hidden */
    .categories-cards-wrapper {
        background-color: transparent !important;
    }

    .categories-cards {
        --show: 3.1;
        --margin: 0.15rem;
        overflow: auto;
    }

    .categories-cards::-webkit-scrollbar,
    .subcategories-cards::-webkit-scrollbar,
    .scrollbar-hidden::-webkit-scrollbar {
        -webkit-appearance: none;
        width: 0;
        height: 0;
    }

    .categories-cards .category-card {
        min-width: calc(100% / var(--show) - (2 * var(--margin)));
    }

    .categories-cards .category-card-inner {
        background-color: rgba(var(--bs-light-rgb), 1);
        line-height: 1em;
    }

    .categories-cards .category-card img {
        max-width: 3.5rem;
    }

    .categories-cards .category-card p {
        display: block;
        font-size: var(--text-xxs);
    }

    .subcategories-cards img {
        max-width: 2.5rem;
    }

    .category-products-header .title {
        font-size: var(--text-sm);
    }

    /* [NECESITA MARKUP] .sort-filter-wrapper — bara cu sortare + butonul de filtre. */
    .category-products-header .sort-filter-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }


    /* ---------- Card de produs ---------- */
    .product-card .btn-favorite {
        padding: 0.7rem;
    }

    .product-card-body {
        padding: 0.5rem;
    }

    .product-card .product-description a {
        display: -webkit-box;
        text-overflow: ellipsis;
        word-wrap: break-word;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-height: 1.2em;
        font-size: var(--text-xs);
        overflow: hidden;
    }

    /* [NECESITA MARKUP] .out-of-stock */
    .product-card .out-of-stock {
        font-size: var(--text-xxs);
    }

    .product-card .regular-price {
        font-size: 1rem;
    }

    .product-discount-min-order {
        font-size: var(--text-xxs);
        display: block;
        line-height: 1.2em;
    }

    .product-discount-badge {
        top: 0.5rem;
        left: 0.5rem;
    }


    /* ---------- Pagina de produs ---------- */
    .product-view h1 {
        font-size: var(--text-sm);
    }

    .product-short-description {
        font-size: var(--text-xs);
    }

    /* Bara de "adauga in cos" lipita jos pe mobil. */
    .product-view .product-cart-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0.7rem;
        background: var(--white);
        border-top: 1px solid var(--bs-border-color2);
        z-index: 99;
    }

    .product-labels {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-labels > * {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--bs-border-color2);
    }

    .product-tabs .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: auto;
    }

    .nav-tabs .nav-link {
        font-weight: 500;
        font-size: var(--text-xs);
        padding: 0.5rem 0.75rem;
    }

    .product-downloads-list {
        display: flex;
        flex-direction: column;
    }

    .star-rating .star-wrapper,
    .star-rating .empty-star,
    .star-rating .filled-star {
        width: 1rem;
    }

    .review-utilities .rating-distribution {
        border: none;
        width: 100%;
        padding: 0;
    }

    .review-utilities .add-review {
        width: 100%;
    }

    .product-page-reviews {
        gap: 1rem;
    }

    .product-page-reviews .product-reviews .product-review-item .product-review-head {
        flex-direction: row;
        text-align: left;
        align-items: center;
        margin-bottom: 0.5rem;
    }


    /* ---------- Cos ---------- */
    .cart-page-products {
        border: none !important;
        border-radius: 0 !important;
    }

    .cart-page-products .product-title-wrapper {
        display: block;
        font-size: var(--text-xs);
        line-height: 1.2em;
    }


    /* ---------- Contul meu ---------- */
    .user-sidebar .user-avatar {
        width: 4rem;
    }

    .account-product-review-item img {
        max-width: 5rem;
    }


    /* ---------- Footer ---------- */
    .footer-logo {
        max-width: 8rem;
    }

    .footer-menu-wrapper {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }


    /* ---------- Blog ---------- */
    .articles-list {
        display: block;
    }

    .articles-list .article-list-item-wrapper {
        margin-bottom: 1rem;
    }

    .latest-article-card-content {
        display: block;
    }

    .latest-article-card-content .latest-article-card-media {
        margin-bottom: 2rem;
    }



}


@media (max-width: 440px) {
    .product-cart-cta .quantity-selector button {
        height: 2rem;
        width: 2rem;
    }
    .product-cart-cta .quantity-selector {
        align-items: center;
    }

    .product-cart-cta .add-to-cart {
        font-size: 12px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .product-cart-cta .add-to-cart .icon {
        display: none;
    }
    .product-cart-cta d-flex gap-3 {
        gap: 0.7rem !important;
    }

}