/* Magento shell adaptation; loaded exclusively on cms_index_index. */
html { overflow-y: scroll; }
body.cms-index-index { background: #000; }
body.cms-index-index .page-wrapper { min-height: 0; }
body.cms-index-index #maincontent, body.cms-index-index #maincontent > .columns,
body.cms-index-index #maincontent .column.main { width: 100%; max-width: none; margin: 0; padding: 0; display: block; }
body.cms-index-index .page-main { padding: 0; }
body.cms-index-index .page-main > .page-title-wrapper { display: none; }
#hifi-home { overflow: visible; margin: 0; isolation: isolate; text-align: left; }
#hifi-home img { display: inline; }
#hifi-home .brandy { display: grid; width: 100%; align-content: center; justify-self: center; align-items: center; justify-items: center; padding: 2px; border-radius: 5px; }
#hifi-home button { min-height: 0; letter-spacing: normal; text-transform: none; }
#hifi-home #menu-icon { border: 0; padding: 0; border-radius: 0; }
#hifi-home #shadow { margin: 0; padding: 0; border: 0; border-radius: 0; }
#hifi-home #mobile button.toggle { padding: 0; margin: 0; min-width: 40px; border: 0; border-radius: 0; background: transparent; }
#hifi-home #mobile-bar a { text-decoration: none; }
#hifi-home #featured > article { position: relative; inset: auto; width: 100%; }
#hifi-home #featured > article[hidden], #hifi-home [hidden] { display: none !important; }
#hifi-home #featured .hifi-slider-controls { position: absolute; inset: 0; pointer-events: none; z-index: 9; }
#hifi-home #featured .hifi-slider-controls button { pointer-events: auto; }
#hifi-home #featured .owl-dots { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
#hifi-home #featured .owl-dots button { width: 12px; height: 12px; margin: 0 4px !important; }
#hifi-home #featured .hifi-slider-pause { position: absolute; bottom: 10px; right: 10px; padding: 3px 8px; margin: 0; border: 0; border-radius: 3px; background: #0009; color: #fff; font-size: 12px; }
#hifi-home #nav > ul > li:focus-within > ul { visibility: visible; opacity: 1; }
#hifi-home #panel .box:focus-within .drop, #hifi-home #panel .user-a:focus-within .drop { visibility: visible; opacity: 1; }
#hifi-home a:focus-visible, #hifi-home button:focus-visible { outline: 2px solid #dd0b35; outline-offset: 2px; }
#hifi-home .hifi-empty { padding: 25px 0 45px; }
#hifi-home .product-a > a:has(figure) { display: block; }
#hifi-home #footer a { overflow-wrap: anywhere; }
#hifi-home #hifi-search { z-index: 1400; }
/* Preserve the reference desktop artwork; allow its fixed-width tube strip to fit small screens. */
@media (max-width: 1000px) {
 #hifi-home .module-e > div[style*="209px"] { grid-template-columns: 1.2fr repeat(6, 1fr) !important; height: auto !important; }
 #hifi-home .module-e > div[style*="height:85px"] { height: auto !important; }
 #hifi-home #featured header { padding: 10px; }
 #hifi-home #featured header h1 { padding: 10px !important; width: auto !important; font-size: 25px; }
 #hifi-home #featured header h1 span { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { #hifi-home *, #hifi-home *::before, #hifi-home *::after { animation: none !important; transition: none !important; } }
/* Keep source dropdowns inside the viewport, including nested lamp categories. */
#hifi-home #nav > ul > li:nth-last-child(-n+4) > ul { left: auto !important; right: -20px !important; }
#hifi-home #nav > ul > li:nth-last-child(-n+4) > ul > li > ul { left: auto !important; right: calc(100% + 2px) !important; }
#hifi-home #nav > ul > li:nth-last-child(-n+4) > ul > li > ul::before { left: auto; right: -4px; }
#hifi-home #nav > ul > li > ul > li:focus-within > ul { display: block !important; }
#hifi-home #featured .owl-dots button { width: 21px; height: 21px; margin: 0 6px !important; font-size: 0; overflow: hidden; }
@media (max-width: 1300px) {
 #hifi-home .module-e > div[style*="209px"] { width: 100%; grid-template-columns: 1.2fr repeat(6, 1fr) !important; height: auto !important; }
}
@media (max-width: 1000px) {
 #hifi-home #featured .owl-dots { bottom: 12px; padding-right: 45px; padding-left: 10px; }
 #hifi-home #featured .owl-dots button { width: 7px; height: 7px; margin: 0 3px !important; border-width: 1px; }
 #hifi-home #featured .hifi-slider-pause { bottom: 4px; right: 4px; padding: 1px 4px; font-size: 10px; }
}
#hifi-home .hifi-credits { background: #000; margin: 0; padding-bottom: 28px; }

/* Dynamic Magento cards retain the dimensions of the original homepage. */
#hifi-home .hifi-home-products .hifi-card-description { overflow: hidden; height: 80px; margin-bottom: 20px; }
#hifi-home .hifi-home-products .hifi-card-description p { height: auto; margin: 0; }
#hifi-home .hifi-home-products .hifi-card-image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
#hifi-home .hifi-home-products .hifi-card-cart { position: absolute; z-index: 10; right: 50px; top: 16px; }
#hifi-home .hifi-home-products .hifi-card-cart img { width: 24px; height: 24px; }

/* Language and currency controls remain available inside the mobile menu. */
:is(#hifi-home,#hifi-header) #mobile .hifi-mobile-preferences { padding:16px 20px; border-bottom:1px solid #e0e0e6; background:#fafafa; }
:is(#hifi-home,#hifi-header) #mobile .hifi-mobile-preferences > div { display:flex; align-items:center; gap:16px; min-height:44px; }
:is(#hifi-home,#hifi-header) #mobile .hifi-mobile-preferences strong { min-width:66px; font-size:13px; }
:is(#hifi-home,#hifi-header) #mobile .hifi-mobile-preferences a { display:inline-flex; align-items:center; gap:5px; padding:10px 0; font-size:13px; text-decoration:none; }
:is(#hifi-home,#hifi-header) #mobile .hifi-mobile-preferences a[aria-current="true"] { color:#bd1e2d; font-weight:700; }
:is(#hifi-home,#hifi-header) #mobile .hifi-mobile-preferences img { width:25px; height:18px; }
