/* ====================================================================
   custom.css — theme-wide override styles for the classic_child theme.

   This file used to @import the whole stylesheet chain; the chain is now
   flattened into individual cachebusted <link> tags in
   templates/_partials/stylesheets.tpl (emitted right before this file, so
   these rules still load LAST and win the cascade — after design-system.css).
   Do NOT add @import rules here: @import URLs bypass the |cachebust
   filemtime versioning and cause stale-cache bugs. Add new files to the
   list in stylesheets.tpl instead.
   See docs/CSS_ARCHITECTURE.md for the full load map.
   ==================================================================== */

/* ====================================================================
   Accessibility Utilities
   ==================================================================== */

.frn-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Homepage hero carousel */
.frn-hero-carousel__slide {
    height: 100%;
    overflow: hidden;
}

.frn-hero-carousel__slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Product sub-icons images styling */
.frn-product-item__sub-icons-item img {
    max-width: 52px;
    max-height: 52px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
}

/* Out-of-stock variant thumbnail - dimmed */
.frn-product-item__sub-icons-item--oos {
    opacity: 0.4;
    position: relative;
}

.frn-product-item__sub-icons-item--oos:hover {
    opacity: 0.7;
}

/* Add to cart button - disabled state */
.frn-product-item__add-to-cart--disabled,
.frn-product-item__add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f0f0f0;
}

.frn-product-item__add-to-cart--disabled img,
.frn-product-item__add-to-cart:disabled img {
    opacity: 0.5;
}

.checkout-step.-reachable.-complete,
.checkout-step.-unreachable {
    display: none;
}

.checkout-step.-reachable.-complete.-current {
    display: block;
}

/* Product Reviews Modal - Hide extra elements */
.frn-product-review__list-item .frn-review-item__title,
.frn-product-review__list-item .frn-review-item__content-wrapper,
.frn-product-review__list-item .frn-review-item__usefulness,
.frn-product-review__list-item .frn-review-item__report {
    display: none !important;
}

/* Ensure proper styling for reviews in modal */
.frn-product-review__list-item .frn-review-item {
    background-color: transparent !important;
    height: auto !important;
    padding: 0 !important;
}

/* Review item content photos styling in modal */
.frn-product-review__list-item .frn-review-item__content-photos {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.frn-product-review__list-item .frn-review-item__content-photos-item {
    width: 96px;
    height: 76px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: unset;
}

.frn-product-review__list-item .frn-review-item__content-photos-item a {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frn-product-review__list-item .frn-review-item__content-photos-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog news list styles */
.frn-news-list__item-title a {
    color: inherit;
    text-decoration: none;
}

.frn-news-list__item-title a:hover {
    color: var(--cDanger);
}

/* Hide default blog styles to avoid conflicts */
.ets-blog-wrapper .page-heading {
    display: none;
}

.ets-blog-wrapper .blog-category {
    margin-bottom: var(--spaceBottomXl);
}

.ets-blog-wrapper .blog-category .page-heading {
    display: block;
}

/* Neutralize ets_blog wrapper classes that may interfere with layout */
.ets-blog-wrapper {
    width: 100%;
}

.ets-blog-wrapper.ets-blog-wrapper-blog-list {
    /* Remove any default margins/paddings from module */
    margin: 0;
    padding: 0;
}

/* Blog pagination styles - adapt ets_blog pagination to frn-pagination design */
.ets-blog-wrapper .blog-paggination,
.ets-blog-wrapper .frn-content-block .pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spaceXs);
}

.ets-blog-wrapper .blog-paggination a,
.ets-blog-wrapper .blog-paggination b,
.ets-blog-wrapper .blog-paggination p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: var(--spaceTopXs) var(--spaceRightS) var(--spaceBottomXs) var(--spaceLeftS);
    background-color: var(--bgcLight);
    border-radius: var(--bdrsPrimarySm);
    font-size: var(--fz-14);
    color: var(--cText);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--bdcPrimaryLight);
}

.ets-blog-wrapper .blog-paggination a:hover {
    background-color: var(--bgcDark);
    border-color: var(--bdcPrimary);
}

/* Active page (bold) */
.ets-blog-wrapper .blog-paggination b {
    background-color: var(--cDanger);
    color: var(--cWhite);
    font-weight: var(--fwHeading);
    border-color: var(--cDanger);
}

/* Dots separator */
.ets-blog-wrapper .blog-paggination p {
    background-color: transparent;
    border: none;
    pointer-events: none;
}

/* First/Last navigation buttons - style like prev/next */
.ets-blog-wrapper .blog-paggination a.frist,
.ets-blog-wrapper .blog-paggination a.last,
.ets-blog-wrapper .blog-paggination a.prev,
.ets-blog-wrapper .blog-paggination a.next {
    font-size: 0;
    padding: var(--spaceTopS) var(--spaceRightS) var(--spaceBottomS) var(--spaceLeftS);
}

.ets-blog-wrapper .blog-paggination a.frist span,
.ets-blog-wrapper .blog-paggination a.last span,
.ets-blog-wrapper .blog-paggination a.prev span,
.ets-blog-wrapper .blog-paggination a.next span {
    font-size: var(--fz-14);
    display: inline-block;
}

#ets_blog_page .ets-blog-wrapper-detail {
    padding: unset;
}

#product .frn-product-comment,
.modal {
    display: none;
}

/* ====================================================================
   Search Modal Styles
   ==================================================================== */

/* Base styles for search modal */
/* Desktop - positioned below the search bar, horizontally centered */
@media (min-width: 997px) {
    .frn-top-search-mobile__content.frn-modal__content--active {
        width: 90%;
        max-width: var(--wMaxDesctop);
        /* 1280px */
        height: auto;
        /* top and max-height are set dynamically via JS */
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translateX(-50%);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
}

/* Compact action footer — reclaim vertical space from top and bottom only */
.frn-top-search-mobile__content .frn-top-search-mobile__content-action-item {
    margin-top: 10px;
}

@media (min-width: 576px) {
    .frn-top-search-mobile__content .frn-top-search-mobile__content-action {
        padding-bottom: 10px;
    }
}

/* Slightly tighter modal content padding (was 32px) on tablet/desktop */
@media (min-width: 768px) {
    .frn-top-search-mobile__content.frn-modal__content {
        padding: 24px;
    }
}

/* Mobile/tablet: single scroll region with a pinned action footer.
   Previously the outer modal AND the inner results both scrolled (two
   scrollbars), which buried the "View all results" button. Make the modal a
   flex column so only the results scroll and the footer stays visible. */
@media (max-width: 996px) {
    .frn-top-search-mobile__content.frn-modal__content--active {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        /* Top sheet: hug the heading + input while there are no results;
           grow with the result list up to the viewport (overrides the
           height:100dvh full-screen rule in responsive/mobile.css) */
        bottom: auto;
        height: auto;
        max-height: 100%;
        padding-bottom: var(--spaceBottomL);
    }

    .frn-top-search-mobile__content .frn-top-search-mobile__content-top,
    .frn-top-search-mobile__content .frn-top-search-mobile__content-search,
    .frn-top-search-mobile__content .frn-top-search-mobile__content-action {
        flex: 0 0 auto;
    }
}

/* Desktop: while the search dropdown is open the page gets a dim overlay;
   lift the header above it so the search input stays clearly visible and
   usable (the search widget can't be lifted alone — the header is its
   stacking context) */
@media (min-width: 997px) {
    /* z-index:auto removes the header's stacking context so the search field
       can rise above the overlay alone; the rest of the header stays dimmed */
    body.frn-search-modal-open .frn-header__content {
        z-index: auto;
    }

    body.frn-search-modal-open .frn-header__content-search {
        position: relative;
        z-index: var(--zHighest);
    }

    /* The input is transparent by default — the dim overlay would show
       through it */
    body.frn-search-modal-open #search_widget form input {
        background-color: var(--cWhite);
    }
}

#topSearchModalOverlay {
    z-index: var(--zHigh3);
}

/* No results message styling */
.frn-top-search-mobile__content .no-results {
    /* Full width: the parent .frn-product-item-list is a flex row, so the
       message would otherwise shrink to content and sit off-center */
    width: 100%;
    padding: var(--spaceTopXl) var(--spaceRightL) var(--spaceBottomXl) var(--spaceLeftL);
    text-align: center;
    color: var(--cTextLight);
    font-size: var(--fz-14);
}

.frn-top-search-mobile__content .no-results__title {
    display: block;
    color: var(--cText);
    font-size: var(--fz-body);
    margin-bottom: var(--spaceBottomXs);
}

.frn-top-search-mobile__content .no-results__text {
    display: block;
    max-width: 420px;
    margin: 0 auto;
}

.frn-top-search-mobile__content-data .frn-product-item-list__item {
    margin-top: unset;
}

/* Tablet search modal: 3 items per row (base is 2, desktop >=997px is 5) */
@media (min-width: 577px) and (max-width: 996px) {
    .frn-top-search-mobile__content-item-list .frn-product-item-list__item {
        width: 33.333%;
        padding-left: 0;
        padding-right: var(--spaceRightXs);
    }

    .frn-top-search-mobile__content-item-list .frn-product-item-list__item:nth-child(3n) {
        padding-right: 0;
    }

    .frn-top-search-mobile__content-data .frn-product-item-list__item:nth-child(n + 4) {
        margin-top: 20px;
    }
}

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

#search_widget form input {
    border: 1px solid #dee1e0;
    border-radius: 6px;
    height: 48px;
    padding: 10px 20px 10px 16px;
    background-color: unset;
    font-family: var(--ffPrimary), sans-serif;
    font-weight: 300;
}

/* Allow taps to pass through the magnifier icon to the input on touch devices */
#search_widget .frn-input__image {
    pointer-events: none;
}

#product .featured-products .frn-content-heading,
#product .frn-top-offers {
    padding-left: 0;
    padding-right: 0;
}

/* ====================================================================
   Product List Controls (Sort & Items Per Page)
   ==================================================================== */

/* Container for sort and items-per-page controls */
.frn-product-list-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Individual control wrapper */
.frn-product-list-control {
    display: flex;
    align-items: center;
}

