/* One layout for the homepage, lifetime and timed storefronts. */
.store-header, .store-header *, .store-header *::before, .store-header *::after { box-sizing: border-box; }
.store-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(8, 13, 21, 0.94);
    border-bottom: 1px solid rgba(161, 193, 223, 0.11);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    line-height: 1.5;
}
.store-header::after { content: ""; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, rgba(70, 193, 230, 0.35), transparent); pointer-events: none; }
.store-header-inner { max-width: 1440px; min-height: 86px; margin: 0 auto; padding: 12px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 20px; }
.store-brand { display: inline-flex; align-items: center; justify-self: start; gap: 11px; color: #edf5ff; text-decoration: none; white-space: nowrap; }
.store-brand-mark { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 44px; border: 1px solid rgba(69, 180, 237, 0.25); border-radius: 12px; color: #56c9ff; background: linear-gradient(145deg, rgba(40, 164, 226, 0.17), rgba(40, 164, 226, 0.025)); box-shadow: inset 0 1px 0 rgba(167, 226, 255, 0.08); font-size: 21px; }
.store-brand-copy { display: flex; flex-direction: column; gap: 4px; }
.store-brand-copy strong { display: flex; align-items: center; gap: 5px; font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -0.6px; }
.store-brand-copy strong > span { color: #67ceff; }
.store-brand-copy em { margin-left: 3px; padding: 3px 5px; border: 1px solid rgba(141, 180, 212, 0.18); border-radius: 4px; color: #a6bbcf; background: rgba(171, 202, 227, 0.04); font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: 0.2px; }
.store-brand-copy small { color: #7791aa; font-size: 9px; font-weight: 650; letter-spacing: 2.1px; line-height: 1.2; text-transform: uppercase; }
.store-navigation { display: flex; align-items: center; gap: 15px; justify-self: center; }
.store-home { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 5px; color: #98adc2; font-size: 12px; font-weight: 600; text-decoration: none; border-radius: 8px; transition: color 160ms ease; }
.store-home i { font-size: 12px; }
.store-home:hover { color: #ecf6ff; }
.store-home.is-active { color: #7ed5ff; }
.store-switch { display: flex; align-items: stretch; gap: 4px; padding: 4px; border: 1px solid rgba(154, 189, 221, 0.12); border-radius: 14px; background: rgba(0, 0, 0, 0.24); }
.store-tab { display: inline-flex; align-items: center; gap: 10px; min-width: 142px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; color: #a5b5c7; text-decoration: none; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.store-tab > i { width: 18px; font-size: 16px; text-align: center; color: #6f8aa4; }
.store-tab > span { display: flex; flex-direction: column; gap: 4px; }
.store-tab strong { font-size: 13px; line-height: 1.1; font-weight: 750; }
.store-tab small { font-size: 9px; font-weight: 500; line-height: 1.1; color: #748ca3; white-space: nowrap; }
.store-tab:hover { color: #fff; background: rgba(154, 189, 221, 0.06); }
.store-tab.is-active { color: #77e5b8; background: linear-gradient(130deg, rgba(52, 203, 140, 0.17), rgba(52, 203, 140, 0.055)); border-color: rgba(83, 218, 161, 0.27); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(165, 255, 214, 0.05); }
.store-tab.is-active > i { color: currentColor; }
.store-tab.is-active small { color: #87bba6; }
.store-tab-timed.is-active { color: #78d4ff; background: linear-gradient(130deg, rgba(46, 169, 233, 0.19), rgba(46, 169, 233, 0.055)); border-color: rgba(85, 189, 243, 0.3); }
.store-tab-timed.is-active small { color: #83acc5; }
.store-actions { display: flex; align-items: center; justify-self: end; gap: 10px; }
.store-account { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 9px 12px; border: 1px solid rgba(145, 178, 207, 0.14); border-radius: 10px; color: #c0d1e1; background: rgba(154, 189, 221, 0.025); font-size: 12px; font-weight: 650; white-space: nowrap; text-decoration: none; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.store-account i { font-size: 13px; color: #8caac4; }
.store-account:hover { color: #fff; background: rgba(154, 189, 221, 0.07); border-color: rgba(145, 178, 207, 0.3); }
.store-cart { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 8px 12px; border: 1px solid rgba(80, 188, 240, 0.34); border-radius: 10px; color: #c8edff; background: linear-gradient(130deg, rgba(32, 145, 205, 0.2), rgba(32, 145, 205, 0.08)); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.store-cart > i { font-size: 14px; }
.store-cart:hover, .store-cart[aria-expanded="true"] { border-color: rgba(106, 210, 255, 0.65); background: rgba(32, 145, 205, 0.25); }
.store-cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: rgba(142, 196, 225, 0.13); color: #afc7d9; font-size: 10px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.store-cart-count.has-items { background: #68dcae; color: #09251c; }
.store-header a:focus-visible, .store-header button:focus-visible { outline: 2px solid #8bd9ff; outline-offset: 4px; }
.store-page main { padding-top: 126px; }
.store-page.store-cart-open { overflow: hidden; }
.store-page .cart-drawer[aria-hidden="true"] { visibility: hidden; }
.store-page .cart-drawer[aria-hidden="false"] { visibility: visible; }

/* Homepage controls keep their existing account, notification and cart behavior. */
.store-more { position: relative; }
.store-more > summary { display: grid; place-items: center; width: 32px; height: 36px; border: 1px solid transparent; border-radius: 8px; color: #98adc2; cursor: pointer; list-style: none; }
.store-more > summary::-webkit-details-marker { display: none; }
.store-more > summary:hover, .store-more[open] > summary { color: #e2f4ff; background: rgba(154, 189, 221, 0.07); border-color: rgba(145, 178, 207, 0.14); }
.store-more > summary:focus-visible { outline: 2px solid #8bd9ff; outline-offset: 4px; }
.store-more-menu { position: absolute; top: calc(100% + 14px); right: 0; display: grid; gap: 4px; width: 190px; padding: 7px; border: 1px solid rgba(145, 178, 207, 0.18); border-radius: 12px; background: #0e1723; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.store-more-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 7px; color: #c0d1e1; text-decoration: none; font-size: 12px; font-weight: 600; }
.store-more-menu a:hover { color: #fff; background: rgba(154, 189, 221, 0.08); }
.store-more-menu i { width: 16px; color: #7dcdf5; text-align: center; }
.store-header .nav-user-wrapper, .store-header .nav-notif { margin: 0; }
.store-header .nav-btn-outline, .store-header .nav-btn-special { gap: 8px; min-height: 40px; margin: 0 !important; padding: 9px 12px; border: 1px solid rgba(145, 178, 207, 0.14); border-radius: 10px; color: #c0d1e1 !important; background: rgba(154, 189, 221, 0.025); box-shadow: none; font: inherit; font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; }
.store-header .nav-btn-special { color: #7ed5ff !important; border-color: rgba(80, 188, 240, 0.25); }
.store-header .nav-btn-outline:hover, .store-header .nav-btn-special:hover { color: #fff !important; border-color: rgba(145, 178, 207, 0.3); background: rgba(154, 189, 221, 0.07); transform: none; filter: none; box-shadow: none; }
.store-header .nav-btn-icon, .store-header #userMenuBtn .nav-ico { width: 16px; height: 16px; flex-basis: 16px; margin: 0 !important; color: #8caac4; }
.store-header .nav-btn-icon svg, .store-header #userMenuBtn .nav-ico svg { width: 16px; height: 16px; }
.store-header #userMenuBtn .nav-ico.sm { width: 12px; height: 12px; flex-basis: 12px; }
.store-header #userMenuBtn .nav-ico.sm svg { width: 12px; height: 12px; }
.store-header .nav-notif-btn { width: 40px; height: 40px; border-radius: 10px; border-color: rgba(145, 178, 207, 0.14); background: rgba(154, 189, 221, 0.025); color: #8caac4; }
.store-header .nav-notif-btn:hover { transform: none; }
.store-header .nav-user-wrapper:hover .user-dropdown-menu { display: none; }
.store-header .nav-user-wrapper .user-dropdown-menu.show { display: flex; position: absolute; top: 100%; right: 0; width: 240px; margin-top: 12px; background: #0e1723; border-color: rgba(145, 178, 207, 0.18); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.store-header .store-cart.nav-cart-chip { margin: 0; height: auto; text-decoration: none; }
.store-header .store-cart.nav-cart-chip:hover { transform: none; box-shadow: none; }
.store-header .store-cart .cart-n { border-radius: 6px; padding: 0 5px; background: rgba(142, 196, 225, 0.13); color: #afc7d9; font-size: 10px; }
.store-header .store-cart .cart-n.has-items { background: #68dcae; color: #09251c; }
.home-store-nav .navcart-drawer, .home-store-nav .navcart-drawer * { box-sizing: border-box; }
.home-store-nav .navcart-drawer[aria-hidden="true"] { visibility: hidden; }
.home-store-nav .scroll-progress { display: none; }

@media (max-width: 1120px) {
    .store-header-inner { column-gap: 14px; }
    .store-brand-copy strong { font-size: 18px; }
    .store-brand-mark { flex-basis: 36px; width: 36px; height: 40px; font-size: 19px; }
    .store-tab { min-width: 130px; padding-inline: 11px; }
    .store-navigation { gap: 10px; }
    .store-home span { display: none; }
    .store-home { width: 30px; }
    .store-account { padding: 10px; }
    .store-actions { gap: 7px; }
    .store-header .nav-account-label, .store-header #userMenuBtn .nav-ico.sm { display: none; }
    .store-header .nav-btn-outline, .store-header .nav-btn-special { width: 40px; padding: 10px; }
}
@media (max-width: 960px) {
    .store-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding-top: 12px; padding-bottom: 10px; }
    .store-brand { grid-column: 1; grid-row: 1; }
    .store-actions { grid-column: 2; grid-row: 1; }
    .store-navigation { grid-column: 1 / -1; grid-row: 2; }
    .store-home { width: auto; padding-inline: 10px; }
    .store-home span { display: inline; }
    .store-tab { min-width: 150px; padding-block: 8px; }
    .store-page main { padding-top: 168px; }
    .store-page .app-tab { scroll-margin-top: 168px; }
    .home-store-nav .hero { padding-top: 180px; }
    .home-store-nav #gallery { scroll-margin-top: 45px; }
    .store-header .notif-dropdown, .store-header .nav-user-wrapper .user-dropdown-menu.show { position: fixed; top: 66px; right: 16px; max-width: calc(100vw - 32px); }
    .store-header .nav-notif.is-open::after { display: none; }
}
@media (max-width: 520px) {
    .store-header-inner { padding-inline: 16px; column-gap: 10px; }
    .store-brand { gap: 8px; }
    .store-brand-copy strong { font-size: 17px; gap: 4px; }
    .store-brand-copy em { font-size: 9px; padding: 3px 4px; margin-left: 1px; }
    .store-brand-copy small { font-size: 8px; letter-spacing: 1.5px; }
    .store-brand-mark { flex-basis: 32px; width: 32px; height: 36px; border-radius: 9px; font-size: 17px; }
    .store-account { width: 36px; min-height: 36px; padding: 8px; }
    .store-account span, .store-cart-label { display: none; }
    .store-cart { min-height: 36px; padding: 7px 9px; gap: 7px; }
    .store-actions { gap: 6px; }
    .store-navigation { width: 100%; gap: 10px; }
    .store-home { width: 32px; padding: 9px 5px; }
    .store-home span { display: none; }
    .store-switch { flex: 1; min-width: 0; }
    .store-tab { flex: 1; min-width: 0; justify-content: center; gap: 8px; padding: 8px; }
    .store-tab strong { font-size: 12px; }
    .store-tab small { font-size: 8px; }
    .store-tab > i { width: 16px; font-size: 14px; }
    .store-page main { padding-top: 157px; }
    .store-header .nav-notif-btn, .store-header .nav-btn-outline, .store-header .nav-btn-special { width: 36px; height: 36px; min-height: 36px; padding: 8px; }
    .store-more > summary { width: 28px; }
    .home-store-nav .store-navigation { gap: 6px; }
    .home-store-nav .hero { padding-top: 170px; }
}
@media (max-width: 380px) {
    .home-store-nav .store-brand-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .store-header a, .store-header button { transition: none; }
}
