/* Favorites, magnification and glass selection menus */
#favorites-shortcut{position:fixed;z-index:60;top:1.15rem;right:max(1rem,calc((100vw - 1080px)/2));width:3rem;height:3rem;display:grid;place-items:center;border-radius:50%;color:var(--ink);border:1px solid #fff;background:linear-gradient(145deg,#ffffffd9,#d7d9e4b0);box-shadow:inset 0 2px 4px #fff,0 5px 16px #474a5d30;backdrop-filter:blur(18px);text-decoration:none}
#favorites-shortcut .icon{width:1.4rem;height:1.4rem}.favorites-count{position:absolute;top:-4px;right:-4px;border-radius:1rem;background:#ae0012;color:white;font-size:.68rem;font-weight:700;padding:.13rem .35rem;min-width:1.1rem;text-align:center}.favorites-count[hidden]{display:none}
.tj-page .tj-card .favorite,.tj-page-home .tj-card .favorite{display:grid;place-items:center;z-index:6;width:2.5rem;height:2.5rem;top:.45rem;right:.45rem;border-radius:50%;border:1px solid #fff;background:linear-gradient(145deg,#ffffffd9,#e1e2e9b0);box-shadow:inset 0 1px 4px white,0 3px 12px #40424a2c;backdrop-filter:blur(12px)}
.tj-card .favorite.saved .icon,.tj-round.saved .icon{fill:#b40013;stroke:#b40013}.flying-heart{position:fixed;top:0;left:0;z-index:9999;pointer-events:none;color:#b00013;width:2.3rem;height:2.3rem;border-radius:50%;display:grid;place-items:center;background:#fffdeedc;box-shadow:0 3px 12px #9b001344}.flying-heart .icon{fill:#b00013;stroke:#b00013;width:1.3rem;height:1.3rem}
body[data-page=product] .tj-product-bar{padding-right:3.5rem}
.glass-select{position:relative;min-width:0}.glass-select-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none}.glass-select-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;cursor:pointer}.glass-select-menu{display:none;position:absolute;z-index:80;top:calc(100% + 7px);left:0;min-width:100%;max-height:min(17rem,55vh);overflow:auto;border-radius:1rem;padding:.3rem;background:#f4f4f6ed;backdrop-filter:blur(22px);border:1px solid #ffffffec;box-shadow:0 12px 32px #35364042,inset 0 2px 3px #fff;transform-origin:top;animation:pop-in .18s ease-out}.glass-select.open{z-index:81}.glass-select.open .glass-select-menu{display:block}.glass-select.open-up .glass-select-menu{top:auto;bottom:calc(100% + 7px);transform-origin:bottom}.glass-select-menu button{display:block;width:100%;text-align:left;white-space:nowrap;border:0;border-radius:.6rem;padding:.7rem .8rem;background:transparent;color:#18181c;font:inherit}.glass-select-menu button:hover,.glass-select-menu button:focus-visible{background:#d4d5dd}.glass-select-menu [aria-selected=true]{color:#b00013;font-weight:700}@keyframes pop-in{from{opacity:0;transform:translateY(-5px) scale(.96)}to{opacity:1;transform:none}}
[data-theme=dark] #favorites-shortcut,[data-theme=dark] .tj-page .tj-card .favorite{background:linear-gradient(145deg,#494a50dd,#242529ed);color:#fff;border-color:#777;box-shadow:inset 0 2px 4px #ffffff35,0 5px 16px #0008}[data-theme=dark] .glass-select-menu{background:#292a30f5;border-color:#777}[data-theme=dark] .glass-select-menu button{color:#fff}[data-theme=dark] .glass-select-menu button:hover{background:#555}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 :is(.detail-choice-row,.segmented,.tj-group,.menu-group,.order-shortcuts){overflow:visible}
 :is(.detail-choice-row button,.segmented button,.filter-row .chip,.tj-category-buttons .tj-category,.tj-group .tj-row,.menu-group .menu-row,.order-shortcuts button,.detail-copy .button,.detail-copy details,.detail-copy summary,.product-info-row,.tj-round,#favorites-shortcut,.glass-select-trigger,.glass-select-menu button){transition:transform .28s cubic-bezier(.2,.75,.25,1),box-shadow .28s;transform-origin:center}
 :is(.detail-choice-row,.segmented,.filter-row,.tj-category-buttons,.tj-group,.menu-group,.order-shortcuts,.tj-buy-actions):has(> :is(button,a):hover) > :is(button,a):not(:hover){transform:scale(.97)}
 :is(.detail-choice-row button,.segmented button,.filter-row .chip,.tj-category-buttons .tj-category,.tj-group .tj-row,.menu-group .menu-row,.order-shortcuts button,.detail-copy .button,.detail-copy summary,.tj-round,#favorites-shortcut,.glass-select-trigger,.glass-select-menu button):hover{transform:scale(1.06);position:relative;z-index:4}
 .tj-group .tj-row:hover{background:#ffffff70;border-radius:.7rem;box-shadow:0 5px 15px #4849571c}
}
@media(prefers-reduced-motion:reduce){.glass-select-menu{animation:none}.flying-heart{display:none}}

.tj-catalog-tools{position:relative;z-index:30}.filter-control{display:grid;gap:.25rem;min-width:0}.filter-control>span{color:var(--muted);font-size:.8rem}.glass-select-native{display:none!important}
/* The favorites shortcut belongs only to the home screen. */
body:not([data-page="home"]) #favorites-shortcut{display:none}
body[data-page="product"] .tj-product-bar{padding-right:0}
/* Keep the menu scrollable, but hide the browser's scrollbar and arrows. */
.glass-select-menu{overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
.glass-select-menu::-webkit-scrollbar{display:none;width:0;height:0}
.glass-select-menu button{white-space:normal;overflow-wrap:anywhere}
/* Position the quantity and removal controls in distinct areas. */
.tj-page-cart .cart-item{position:relative}
.tj-page-cart .item-body{min-width:0;padding-right:2.9rem}
.tj-page-cart .cart-item .item-tools{top:.5rem;right:.65rem;bottom:auto;transform:none}
.tj-page-cart .cart-item.is-swiped{padding-right:.55rem}
.cart-photo-button{display:block;width:100%;min-width:0;padding:0;border:0;border-radius:.65rem;background:transparent;cursor:zoom-in}
.cart-photo-button:focus-visible{outline:2px solid #b00013;outline-offset:3px}
.cart-image-preview{position:fixed;z-index:150;overflow:hidden;border-radius:1rem;border:1px solid #fff;background:#f0f0f2;box-shadow:0 10px 30px #1b1b2740;animation:cart-preview-in .2s ease-out}
.cart-image-preview img{display:block;width:100%;height:100%;object-fit:contain}
@keyframes cart-preview-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .filter-row{padding:.5rem .3rem;overflow-x:auto;overflow-y:hidden}
 .filter-row .chip{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;position:relative;transform-origin:center;transition:transform .28s cubic-bezier(.2,.75,.25,1),box-shadow .28s}
 .filter-row:has(.chip:hover) .chip:not(:hover){transform:scale(.97)}
 .filter-row .chip:hover{transform:scale(1.07);z-index:2}
 #favorites-shortcut:hover{position:fixed}
}
@media(prefers-reduced-motion:reduce){.cart-image-preview{animation:none}}
/* Home profile and the supplied TOJIR emblem. */
.tj-site-header .tj-topline{position:relative;min-height:6rem;height:6rem}
.tj-site-header .tj-brand{display:flex;align-items:center;justify-content:center}
.home-brand-logo{width:110px;height:90px;display:flex;align-items:center;justify-content:center;overflow:hidden;mix-blend-mode:multiply}
.home-brand-logo img{display:block;flex:none;width:150px;height:150px;max-width:none;object-fit:contain}
[data-theme=dark] .home-brand-logo{mix-blend-mode:screen}
[data-theme=dark] .home-brand-logo img{filter:invert(1)}
.home-profile{position:absolute;left:0;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:.45rem;max-width:calc(50% - 70px);text-decoration:none;color:var(--ink)}
.home-profile .customer-avatar.header-avatar{width:2.55rem;height:2.55rem;flex:none;font-size:1rem;overflow:hidden}
.home-profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;font-weight:600}
@media(max-width:410px){.home-profile{gap:.25rem;max-width:calc(50% - 57px)}.home-profile .customer-avatar.header-avatar{width:2rem;height:2rem}.home-profile-name{font-size:.72rem}.home-brand-logo{width:90px;height:78px}.home-brand-logo img{width:130px;height:130px}}
.tj-site-header .tj-brand{mix-blend-mode:multiply}
.tj-site-header .tj-brand .home-brand-logo{mix-blend-mode:normal}
.tj-site-header .tj-brand .home-brand-logo img{position:static;width:150px;height:150px;mix-blend-mode:normal;filter:none}
[data-theme=dark] .tj-site-header .tj-brand{mix-blend-mode:screen}
[data-theme=dark] .tj-site-header .tj-brand .home-brand-logo img{filter:invert(1);mix-blend-mode:normal}
@media(max-width:410px){.tj-site-header .tj-brand .home-brand-logo img{width:130px;height:130px}}
.tj-site-header .tj-brand,.tj-site-header .tj-brand .home-brand-logo{mix-blend-mode:normal}
.tj-site-header .tj-brand .home-brand-logo img{filter:url(#logo-transparent)}
[data-theme=dark] .tj-site-header .tj-brand{mix-blend-mode:normal}
[data-theme=dark] .tj-site-header .tj-brand .home-brand-logo img{filter:url(#logo-transparent) invert(1)}
.home-profile .header-avatar{color:var(--ink);background:#f2f2f4;border-color:#fff}
.home-profile .header-avatar .icon{width:1.25rem;height:1.25rem}
[data-theme=dark] .home-profile .header-avatar{background:#303136;color:#fff;border-color:#666}