/* Control select dropdown */
.frn-product-list-control__select {
    min-width: 160px;
    height: 40px;
    padding: 0 36px 0 16px;
    border: 0;
    border-radius: 20px;
    background-color: var(--bgcLight);
    font-size: var(--fz-13);
    font-weight: 500;
    font-family: var(--ffPrimary), sans-serif;
    color: var(--cText);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1b1a' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

.frn-product-list-control__select:hover {
    background-color: var(--bdcPrimary);
}

.frn-product-list-control__select:focus-visible {
    outline: 2px solid var(--cText);
    outline-offset: 2px;
}

/* Responsive: Stack controls vertically on smaller screens */
@media (max-width: 767px) {
    .frn-product-list-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .frn-product-list-control {
        width: 100%;
    }

    .frn-product-list-control__select {
        width: 100%;
    }

    /* Carousel arrows: transparent, no borders/shadows, moved to the sides and aligned to middle of image */
    .frn-top-offers .swiper-button-prev,
    .frn-top-offers .swiper-button-next {
        background-color: transparent !important;
        background: transparent !important;
        border-radius: 0 !important;
        width: 32px !important;
        height: 32px !important;
        box-shadow: none !important;
        border: none !important;
        top: calc(20vw - -15px) !important;
        transform: translateY(-50%) !important;
    }

    /* Keep arrows inside the viewport - negative offsets clipped them at the
       screen edge on phones (the section has no side padding to absorb it). */
    .frn-top-offers .swiper-button-prev {
        left: -5px !important;
    }

    .frn-top-offers .swiper-button-next {
        right: -5px !important;
    }

    .frn-top-offers .swiper-button-prev:after,
    .frn-top-offers .swiper-button-next:after {
        font-size: var(--fz-18)!important;
        font-weight: 600 !important;
        width: auto !important;
        height: auto !important;
        color: var(--cText) !important;
    }

    /* Big carousel arrows (prev112 / next112): transparent, no borders/shadows, moved to the sides */
    #product .swiper-button-prev112,
    #product .swiper-button-next112 {
        background-color: transparent !important;
        background: transparent !important;
        border-radius: 0 !important;
        width: 32px !important;
        height: 32px !important;
        box-shadow: none !important;
        border: none !important;
        top: 65% !important;
        transform: translateY(-50%) !important;
    }

    /* Keep gallery arrows INSIDE the viewport on mobile — negative offsets
       hung them half-offscreen (body scrollWidth 385px at 360px viewport). */
    #product .swiper-button-prev112 {
        left: 4px !important;
    }

    #product .swiper-button-next112 {
        right: 4px !important;
    }

    #product .swiper-button-prev112:after,
    #product .swiper-button-next112:after {
        font-size: var(--fz-18)!important;
        font-weight: 600 !important;
        width: auto !important;
        height: auto !important;
        color: var(--cText) !important;
    }
}

/* Update the total found content to use flexbox layout */
.frn-product-item-list__total-found-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 576px) {
    .frn-product-item-list__total-found-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ====================================================================
   Faceted Search Sidebar Filters Styles
   ==================================================================== */

/* Sidebar container */
.frn-product-item-list__content-side {
    width: 100%;
    padding: var(--spaceTopL) var(--spaceRightL) var(--spaceBottomL) var(--spaceLeftL);
}

/* Figma's sidebar is 280px, but this block lives in #left-column, a Bootstrap
   col-lg-3 that is only 25% of the container. A fixed 280px is wider than that
   column until the viewport reaches ~1295px, so it used to spill right and the
   product grid painted over the filters. Cap the width instead of fixing it. */
@media (min-width: 960px) {
    .frn-product-item-list__content-side {
        width: 100%;
        max-width: 280px;
        padding: 0;
    }
}

/* Filter section top - Header with title and clear all button */
.frn-product-item-list__content-side-top {
    background-color: var(--bgcBody);
    border-radius: var(--bdrsPrimary);
    margin-bottom: var(--spaceBottomL);
}

@media (min-width: 992px) {
    .frn-product-item-list__content-side-top {
        margin-bottom: 16px;
    }
}

/* Filter title with clear button */
.frn-product-item-list__content-side-top-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spaceS);
    font-family: var(--ffHeading), sans-serif;
    font-weight: var(--fwHeading);
    font-size: var(--fz-h3); /* "Filtravimas" — Figma 24, same role token as design-system */
}

.frn-product-item-list__content-side-top-title button {
    flex-shrink: 0;
}

/* Global clear filters button - compact oval style */
.frn-product-item-list__content-side-top .js-search-filters-clear-all {
    height: 40px;
    padding: 0 22px;
    font-size: var(--fz-14);
    border-radius: 50px;
    border: 1px solid var(--bgcDarkest);
    background-color: var(--bgcBody);
    color: var(--cText);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.frn-product-item-list__content-side-top .js-search-filters-clear-all:hover {
    border-color: var(--bdcPrimary);
    background-color: var(--bgcLight);
}

/* Filter options container */
.frn-product-item-list__content-side-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual facet group */
.frn-facet-group {
    display: flex;
    flex-direction: column;
    background-color: var(--bgcBody);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--bdcPrimaryLight);
}

.frn-facet-group:hover {
    border: 1px solid #575757;
}

/* Facet group header (collapsible) */
.frn-facet-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 20px;
    cursor: pointer;
    user-select: none;
}

.frn-facet-group__title {
    font-family: var(--ffHeading), sans-serif;
    font-weight: var(--fwHeading);
    font-size: var(--fz-16); /* Figma 18 Medium -> Figtree-adjusted 16 */
    color: var(--cText);
    margin: 0;
    flex: 1;
    cursor: pointer;
    text-overflow: ellipsis;
}

/* Header actions (clear button + chevron) */
.frn-facet-group__actions {
    display: flex;
    align-items: center;
    gap: var(--spaceS);
}

/* Clear button for individual facet - compact pill style */
.frn-facet-clear-btn {
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 26px !important;
    box-sizing: border-box !important;
    padding: 0 10px !important;
    border-radius: 50px !important;
    border: 1px solid var(--bdcPrimaryLight);
    background-color: var(--bgcBody);
    color: var(--cText);
    font-size: var(--fz-14)!important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 2px !important;
}

.frn-facet-clear-btn:hover {
    border-color: var(--bdcPrimary);
    background-color: var(--bgcLight);
}

.frn-facet-clear-btn .frn-button__icon {
    padding-top: 3px;
}

.frn-facet-clear-btn .frn-button__icon-image {
    width: 9px !important;
    height: 9px !important;
    margin-right: 3px;
    margin-bottom: 1px;
}

.frn-facet-clear-btn .frn-button__text {
    font-weight: 500;
}

/* Chevron icon container */
.frn-facet-group__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Show/hide chevron based on expanded state */
.frn-facet-group__header[data-expanded="true"] .frn-facet-group__chevron-down {
    display: none !important;
}

.frn-facet-group__header[data-expanded="false"] .frn-facet-group__chevron-up {
    display: none !important;
}

/* Collapsible content - jQuery handles animation via slideUp/slideDown */
.frn-facet-group__content {
    overflow: hidden;
}

/* Initial hidden state is rendered inline (style="display:none") by facets.tpl so collapsed groups never flash open before faceted-search.js runs; jQuery toggles it afterwards */

.frn-facet-group__content .frn-input__bottom {
    padding: 0 var(--spaceRightL) var(--spaceBottomL) var(--spaceLeftL);
}

/* Checkboxes/Radio buttons container */
.frn-facet-checkboxes {
    display: flex;
    flex-direction: column;
    gap: var(--spaceS);
}

/* Scrollable container for filters with >7 items */
.frn-facet-checkboxes--scroll {
    max-height: 240px;
    overflow-y: auto;
    padding-right: var(--spaceRightXs);
}

/* Custom scrollbar styling */
.frn-facet-checkboxes--scroll::-webkit-scrollbar {
    width: 6px;
}

.frn-facet-checkboxes--scroll::-webkit-scrollbar-track {
    background-color: var(--bgcLight);
    border-radius: 3px;
}

.frn-facet-checkboxes--scroll::-webkit-scrollbar-thumb {
    background-color: var(--bdcPrimary);
    border-radius: 3px;
}

.frn-facet-checkboxes--scroll::-webkit-scrollbar-thumb:hover {
    background-color: var(--bdcPrimaryDark);
}

/* Checkbox label */
.frn-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--fz-16); /* Figma filter options 16 */
    color: var(--cText);
    user-select: none;
}

.frn-checkbox-label:hover {
    color: var(--cText);
}

.frn-checkbox-label.active {
    color: var(--cText);
    font-weight: var(--fwHeading);
}

/* Checkbox/Radio input - black background with white checkmark when checked */
.frn-checkbox-input {
    width: 14px;
    height: 14px;
    margin-right: var(--spaceRightXs);
    cursor: pointer;
    accent-color: var(--cBlack);
    flex-shrink: 0;
}

/* Checkbox text */
.frn-checkbox-text {
    flex: 1;
    line-height: 1.2;
}

/* Product count (magnitude) */
.frn-magnitude {
    color: var(--cTextLight);
    font-size: var(--fz-13);
}

/* Search input inside filter */
.frn-input--search {
    margin-bottom: var(--spaceBottomS);
}

.frn-input--search .frn-input__control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--bdcPrimaryLight);
    border-radius: var(--bdrsPrimarySm);
    font-size: var(--fz-14);
    font-family: var(--ffPrimary), sans-serif;
    background-color: var(--bgcBody);
    transition: border-color 0.2s ease;
    height: 40px;
    box-sizing: border-box;
}

.frn-input--search .frn-input__control:focus {
    outline: none;
    border-color: var(--bdcPrimary);
}

.frn-input--search .frn-input__control::placeholder {
    color: var(--cTextLight);
}

/* Slider wrapper */
.frn-facet-slider .frn-facet-group__title {
    font-family: var(--ffHeading), sans-serif;
    font-weight: var(--fwHeading);
    font-size: var(--fz-16); /* Figma 18 Medium -> Figtree-adjusted 16 */
    margin-bottom: 0;
}

.frn-slider-label {
    font-size: var(--fz-13);
    color: var(--cTextLight);
    margin-bottom: var(--spaceBottomXs);
    text-align: center;
}

/* ====================================================================
   Slider Input Fields
   ==================================================================== */

.frn-slider-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.frn-product-item-list__content-side-bottom {
    margin-top: var(--spaceTopL);
}

.frn-filters-sort-btn {
    width: 100%;
}

/* Active Filters Styles */
.frn-active-filters {
    margin-top: var(--spaceTopL);
    padding-top: var(--spaceTopL);
    border-top: 1px solid var(--bdcPrimaryLight);
}

.frn-active-filters.hide {
    display: none;
}

.frn-active-filters__title {
    font-family: var(--ffHeading), sans-serif;
    font-weight: var(--fwHeading);
    font-size: var(--fz-14);
    margin-bottom: var(--spaceBottomS);
    color: var(--cText);
}

