@media (max-width: 576px) {
    :root {
        --fz-14: 13px;
        --fz-15: 14px;
        --fz-16: 15px;
        --fz-17: 15px;
        --fz-18: 16px;
        --fz-20: 18px;
        --fz-21: 18px;
        --fz-24: 22px;
        --fz-28: 24px;
        --fz-32: 28px;
        --fz-36: 32px;
        --fz-40: 36px;
        --fz-44: 40px;
        --fz-46: 40px;
        --fz-48: 40px;
        --fz-56: 48px;
        --fz-132: 80px;
    }
    #content-wrapper {
        font-size: 13px;
        padding-right:0;
        padding-left: 0;
    }
    .text-xs-right {
        text-align: right!important;
    }

    .frn-header__top-line-left {
        display: none;
    }
    .hidden-sm-up {
        display: block;
    }
    .hidden-sm-up-flex {
        display: flex;
    }
    .frn-product-item-list__content {
        flex-direction: column;
    }
    .frn-content-block.frn-product-search-list, .frn-content-block-product__left {
        margin-left: calc(-1 * var(--spaceLeftL));
        margin-right: calc(-1 * var(--spaceRightL));
    }
    .frn-product-search-list .page-not-found {
        padding-left: var(--spaceLeftL);
        padding-right: var(--spaceRightL);
    }

    .frn-top-search-mobile__content-data .frn-product-item-list__item, .frn-top-search-mobile__content-data .frn-product-item-list__item:nth-child(n + 6) {
        margin-top: 10px !important;
    }

    #topSearchMobileContent {
        padding-left: 0;
        padding-right: 0;
    }

    .frn-top-search-mobile__content-item-list .frn-product-item__link {
        padding-left: 5px;
    }

    .frn-product-item-list__item:nth-child(odd) {
        padding-right: 4px;
    }
    .frn-product-item-list__item:nth-child(2n) {
        padding-left: 4px;
    }
    .frn-product-item-list {
        flex-direction: row;
    }
    .frn-product-item-list__content-side-options {
        display: none;
    }
    #reviewSlides {
        width: unset;
        height: unset;
    }
    .frn-items-with-term__item-text {
        font-size: 16px;
    }
    .frn-items-with-term__item-text strong {
        font-size: 18px;
    }
    .frn-top-offers .swiper-button-prev {
        left: 0;
        top: 100px;
    }
    .frn-top-offers .swiper-button-next {
        right: 0;
        top: 100px;
    }
    .frn-top-offers .swiper-button-prev:after,
    .frn-top-offers .swiper-button-next:after {
        font-size: 18px;
        font-weight: 600;
    }
    .frn-index-reviews__content{
        position: relative;
    }
    .frn-index-reviews__content .frn-top-offers {
        position: unset;
    }
    .frn-index-reviews__content .frn-top-offers .swiper-button-prev {
        left: 0;
        top: 50%;
    }
    .frn-index-reviews__content .frn-top-offers .swiper-button-next {
        right: 0;
        top: 50%;
    }
    .frn-review-item__action {
        margin: unset;
    }
    .frn-review-item__content {
        margin-bottom: 1.5rem;
    }
    .frn-review-item__action .frn-button{
        background-color: unset;
    }
    .frn-header__top-line-right {
        padding: unset;
    }
    .frn-hero-carousel__wrapper {
        margin-left: calc(-1 * var(--spaceLeftL));
        margin-right: calc(-1 * var(--spaceRightL));
    }
    #search_filters .frn-product-item-list__content-side-options {
        display: none;
    }
    .frn-product-item-list__item {
        width: 50%;
    }
    #left-column #search_filters .frn-product-item-list__content-side-top {
        display: none;
    }
    #left-column .frn-product-item-list__content-side,
    #left-column .frn-product-item-list__content-side .frn-content-block {
        padding: unset;
    }
    .frn-product-item-list__total-found-content .frn-total-found {
        width: 100%;
        border-top: unset;
    }
    .frn-product-item-list__total-found-content .frn-product-list-controls {
        display: none;
    }

    #product-variants-modal .frn-variants-grid.js-variants-grid {
        flex-wrap: wrap;
        display: flex;
        gap: unset;
    }
    #product-variants-modal .frn-variants-grid.js-variants-grid .frn-product-item {
        width: 50%;
    }
    .frn-product-item-cart__estimate {
        display: flex;
    }
    .frn-product-item-cart__bottom {
        flex-direction: column;
        align-items: unset;
    }
    .frn-product-item-cart__top {
        flex-direction: row;
    }
    .frn-product-information-form .frn-input__control--textarea {
        height: 120px;
    }
    .frn-product-information-form__action button {
        width: 100%;
    }
    .frn-custom-text {
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
    }
    .frn-header__top-line {
        padding-left: var(--container-pad);
        padding-right: var(--container-pad);
    }

    .frn-custom-text .frn-contacts__item-text span {
        margin-left: 2px;
        margin-right: 2px;
    }

    .frn-top-offers {
        height: fit-content;
    }

    .frn-discount__form {
        flex-direction: column;
    }

    .frn-discount__top {
        width: 100%;
    }

    .frn-hero-carousel__wrapper .frn-hero-carousel__slide-content_layout {
        left: 30px;
    }

    .frn-hero-carousel__wrapper .frn-hero-carousel__slide-content-action .frn-button {
        width: 96px;
    }

    .frn-top-search-mobile__content.frn-modal__content {
        /* On mobile - full screen */
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-width: 100%;
        z-index: var(--zHighest);
    }

    .frn-content-block__actions_tablet,
    .frn-product-item-list__content-side-bottom {
        display: none;
    }

    .frn-content-block--no-space-top {
        padding-top: 5px;
    }

    .frn-filter__popup-actions .js-popup-apply-filters {
        max-width: 100%;
        width: 100%;
    }
    #product .frn-product-big__image,
    #productBigCarousel1 .swiper-wrapper,
    #product .frn-product-big .swiper-slide .frn-product-big__image picture img,
    #product .frn-product-big .swiper-slide .frn-product-big__icon picture img {
        aspect-ratio: 3 / 2;
    }
    #product .frn-content-block-product__left {
        padding-right: unset !important;
    }
    #product .frn-product-big__image-share,
    #product .frn-product-big__image-favorite,
    #product .frn-product-big__image-zoom {
        width: 36px;
        height: 36px;
    }
    #product .frn-product-big__image-share img,
    #product .frn-product-big__image-favorite img,
    #product .frn-product-big__image-zoom img {
        width: 18px;
        height: 18px;
    }

    #product .frn-product-big__top {
        position: relative;
    }

    /* Default arrows style on mobile (subtle) */
    #product .swiper-button-prev112,
    #product .swiper-button-next112 {
        width: 36px;
        height: 36px;
        background-color: rgba(255, 255, 255, 0.85);
        border-radius: 50%;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
        transition: all 0.25s ease;
    }
    #address .form-footer.clearfix.mt-2 {
        width: 100%;
    }

    /* --spaceLeftL (20), matching Figma's mobile margin and the footer, so the
       header, breadcrumb, content and footer all share one inset. */
    #cart #wrapper {
        padding-right: var(--spaceRightL);
        padding-left: var(--spaceLeftL);
    }

    #checkout .frn-content-block.frn-brdcr {
        padding-left: 15px;
    }

    #cart .frn-header__top-line-content,
    #checkout .frn-header__top-line-content {
        width: 70%;
    }
    #cart .frn-header__top-line-content,
    #cart .frn-header__top-line-content .frn-contacts,
    #checkout .frn-header__top-line-content,
    #checkout .frn-header__top-line-content .frn-contacts {
        display: block;
        margin: unset;
    }
    #cart .frn-header__top-line-content .frn-contacts .frn-contacts__item .frn-contacts__item-hint,
    #cart .frn-header__top-line-content .frn-contacts .frn-contacts__item .frn-contacts__item-text,
    #checkout .frn-header__top-line-content .frn-contacts .frn-contacts__item .frn-contacts__item-hint,
    #checkout .frn-header__top-line-content .frn-contacts .frn-contacts__item .frn-contacts__item-text {
        text-align: end;
    }

    /* The item is a column flex; centred items shrink-wrap, so text-align above
       only aligned text inside each box and the block still sat mid-column. */
    #cart .frn-header__top-line-content .frn-contacts .frn-contacts__item,
    #checkout .frn-header__top-line-content .frn-contacts .frn-contacts__item {
        align-items: flex-end;
    }

    /* Figma mobile checkout header: hint 14, phone 18. */
    #cart .frn-header__top-line-content .frn-contacts .frn-contacts__item .frn-contacts__item-hint,
    #checkout .frn-header__top-line-content .frn-contacts .frn-contacts__item .frn-contacts__item-hint {
        font-size: 14px;
    }

    #cart .frn-header__top-line-content .frn-contacts .frn-contacts__item .frn-contacts__item-text,
    #cart .frn-header__top-line-content .frn-contacts .frn-contacts__item .frn-contacts__item-text a,
    #checkout .frn-header__top-line-content .frn-contacts .frn-contacts__item .frn-contacts__item-text,
    #checkout .frn-header__top-line-content .frn-contacts .frn-contacts__item .frn-contacts__item-text a {
        font-size: 18px;
    }

    /* Flex row: logo left, contacts right, closed by the divider Figma draws
       across the header's width. */
    #cart .frn-header__content,
    #checkout .frn-header__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 18px;
        padding-bottom: 16px;
        margin-left: var(--spaceLeftL);
        margin-right: var(--spaceRightL);
        width: unset;
        border-bottom: 1px solid #dee1e0;
    }

    /* Show logo on mobile */
    #cart .frn-header__content-logo,
    #checkout .frn-header__content-logo {
        display: block !important;
    }

    /* Show contacts on mobile */
    #cart .frn-header__top-line-right,
    #checkout .frn-header__top-line-right {
        display: flex !important;
    }

    /* Hide working hours on mobile */
    #cart .frn-header .frn-contacts__item:nth-child(2),
    #checkout .frn-header .frn-contacts__item:nth-child(2) {
        display: none;
    }

    #cart .frn-contacts__item .frn-contacts__item-hint,
    #checkout .frn-contacts__item .frn-contacts__item-hint {
        font-size: 12px;
    }

    /* Show step text only for the current (open) step */
    .frn-cart-page__steps-item--open .frn-cart-page__steps-item-text {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: auto;
        max-width: 100%;
    }

    /* Make completed and future steps narrower */
    .frn-cart-page__steps-item--prev,
    .frn-cart-page__steps-item--next {
        width: 36px;
        min-width: 36px;
        padding: 0;
        flex: 0 0 36px;
    }

    /* Current step: reduce padding, let it take remaining space */
    .frn-cart-page__steps-item--open {
        padding-left: 8px;
        padding-right: 4px;
        overflow: hidden;
    }
    #checkout .alert {
        margin-bottom: unset;
    }
    #checkout .back-to-choice-btn,
    #checkout .frn-login__actions .frn-login__actions-item {
        width: 100%;
    }

    .frn-cart-page__delivery-manual-item-text {
        min-height: 26px;
        height: fit-content;
    }

    #checkout-buyer-details-step .frn-addr-separator--wide {
        margin-top: unset !important;
    }
    #company-fields {
        grid-template-columns: 1fr !important;
    }
    .frn-filter__popup-category-pill {
        width: 100%;
        text-align: center;
    }
    .frn-filter__popup-actions .js-popup-clear-all {
        width: 100%;
        max-width: unset !important;
    }
    .frn-filter__popup-price .frn-slider-inputs {
        justify-content: space-between;
    }

    /* Sticky add-to-cart button on mobile product page */
    #product .frn-add-to-cart {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 3px 16px;
    }

    /* Bottom padding so sticky bar doesn't cover page content */
    #product .frn-footer {
        padding-bottom: calc(var(--spaceBottomXxl) + 72px);
    }
    /* === GDPR Page === */

    /* Style GDPR data export buttons as brand buttons */
    #module-psgdpr-gdpr .psgdprgetdatabtn17,
    #module-psgdpr-gdpr .btn-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 48px;
        background-color: #1a1b1a;
        color: #fff;
        border: none;
        border-radius: 24px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        font-family: var(--ffPrimary);
        margin-top: 16px;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        text-transform: none;
        letter-spacing: 0;
    }

    #module-psgdpr-gdpr .psgdprgetdatabtn17:hover,
    #module-psgdpr-gdpr .btn-primary:hover {
        background-color: #2f3232e6;
        color: #fff;
        text-decoration: none;
    }

    /* Style GDPR footer links as brand buttons */
    #module-psgdpr-gdpr .page-footer .account-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 48px;
        background-color: #1a1b1a;
        color: #fff;
        border-radius: 24px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        font-family: var(--ffPrimary);
    }

    #module-psgdpr-gdpr .page-footer .account-link:hover {
        background-color: #2f3232e6;
        color: #fff;
        text-decoration: none;
    }

    #module-psgdpr-gdpr .page-footer .account-link i {
        display: none;
    }

    #module-psgdpr-gdpr .page-footer .account-link span {
        color: #fff;
        height: auto;
        line-height: normal !important;
    }

    /* Center the product inquiry result modal on mobile */
    .frn-product-inquiry-result.frn-modal__content--active {
        width: 90%;
        max-width: 340px;
        left: 50%;
        right: auto;
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        border-radius: 12px;
        overflow: visible;
    }

    #product .frn-main__content,
    #product #wrapper {
        padding-bottom: unset;
    }

    .frn-product-item__image>img {
        height: unset;
        width: 100%;
        object-fit: cover;
    }
    .frn-product-item__image img>img {
        height: 135px !important;
    }

    .container.page-content.page-cms {
        padding-left: unset;
        padding-right: unset;
    }

    /* Make footer contacts fit inline on mobile homepage */
    .frn-contacts:not(.frn-contacts--vertical),
    .frn-contacts:not(.frn-contacts--vertical) #custom-text {
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
    }
    .frn-contacts:not(.frn-contacts--vertical) .frn-contacts__item,
    .frn-contacts:not(.frn-contacts--vertical) #custom-text .frn-contacts__item {
        flex-shrink: 0;
    }
    .frn-contacts:not(.frn-contacts--vertical) .frn-contacts__item-text,
    .frn-contacts:not(.frn-contacts--vertical) #custom-text .frn-contacts__item-text {
        white-space: nowrap;
    }
    .frn-contacts:not(.frn-contacts--vertical) .frn-contacts__item-text span,
    .frn-contacts:not(.frn-contacts--vertical) #custom-text .frn-contacts__item-text span {
        margin-right: 3px !important;
        margin-left: 3px !important;
    }

    .frn-product-item__title {
        font-size: 13px;
    }
    .frn-product-item__availability .frn-delivery__text {
        display: none;
    }

    .frn-content-block {
        padding-top: var(--section-gap);
    }

    .frn-product-item-content {
        padding: 0 5px;
    }

    .frn-content-block.frn-product-item-list__content.mt-2 {
        margin-top: 13px !important;
        padding-top: 0 !important;
    }
    .frn-label {
        font-size: var(--fz-13);
    }
}

/* iOS Safari zooms the viewport into any focused control drawn below 16px and
   never zooms back out, so every text-entry type has to be listed here — the
   sign-in and registration password fields were missing and zoomed the page. */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="search"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important;
    }

    .frn-top-search-mobile__content-top, .frn-top-search-mobile__content-search  {
        padding: 0 10px;
    }
}

/* Below 576 the footer's own --spaceLeftL padding sets the inset; the row must
   not add a second one (that produced 36px). At exactly 576 the >=576 rules
   take over and zero the footer's padding, so this stops short of it rather
   than sharing the 576 boundary and leaving the row flush. */
@media (max-width: 575.98px) {
    .frn-footer__bottom {
        padding-left: 0;
        padding-right: 0;
    }
}
