/* Reference layout is confined to the unfiltered mobile homepage. */
.mobile-home-categories, :is(.home-mobile-reference, .catalog-header-reference) .header .mobile-home-search-action { display: none; }
@media (max-width: 767px) {
    :is(.home-mobile-reference, .catalog-header-reference) .header .mobile-home-search-action { display: inline-flex; border: 0; }
    body.home-mobile-reference { background: #fff; color: #0b0b0b; padding-top: 0 !important; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    :is(.home-mobile-reference, .catalog-header-reference) .site-chrome-backdrop { display: none; }
    :is(.home-mobile-reference, .catalog-header-reference) .site-chrome-sticky { position: sticky; top: 0; z-index: 1002; background: #fff; }
    :is(.home-mobile-reference, .catalog-header-reference) .promo-bar { position: relative !important; inset: auto; width: calc(100% - 16px); margin: 0 8px; min-height: 24px; height: auto; padding: 5px 8px; background: #f3f3f5; color: #222; border-radius: 0 0 9px 9px; font-size: 11px; box-shadow: none; }
    :is(.home-mobile-reference, .catalog-header-reference) .promo-bar p { margin: 0; font-size: 11px; line-height: 1.4; }
    :is(.home-mobile-reference, .catalog-header-reference) .promo-bar a { color: inherit; }
    body:is(.home-mobile-reference, .catalog-header-reference) .header { position: relative !important; inset: auto; background: #fff !important; border: 0; box-shadow: none; color: #111; }
    :is(.home-mobile-reference, .catalog-header-reference) .header-shell { background: #fff !important; padding: 0; }
    body:is(.home-mobile-reference, .catalog-header-reference) .header .header-row--primary { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'logo actions' 'search search'; gap: 5px 12px; padding: 12px 14px 9px; min-height: 0; background: #fff !important; }
    :is(.home-mobile-reference, .catalog-header-reference) .header-leading { display: none !important; }
    body:is(.home-mobile-reference, .catalog-header-reference) .header .header-row--primary .logo-brand { grid-area: logo; justify-self: start; align-items: flex-start; padding: 0 !important; width: 100%; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .logo-brand > .logo { transform: none; margin: 0; width: 100%; max-width: 190px; min-height: 44px; justify-content: flex-start; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .logo-brand .logo-image { width: 100%; height: auto; max-height: 52px; object-fit: contain; object-position: left center; filter: none; }
    body:is(.home-mobile-reference, .catalog-header-reference) .header .header-row--primary .nav-actions { grid-area: actions; display: flex; align-items: center; gap: 10px; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .nav-actions .nav-action-link { color: #111 !important; background: transparent !important; min-width: 36px; padding: 4px; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .nav-actions svg { width: 25px; height: 25px; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .nav-actions .nav-action-link svg,
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-icon svg {
        color: #000 !important;
        stroke: #000 !important;
        fill: none;
        opacity: 1;
    }
    :is(.home-mobile-reference, .catalog-header-reference) .header .nav-action-link.cart-btn svg circle {
        fill: #000;
    }
    :is(.home-mobile-reference, .catalog-header-reference) .header .nav-action-label { display: none; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .cart-badge { background: #ff6000; color: #fff; border: 0; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .staff-edit-toggle { color: #111; }
    body:is(.home-mobile-reference, .catalog-header-reference) .header .header-search { grid-area: search; display: block !important; position: relative !important; inset: auto; width: 100%; margin: 0; padding: 0; opacity: 1; visibility: visible; transform: none; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-form { min-height: 36px; border: 1px solid #e0e1e6 !important; border-radius: 13px !important; background: #f2f2f4 !important; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-form input { height: 36px; font-size: 13px; color: #333 !important; background: transparent; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-form input::placeholder { color: #747780; }
    :is(.home-mobile-reference, .catalog-header-reference) .header-search-icon { color: #555; padding-left: 12px; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-submit { min-width: 38px !important; min-height: 36px !important; padding: 0 6px !important; background: transparent !important; color: #555 !important; }
    :is(.home-mobile-reference, .catalog-header-reference) .header-search-submit-label { font-size: 9px; letter-spacing: 0; }
    :is(.home-mobile-reference, .catalog-header-reference) .header-row--categories { display: none !important; }
    .home-mobile-reference main { display: flex; flex-direction: column; padding-top: 0 !important; }
    .home-mobile-reference main > * { order: 10; }
    .home-mobile-reference .hero-carousel { order: 0; width: calc(100% - 16px); margin: 0 8px 12px; height: auto !important; aspect-ratio: 2.31; min-height: 0 !important; border: 0 !important; border-radius: 10px; overflow: hidden; }
    .home-mobile-reference .carousel-track, .home-mobile-reference .carousel-slide, .home-mobile-reference .slide-image { height: 100% !important; min-height: 0 !important; }
    .home-mobile-reference .slide-image-img { height: 100%; width: 100%; object-fit: cover; }
    .home-mobile-reference .slide-content { padding: 20px 16px; width: 62%; }
    .home-mobile-reference .slide-content h2 { font-size: clamp(20px, 5.5vw, 36px); line-height: 1.04; margin-bottom: 7px; }
    .home-mobile-reference .slide-subtitle { font-size: 14px; margin-bottom: 10px; }
    .home-mobile-reference .slide-actions .btn { padding: 8px 20px; border-radius: 16px; font-size: 14px; }
    .home-mobile-reference .carousel-btn { display: none; }
    .home-mobile-reference .carousel-dots { left: 16px; right: auto; bottom: 10px; transform: none; gap: 6px; }
    .home-mobile-reference .carousel-dots .dot { width: 7px; height: 7px; min-width: 7px; padding: 0; background: #d6d6d6; border: 0; }
    .home-mobile-reference .carousel-dots .dot.active { background: #ff6000; }
    .home-mobile-reference .mobile-home-categories { display: block; order: 1; margin: 0 12px 10px; }
    .mobile-home-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; gap: 8px; }
    .mobile-home-heading h2 { font-size: 21px; margin: 0; letter-spacing: -.6px; }
    .mobile-home-heading button { color: #ff6000; border: 0; background: none; font-size: 12px; padding: 8px 0; }
    .mobile-home-heading button span { margin-left: 5px; }
    .mobile-home-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .mobile-home-category-grid > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: #f4f4f6; border-radius: 10px; padding: 8px 3px; min-height: 75px; color: #111; text-decoration: none; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
    .mobile-home-category-grid .cat-ico, .mobile-home-category-grid .cat-ico svg { width: 43px; height: 43px; }
    .home-mobile-reference .home-trust-bar { order: 2; margin: 0 10px 12px; border: 1px solid #e7e8ec; border-radius: 10px; }
    .home-mobile-reference .home-trust-bar .home-trust-bar__inner { display: flex; padding: 10px 4px; gap: 0; overflow-x: auto; }
    .home-mobile-reference .home-trust-bar__item { flex: 1 0 30%; min-width: 0; display: flex; flex-direction: row; gap: 6px; padding: 0 6px; border-right: 1px solid #e7e8ec; }
    .home-mobile-reference .home-trust-bar__item:last-child { border: 0; }
    .home-mobile-reference .home-trust-bar__icon, .home-mobile-reference .home-trust-bar__icon svg { width: 25px; height: 25px; flex-shrink: 0; color: #111; }
    .home-mobile-reference .home-trust-bar .home-trust-bar__title { font-size: 10px; font-weight: 400; text-transform: none; white-space: normal; }
    .home-mobile-reference .home-trust-bar__sub { display: none; }
    .home-mobile-reference .home-products--izdvojeno { order: 3; }
    .home-mobile-reference .home-products--novo { order: 4; }
    .home-mobile-reference .home-products--akcija { order: 5; }
    .home-mobile-reference .home-products { width: 100%; padding: 0 12px; margin: 0 0 18px; border: 0 !important; background: #fff; box-sizing: border-box; }
    .home-mobile-reference .home-product-catalog, .home-mobile-reference .catalog-products, .home-mobile-reference .catalog-layout { padding: 0; margin: 0; min-width: 0; width: 100%; }
    .home-mobile-reference .home-section-header { padding: 0; margin: 0 0 8px; gap: 8px; }
    .home-mobile-reference .home-section-header__title { font-size: 21px; line-height: 1.2; color: #0b0b0b; letter-spacing: -.6px; text-transform: none; }
    .home-mobile-reference .home-section-header--izdvojeno .home-section-header__title { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
    .home-mobile-reference .home-section-header--izdvojeno .home-section-header__title::before { display: none; }
    .home-mobile-reference .home-section-header__see-all { color: #ff6000; font-size: 12px; }
    .home-mobile-reference .home-product-carousel { padding: 0; }
    .home-mobile-reference .home-product-carousel__btn { display: none; }
    .home-mobile-reference .home-product-carousel__track { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; transform: none !important; width: 100% !important; }
    .home-mobile-reference .home-product-carousel__slide { width: auto !important; min-width: 0; max-width: none; }
    .home-mobile-reference .product-card--catalog ,
    .product-catalog .product-card--catalog{ border: 1px solid #e5e6eb !important; border-radius: 9px; padding: 0; background: #fff; overflow: hidden; box-shadow: none; height: 100%; }
    .home-mobile-reference .product-card__top ,
    .product-catalog .product-card__top{ display: flex; flex-direction: column; padding: 0; gap: 0; }
    .home-mobile-reference .product-card__media ,
    .product-catalog .product-card__media{ width: 100%; padding: 0; }
    .home-mobile-reference .product-image ,
    .product-catalog .product-image{ aspect-ratio: 1.9; height: auto !important; min-height: 0 !important; margin: 0; }
    .home-mobile-reference .product-image img ,
    .product-catalog .product-image img{ width: 100%; height: 100%; object-fit: contain; }
    .home-mobile-reference .variation-swatches--empty, .home-mobile-reference .product-card__origin-slot:empty ,
    .product-catalog .variation-swatches--empty, .product-catalog .product-card__origin-slot:empty{ display: none; }
    .home-mobile-reference .product-card__body ,
    .product-catalog .product-card__body{ padding: 6px 9px 0; min-height: 0; }
    .home-mobile-reference .product-card__pack:not([title]) ,
    .product-catalog .product-card__pack:not([title]){ display: none; }
    .home-mobile-reference .product-card__title ,
    .product-catalog .product-card__title{ font-size: 13px; line-height: 1.2; min-height: 0; color: #111; font-weight: 600; }
    .home-mobile-reference .product-stock-label ,
    .product-catalog .product-stock-label{ font-size: 10px; margin: 5px 0; }
    .home-mobile-reference .product-stock-label--in ,
    .product-catalog .product-stock-label--in{ color: #13965b; }
    .home-mobile-reference .product-stock-label--in .product-stock-label__icon ,
    .product-catalog .product-stock-label--in .product-stock-label__icon{ width: 8px; height: 8px; border-radius: 50%; background: #13965b; }
    .home-mobile-reference .product-stock-label--in .product-stock-label__icon svg ,
    .product-catalog .product-stock-label--in .product-stock-label__icon svg{ display: none; }
    .home-mobile-reference .product-card__footer ,
    .product-catalog .product-card__footer{ padding: 0 9px 8px; display: flex; align-items: end; gap: 4px; }
    .home-mobile-reference .product-card__price-row ,
    .product-catalog .product-card__price-row{ flex: 1; min-width: 0; }
    .home-mobile-reference .product-card__price ,
    .product-catalog .product-card__price{ font-size: 16px; font-weight: 750; }
    .home-mobile-reference .product-card__brand-row ,
    .product-catalog .product-card__brand-row{ font-size: 9px; }
    .home-mobile-reference .product-card__cart-row ,
    .product-catalog .product-card__cart-row{ width: auto; flex: 0 0 auto; }
    .home-mobile-reference .product-card-add-btn:not(.product-card-add-btn--notify) ,
    .product-catalog .product-card-add-btn:not(.product-card-add-btn--notify){ width: 34px; height: 34px; min-height: 34px; padding: 8px; border-radius: 50%; background: #0b0b0b; color: #fff; }
    .home-mobile-reference .product-card-add-btn:not(.product-card-add-btn--notify) > span ,
    .product-catalog .product-card-add-btn:not(.product-card-add-btn--notify) > span{ display: none !important; }
    .home-mobile-reference .product-card-corner-badge ,
    .product-catalog .product-card-corner-badge{ font-size: 8px; padding: 3px 5px; }
    .home-mobile-reference .scroll-top-btn { bottom: 78px; }
}
@media (max-width: 767px) {
    :is(.home-mobile-reference, .catalog-header-reference) .promo-bar p, :is(.home-mobile-reference, .catalog-header-reference) .promo-bar p span, :is(.home-mobile-reference, .catalog-header-reference) .promo-bar p a { color: #28292d !important; }
    body.home-mobile-reference .home-trust-bar { background: #fff !important; border-color: #e7e8ec !important; }
    body.home-mobile-reference .home-trust-bar .home-trust-bar__title, body.home-mobile-reference .home-trust-bar .home-trust-bar__icon { color: #111 !important; }
    .home-mobile-reference .home-products .home-product-carousel .product-card--catalog ,
    .product-catalog .catalog-products .product-card--catalog{ padding: 0 !important; border-radius: 9px !important; }
    .home-mobile-reference .home-products .product-card--catalog .product-card__footer ,
    .product-catalog .catalog-products .product-card--catalog .product-card__footer{ flex-direction: row !important; align-items: end !important; gap: 4px !important; }
    .home-mobile-reference .home-products .product-card--catalog .product-card__cart-row ,
    .product-catalog .catalog-products .product-card--catalog .product-card__cart-row{ width: auto !important; }
    .home-mobile-reference .home-products .product-card-add-btn:not(.product-card-add-btn--notify) ,
    .product-catalog .catalog-products .product-card-add-btn:not(.product-card-add-btn--notify){ width: 34px !important; height: 34px !important; min-height: 34px !important; padding: 8px !important; border-radius: 50% !important; background: #0b0b0b !important; }
    .home-mobile-reference .home-products .price-current ,
    .product-catalog .catalog-products .price-current{ color: #111 !important; font-size: 16px; }
    .home-mobile-reference .home-products .product-card__title ,
    .product-catalog .catalog-products .product-card__title{ text-align: left; }
    .home-mobile-reference .home-products .product-card__origin-slot:not(:has(.made-in-japan)) ,
    .product-catalog .catalog-products .product-card__origin-slot:not(:has(.made-in-japan)){ display: none; }
    .home-mobile-reference .home-products .product-stock-label ,
    .product-catalog .catalog-products .product-stock-label{ justify-content: flex-start; }
}

/* Product cards use a black shopping bag outline without a circle. */
@media (max-width: 767px) {
    .home-mobile-reference .home-products .product-card-add-btn:not(.product-card-add-btn--notify) ,
    .product-catalog .catalog-products .product-card-add-btn:not(.product-card-add-btn--notify){
        background: transparent !important;
        color: #000 !important;
        border-radius: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    .home-mobile-reference .home-products .product-card-add-btn:not(.product-card-add-btn--notify) svg ,
    .product-catalog .catalog-products .product-card-add-btn:not(.product-card-add-btn--notify) svg{
        width: 22px !important;
        height: 22px !important;
        color: #000 !important;
        stroke: #000 !important;
        stroke-width: 1.5;
        fill: none;
    }
    .home-mobile-reference .home-products .product-card-add-btn.cart-add-confirmed::after ,
    .product-catalog .catalog-products .product-card-add-btn.cart-add-confirmed::after{ border-color: #000; }
}

.home-card-heart, .home-card-brand, .home-card-stock { display: none; }
@media (max-width: 767px) {
    .home-mobile-reference .home-products .product-card--home-reference ,
    .product-catalog .catalog-products .product-card--home-reference{
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        border: 1px solid #e6e8ed !important;
        border-radius: 12px !important;
        overflow: hidden;
    }
    .home-mobile-reference .product-card--home-reference .home-card-heart ,
    .product-catalog .product-card--home-reference .home-card-heart{
        display: block;
        position: absolute;
        top: 9px;
        right: 9px;
        z-index: 3;
        width: 20px;
        height: 20px;
        color: #111;
        pointer-events: none;
    }
    .home-card-heart svg { width: 100%; height: 100%; }
    .home-mobile-reference .home-products .product-card--home-reference .product-card__top ,
    .product-catalog .catalog-products .product-card--home-reference .product-card__top{
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        flex: 0 0 auto;
    }
    .home-mobile-reference .home-products .product-card--home-reference .product-image ,
    .product-catalog .catalog-products .product-card--home-reference .product-image{
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1.6;
        padding: 3px 12px 0;
        box-sizing: border-box;
    }
    .home-mobile-reference .product-card--home-reference .product-card__media-link,
    .home-mobile-reference .product-card--home-reference .product-image picture ,
    .product-catalog .product-card--home-reference .product-card__media-link,
    .product-catalog .product-card--home-reference .product-image picture{
        display: block;
        width: 100%;
        height: 100%;
    }
    .home-mobile-reference .product-card--home-reference .product-image img ,
    .product-catalog .product-card--home-reference .product-image img{
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
    }
    .home-mobile-reference .home-products .product-card--home-reference .product-card__body ,
    .product-catalog .catalog-products .product-card--home-reference .product-card__body{
        padding: 0 9px;
        min-height: 0;
        text-align: left;
    }
    .home-mobile-reference .product-card--home-reference .home-card-brand ,
    .product-catalog .product-card--home-reference .home-card-brand{
        display: block;
        height: 1.2em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #797d88;
        font-size: 11px;
        font-weight: 400;
        line-height: 1.2;
        margin: 0 0 1px;
    }
    .home-mobile-reference .home-products .product-card--home-reference .product-card__title ,
    .product-catalog .catalog-products .product-card--home-reference .product-card__title{
        display: -webkit-box;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.15;
        height: auto;
        min-height: 2.3em;
        max-height: 2.3em;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left;
        margin: 0 0 0 -3px;
        padding: 0;
    }
    .home-mobile-reference .product-card--home-reference .product-card__body > .product-stock-label,
    .home-mobile-reference .product-card--home-reference .product-card__price-row > .product-card__brand-row,
    .home-mobile-reference .product-card--home-reference > .product-card-corner-badge ,
    .product-catalog .product-card--home-reference .product-card__body > .product-stock-label,
    .product-catalog .product-card--home-reference .product-card__price-row > .product-card__brand-row,
    .product-catalog .product-card--home-reference > .product-card-corner-badge{ display: none !important; }
    .home-mobile-reference .home-products .product-card--home-reference .product-card__footer ,
    .product-catalog .catalog-products .product-card--home-reference .product-card__footer{
        padding: 2px 9px 8px;
        margin-top: 0;
        gap: 5px !important;
        align-items: end !important;
    }
    .home-mobile-reference .home-products .product-card--home-reference .product-card__price-row ,
    .product-catalog .catalog-products .product-card--home-reference .product-card__price-row{
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
    .home-mobile-reference .product-card--home-reference .price-current ,
    .product-catalog .product-card--home-reference .price-current{
        font-size: 15px !important;
        font-weight: 750;
        line-height: 1.2;
        letter-spacing: -.5px;
    }
    .home-mobile-reference .product-card--home-reference .price-currency ,
    .product-catalog .product-card--home-reference .price-currency{ font-size: inherit; }
    .home-mobile-reference .product-card--home-reference .home-card-stock ,
    .product-catalog .product-card--home-reference .home-card-stock{
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 2px 0 0;
        color: #149d54;
        font-size: 11px;
        line-height: 1.2;
        font-weight: 400;
    }
    .home-card-stock > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
    .home-mobile-reference .product-card--home-reference .home-card-stock--out ,
    .product-catalog .product-card--home-reference .home-card-stock--out{ color: #b64646; }
    .home-mobile-reference .home-products .product-card--home-reference .product-card-add-btn:not(.product-card-add-btn--notify) ,
    .product-catalog .catalog-products .product-card--home-reference .product-card-add-btn:not(.product-card-add-btn--notify){
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 8px !important;
        flex-shrink: 0;
    }
    .home-mobile-reference .product-card--home-reference .product-card__cart-row:has(.product-card-add-btn--notify) ,
    .product-catalog .product-card--home-reference .product-card__cart-row:has(.product-card-add-btn--notify){ max-width: 45%; }
    .home-mobile-reference .product-card--home-reference .product-card-add-btn--notify ,
    .product-catalog .product-card--home-reference .product-card-add-btn--notify{ white-space: normal; font-size: 10px; }
}

.mobile-home-benefits { display: none; }
@media (max-width: 767px) {
    .home-mobile-reference main > .home-trust-bar { display: none; }
    .home-mobile-reference .mobile-home-benefits {
        display: grid;
        grid-template-columns: 1fr 1.15fr 1fr;
        order: 2;
        margin: 0 10px 12px;
        padding: 12px 4px;
        border: 1px solid #e7e8ed;
        border-radius: 10px;
        background: #fff;
        color: #080808;
    }
    .mobile-home-benefits__item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(5px, 1.5vw, 12px);
        min-width: 0;
        padding: 0 4px;
    }
    .mobile-home-benefits__item + .mobile-home-benefits__item { border-left: 1px solid #e7e8ed; }
    .mobile-home-benefits__item svg { width: clamp(22px, 5.7vw, 42px); height: clamp(22px, 5.7vw, 42px); flex-shrink: 0; }
    .mobile-home-benefits__item > div { min-width: 0; }
    .mobile-home-benefits__item strong { display: block; font-size: clamp(9px, 2.35vw, 17px); font-weight: 650; line-height: 1.25; letter-spacing: -.2px; }
    .mobile-home-benefits__item span { display: block; margin-top: 3px; color: #888c99; font-size: clamp(7px, 1.9vw, 14px); font-weight: 400; line-height: 1.3; }
}

/* Mobile header: uploaded logo, outline actions and a full-width search field. */
@media (max-width: 767px) {
    body:is(.home-mobile-reference, .catalog-header-reference) .header .header-row--primary {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
        row-gap: 8px;
        padding: 7px 16px 10px;
    }
    :is(.home-mobile-reference, .catalog-header-reference) .header .logo-brand > .logo {
        max-width: 160px;
        height: 44px;
        min-height: 44px;
    }
    :is(.home-mobile-reference, .catalog-header-reference) .header .logo-brand .logo-image { max-height: 44px; }
    body:is(.home-mobile-reference, .catalog-header-reference) .header .header-row--primary .nav-actions { gap: 7px; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .nav-actions .nav-action-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        min-width: 32px;
        min-height: 44px;
        padding: 3px;
        border: 0;
    }
    :is(.home-mobile-reference, .catalog-header-reference) .header .nav-actions > .header-phone { display: none; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .nav-actions svg { width: 25px; height: 25px; stroke-width: 1.6; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .cart-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 50%;
        background: #ff6000;
        color: #fff;
        font-size: 10px;
        line-height: 17px;
    }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-form {
        min-height: 40px;
        border: 0 !important;
        border-radius: 14px !important;
        background: #f1f2f4 !important;
    }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-form .search-combobox { padding: 0 12px 0 0 !important; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-form input { height: 40px; font-size: 13px; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-form input::placeholder { color: #7b7e89; opacity: 1; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-icon,
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-submit-label { display: none !important; }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-submit {
        order: -1;
        width: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 10px !important;
        flex-shrink: 0;
    }
    :is(.home-mobile-reference, .catalog-header-reference) .header .header-search-submit .header-search-submit-icon {
        display: block !important;
        width: 21px !important;
        height: 21px !important;
        stroke: #565a64 !important;
        color: #565a64;
    }
}

@media (max-width: 767px) {
    .home-mobile-reference :is(.home-section-header--izdvojeno, .home-section-header--novo, .home-section-header--akcija) {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
        margin-bottom: 9px;
    }
    .home-mobile-reference :is(.home-section-header--izdvojeno, .home-section-header--novo, .home-section-header--akcija) .home-section-header__text { min-width: 0; }
    .home-mobile-reference :is(.home-section-header--novo, .home-section-header--akcija) .home-section-header__title {
        margin: 0;
        padding: 0;
        font-size: clamp(16px, 4.4vw, 22px);
        font-weight: 750;
        line-height: 1.2;
        letter-spacing: -.6px;
        color: #090909;
    }
    .home-mobile-reference .home-section-header--izdvojeno .home-section-header__title {
        margin: 0;
        padding: 0;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -.3px;
        color: #090909;
    }
    .home-mobile-reference :is(.home-section-header--izdvojeno, .home-section-header--novo, .home-section-header--akcija) .home-section-header__title::before { display: none; }
    .home-mobile-reference :is(.home-section-header--izdvojeno, .home-section-header--novo, .home-section-header--akcija) .home-section-header__actions { flex-shrink: 0; }
    .home-mobile-reference :is(.home-section-header--izdvojeno, .home-section-header--novo, .home-section-header--akcija) .home-section-header__see-all {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0;
        color: #60636c;
        background: none;
        border: 0;
        font-size: 12px;
        font-weight: 400;
        white-space: nowrap;
        text-transform: none;
    }
    .home-mobile-reference :is(.home-section-header--izdvojeno, .home-section-header--novo, .home-section-header--akcija) .home-section-header__see-all svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.75; }
}

/* Let the active uploaded image define the mobile banner height, without crop. */
@media (max-width: 1024px) {
    .home-mobile-reference .hero-carousel,
    .home-mobile-reference .hero-carousel .carousel-track {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }
    .home-mobile-reference .hero-carousel .carousel-slide { height: auto !important; }
    .home-mobile-reference .hero-carousel .carousel-slide.active { position: relative; }
    .home-mobile-reference .hero-carousel .slide-image {
        position: relative;
        inset: auto;
        height: auto !important;
        min-height: 0 !important;
    }
    .home-mobile-reference .hero-carousel .slide-image-link,
    .home-mobile-reference .hero-carousel .slide-image picture { height: auto !important; }
    .home-mobile-reference .hero-carousel .slide-image .slide-image-img {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center;
        transform: none !important;
    }
}

.mobile-home-category-grid .mobile-home-category-icon {
    display: block;
    width: 43px;
    height: 43px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-loyalty-banner { display: none; }
@media (max-width: 767px) {
    .home-mobile-reference main > .home-loyalty-banner {
        display: block;
        order: 3;
        margin: 0 0 20px;
        padding: 26px 18px 16px;
        background: #f5f5f7;
        color: #242426;
        text-align: center;
        overflow: hidden;
    }
    .home-loyalty-banner h2 { margin: 0 0 9px; font-size: clamp(27px, 7.2vw, 39px); line-height: 1.1; font-weight: 650; letter-spacing: -1.1px; }
    .home-loyalty-banner__intro { margin: 0 0 17px; font-size: clamp(16px, 4.5vw, 23px); font-weight: 400; line-height: 1.3; letter-spacing: -.35px; }
    .home-loyalty-banner__actions { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 12px; z-index: 2; }
    .home-loyalty-banner__actions > a, .home-loyalty-banner__details summary {
        display: block; padding: 10px 17px; border: 1px solid #0071e3; border-radius: 24px;
        font-size: 14px; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer;
    }
    .home-loyalty-banner__actions > a { color: #0071e3; background: transparent; }
    .home-loyalty-banner__details summary { list-style: none; background: #0071e3; color: #fff; }
    .home-loyalty-banner__details summary::-webkit-details-marker { display: none; }
    .home-loyalty-banner__details > p { position: absolute; left: 0; right: 0; top: 44px; z-index: 2; padding: 15px; margin: 8px 0; border-radius: 12px; background: #fff; box-shadow: 0 8px 30px #0001; color: #444; font-size: 13px; line-height: 1.5; }
    .home-loyalty-banner__scene { display: grid; place-items: center; height: clamp(185px, 50vw, 280px); margin-top: 32px; perspective: 900px; }
    .home-loyalty-banner__card {
        position: relative; width: min(62vw, 295px); aspect-ratio: 1.586; box-sizing: border-box;
        border-radius: 12px; border: 1px solid #c9c9cb;
        background: linear-gradient(125deg, #fdfdfd 0%, #ededee 43%, #d5d5d7 100%);
        transform: rotate(-36deg) rotateY(-12deg) rotateX(20deg);
        box-shadow: -1px 2px 0 #999, 18px 34px 20px -16px #0004, inset 0 1px 1px #fff;
        color: #77787a; text-align: left;
    }
    .home-loyalty-banner__card-title { position: absolute; top: 18px; left: 20px; font-size: 16px; font-weight: 600; letter-spacing: -.4px; text-shadow: 0 1px #fff; }
    .home-loyalty-banner__mark { position: absolute; top: 15px; right: 18px; width: 30px; height: 30px; color: #909092; }
    .home-loyalty-banner__card-name { position: absolute; left: 20px; bottom: 32px; font-size: 12px; letter-spacing: .3px; }
    .home-loyalty-banner__card-brand { position: absolute; left: 20px; bottom: 18px; font-size: 8px; letter-spacing: 1px; }
}

@media (max-width: 767px) {
    .home-mobile-reference .product-card--home-reference .product-sale-row ,
    .product-catalog .product-card--home-reference .product-sale-row{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .home-mobile-reference .product-card--home-reference .product-sale-row > .price-original ,
    .product-catalog .product-card--home-reference .product-sale-row > .price-original{
        order: -1;
        margin: 0;
        text-decoration: line-through;
    }
    .home-mobile-reference .product-card--home-reference .product-sale-row > .product-sale-box ,
    .product-catalog .product-card--home-reference .product-sale-row > .product-sale-box{
        order: 0;
        margin: 0;
    }
}

@media (max-width: 767px) {
    .home-mobile-reference .home-products--akcija .home-product-carousel__slide:nth-child(n+5) {
        display: none;
    }
}

.home-card-sale-percent { display: none; }
@media (max-width: 767px) {
    .home-mobile-reference .home-products .product-card--home-reference:has(.product-sale-row) .product-card__footer ,
    .product-catalog .catalog-products .product-card--home-reference:has(.product-sale-row) .product-card__footer{ position: relative; display: block !important; }
    .home-mobile-reference .product-card--home-reference:has(.product-sale-row) .product-card__price-row ,
    .product-catalog .product-card--home-reference:has(.product-sale-row) .product-card__price-row{ width: 100% !important; }
    .home-mobile-reference .product-card--home-reference:has(.product-sale-row) .product-card__cart-row ,
    .product-catalog .product-card--home-reference:has(.product-sale-row) .product-card__cart-row{ position: absolute; right: 6px; bottom: 2px; }
    .home-mobile-reference .product-card--home-reference:has(.product-sale-row) .home-card-stock ,
    .product-catalog .product-card--home-reference:has(.product-sale-row) .home-card-stock{ min-height: 28px; padding-right: 38px; box-sizing: border-box; }
    .home-mobile-reference .product-card--home-reference .product-sale-row ,
    .product-catalog .product-card--home-reference .product-sale-row{
        display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 2px;
    }
    .home-mobile-reference .product-card--home-reference .product-sale-row > .product-sale-box ,
    .product-catalog .product-card--home-reference .product-sale-row > .product-sale-box{ order: 0; }
    .home-mobile-reference .product-card--home-reference .product-sale-row > .price-original ,
    .product-catalog .product-card--home-reference .product-sale-row > .price-original{ order: 1; color: #777c87; font-size: 8px; white-space: nowrap; }
    .home-mobile-reference .product-card--home-reference .product-sale-row .card-dwell-now ,
    .product-catalog .product-card--home-reference .product-sale-row .card-dwell-now{ color: #080808 !important; font-size: clamp(12px, 3.3vw, 15px) !important; font-weight: 750 !important; line-height: 1.2; white-space: nowrap; }
    .home-mobile-reference .product-card--home-reference .home-card-sale-percent ,
    .product-catalog .product-card--home-reference .home-card-sale-percent{
        display: inline-block; order: 2; padding: 3px 4px; border-radius: 20px;
        background: #ff6500; color: #fff; font-size: 8px; font-weight: 600; line-height: 1.2; white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .home-mobile-reference .product-card--home-reference .product-sale-row > .price-original,
    .home-mobile-reference .product-card--home-reference .product-sale-row > .price-original .price-currency ,
    .product-catalog .product-card--home-reference .product-sale-row > .price-original,
    .product-catalog .product-card--home-reference .product-sale-row > .price-original .price-currency{
        color: #777c87 !important;
    }
}

@media (max-width: 767px) {
    .home-mobile-reference main > .home-loyalty-banner {
        display: grid;
        grid-template-rows: auto auto auto minmax(0, 1fr);
        width: 100%;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        padding: clamp(16px, 5vw, 28px) 18px 16px;
    }
    .home-loyalty-banner__scene {
        height: auto;
        min-height: 0;
        margin-top: 12px;
    }
    .home-loyalty-banner__card { width: min(48vw, 230px); }
}

@media (max-width: 767px) {
    .home-mobile-reference main > .home-loyalty-banner--uploaded { display: block; padding: 0; }
    .home-loyalty-banner--uploaded > a,
    .home-sale-banner > a { display: block; width: 100%; height: 100%; }
    .home-loyalty-banner--uploaded img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }
}

@media (max-width: 767px) {
    .home-mobile-reference main > .home-sale-banner { order: 6; }
}

@media (max-width: 767px) {
    .home-mobile-reference .product-card--home-reference > .home-card-sale-percent ,
    .product-catalog .product-card--home-reference > .home-card-sale-percent{
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 3;
        margin: 0;
        padding: 4px 7px;
        font-size: 10px;
        pointer-events: none;
    }
}

.home-shop-brands { display: none; }
@media (max-width: 767px) {
    .home-mobile-reference main > .home-shop-brands { display: block; order: 6; margin: 0 12px 18px; }
    .home-shop-brands__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
    .home-shop-brands__heading h2 { margin: 0; font-size: clamp(16px, 4.4vw, 22px); line-height: 1.2; font-weight: 750; letter-spacing: -.5px; color: #090909; }
    .home-shop-brands__heading > a { display: inline-flex; align-items: center; gap: 6px; color: #ff6500; font-size: 12px; white-space: nowrap; }
    .home-shop-brands__heading > a span { font-size: 21px; line-height: 1; }
    .home-shop-brands__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .home-shop-brands__grid > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 12px 6px 8px; border: 1px solid #e6e8ed; border-radius: 8px; background: #fff; }
    .home-shop-brands__grid img { display: block; width: 100%; height: 34px; object-fit: contain; }
    .home-shop-brands__grid span { color: #575b64; font-size: 10px; line-height: 1.2; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; }
}

@media (max-width: 767px) {
 .product-catalog .product-grid--catalog { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px; }
 .product-catalog .product-card--home-reference .home-card-heart { pointer-events: auto; border: 0; padding: 0; background: transparent; cursor: pointer; }
 .product-catalog .product-card--home-reference .variation-swatches { display: none; }
}
@media (max-width: 767px) {
 .product-catalog .catalog-products .product-card--home-reference .product-card__title { font-size: 12px !important; line-height: 1.15 !important; }
}

@media (max-width: 767px) {
 body.catalog-header-reference { background: #fff; padding-top: 0 !important; }
 .catalog-header-reference main { padding-top: 0 !important; }
}

.product-card--catalog .home-card-brand { display: block; min-height: 1.2em; color: #797d88; font-size: 11px; line-height: 1.2; margin-bottom: 1px; font-weight: 400; text-align: left; }

/* Compact stock notification action. */
.product-card.product-card--catalog .product-card-add-btn--notify {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 28px !important;
    padding: 4px 7px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}
.product-card.product-card--catalog .product-card-add-btn--notify > span { font-size: inherit; white-space: normal; }

/* Keep the uploaded banner below featured products square on mobile. */
@media (max-width: 1024px) {
    .home-mobile-reference main > .home-loyalty-banner--uploaded:not(.home-sale-banner):not(.home-desktop-banner-only) {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 1;
        padding: 0;
        box-sizing: border-box;
    }
    .home-mobile-reference .home-loyalty-banner--uploaded:not(.home-sale-banner):not(.home-desktop-banner-only) > a {
        display: block;
        width: 100%;
        height: 100%;
    }
    .home-mobile-reference .home-loyalty-banner--uploaded:not(.home-sale-banner):not(.home-desktop-banner-only) img {
        display: block;
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }
}

/* Mobile product listings: show products without the filter controls. */
@media (max-width: 1024px) {
    .product-catalog .catalog-desktop-filter,
    .product-catalog .catalog-sidebar {
        display: none !important;
    }
}

/* Only mobile category pages hide the header search. */
@media (max-width: 1024px) {
    body.category-hide-search #header .header-search,
    body.category-hide-search #header [data-mobile-home-search] {
        display: none !important;
    }
    body.category-hide-search #header .header-row--primary {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas: 'logo actions' !important;
    }
}

/* Smaller product names on storefront category pages. */
body.category-hide-search .product-catalog .catalog-products .product-card--catalog .product-card__title {
    font-size: 13px !important;
    line-height: 1.25 !important;
    min-height: 2.5em;
    max-height: 2.5em;
}

@media (max-width: 1024px) {
    body.category-hide-search .product-catalog .catalog-products .product-card--catalog .product-card__title {
        font-size: 11px !important;
    }
}