.frn-active-filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spaceXs);
}
/* Fallback for old Chromium without flex gap. `@supports (gap:…)` cannot be
   used directly (old engines parse `gap` for grid and report true), so we
   proxy with CSS max(), shipped in the same engine era (Chromium 79).
   Wrap list → trailing margin on both axes so wrapped rows stay spaced. */
@supports not (top: max(0px, 0px)) {
  .frn-active-filters__list > * {
    margin: 0 var(--spaceXs) var(--spaceXs) 0;
  }
}

/* Active filter tag */
.frn-active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spaceXs);
    background-color: var(--bgcLight);
    border: 1px solid var(--bdcPrimary);
    border-radius: var(--bdrsPrimarySm);
    padding: var(--spaceTopXxs) var(--spaceRightS) var(--spaceBottomXxs) var(--spaceLeftS);
    font-size: var(--fz-13);
    color: var(--cText);
    transition: all 0.2s ease;
}

.frn-active-filter-tag:hover {
    background-color: var(--bgcDark);
    border-color: var(--bdcPrimaryDark);
}

.frn-active-filter-tag__label {
    line-height: 1.2;
}

.frn-active-filter-tag__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: var(--cDanger);
    color: var(--cWhite);
    border-radius: 50%;
    text-decoration: none;
    font-size: var(--fz-14);
    line-height: 1;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.frn-active-filter-tag__remove:hover {
    background-color: var(--cBlack);
}

.frn-active-filter-tag__remove span {
    display: inline-block;
    transform: translateY(-1px);
}

/* Dropdown select in filters */
.frn-facet-group select.frn-input__control {
    width: 100%;
    cursor: pointer;
}

/* Hide default PrestaShop filter styles */
#search_filters .facet {
    border: none;
    padding: 0;
    margin: 0;
}

#search_filters .facet-title {
    display: none;
}

#search_filters .collapse {
    display: block !important;
    height: auto !important;
}

/* Search link styling */
.frn-checkbox-label a.js-search-link {
    color: inherit;
    text-decoration: none;
}

/* ====================================================================
   Product List Grid - 3 Columns Layout Override
   ==================================================================== */

/* Change product grid from 4 columns to 3 columns on tablet and desktop */
@media (min-width: 768px) {
    /*.frn-product-item-list__item {
        width: 33.333% !important;
    }*/

    /* Reset margin-top for first 3 items instead of 4 */
    .frn-product-item-list__item:nth-child(3) {
        margin-top: 0;
    }

    /* Middle item in each row - padding left and right */
    .frn-product-item-list__item:nth-child(5n+1),
    .frn-product-item-list__item:nth-child(5n+2),
    .frn-product-item-list__item:nth-child(5n+3),
    .frn-product-item-list__item:nth-child(5n+4),
    .frn-product-item-list__item:nth-child(5n+5) {
        padding-right: var(--spaceRightXs) !important;
        padding-left: var(--spaceLeftXs) !important;
        margin-bottom: 10px;
    }
}

/* z_offers styling in cart */
.z_offers-label-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.z_offers-wrapper .frn-checkbox {
    width: 100%;
}

@media (min-width: 768px) {
    #search .frn-product-search-list .frn-product-item-list__item {
        width: 33.333% !important;
    }

    .frn-product-search-list .frn-product-item-list__item {
        width: 33.333% !important;
    }
}

/* ====================================================================
   Email Autocomplete Styles
   ==================================================================== */

/* Dropdown container */
.frn-email-autocomplete {
    position: absolute;
    background-color: var(--bgcBody);
    border: 1px solid var(--bdcPrimaryLight);
    border-radius: var(--bdrsPrimarySm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 9999;
    margin-top: 4px;
}

/* Individual suggestion item */
.frn-email-autocomplete__item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: var(--fz-14);
    color: var(--cText);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--bdcPrimaryLight);
}

.frn-email-autocomplete__item:last-child {
    border-bottom: none;
}

/* Hover state */
.frn-email-autocomplete__item:hover {
    background-color: var(--bgcLight);
    color: var(--cDanger);
}

/* Active state (keyboard navigation) */
.frn-email-autocomplete__item--active {
    background-color: var(--cDanger);
    color: var(--cWhite);
}

.frn-email-autocomplete__item--active:hover {
    background-color: var(--cDanger);
    color: var(--cWhite);
}

/* ====================================================================
   Filter Popup New Layout Styles (#filter1)
   ==================================================================== */

/* Popup content wrapper - flex column: header + content + footer(buttons) */
.frn-filter__content-data--desctop {
    display: flex;
    flex-direction: column;
    height: fit-content;
    padding: var(--spaceM) var(--spaceL) 0 var(--spaceL);
    overflow: hidden;
}

/* Main popup layout - two columns that scroll independently */
.frn-filter__popup-layout {
    display: flex;
    gap: var(--spaceL);
    flex: 1;
    min-height: 0;
    /* Important for flex children to scroll */
    overflow: hidden;
    max-height: 500px;
    height: fit-content;
}

/* LEFT COLUMN - Filter block names */
.frn-filter__popup-left {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid var(--bdcPrimaryLight);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: transparent;
}

.frn-filter__popup-left-scroll {
    height: fit-content;
    overflow-y: auto;
    padding-right: 8px;
    margin-right: 0;
}

/* Filter block item */
.frn-filter__block-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spaceTopS) 0;
    cursor: pointer;
    border-radius: 0;
    transition: color 0.2s ease;
    margin-bottom: 0;
    border-bottom: 1px solid var(--bdcPrimaryLight);
    background-color: transparent;
}

.frn-filter__block-item:last-child {
    border-bottom: none;
}

.frn-filter__block-item:hover {
    background-color: transparent;
}

.frn-filter__block-item--active {
    background-color: transparent;
    font-weight: var(--fwHeading);
}

.frn-filter__block-item-title {
    font-size: var(--fz-14);
    color: var(--cText);
    flex: 1;
}

/* Block clear button */
.frn-filter__block-clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: var(--fz-12);
    border-radius: 50px;
    border: 1px solid var(--bdcPrimaryLight);
    background-color: transparent;
    color: var(--cDanger);
    cursor: pointer;
    transition: all 0.2s ease;
}

.frn-filter__block-clear:hover {
    background-color: var(--cDanger);
    color: var(--cWhite);
    border-color: var(--cDanger);
}

.frn-filter__block-clear .frn-button__icon {
    width: 12px;
    height: 12px;
}

.frn-filter__block-clear .frn-button__icon img {
    width: 100%;
    height: 100%;
}

/* RIGHT COLUMN - Filter options */
.frn-filter__popup-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    height: fit-content;
}

.frn-filter__popup-dropdown {
    display: flex;
    flex-direction: column;
    gap: var(--spaceXs);
    min-width: 150px;
}

.frn-filter__popup-dropdown-label {
    font-size: var(--fz-13);
    color: var(--cTextLight);
    font-weight: 400;
}

.frn-filter__popup-price {
    flex: 1;
    min-width: 200px;
}

.frn-filter__popup-category-pill {
    padding: 8px 20px;
    border: 1px solid var(--bdcPrimaryLight);
    border-radius: 50px;
    background-color: var(--bgcBody);
    color: var(--cText);
    font-size: var(--fz-14);
    cursor: pointer;
    transition: all 0.2s ease;
}

.frn-filter__popup-category-pill:hover {
    background-color: var(--bgcLight);
    border-color: var(--bdcPrimary);
}

.frn-filter__popup-category-pill.active {
    background-color: var(--cBlack);
    color: var(--cWhite);
    border-color: var(--cBlack);
}

/* Categories wrap (inside block content) */
.frn-filter__popup-categories-wrap {
    display: flex;
    gap: var(--spaceS);
    flex-wrap: wrap;
}

/* Sorting options wrapper */
.frn-filter__popup-sorting-options {
    display: flex;
    flex-direction: column;
    gap: var(--spaceL);
}

/* Selects reuse the listing-toolbar pill (.frn-product-list-control__select).
   Only the side-by-side popup caps their width; the mobile panel runs full
   width so they line up with its action buttons. */
.frn-filter__popup-content .frn-filter__popup-sorting-options .frn-filter__popup-dropdown {
    width: 100%;
    max-width: 300px;
}

.frn-filter__popup-sorting-options .frn-filter__popup-dropdown-select {
    width: 100%;
}

/* FILTER CONTENT - Checkboxes area */
.frn-filter__popup-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    max-height: 450px;
}

.frn-filter__popup-block-content {
    padding: var(--spaceTopM);
}

.frn-filter__popup-block-title {
    font-family: var(--ffHeading), sans-serif;
    font-weight: var(--fwHeading);
    font-size: var(--fz-20);
    margin-bottom: var(--spaceBottomL);
}

.frn-filter__popup-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.frn-filter__popup-checkboxes--scroll {
    max-height: 300px;
    overflow-y: auto;
    padding-right: var(--spaceRightXs);
}

.frn-filter__popup-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--fz-16); /* Figma filter options 16 */
    color: var(--cText);
    user-select: none;
    padding: 2px 0;
}

.frn-filter__popup-checkbox-label:hover {
    color: var(--cText);
}

.frn-filter__popup-checkbox-input {
    width: 18px;
    height: 18px;
    margin-right: var(--spaceRightS);
    cursor: pointer;
    accent-color: var(--cBlack);
    flex-shrink: 0;
}

.frn-filter__popup-checkbox-text {
    flex: 1;
    line-height: 1.4;
    display: block;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* MOBILE FILTER MODAL TITLE */
.frn-modal__heading-title {
    flex: 1;
    min-width: 0;
}

#filterMobileTitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* BOTTOM ACTIONS */
.frn-filter__popup-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spaceL);
    padding: var(--spaceM) 0;
    border-top: 1px solid var(--bdcPrimaryLight);
    margin-top: auto;
    flex-shrink: 0;
    background-color: var(--bgcBody);
}
/* Fallback for old Chromium without flex gap (see .frn-active-filters__list). */
@supports not (top: max(0px, 0px)) {
  .frn-filter__popup-actions > * + * {
    margin-left: var(--spaceL);
  }
}

.frn-filter__popup-actions button {
    flex: none;
    white-space: nowrap;
    width: auto;
}

/* Clear all button - outline style, left side */
.frn-filter__popup-actions .js-popup-clear-all {
    padding: 14px 28px;
    max-width: fit-content;
    background-color: var(--bgcBody);
    border: 1px solid var(--bdcPrimary);
    border-radius: 50px;
}

/* ====================================================================
   jQuery UI Slider Styling for Filter Modal
   ==================================================================== */

