/* Reference layout is confined to the unfiltered mobile homepage. */
.mobile-home-categories, :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .mobile-home-search-action { display: none; }
@media (max-width: 767px) {
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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, .bera-storefront-header) .site-chrome-backdrop { display: none; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .site-chrome-sticky { position: sticky; top: 0; z-index: 1002; background: #fff; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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, .bera-storefront-header) .promo-bar p { margin: 0; font-size: 11px; line-height: 1.4; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .promo-bar a { color: inherit; }
    body:is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header { position: relative !important; inset: auto; background: #fff !important; border: 0; box-shadow: none; color: #111; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header-shell { background: #fff !important; padding: 0; }
    body:is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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, .bera-storefront-header) .header-leading { display: none !important; }
    body:is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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, .bera-storefront-header) .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, .bera-storefront-header) .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, .bera-storefront-header) .header .header-row--primary .nav-actions { grid-area: actions; display: flex; align-items: center; gap: 10px; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .nav-actions .nav-action-link { color: #111 !important; background: transparent !important; min-width: 36px; padding: 4px; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .nav-actions svg { width: 25px; height: 25px; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .nav-actions .nav-action-link svg,
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .header-search-icon svg {
        color: #000 !important;
        stroke: #000 !important;
        fill: none;
        opacity: 1;
    }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .nav-action-link.cart-btn svg circle {
        fill: #000;
    }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .nav-action-label { display: none; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .cart-badge { background: #ff6000; color: #fff; border: 0; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .staff-edit-toggle { color: #111; }
    body:is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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, .bera-storefront-header) .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, .bera-storefront-header) .header .header-search-form input { height: 36px; font-size: 13px; color: #333 !important; background: transparent; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .header-search-form input::placeholder { color: #747780; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header-search-icon { color: #555; padding-left: 12px; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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, .bera-storefront-header) .header-search-submit-label { font-size: 9px; letter-spacing: 0; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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, .bera-storefront-header) .promo-bar p, :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .promo-bar p span, :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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: grid;
        place-items: center;
        position: absolute;
        top: 6px;
        right: 6px;
        z-index: 5;
        width: 32px;
        height: 32px;
        padding: 6px;
        border: 0;
        background: transparent;
        color: #111;
        pointer-events: auto;
        cursor: pointer;
    }
    .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[aria-hidden="true"] { 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, .bera-storefront-header) .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, .bera-storefront-header) .header .logo-brand > .logo {
        max-width: 160px;
        height: 44px;
        min-height: 44px;
    }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .logo-brand .logo-image { max-height: 44px; }
    body:is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .header-row--primary .nav-actions { gap: 7px; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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, .bera-storefront-header) .header .nav-actions > .header-phone { display: none; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .nav-actions svg { width: 25px; height: 25px; stroke-width: 1.6; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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, .bera-storefront-header) .header .header-search-form {
        min-height: 40px;
        border: 0 !important;
        border-radius: 14px !important;
        background: #f1f2f4 !important;
    }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .header-search-form .search-combobox { padding: 0 12px 0 0 !important; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .header-search-form input { height: 40px; font-size: 13px; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .header-search-form input::placeholder { color: #7b7e89; opacity: 1; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .header-search-icon,
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .header .header-search-submit-label { display: none !important; }
    :is(.home-mobile-reference, .catalog-header-reference, .bera-storefront-header) .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, .bera-storefront-header) .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: 6px; 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;
    }
}

/* 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;
    }
}

.mobile-home-dock { display: none; }

.product-card--catalog,
.product-card--home-reference {
    position: relative;
}
.product-card .home-card-heart {
    display: grid !important;
    place-items: center;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    padding: 6px;
    border: 0;
    background: transparent;
    color: #111;
}
.product-card .home-card-heart svg {
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.product-card .home-card-heart,
.pd-reference-heart {
    pointer-events: auto !important;
    cursor: pointer;
    z-index: 5;
}
.home-card-heart[aria-pressed="true"] svg,
.pd-reference-heart[aria-pressed="true"] svg {
    fill: #ff5100;
    stroke: #ff5100;
}
.header .wishlist-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff5100;
    color: #fff;
    border: 0;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
}
.header .reference-header-heart.wishlist-btn--has-items svg {
    fill: #ff5100;
    stroke: #ff5100;
}
.header .reference-header-heart.wishlist-btn--pulse-once .wishlist-btn-svg {
    animation: cart-icon-add-pulse 0.9s ease-in-out 1;
}
.mobile-favorites { width: min(440px, calc(100% - 32px)); max-height: 75vh; padding: 20px; border: 1px solid #e7e8ed; border-radius: 16px; color: #111; background: #fff; }
.mobile-favorites::backdrop { background: #0006; }
.mobile-favorites form { display: flex; align-items: center; justify-content: space-between; font-size: 20px; }
.mobile-favorites form button { background: none; border: 0; font-size: 28px; padding: 4px 10px; }
.mobile-favorites p { color: #777; font-size: 13px; }
.mobile-favorites a { display: block; padding: 12px 0; color: #111; border-bottom: 1px solid #eee; }
@media (max-width: 1024px) {
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
    body .mobile-home-dock {
        position: fixed; inset: auto 0 0; display: grid; visibility: visible; opacity: 1; transform: none; grid-template-columns: repeat(5, minmax(0, 1fr));
        width: 100%; margin: 0; box-sizing: border-box; z-index: 1003;
        padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid #eceef1;
    }
    .mobile-home-dock > a, .mobile-home-dock > button {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 5px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none;
        color: #555862; font: inherit; font-size: 11px; text-decoration: none;
    }
    .mobile-home-dock svg { width: 25px; height: 25px; fill: none; stroke: #080808; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
    .mobile-home-dock [aria-current] { color: #ff6000; }
    .mobile-home-dock [aria-current] svg { stroke: #ff6000; }
    .mobile-home-dock > a:first-child[aria-current] svg { fill: #ff6000; }
    .home-mobile-reference .product-card--home-reference .home-card-heart { pointer-events: auto; border: 0; padding: 6px; background: transparent; cursor: pointer; }
    .mobile-home-dock .mobile-dock-favorites { position: relative; }
    .mobile-home-dock .mobile-dock-favorites-count {
        position: absolute; top: -3px; left: calc(50% + 5px);
        display: grid; place-items: center; min-width: 17px; height: 17px;
        padding: 0 4px; border-radius: 999px; background: #ff6500;
        color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
    }
    .mobile-home-dock .mobile-dock-favorites-count[hidden] { display: none; }
    .mobile-home-dock .wishlist-btn--has-items svg { fill: #ff6500; stroke: #ff6500; }
}

/* Confirmation starts only after the server accepts the cart addition. */
.product-card-add-btn.cart-add-confirmed { position: relative; animation: cart-add-confirmation .45s ease-out; }
.product-card-add-btn.cart-add-confirmed > svg,
.product-card-add-btn.cart-add-confirmed > span { visibility: hidden; }
.product-card-add-btn.cart-add-confirmed::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 14px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, -65%) rotate(45deg);
}
.mobile-home-dock .cart-add-pulse svg { animation: cart-add-confirmation .6s ease-out; }
@keyframes cart-add-confirmation {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.18); }
    70% { transform: scale(.95); }
}
.cart-toast { z-index: 15000; }
@media (max-width: 1024px) {
    .cart-toast { bottom: calc(82px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
    .product-card-add-btn.cart-add-confirmed, .mobile-home-dock .cart-add-pulse svg { animation: none; }
    .cart-toast { transition: none; }
}

.mobile-categories-dialog { width: calc(100% - 24px); max-width: 660px; height: calc(100dvh - 82px - env(safe-area-inset-bottom)); max-height: none; box-sizing: border-box; position: fixed; inset: 10px 0 auto; margin: 0 auto; padding: 14px 12px 0; border: 1px solid #eee; border-radius: 20px 20px 0 0; background: #fff; color: #101010; overflow: visible; }
.mobile-categories-dialog[open] { display: flex; flex-direction: column; }
.mobile-categories-dialog::backdrop { background: #0008; backdrop-filter: blur(4px); }
html.categories-dialog-open, .categories-dialog-open body { overflow: hidden; }
.mobile-categories-dialog__head { display: grid; grid-template-columns: minmax(0,1fr) auto 30px; gap: 12px; align-items: center; margin-bottom: 12px; }
.mobile-categories-dialog__head img { display: block; max-width: 100%; width: 140px; height: 42px; object-fit: contain; object-position: left; }
.mobile-categories-dialog__head h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.mobile-categories-dialog__head button { border: 0; background: none; color: #30313a; font-size: 34px; line-height: 1; padding: 0; min-height: 40px; }
.mobile-categories-dialog__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
.mobile-category-entry { border-top: 1px solid #e7e8ec; }
.mobile-category-entry[hidden] { display: none; }
.mobile-category-entry summary { position: relative; display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 4px 8px; list-style: none; font-size: 15px; font-weight: 700; cursor: pointer; }
.mobile-category-entry summary::-webkit-details-marker { display: none; }
.mobile-category-entry summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-top: 1.5px solid #90929c; border-right: 1.5px solid #90929c; transform: rotate(45deg); flex-shrink: 0; }
.mobile-category-entry summary img, .mobile-category-entry .cat-ico, .mobile-category-entry .cat-ico svg { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.mobile-category-entry[open] summary { color: #ff6500; }
.mobile-category-entry[open] summary::before { content: ''; position: absolute; left: -2px; top: 5px; bottom: 5px; width: 3px; border-radius: 3px; background: #ff6500; }
.mobile-category-entry[open] summary::after { transform: rotate(-45deg); border-color: #ff6500; }
.mobile-category-entry__children { padding: 7px 10px 10px 46px; background: #f5f5f7; border-radius: 12px; }
.mobile-category-entry__children a { display: block; padding: 6px 0; color: #111; font-size: 13px; line-height: 1.3; text-decoration: none; }
.mobile-category-entry__children .mobile-category-entry__all { color: #ff6500; font-weight: 650; }
.mobile-category-entry__all span { margin-left: -24px; margin-right: 7px; }
.mobile-category-entry__children .mobile-category-entry__nested { padding-left: 10px; color: #646772; font-size: 12px; }
.mobile-categories-extra { display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 5px; border-radius: 9px; background: #f4f4f6; color: #111; font-size: 15px; font-weight: 700; text-decoration: none; }
.mobile-categories-extra span:last-child { margin-left: auto; font-size: 23px; font-weight: 400; }
.mobile-categories-extra--sale { background: #fff0e6; color: #ff6500; }
.categories-dialog-open .mobile-home-dock [aria-current] { color: #555862; }
.categories-dialog-open .mobile-home-dock [aria-current] svg { fill: none; stroke: #080808; }
.categories-dialog-open .mobile-home-dock [data-mobile-home-menu] { color: #ff6500; font-weight: 650; }
.categories-dialog-open .mobile-home-dock [data-mobile-home-menu] svg { fill: #ff6500; stroke: #ff6500; }

.mobile-search-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 12px 14px calc(70px + env(safe-area-inset-bottom)); box-sizing: border-box; border: 0; background: #fff; color: #111; }
.mobile-search-dialog[open] { display: flex; flex-direction: column; }
.mobile-search-open, .mobile-search-open body { overflow: hidden; }
.mobile-search-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mobile-search-head img { width: 160px; height: 46px; object-fit: contain; }
.mobile-search-head button { background: none; border: 0; padding: 0 5px; font-size: 34px; }
.mobile-search-head svg { width: 25px; height: 25px; }
.mobile-search-form { display: flex; gap: 10px; align-items: center; }
.mobile-search-form > div { display: flex; flex: 1; min-width: 0; border: 1px solid #ff6500; border-radius: 12px; padding: 3px; }
.mobile-search-form input { width: 100%; min-width: 0; border: 0; padding: 5px 0; font: inherit; font-size: 16px; background: none; outline: none; }
.mobile-search-form button { background: none; border: 0; color: #ff6500; font-size: 14px; font-weight: 600; padding: 5px; }
.mobile-search-form > div button { color: #222; font-size: 24px; }
.mobile-search-form svg { width: 23px; height: 23px; }
.mobile-search-hint { color: #686d7a; font-size: 11px; margin: 10px 0 15px; }
.mobile-search-scroll { min-height: 0; overflow: auto; flex: 1; }
.mobile-search-scroll h2 { font-size: 19px; margin: 0 0 8px; }
.mobile-search-scroll [data-search-status] { font-size: 12px; color: #626772; }
.mobile-search-scroll [data-search-status]:empty { display: none; }
.mobile-search-result { display: flex; align-items: center; gap: 7px; padding: 9px 0; border-bottom: 1px solid #e6e8ed; }
.mobile-search-result__main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: #111; }
.mobile-search-result__main img { width: 68px; height: 72px; object-fit: contain; background: #f4f5f7; border-radius: 9px; flex-shrink: 0; }
.mobile-search-result__main strong { display: block; font-size: 13px; line-height: 1.25; }
.mobile-search-result__main small { display: block; color: #777c87; font-size: 10px; margin: 3px 0; }
.search-stock { font-size: 10px; color: #009329; }.search-stock--out { color: #bd4d24; }
.mobile-search-result__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.mobile-search-result__side strong { font-size: 13px; white-space: nowrap; }
.mobile-search-result__side button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #080808; color: #fff; }
.mobile-search-result__side button svg { width: 20px; height: 20px; }
.mobile-search-result__more { font-size: 28px; color: #666; }
.mobile-search-all { display: block; text-align: center; color: #ff6500; padding: 14px 0; font-size: 13px; font-weight: 600; }
.mobile-search-all[hidden] { display: none; }
.mobile-search-scroll h3 { font-size: 15px; margin: 12px 0; }
.mobile-search-scroll [data-search-related] > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-search-scroll [data-search-related] a { background: #f4f5f7; padding: 9px; border-radius: 12px; font-size: 11px; color: #555b68; }
.mobile-search-tip { padding: 12px; background: #f4f5f7; color: #777c87; font-size: 10px; border-radius: 9px; }
.mobile-search-open .mobile-home-dock [aria-current] { color: #555862; }
.mobile-search-open .mobile-home-dock [aria-current] svg { fill: none; stroke: #080808; }
.mobile-search-open .mobile-home-dock [data-mobile-home-search] { color: #ff6500; }
.mobile-search-open .mobile-home-dock [data-mobile-home-search] svg { stroke: #ff6500; }

/* Shared mobile header icons, matching the supplied outline reference. */
.reference-header-search, .reference-header-menu { display: none; }
@media (max-width: 1024px) {
 body .header .nav-actions .reference-header-search,
 body .header .nav-actions .reference-header-menu { display: inline-flex; align-items: center; justify-content: center; }
 body .header .nav-actions .mobile-home-search-action,
 body .header .nav-actions .pd-reference-search { display: none !important; }
 body .header .nav-actions { gap: 9px !important; }
 body .header .nav-actions .nav-action-link:not(.header-phone) { min-width: 30px; width: 30px; height: 38px; padding: 0; border: 0; box-shadow: none; background: transparent !important; color: #080808 !important; }
 body .header .nav-actions .nav-action-link svg { width: 27px; height: 27px; fill: none !important; stroke: #080808 !important; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
 body .header .nav-actions .nav-action-label { display: none; }
 body .header .nav-actions .nav-action-icon { position: relative; display: inline-flex; overflow: visible; }
 body .header .nav-actions .cart-badge { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 3px; box-sizing: border-box; border: 0; border-radius: 50%; background: #ff6500 !important; color: #fff !important; font-size: 12px; font-weight: 500; line-height: 1; }
 body .header .header-leading .nav-toggle { display: none; }
}
@media (max-width: 1024px) {
    body .header .nav-actions .reference-header-search svg,
    body .header .nav-actions .account-btn svg,
    body .header .nav-actions .cart-btn svg {
        width: 24px;
        height: 24px;
    }
}

.mobile-home-dock .mobile-dock-cart { position: relative; }
.mobile-home-dock .mobile-dock-cart-count {
    position: absolute; top: -3px; left: calc(50% + 5px);
    display: grid; place-items: center; min-width: 17px; height: 17px;
    padding: 0 4px; border-radius: 999px; background: #ff6500;
    color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
}
.mobile-home-dock .mobile-dock-cart-count[hidden] { display: none; }

.wishlist-menu {
    position: relative;
    display: flex;
    align-items: center;
}
.wishlist-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: -28px;
    z-index: 40;
    width: 392px;
    padding: 0;
    border: 0;
    background: transparent;
    filter: drop-shadow(0 18px 40px rgba(20, 33, 57, 0.16));
}
.wishlist-popover[hidden] { display: none !important; }
.wishlist-popover::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 62px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}
.wishlist-panel {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    color: #111;
}
.wishlist-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
}
.wishlist-panel__head strong {
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.2px;
}
.wishlist-panel__head a {
    color: #ff5100;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}
.wishlist-panel__list {
    max-height: 340px;
    overflow: auto;
}
.wishlist-panel__list:empty,
.wishlist-item--empty {
    padding: 8px 18px 18px;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}
.wishlist-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: start;
    padding: 12px 18px;
    border-top: 1px solid #f0f1f4;
    text-decoration: none;
    color: inherit;
}
.wishlist-item__media {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #f6f7f9;
    overflow: hidden;
}
.wishlist-item__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.wishlist-item__media--empty {
    color: #c5c8d0;
}
.wishlist-item__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wishlist-item__name {
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}
.wishlist-item__cat {
    color: #8b8f99;
    font-size: 12px;
    line-height: 1.3;
}
.wishlist-item__price {
    margin-top: 4px;
    color: #ff5100;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
}
.wishlist-item__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: #1f9d4b;
    font-size: 12px;
    font-weight: 600;
}
.wishlist-item__stock::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.wishlist-item__stock.is-out {
    color: #c03939;
}
.wishlist-item__remove {
    width: 28px;
    height: 28px;
    margin-top: 2px;
    padding: 4px;
    border: 0;
    background: none;
    color: #9aa0ab;
    cursor: pointer;
}
.wishlist-item__remove:hover { color: #111; }
.wishlist-item__remove svg {
    width: 18px;
    height: 18px;
}
.wishlist-panel__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 16px 16px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #ff5100;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.wishlist-panel__cta svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
}
.wishlist-panel__cta:hover { filter: brightness(0.96); }
.wishlist-panel:has(.wishlist-item--empty) .wishlist-panel__cta { display: none; }

.wishlist-menu.is-open .reference-header-heart {
    background: #fff1ea;
    border-radius: 12px;
}

.header .nav-actions,
.header .wishlist-menu {
    overflow: visible;
}

.mobile-favorites.wishlist-sheet {
    width: min(420px, calc(100% - 24px));
    max-height: 80vh;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #111;
    box-shadow: 0 18px 40px rgba(20, 33, 57, 0.16);
}
.mobile-favorites.wishlist-sheet::backdrop { background: #0006; }
.mobile-favorites.wishlist-sheet .wishlist-sheet__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    font-size: 24px;
    color: #777;
    cursor: pointer;
}

.wishlist-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 18px 64px;
}
.wishlist-page__head {
    margin: 12px 0 18px;
}
.wishlist-page__head h1 {
    font-size: 28px;
    letter-spacing: -0.4px;
}
.wishlist-page__head p {
    margin-top: 4px;
    color: #777;
}
.wishlist-page__list .wishlist-item {
    grid-template-columns: 88px minmax(0, 1fr) 36px;
    padding: 16px 0;
    border-top: 1px solid #eee;
}
.wishlist-page__list .wishlist-item__media {
    width: 88px;
    height: 88px;
}

@media (max-width: 1024px) {
    .wishlist-popover { display: none !important; }
    .header .wishlist-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header .reference-header-heart {
        display: inline-flex !important;
        min-width: 36px;
        min-height: 44px;
        padding: 4px;
    }
    .header .reference-header-heart .nav-action-label { display: none !important; }
    .header .reference-header-heart.wishlist-btn--has-items svg {
        fill: #ff5100 !important;
        stroke: #ff5100 !important;
    }
    .header .wishlist-badge {
        top: -4px;
        right: -6px;
        min-width: 17px;
        height: 17px;
        border: 0;
        font-size: 10px;
        line-height: 17px;
    }

    dialog.mobile-favorites.wishlist-sheet {
        position: fixed;
        inset: auto 12px calc(76px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
        max-height: min(72vh, calc(100dvh - 96px - env(safe-area-inset-bottom, 0px)));
        margin: 0;
        padding: 0;
        overflow: auto;
        border: 0;
        border-radius: 18px;
        background: #fff;
        color: #111;
        box-shadow: 0 18px 40px rgba(20, 33, 57, 0.2);
    }
    dialog.mobile-favorites.wishlist-sheet::backdrop {
        background: #0006;
    }
    dialog.mobile-favorites.wishlist-sheet .wishlist-sheet__close {
        top: 8px;
        right: 6px;
        width: 40px;
        height: 40px;
    }
    .mobile-home-dock .mobile-dock-favorites.is-open,
    .mobile-home-dock .mobile-dock-favorites.is-open span {
        color: #ff5100;
    }
    .mobile-home-dock .mobile-dock-favorites.is-open svg {
        stroke: #ff5100;
        fill: #ff5100;
    }
}