/* Slider track container - gray background for inactive part */
#filter1 .ui-slider,
.frn-filter__popup-price .ui-slider,
.faceted-slider .ui-slider,
#filter1 .ui-slider.ui-widget-content,
.frn-filter__popup-price .ui-slider.ui-widget-content,
.faceted-slider .ui-slider.ui-widget-content {
    height: 4px !important;
    background: #d9d9d9 !important;
    background-color: #d9d9d9 !important;
    background-image: none !important;
    border: none !important;
    border-radius: 2px !important;
    position: relative !important;
}

/* Selected range (orange/coral color) */
#filter1 .ui-slider .ui-slider-range,
.frn-filter__popup-price .ui-slider .ui-slider-range,
.faceted-slider .ui-slider .ui-slider-range,
#filter1 .ui-widget-header,
.frn-filter__popup-price .ui-widget-header,
.faceted-slider .ui-widget-header {
    background: #EE4719 !important;
    background-color: #EE4719 !important;
    background-image: none !important;
    border: none !important;
    border-radius: 2px !important;
    height: 100% !important;
}

/* Slider handles (black circular dots) */
#filter1 .ui-slider .ui-slider-handle,
.frn-filter__popup-price .ui-slider .ui-slider-handle,
.faceted-slider .ui-slider .ui-slider-handle,
#filter1 .ui-slider .ui-slider-handle.ui-state-default,
.frn-filter__popup-price .ui-slider .ui-slider-handle.ui-state-default,
.faceted-slider .ui-slider .ui-slider-handle.ui-state-default {
    width: 16px !important;
    height: 16px !important;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    background-image: none !important;
    border: none !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: -10px !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

#filter1 .ui-slider .ui-slider-handle:hover,
.frn-filter__popup-price .ui-slider .ui-slider-handle:hover,
#filter1 .ui-slider .ui-slider-handle.ui-state-hover,
.frn-filter__popup-price .ui-slider .ui-slider-handle.ui-state-hover {
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
    border: none !important;
}

#filter1 .ui-slider .ui-slider-handle:focus,
.frn-filter__popup-price .ui-slider .ui-slider-handle:focus,
#filter1 .ui-slider .ui-slider-handle.ui-state-focus,
.frn-filter__popup-price .ui-slider .ui-slider-handle.ui-state-focus,
#filter1 .ui-slider .ui-slider-handle.ui-state-active,
.frn-filter__popup-price .ui-slider .ui-slider-handle.ui-state-active {
    outline: none !important;
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
    border: none !important;
}

/* Mobile responsive */
@media (max-width: 959px) {
    .frn-filter__popup-layout {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .frn-filter__popup-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bdcPrimaryLight);
        margin-bottom: var(--spaceBottomL);
    }

    .frn-filter__popup-left-scroll {
        max-height: 200px;
        padding-right: 0;
    }

    .frn-filter__popup-top {
        flex-direction: column;
    }

    .frn-filter__popup-dropdown {
        width: 100%;
    }

    .frn-filter__popup-actions {
        flex-direction: column;
    }
}

.frn-slider-input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.frn-slider-input {
    width: 105px;
    padding: 8px 28px 8px 8px;
    border: 1px solid var(--bdcPrimaryLight);
    border-radius: var(--bdrsPrimarySm);
    font-size: var(--fz-14);
    font-family: var(--ffPrimary), sans-serif;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.frn-slider-input::-webkit-outer-spin-button,
.frn-slider-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.frn-slider-input:focus {
    outline: none;
    border-color: var(--bdcPrimary);
}

.frn-slider-separator {
    color: var(--cTextLight);
    font-size: var(--fz-14);
}

.frn-slider-unit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cTextLight);
    font-size: var(--fz-13);
    pointer-events: none;
}

/* Homepage Product Lists Module */
.home-product-lists-container {
    margin-bottom: 0;
    padding-top: 0;
}

/* ====================================================================
   Product Availability Styles - Single Status Display
   ==================================================================== */

/* Product listing availability - minimalist design */
.frn-product-item__availability {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fz-14);
    line-height: 1.3;
    margin-top: 4px;
}

.frn-product-item__availability img {
    width: var(--fz-14);
    height: var(--fz-14);
    flex-shrink: 0;
}

.frn-product-item__availability  .frn-delivery__text {
    color: var(--cTextLight);
}

/* Local stock - green text */
.frn-product-item__availability img[alt*="stock"],
.frn-product-item__availability img[alt*="vietoje"] {
    filter: none;
    /* Keep original green color */
}

.frn-product-item__availability:has(img[src*="house-check"]) .frn-delivery__value {
    color: var(--cTertiary);
    /* Green for local stock */
}

/* Delivery date - orange text */
.frn-product-item__availability:has(img[src*="box-lines-danger"]) .frn-delivery__value {
    color: var(--cDanger);
    /* Orange for delivery */
}

/* Temporarily unavailable - gray text */
.frn-product-item__availability:has(img[src*="clock"]) span {
    color: var(--cTextLight);
}

.frn-product-item__availability > span {
  line-height: 1.3;
  height: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Product page availability overrides - gray background */
.frn-deliver {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    background-color: var(--bgcLight);
}

.frn-deliver__icon {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.frn-deliver__icon img {
    width: 20px;
    height: 16px;
}

.frn-deliver__text {
    font-size: var(--fz-14);
    color: var(--cText);
}

.frn-deliver__text strong {
    font-weight: 500;
}

/* Local stock - green styling */
.frn-deliver--local-stock .frn-deliver__text {
    color: var(--cTertiary);
}

.frn-deliver--local-stock .frn-deliver__text strong {
    color: var(--cTertiary);
}

/* Delivery date - orange styling */
.frn-deliver--delivery .frn-deliver__text {
    color: var(--cDanger);
}

.frn-deliver--delivery .frn-deliver__text strong {
    color: var(--cDanger);
}

/* Temporarily unavailable - gray styling */
.frn-deliver--unavailable .frn-deliver__text {
    color: var(--cTextLight);
}

/* Split delivery container - single gray background for all lines */
.frn-deliver-container {
    background-color: #f5f5f5;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.frn-deliver__line {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.frn-deliver__line:first-child {
    padding-top: 0;
}

.frn-deliver__line:last-child {
    padding-bottom: 0;
}

.frn-deliver__line:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Local stock line - all text green, no background */
.frn-deliver__line--local .frn-deliver__text,
.frn-deliver__line--local .frn-deliver__text strong {
    color: var(--cTertiary);
}

/* ====================================================================
   Product Inquiry Form - Inline Validation Errors
   ==================================================================== */

/* Same invalid-field look as ux_validation's .ux-val-error; the message under
   the field is the shared component in "Form Error Styling" below. */
.frn-input__control--error {
    border-color: var(--cError) !important;
    box-shadow: 0 0 0 2px rgba(196, 50, 10, 0.15);
}

.frn-checkbox--error .frn-checkbox__checkmark {
    border-color: var(--cError) !important;
}

/* Result modal styles */
.frn-product-inquiry-result__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.frn-product-inquiry-result__icon {
    margin-bottom: 16px;
}

.frn-product-inquiry-result__message {
    font-family: var(--ffPrimary);
    font-size: var(--fz-14);
    color: var(--cText);
    line-height: 1.5;
}

/* Catalog listing: gap from the subcategory-pills divider down to the
   filter/sort header row (Figma ~48px desktop). Single gap — the inner
   content-blocks reset their padding-top in design-system.css. */
.frn-content-block.frn-product-item-list__content.mt-2 {
    margin-top: 0 !important;
    padding-top: 48px;
}
/* Tablet (popup-filter layout): Figma sits the header row tighter to the pills
   divider (~25px) than desktop. Paired with the search-list padding-top → 24px
   in design-system.css tablet block, this lands products at Figma's ~97px. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .frn-content-block.frn-product-item-list__content.mt-2 {
        padding-top: 25px;
    }
}

/* Ensure step text truncates with ellipsis when container is too narrow */
.frn-cart-page__steps-item {
    overflow: hidden;
}

.frn-cart-page__steps-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile: checkout step indicators sizing */

/* ====================================================================
   Notifications - Full Width
   ==================================================================== */
#notifications .notifications-container {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* The gap belongs to the message, not to its container. As container padding it
   was held on every page, because `_partials/notifications.tpl` renders the
   container whenever `$notifications` is set — which is always. The child theme
   now only renders it when a message exists, and this keeps the space tied to a
   real `<article class="alert">` whatever else emits the container.
   (`:has()` is outside the 2022 browser baseline, so this is done on the child.) */
#notifications .notifications-container > .alert {
    margin-top: 24px;
}

/* 404 pages: hide the "Prekes nebeturime." error  */
#pagenotfound #notifications {
    display: none;
}

#pagenotfound .frn-content-block {
    padding-top: 0;
}

/* Checkout conditions: left-align text */
.frn-cart-page__terms,
.frn-cart-page__terms .frn-checkbox,
.frn-cart-page__terms label,
.js-conditions-to-approve .frn-cart-page__terms {
    text-align: left;
}

/* The Paysera bank picker moved to components/ets-onepagecheckout-modern.css,
   next to the payment-option rules it now shares an outline with. The rules
   here were card-era: rem-based (this theme's root is 14px, so 0.25rem read as
   3.5px), a hardcoded #ff6600 accent that never matched the checkout's
   --cDanger, and a fixed 3-column grid the tiles outgrew. .paysera-group-title
   was dead — the child-theme template drops Paysera's group headings. */

/* Hide DPD phone block since we sync phone from address form */
.dpd-checkout-phone-container, .phone-block-hr {
    display: none !important;
}

/* ====================================================================
   CMS page drawer (FrnCmsModal, product page): a page's own content in
   the 460px drawer, its section headings scaled below the drawer title
   (24px) instead of the page's 28px h2 and 40px section gap.
   ==================================================================== */

.frn-cms-modal__body .frn-content-block {
    padding-top: 24px;
}

.frn-cms-modal__body .frn-content-heading {
    margin-bottom: 8px;
}

/* Out-ranks the design system's .frn-content-heading .frn-heading.frn-heading--h2. */
.frn-cms-modal__body .frn-content-heading .frn-heading.frn-heading--h2 {
    font-size: var(--fz-18);
    font-weight: 600;
    line-height: 1.3;
}

/* ====================================================================
   Discount / Newsletter Block Restyling
   ==================================================================== */

.frn-discount {
    background-color: #D3F0E6 !important;
    border-radius: 8px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

.frn-discount__form {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 32px !important;
}

/* Grid, not flex: the consent line sits on its own row under the controls, so
   it no longer makes the right column taller than the message. Equal-height
   columns are what let both sides share the panel's 24px top/bottom padding. */
.frn-discount__content-left {
    flex: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 0 32px !important;
}

.frn-discount__center {
    display: contents !important;
}

/* align-self:end keeps the field pinned to the bottom of its row, so the
   consent line stays 8px under it even when the message wraps to two lines
   and makes the row taller. */
.frn-discount__inputs-row {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
}

/* The input → consent gap is a margin rather than row-gap so the panel's
   bottom padding stays balanced. */
.frn-discount__checkbox {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 8px 0 0 0 !important;
}

/* A white card like the e-mail field above it: Bootstrap's pale-green
   alert-success all but vanished on the green panel. */
.frn-discount__message {
    grid-column: 1 / -1 !important;
    margin: 16px 0 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--cWhite);
    color: var(--cText);
    font-size: var(--fz-14);
    line-height: 1.4;
}

/* Lifted 1px onto the cap-height centre; centred on the line box it read low. */
.frn-discount__message::before {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: no-repeat center;
    transform: translateY(-1px);
}

.frn-discount__message--success::before {
    background-image: url("../img/icons/check-circle-success.svg");
    background-size: 20px 20px;
}

.frn-discount__message--error::before {
    background-image: url("../img/icons/i-circle-danger.svg");
    background-size: 20px 20px;
}

/* Spans both rows so it optically centres against the field *and* the consent
   line beneath it; confined to row 1 it sat noticeably high. */
.frn-discount__top {
    width: auto !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.frn-discount__heading {
    display: block !important;
    position: static !important;
}

.frn-discount__heading .frn-heading--h2 {
    font-size: var(--fz-h3)!important;
    font-weight: 500 !important;
    color: #1a1b1a !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.frn-discount__text {
    font-size: var(--fz-14, 14px)!important;
    color: var(--cText) !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Carries the offer now that the -5% badge is gone. */
.frn-discount__text strong {
    font-weight: 600 !important;
    color: var(--cDanger, #ee4719) !important;
}


.frn-discount__inputs-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: auto !important;
}
/* Fallback for old Chromium without flex gap (see .frn-active-filters__list). */
@supports not (top: max(0px, 0px)) {
  .frn-discount__inputs-row > * + * {
    margin-left: 12px;
  }
}

.frn-discount__control {
    flex: 0 0 390px !important;
    padding: 0 !important;
}

.frn-discount__control .frn-input,
.frn-discount__control .frn-input__bottom {
    width: 100% !important;
}

/* Email input styling. display:block + no bottom margin — the theme's 5px
   margin left slack under the field and pushed the consent line down. */
.frn-discount__control .frn-input__control {
    display: block !important;
    margin-bottom: 0 !important;
    border-radius: 100px !important;
    border: 1px solid #dee1e0 !important;
    height: 44px !important;
    padding: 0 20px !important;
    background-color: #fff !important;
    color: #1a1b1a !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.frn-discount__control .frn-input__control::placeholder {
    color: #989695 !important;
}

.frn-discount__action {
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* Subscribe button styling */
.frn-discount__action .frn-button {
    border-radius: 100px !important;
    height: 44px !important;
    padding: 0 28px !important;
    background-color: #1a1b1a !important;
    border: none !important;
    color: #fff !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
    width: auto !important;
    cursor: pointer !important;
}

.frn-discount__action .frn-button:hover {
    background-color: #333333 !important;
}

.frn-discount__checkbox {
    padding: 0 !important;
    margin-top: 4px !important;
}

.frn-discount__checkbox .frn-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    font-size: var(--fz-13)!important;
    color: #1a1b1a !important;
    cursor: pointer !important;
}

.frn-discount__checkbox .frn-checkbox a {
    text-decoration: underline !important;
    color: #1a1b1a !important;
}

.frn-discount__checkbox .frn-checkbox__checkmark {
    border-radius: 4px !important;
    border: 1px solid #1a1b1a !important;
}

/* Mobile & Tablet view customization */
@media (max-width: 996px) and (min-width: 768px) {
    .frn-discount {
        padding: 24px !important;
    }

    .frn-discount__form {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: stretch !important;
    }

    /* Single column: message, then controls, then consent — each its own grid
       row, so the panel keeps the same 24px top and bottom. */
    .frn-discount__content-left {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        gap: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .frn-discount__top {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .frn-discount__inputs-row {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        margin-top: 16px !important;
    }

    .frn-discount__checkbox {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    .frn-discount__control {
        flex: 1 1 auto !important;
    }
}

@media (max-width: 767px) {
    .frn-discount {
        padding: 24px 20px !important;
    }

    .frn-discount__form {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 16px !important;
        align-items: center !important;
    }

    /* Flatten DOM hierarchy for layout */
    .frn-discount__content-left,
    .frn-discount__top,
    .frn-discount__center,
    .frn-discount__inputs-row {
        display: contents !important;
    }

    .frn-discount__heading {
        grid-column: 1 / 3 !important;
        grid-row: 1 / 2 !important;
        margin: 0 !important;
    }

    .frn-discount__heading .frn-heading--h2 {
        line-height: 1.25 !important;
        margin: 0 !important;
    }

    .frn-discount__text {
        grid-column: 1 / 3 !important;
        grid-row: 2 / 3 !important;
        line-height: 1.4 !important;
        margin-top: -4px !important;
    }

    .frn-discount__control {
        grid-column: 1 / 3 !important;
        grid-row: 3 / 4 !important;
        width: 100% !important;
    }

    .frn-discount__control .frn-input__control {
        width: 100% !important;
        height: 48px !important;
    }

    .frn-discount__checkbox {
        grid-column: 1 / 3 !important;
        grid-row: 4 / 5 !important;
        margin: 0 !important;
    }

    .frn-discount__checkbox .frn-checkbox {
        font-size: var(--fz-13)!important;
    }

    .frn-discount__action {
        grid-column: 1 / 3 !important;
        grid-row: 5 / 6 !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    .frn-discount__action .frn-button {
        width: 100% !important;
        height: 48px !important;
    }

    .frn-discount__message {
        grid-column: 1 / 3 !important;
        grid-row: 6 / 7 !important;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* ====================================================================
   Form Error Styling — the one field-error look on every storefront form:
   PrestaShop's .form-error (account, address and checkout forms), the
   contact and product-inquiry forms (.frn-input__error-message) and the
   returns form (.frn-returns-form__field-error). ux_validation draws the
   same look in its own stylesheet.
   ==================================================================== */
.form-error {
    padding: 0 !important;
    display: block !important;
    animation: form-error-slide-in 0.25s ease-out !important;
}

.form-error span,
.form-error ul li,
.frn-input__error-message,
.frn-returns-form__field-error {
    font-family: var(--ffPrimary), sans-serif !important;
    font-size: var(--fz-14)!important;
    color: var(--cError) !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    font-style: normal !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

.form-error span,
.form-error ul li {
    margin: 2px 0 !important;
    padding: 0 !important;
}

.frn-input__error-message,
.frn-returns-form__field-error {
    margin-top: 4px;
}

.form-error span::before,
.form-error ul li::before,
.frn-input__error-message::before,
.frn-returns-form__field-error::before {
    content: '' !important;
    display: inline-block !important;
    width: 14px !important;
    /* As tall as the first text line, so the glyph centres on it. */
    height: 1.4em !important;
    min-width: 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c4320a'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm0 10.5a.75.75 0 110-1.5.75.75 0 010 1.5zM8.75 4.75v4a.75.75 0 01-1.5 0v-4a.75.75 0 011.5 0z'/%3E%3C/svg%3E") !important;
    background-size: 14px 14px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

@keyframes form-error-slide-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.frn-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* font-size carries no !important on purpose: it only has to outrank
   design-system.css's `.frn-button__text`, which it already does on
   specificity, and !important made the button scale unoverridable for the
   surfaces that legitimately need a smaller label. */
.frn-button span,
.frn-button .frn-button__text {
    display: inline-block !important;
    height: auto !important;
    padding: 0 !important;
    font-size: var(--fz-button);
    font-weight: 500 !important;
}

.frn-button i,
.frn-button img {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
}

/* overflow-x must live on <body> ONLY: any overflow value on <html> makes the
   viewport scroll via <html> and every modal's body-level scroll lock stops
   working. With <html> left at default, body's overflow (incl. this hidden-x)
   propagates to the viewport, so horizontal clipping still applies. */
html, body {
    font-size: var(--fz-body);
}

body {
    overflow-x: hidden;
}

.form-control {
    font-size: var(--fz-16); /* Figma form inputs 16 (also prevents iOS zoom) */
}

/* A list-view alternative to the bank grid was styled here and never rendered:
   no template emits .paysera-custom-list / .paysera-list-left /
   .paysera-bank-title, and the child-theme Paysera override only ever builds
   .paysera-custom-grid. Dropped with the grid rewrite rather than left as a
   second, unreachable treatment of the same control. */

/* Ensure search autocomplete dropdown stays above the search overlay */
.ui-autocomplete.searchbar-autocomplete {
    z-index: var(--zHighest) !important;
}

/* Dynamic modal cards lack the standard wrapper, so their outer image container carries the same border. */
.frn-product-item__image-wrapper,
#topSearchMobileContent .frn-product-item__image,
#product-variants-modal .frn-product-item__image,
#internal-collection-products-modal .frn-product-item__image {
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--bgcProductImage);
}

.frn-product-item__image > img,
.frn-product-item__image > a > img,
.frn-product-item__image-wrapper > img,
.frn-card-gallery-strip__track img,
.frn-product-big__image img,
.frn-product-big__icon img {
    mix-blend-mode: multiply;
}

.frn-product-item__image-wrapper {
    position: relative;
    display: inline-block;
    height: 100%;
}

/* Avoid subpixel width:auto rounding exposing a seam between colored photos and the border. */
.frn-product-item__image > img,
.frn-product-item__image > a > img,
.frn-product-item__image-wrapper > img {
    width: 100%;
}

@media (max-width: 767px) {
    .frn-product-item__image,
    .frn-product-item__image-wrapper {
        height: auto;
    }
    .frn-product-item__image img {
        height: auto;
        object-fit: contain;
    }
}

/* Align product card prices horizontally in rows when titles wrap to multiple lines */
.frn-product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.frn-product-item__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

.frn-cart__item-list-item .frn-product-item {
    flex-direction: unset;
}

.frn-product-item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.frn-product-item-list__item .frn-product-item__title {
    display: -webkit-box;
    line-height: 1.35;
    max-height: calc(1.35em * 2);
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#modal .modal-dialog {
    max-width: 800px;
}

#modal .modal-content {
    position: relative;
    padding-top: 30px;
}

#modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    margin: 0;
}

.order-table-wrapper { margin-bottom: 24px; }

/* GDPR page: psgdpr floats its export buttons and never clears them, so
   they hang over the next panel */
#module-psgdpr-gdpr .psgdprinfo17 { overflow: hidden; }
/* the module wraps its content in a bootstrap .container, which indents it
   with side paddings the account column already provides */
#module-psgdpr-gdpr .account-content .container {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* account empty states ("You have not placed any orders" and friends) */
.account-content .alert-info {
  background: var(--c-bg-soft);
  border: 0;
  border-radius: 8px;
  padding: 40px 24px;
  text-align: center;
  color: var(--c-mute);
  font-size: var(--fz-14);
}
.account-content .alert-info::before {
  content: "";
  display: block;
  width: 44px;
  height: 42px;
  margin: 0 auto 14px;
  background: url("../img/icons/box-lines.svg") no-repeat center / contain;
  opacity: .45;
}
/* account notices — the theme's note pattern (accent 5% tint, accent left bar) */
.account-content .alert-warning {
  background: #fdf1ec;
  border: 0;
  border-left: 3px solid var(--c-accent);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--c-ink);
  font-size: var(--fz-14);
}

/* credit slips & merchandise returns — a plain table (too little data for
   the order cards) that collapses to the same stacked card on mobile */
.account-table { width: 100%; font-size: var(--fz-14); margin-bottom: 0; }
.account-table th,
.account-table td {
  border: 0;
  padding: 12px 24px 12px 0;
  text-align: left;
  vertical-align: middle;
}
.account-table thead th {
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.account-table tbody td { border-bottom: 1px solid var(--c-line-3); }
.account-table tbody tr:last-child td { border-bottom: 0; }
.account-table td:last-child { text-align: right; padding-right: 0; }
.account-table a {
  color: var(--c-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* mobile: the same stacked card as the order-history table
   (.account-table--flat opts out and stays a plain table) */
@media (max-width: 767px) {
  .account-table:not(.account-table--flat) thead { display: none; }
  .account-table:not(.account-table--flat),
  .account-table:not(.account-table--flat) tbody,
  .account-table:not(.account-table--flat) tr,
  .account-table:not(.account-table--flat) td { display: block; width: auto; }
  .account-table:not(.account-table--flat) tr {
    position: relative;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
    overflow: hidden;
  }
  .account-table:not(.account-table--flat) tr:last-child { margin-bottom: 0; }
  .account-table:not(.account-table--flat) td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--c-line-3);
    margin: 0 16px;
    padding: 12px 0;
    text-align: right;
  }
  .account-table:not(.account-table--flat) td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--c-ink);
    text-align: left;
    flex: 0 0 auto;
    margin-right: 12px;
  }
  .account-table:not(.account-table--flat) td:first-child {
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
    padding: 14px 160px 14px 16px;
    background: var(--c-bg-soft);
    border-bottom: 1px solid var(--c-line);
    font-weight: 600;
    text-align: left;
  }
  .account-table:not(.account-table--flat) td:last-child {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 14px 16px;
    border: 0;
  }
  .account-table:not(.account-table--flat) td:last-child::before { content: none; }
  .account-table:not(.account-table--flat) td:nth-last-child(2) { border-bottom: 0; }
}

/* order history — always stacked cards; from 768px the body fields flow
   inline (label over value) and wrap onto new lines when they don't fit */
.account-orders-table { width: 100%; }
.account-orders-table th,
.account-orders-table td { border: 0; }
.account-orders-table .label.label-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-ink);
  color: #fff;
  font-weight: 500;
}
.account-orders-table .order-actions { white-space: nowrap; }
.account-orders-table thead { display: none; }
.account-orders-table,
.account-orders-table tbody,
.account-orders-table th,
.account-orders-table td { display: block; width: auto; }
.account-orders-table tr {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  margin-bottom: 16px;
  background: #fff;
  overflow: hidden;
}
.account-orders-table td {
  flex: 1 1 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid var(--c-line-3);
  margin: 0 16px;
  padding: 12px 0;
  text-align: right;
  font-weight: 400;
  font-size: var(--fz-14);
}
.account-orders-table td::before {
  content: attr(data-label);
  font-weight: 600;
  color: var(--c-ink);
  font-size: var(--fz-14);
  text-align: left;
  flex: 0 0 auto;
  margin-right: 12px;
}
/* card header band: order number left, details link (absolute, so the band
   always owns a full flex line) right */
.account-orders-table th[scope="row"] {
  order: -1;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 120px 14px 16px;
  font-weight: 600;
  font-size: var(--fz-14);
  background: var(--c-bg-soft);
  border: 0;
  border-bottom: 1px solid var(--c-line);
}
.account-orders-table th[scope="row"]::before {
  content: attr(data-label);
  font-weight: 600;
}
.account-orders-table td.order-actions {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  background: none;
}
.account-orders-table td.order-actions::before { content: none; }
.account-orders-table td.order-actions .view-order-details-link {
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* visually last body row (order-actions is DOM-last but sits in the header band) */
.account-orders-table tr > td:nth-last-child(2) { border-bottom: 0; }
.account-orders-table tr:last-child { margin-bottom: 0; }

/* wide cards: body fields become label-over-value groups flowing inline,
   wrapping onto a new line only when the row runs out of width. Every card
   holds the same fields with the same flex bases, so column edges and wrap
   points align vertically across cards. Below 1025px the sidebar squeezes
   the cards, so tablet keeps the phone's stacked rows. */
@media (min-width: 1025px) {
  .account-orders-table td:not(.order-actions) {
    flex: 1 1 160px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border-bottom: 0;
    margin: 0;
    padding: 14px 16px 16px 16px;
    text-align: center;
  }
  .account-orders-table td:not(.order-actions)::before { margin-right: 0; }
  .account-orders-table td:nth-child(2) { flex: 0 1 130px; }  /* date */
  .account-orders-table td:nth-child(3) { flex: 0 1 120px; }  /* total */
  .account-orders-table td:nth-child(4) { flex: 1 1 220px; }  /* payment */
  .account-orders-table td:nth-child(5) { flex: 1 1 250px; }  /* status */
  .account-orders-table td:nth-child(6) { flex: 0 1 150px; }  /* invoice */
}

/* CUSTOM FURNI DESIGN VARIABLES FOR ACCOUNT PAGE */
:root {
  --c-ink:        rgb(26, 27, 26);
  --c-ink-2:      rgb(32, 33, 32);
  --c-ink-3:      rgb(44, 46, 44);
  --c-mute:       rgb(87, 87, 87);
  --c-mute-2:     rgb(152, 150, 149);
  --c-mute-3:     rgb(156, 156, 156);
  --c-line:       rgb(222, 225, 224);
  --c-line-2:     rgb(229, 229, 229);
  --c-line-3:     rgb(240, 242, 241);
  --c-bg:         rgb(255, 255, 255);
  --c-bg-soft:    rgb(244, 245, 244);
  --c-bg-soft-2:  rgb(247, 247, 247);
  --c-bg-mint:    rgb(211, 240, 230);
  --c-accent:     rgb(238, 71, 25);
  --c-accent-2:   rgb(241, 76, 30);
  --c-green:      rgb(62, 132, 102);
  --c-blue:       rgb(52, 85, 206);
  --radius-card:  8px;
  --radius-pill:  50px;
}

@media (max-width: 991px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ACCOUNT FORMS (identity #customer-form, address .js-address-form) — shared
   frn-cart-page markup restyled to the account design */
.account-content .frn-cart-page__fields {
    max-width: 520px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.account-content .frn-cart-page__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    flex: 1 1 100%;
}

/* half-width pairs: name, password, postcode+city */
.account-content .frn-cart-page__field:has(#firstname),
.account-content .frn-cart-page__field:has(#lastname),
.account-content .frn-cart-page__field:has(#password),
.account-content .frn-cart-page__field:has(#new_password),
.account-content .frn-cart-page__field:has(#postcode),
.account-content .frn-cart-page__field:has(#city) {
    flex: 0 0 calc(50% - 8px);
}

@media (max-width: 575px) {
  .account-content .frn-cart-page__field:has(#firstname),
  .account-content .frn-cart-page__field:has(#lastname),
  .account-content .frn-cart-page__field:has(#password),
  .account-content .frn-cart-page__field:has(#new_password),
  .account-content .frn-cart-page__field:has(#postcode),
  .account-content .frn-cart-page__field:has(#city) {
    flex: 0 0 100%;
  }
}

.account-content .frn-input__label {
    text-align: left;
    margin-bottom: 6px;
    font-size: var(--fz-14);
    font-weight: 500;
    color: var(--c-ink);
    padding: 0;
    display: block;
}

.account-content .frn-input__control {
    height: 48px;
    border-radius: var(--radius-card);
    border: 1px solid var(--c-line);
    padding: 0 16px;
    font-size: var(--fz-14);
    color: var(--c-ink);
    background: #fff;
    outline: none;
    transition: border-color .15s;
    box-shadow: none;
    width: 100%;
}

.account-content select.frn-input__control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("../img/icons/arrow-down.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.account-content .frn-input__control:focus {
    border-color: var(--c-ink);
}

.account-content .frn-input__control::placeholder {
    color: var(--c-mute-3);
}

.account-content .frn-cart-page__total-wrapper {
    width: 100%;
    margin-top: 8px;
    text-align: left;
    align-items: flex-start;
}

.account-content .frn-cart-page__bottom-action {
    justify-content: flex-start;
}

.account-content button.frn-button {
    border-radius: var(--radius-pill);
    background: var(--c-ink);
    color: #fff;
    padding: 12px 32px;
    border: none;
    font-weight: 500;
    font-size: 16px;
    height: 48px;
    width: auto;
    float: left;
}

/* Full-width primary action on phones, like the auth, checkout and returns forms. */
@media (max-width: 767px) {
    .account-content button.frn-button {
        width: 100%;
        min-width: 0;
        float: none;
    }
}

.account-content button.frn-button:hover {
    background: var(--c-ink-2);
}

/* RESTORED ACCOUNT STYLES */
.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  padding: 30px 0 0;
  align-items: start;
}

/* left nav */
.account-nav {
  border: 1px solid var(--c-line);
  border-radius: 8px;
  overflow: hidden;
}
.account-nav__head {
  padding: 20px 24px;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
}
.account-nav__name {
  font-size: 16px; font-weight: 500;
  color: var(--c-ink); margin: 0 0 2px 0;
}
.account-nav__email {
  font-size: 14px; font-weight: 300;
  color: var(--c-mute-2); margin: 0;
}
.account-nav__list { list-style: none; margin: 0; padding: 0; }
.account-nav__link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  font-size: var(--fz-14);
    font-weight: 400;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  transition: background .12s, color .12s;
  text-decoration: none;
}
.account-nav__list li:last-child .account-nav__link { border-bottom: 0; }
.account-nav__link:hover { background: var(--c-bg-soft); color: var(--c-ink); }
.account-nav__link.is-active {
  background: var(--c-ink); color: #fff;
}
.account-nav__link.is-active .account-nav__icon { filter: invert(1); }
.account-nav__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: .75;
}
.account-nav__label { flex: 1; }

/* right content panel */
.account-content { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
/* the 1rem #content padding in customer-account.css belongs to the auth pages'
   white-box design; the account grid owns its own spacing */
#content.account-content { padding: 0; }
.account-content > :last-child { margin-bottom: 0; }
.account-content__title {
  font-size: var(--fz-h2); font-weight: 500;
  color: var(--c-ink);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
}
.account-panel { display: none; }
.account-panel.is-active { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* address cards (.address-card base + address are shared with order-detail) */
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.address-card {
  border: 1px solid var(--c-line); border-radius: 8px;
  padding: 24px;
}
.address-card address { font-style: normal; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--c-mute); }

/* addresses page: header-band card, actions row, add link */
.address-grid .address-card { padding: 0; overflow: hidden; background: #fff; }
.address-grid .address-card h3 {
  font-size: 14px; font-weight: 600; color: var(--c-ink);
  margin: 0; padding: 12px 16px;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
}
.address-grid .address-card address { padding: 16px 16px 0; margin: 0; }
.address-card__actions { display: flex; align-items: center; gap: 24px; padding: 16px; }
.address-card__actions a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--c-ink);
  text-decoration: none;
}
.address-card__actions img { width: 15px; height: 15px; }
.address-card__edit {
  border: 1px solid var(--c-ink);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  transition: background .15s, color .15s;
}
.address-card__edit:hover { background: var(--c-ink); color: #fff; }
.address-card__edit:hover img { filter: invert(1); }
.address-card__delete:hover { text-decoration: underline; }
/* a.: the later .btn base rule would flatten inline-flex back to inline-block */
a.address-add-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px;
}
.address-add-link img { width: 12px; height: 12px; filter: invert(1); }
@media (max-width: 767px) {
  .address-grid { grid-template-columns: 1fr; }
}

/* helper image placeholder (in preview only) */
.ph {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, #f0f2f1 0 8px, #f7f7f7 8px 16px);
  display: grid; place-items: center;
  font: 12px/1 ui-monospace, monospace;
  color: #98968d;
}

/* CUSTOM BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  border: none;
  line-height: 1.5;
}

.btn--ghost { border: 1px solid var(--c-line); color: var(--c-ink); background: #fff; }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--solid { background: var(--c-ink); color: #fff; }
/* a.btn--solid: the account pages' blanket `.page-* a` color rule is (0,1,1),
   which a bare class cannot outrank */
a.btn--solid, a.btn--solid:hover { color: #fff; }
.btn--solid:hover { background: var(--c-ink-2); }
.btn--white { background: #fff; color: var(--c-ink); }
.btn--white:hover { background: var(--c-bg-soft); }
.btn--grey { background: #DEE1E0; color: var(--c-ink); }
.btn--grey:hover { background: #2C2E2C; color: #fff; }
.btn--grey .frn-button__text { color: inherit; }

/* --- Order Detail & Account Sidebar Responsive Styles --- */
@media (max-width: 767px) {
  .order-section { margin-bottom: 24px; }
  .order-section--prominent {
    margin-bottom: 24px; padding: 20px;
  }

  .order-summary {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .account-layout {
    flex-direction: column;
  }

  .delivery-days {
    font-size: 12px; padding: 3px 6px;
  }

  .order-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .order-section__title {
    font-size: 16px;
  }

  .delivery-days {
    font-size: 11px; padding: 2px 4px;
  }
}

/* ============================================================
   ACCOUNT PAGE & NAVIGATION - RESPONSIVE
   ============================================================ */

/* Desktop (> 768px) */
.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
}

/* Guest order tracking renders no account nav; doubled class outranks the
   per-breakpoint column rules without !important. */
.account-layout.account-layout--guest {
  grid-template-columns: minmax(0, 1fr);
}

.account-nav {
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .account-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
  }

  .account-nav {
    top: 10px;
  }

  .account-nav__label {
    font-size: 13px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 20px;
  }

  .account-nav {
    position: static;
  }

  .account-nav__head {
    padding: 16px;
  }

  .account-content__title {
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .account-nav__name {
    font-size: 16px;
    font-weight: 600;
  }

  .account-nav__email {
    font-size: 13px;
    margin-top: 4px;
  }

  .account-nav__link {
    padding: 12px 16px;
    font-size: 13px;
  }

  .account-nav__icon {
    width: 16px;
    height: 16px;
  }

  .account-content {
    width: 100%;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
  .account-nav__head {
    padding: 12px;
  }

  .account-nav__name {
    font-size: 14px;
  }

  .account-nav__email {
    font-size: 12px;
  }

  .account-nav__link {
    padding: 11px 14px;
    font-size: 12px;
  }

  .account-nav__icon {
    width: 14px;
    height: 14px;
  }

  .account-content {
    padding: 0;
  }

  .account-content__title {
    font-size: var(--fz-h2);
  }

  .account-content__subtitle {
    font-size: 13px;
  }
}

/* Account panels */
.account-panel {
  margin-bottom: 32px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}

@media (max-width: 767px) {
  .account-panel {
    margin-bottom: 20px;
    padding: 16px;
  }
}

@media (max-width: 479px) {
  .account-panel {
    padding: 12px;
  }
}

/* =====================================================================
   ACCOUNT PAGES — FONT SCALE
   Semantic font-size variables; the values switch at the mobile breakpoint
   so every element is declared only once.
     --fz-account-body      → 16px desktop / 15px mobile
     --fz-account-secondary → 14px desktop / 13px mobile (dense: tables,
                              labels, meta, badges, nav labels)
   Headings keep their own larger sizes.
   ===================================================================== */
:root {
  /* Aligned to the global design-system scale so account pages match the rest
     of the site (was 16/15 body, 14/13 secondary). Revert to fixed values here
     if account text should be larger than the storefront base. */
  --fz-account-body: var(--fz-body);
  --fz-account-secondary: var(--fz-small);
}

/* base. NOTE: a theme rule forces 13px here via a path invisible to the CSSOM
   (not in any readable sheet, grouping rule, shorthand or adopted sheet), so
   !important is required to apply the intended body size. It is non-important,
   so this wins; children keep their own sizes (font-size is not force-inherited). */
.account-layout .account-nav { font-size: var(--fz-account-body) !important; }

/* primary / body text */

.order-summary__row,.order-summary__total,.address-card address { font-size: var(--fz-account-body); }

/* secondary / dense text */

/* the order-history and order-products cards keep a fixed --fz-14 (set with
   their card rules) instead of the responsive secondary scale */
.order-table__attrs,.account-nav__label,.account-nav__email,.delivery-days { font-size: var(--fz-account-secondary); }

/* ========================================
   Guest order page. Its "create an account" card is the order confirmation's
   .frn-account-card (below); the lookup form (guest-login.tpl) uses the
   .frn-auth-form block in components/auth.css.
   ======================================== */

.page-guest-tracking #content {
  font-family: var(--ffPrimary);
  color: var(--cText);
  font-size: var(--fz-14);
}

/* ============================================================
   CookieYes consent banner — defensive spacing.
   The widget is styled entirely by cdn-cookieyes.com script.js; its
   button spacing relies on modern gap behavior and collapses on old
   Chromium, merging the three pill buttons into one blob
   (front_errors complaint, 2026-07). Margins are immune to that.
   !important is required to beat the widget's own inline/loaded CSS.
   ============================================================ */
.cky-notice-btn-wrapper .cky-btn {
  margin: 6px 8px 6px 0 !important;
}
@media (max-width: 576px) {
  .cky-notice-btn-wrapper .cky-btn {
    margin: 6px 0 !important;
    display: block !important;
    width: 100% !important;
  }
}

/* ============================================================
   Floating Messenger chat button (bottom-right, all pages).
   Meta retired the embedded customer-chat plugin, so the button
   deep-links to the shop's page via m.me instead.
   ============================================================ */
.frn-messenger-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000; /* above the z-100 sticky add-to-cart, below 9000+ modals */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cBlack);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.frn-messenger-chat:hover {
  opacity: 0.85;
}

.frn-messenger-chat img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Clear the mobile product page's fixed add-to-cart bar (~72px). */
@media (max-width: 576px) {
  #product .frn-messenger-chat {
    bottom: 84px;
  }
}

/* ========================================
   Post-purchase account card (order confirmation and the guest order page)
   Rendered by furni_custom_hooks' displayFurniAccountCard hook, right below
   the confirmation lead paragraph and under a guest's order. Offers guest checkout customers a form to
   create a password-only account for the order they just placed.
   ======================================== */

.frn-account-card {
    background: var(--bgcLight, #f7f7f5);
    border: 1px solid var(--bdcPrimary, #dee1e0);
    border-radius: 8px;
    margin: 16px 0 24px;
    padding: 20px;
}

.frn-account-card__title {
    font-size: var(--fz-18);
    margin: 0 0 6px;
}

.frn-account-card__lead {
    color: var(--cTextLight2, #575757);
    font-size: var(--fz-14);
    margin: 0 0 14px;
}

.frn-account-card__form {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* The 220px basis is the input's width beside the button; in the mobile
   column layout a basis would set its height instead. */
@media (min-width: 768px) {
    .frn-account-card__row {
        flex: 1 1 220px;
    }
}

.frn-account-card__label {
    display: block;
    font-size: var(--fz-14);
    margin-bottom: 4px;
}

/* 48px matches .frn-button's height so the input+pill pair sits symmetric;
   font stays 16 to avoid iOS focus zoom. */
.frn-account-card__input.form-control {
    background: var(--cWhite, #fff);
    border: 1px solid var(--bdcPrimary, #dee1e0);
    border-radius: var(--bdrsPrimarySm, 4px);
    color: var(--cText, #202120);
    font-size: var(--fz-16);
    height: 48px;
    padding: 0 var(--spaceS, 12px);
    width: 100%;
}

.frn-account-card__error {
    color: var(--cError);
    flex-basis: 100%;
    font-size: var(--fz-13);
    margin: 0;
}

/* .frn-button is width:100%; beside the password input this pill must
   shrink to content, while the mobile column layout below stretches it. */
.frn-account-card__submit.frn-button {
    cursor: pointer;
    flex: 0 0 auto;
    width: auto;
}

@media (max-width: 767px) {
    .frn-account-card__form {
        align-items: stretch;
        flex-direction: column;
    }

    .frn-account-card__submit.frn-button {
        width: 100%;
    }
}

/* Gallery headings with a "Rodyti daugiau" pill beside the title
   (.frn-heading__action-right in ps_featuredproducts, ps_categoryproducts,
   productlist-furni and the product-page collection sliders): below 576px the
   pill and the title fight for one line and both wrap. The pill collapses to
   a 40px round arrow; the label stays in the DOM, visually hidden, so the
   link keeps its accessible name. The arrow is a currentColor mask so it
   follows the button's own text colour through hover. */
@media (max-width: 576px) {
    .frn-heading__action-right .frn-button--outline-2 {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .frn-heading__action-right .frn-button--outline-2 .frn-button__text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .frn-heading__action-right .frn-button--outline-2::before {
        content: "";
        width: 18px;
        height: 18px;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}


.frn-newsletter-verification .frn-empty__text {
    padding-top: 0;
}

.frn-newsletter-verification__title {
    justify-content: center;
    margin: 0 0 var(--heading-gap);
    text-align: center;
}

/* min-content + a nowrap title makes the title set the column width, so the
   status message wraps to it instead of running wider. Phones keep the full
   column: there the title is already near the viewport width and narrowing
   would also shrink the button. */
@media (min-width: 768px) {
    .frn-newsletter-verification .frn-empty__text {
        width: min-content;
        margin: 0 auto;
    }

    .frn-newsletter-verification__title {
        white-space: nowrap;
    }
}

.frn-newsletter-verification__message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: var(--fz-body);
    line-height: var(--lh-base);
    color: var(--cTextLight2);
    text-align: left;
}

.frn-newsletter-verification__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: var(--cWhite);
}

.frn-newsletter-verification--success .frn-newsletter-verification__icon {
    background-color: var(--cTertiary);
}

.frn-newsletter-verification--error .frn-newsletter-verification__icon {
    background-color: var(--cDanger);
}

/* ============================================
   Contact page (templates/contact.tpl): form + company contacts side by side
   ============================================ */
/* #content is a flex row, so the grid needs an explicit width to fill it.
   Offset under the breadcrumb and the centred 10/12 column match CMS pages. */
.frn-contact-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    width: 100%;
    margin: 0 auto;
}

/* Below 768 the wrapping .frn-content-block already supplies the 32px. */
@media (min-width: 768px) {
    .frn-contact-page {
        padding-top: 32px;
    }
}

@media (min-width: 992px) {
    .frn-contact-page {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 48px;
        width: 83.333%;
        padding-top: 40px;
    }
}

@media (min-width: 1200px) {
    .frn-contact-page {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 64px;
    }
}

/* Sized so a one-line IBAN row in PS_SHOP_DETAILS (~314px) fits on desktop. */
.frn-contact-page__info {
    align-self: start;
    padding: 20px;
    border-radius: var(--bdrsPrimary);
    background-color: var(--bgcLight);
}

.frn-contact-page__title {
    margin: 0 0 20px;
    font-size: var(--fz-h2);
    font-weight: 600;
    color: var(--cBlack);
}

.frn-contact-page__subtitle {
    margin: 24px 0 10px;
    padding-top: 20px;
    border-top: 1px solid var(--bdcPrimary);
    font-size: var(--fz-h3);
    font-weight: 600;
}

.frn-contact-page__list {
    margin: 0;
}

.frn-contact-page__list dt {
    font-size: var(--fz-small);
    font-weight: 400;
    color: var(--cTextLight);
}

.frn-contact-page__list dd {
    margin: 2px 0 14px;
    font-size: var(--fz-body);
    color: var(--cText);
}

.frn-contact-page__list dd:last-child {
    margin-bottom: 0;
}

.frn-contact-page__list a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.frn-contact-page__details {
    margin: 0;
    padding: 0;
    list-style: none;
    text-wrap: pretty;
    font-size: var(--fz-body);
    line-height: 1.5;
    color: var(--cText);
}

.frn-contact-page__details li + li {
    margin-top: 8px;
}

/* Contact form sent: the confirmation takes the form's place. Its check icon is
   the newsletter success message's too (.frn-discount__message--success). */
.frn-contact-sent {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    border: 1px solid var(--bdcPrimary);
    border-radius: var(--bdrsPrimary);
    text-align: center;
}

.frn-contact-sent__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    background: url("../img/icons/check-circle-success.svg") no-repeat center / contain;
}

.frn-contact-sent__title {
    margin: 0 0 12px;
    font-size: var(--fz-h2);
    font-weight: 600;
    color: var(--cBlack);
}

.frn-contact-sent__text {
    max-width: 420px;
    margin: 0 0 4px;
    font-size: var(--fz-body);
    line-height: 1.5;
    color: var(--cText);
    overflow-wrap: anywhere;
}

.frn-contact-sent__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.frn-contact-sent .frn-contact-sent__button {
    width: auto;
    min-width: 220px;
    padding: 0 32px;
    text-decoration: none;
}

.frn-contact-sent__again {
    font-size: var(--fz-body);
    color: var(--cText);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.frn-contact-sent__again:hover {
    color: var(--cText);
    text-decoration: none;
}

/* Footer payment pills link to heading ids on the payment CMS page; keep the
   target heading off the viewport edge. */
#cms .frn-heading[id] {
  scroll-margin-top: 24px;
}

/* ====================================================================
   Category page header (2026-11-21): breadcrumb, title + filter-preset
   pills, divider, then the filters | products columns.
   Desktop (>= 997px, where the filters show in #left-column, a col-lg-3)
   puts the title and the pills on one row, split like the columns below:
   the title over the filters, the pills from the first product card's left
   edge (25% column + 15px column padding + 8px card padding) to the
   container's right edge. Mobile (< 768px) stacks them, swaps the trail for
   a link to the parent and hides the toolbar (the floating button sorts).
   The pills stay the theme's Swiper (custom.js FrnSubItemsSlider).
   ==================================================================== */
#category {
    --frn-cat-muted: #6b6c6b;
    --frn-cat-line: #e6e7e6;
}

#category .frn-content-block.frn-brdcr {
    padding-top: 32px;
}

#category .frn-thumbnails {
    font-size: var(--fz-13);
    line-height: 18px;
}

#category .frn-thumbnails a {
    color: var(--frn-cat-muted);
}

#category .frn-thumbnails span {
    color: var(--cText);
}

.frn-brdcr__back {
    display: none;
}

.frn-cat-head.frn-content-block {
    padding-top: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--frn-cat-line);
}

.frn-cat-head__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.frn-content-block .frn-heading.frn-cat-head__heading {
    margin: 0;
    font-size: 28px;
    line-height: 34px;
    font-weight: 500;
    letter-spacing: -0.4px;
    color: #1a1b1a;
}

.frn-cat-head__count {
    display: none;
    font-size: var(--fz-13);
    color: var(--frn-cat-muted);
    white-space: nowrap;
}

/* The preset module wraps the slider in its own content block. */
.frn-cat-head > .frn-content-block {
    padding: 16px 0 0;
    min-width: 0;
}

.frn-subitems-slider {
    position: relative;
    z-index: var(--zLevel1);
}

.frn-subitems-slider .swiper {
    margin: 0 52px;
}

.frn-subitems-slider .swiper-slide {
    width: auto;
}

.frn-subitems-slider__item {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 20px;
    background-color: var(--bgcLight);
    font-size: var(--fz-13);
    font-weight: 500;
    color: var(--cText);
    white-space: nowrap;
    text-decoration: none;
}

.frn-subitems-slider__item:hover {
    background-color: var(--bdcPrimary);
    color: var(--cText);
    text-decoration: none;
}

.frn-subitems-slider__item--active,
.frn-subitems-slider__item--active:hover {
    background-color: #1a1b1a;
    color: var(--cWhite);
}

.frn-subitems-slider .swiper-button-prev,
.frn-subitems-slider .swiper-button-next {
    top: 0;
    width: 40px;
    height: 40px;
    margin-top: 0;
    border-radius: 20px;
    background-color: var(--bgcLight);
    color: var(--frn-cat-muted);
}

.frn-subitems-slider .swiper-button-prev {
    left: 0;
}

.frn-subitems-slider .swiper-button-next {
    right: 0;
}

.frn-subitems-slider .swiper-button-prev::after,
.frn-subitems-slider .swiper-button-next::after {
    font-size: 12px;
    font-weight: 700;
}

/* Divider → filter/sort row → products: 32px, a 40px row, 16px. */
#category .frn-content-block.frn-product-item-list__content.mt-2 {
    padding-top: 32px;
}

#category .frn-product-search-list.frn-content-block {
    padding-top: 16px;
}

#category .frn-product-item-list__content-side-top-title .frn-heading {
    font-size: 20px;
    line-height: 40px;
    font-weight: 500;
}

@media (min-width: 997px) {
    .frn-cat-head {
        display: grid;
        grid-template-columns: 25% 75%;
        align-items: center;
    }

    .frn-content-block .frn-heading.frn-cat-head__heading {
        font-size: 34px;
        line-height: 40px;
        letter-spacing: -0.5px;
    }

    .frn-cat-head > .frn-content-block {
        padding: 0 0 0 23px;
    }

    /* Without pills a long title may use the whole row. */
    .frn-cat-head__title:only-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    #category .frn-content-block.frn-brdcr {
        padding-top: 20px;
    }

    #category .frn-brdcr .frn-thumbnails {
        display: none;
    }

    #category .frn-brdcr__back {
        display: flex;
        width: fit-content;
        align-items: center;
        gap: 4px;
        font-size: var(--fz-13);
        line-height: 18px;
        color: var(--frn-cat-muted);
        text-decoration: none;
    }

    .frn-cat-head.frn-content-block {
        padding-top: 12px;
        padding-bottom: 20px;
    }

    .frn-cat-head__count {
        display: inline;
    }

    .frn-subitems-slider .swiper-button-prev,
    .frn-subitems-slider .swiper-button-next {
        display: none;
    }

    /* The row runs to the screen edge so the clipped last pill shows it scrolls. */
    .frn-subitems-slider .swiper {
        margin: 0 calc(-1 * var(--spaceRightL)) 0 0;
    }

    .frn-subitems-slider__item {
        padding: 0 16px;
    }

    #category .frn-product-item-list__total-found {
        display: none;
    }

    /* !important: responsive/mobile.css sets this shared wrapper's spacing with !important. */
    #category .frn-content-block.frn-product-item-list__content.mt-2 {
        margin-top: 0 !important;
        padding-top: 20px !important;
    }

    #category .frn-product-search-list.frn-content-block {
        padding-top: 0;
    }
}
