.store-header, #shared-footer { color: #171d2c; background: #f6f5ef; font: 16px/1.5 Arial, sans-serif; }
html.catalog-resuming main { visibility: hidden; }
.store-header { border-bottom: 1px solid #deddd3; }
.store-shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.store-header .store-shell { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.store-identity { display: flex; align-items: center; flex-wrap: wrap; column-gap: 13px; row-gap: 0; min-width: 0; }
.store-brand { display: inline-flex; gap: 10px; align-items: center; width: fit-content; font-weight: 750; letter-spacing: -.025em; }
.store-brand img { border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.store-city { display: inline-flex; gap: 4px; align-items: center; min-width: 0; max-width: 100%; min-height: 38px; padding: 2px 6px; border: 0; border-radius: 8px; background: transparent; color: #2539bf; font: 700 .78rem/1.2 Arial,sans-serif; text-align: left; cursor: pointer; }
.store-city span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.store-city:hover { background: #e9edfd; }
.store-switcher { display: flex; padding: 4px; background: #eae9e1; border-radius: 999px; gap: 2px; }
.store-switcher a { border-radius: 999px; padding: 8px 17px; color: #4a4b5a; font-size: .88rem; font-weight: 700; text-align: center; white-space: nowrap; }
.store-switcher a[aria-current] { color: #fff; background: #2539bf; }
.store-switcher a:not([aria-current]):hover { background: #fffefa; }
.store-actions { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 22px); justify-self: end; font-size: .86rem; font-weight: 700; }
.store-actions > a:hover, .store-actions > a[aria-current], #shared-footer a:hover { color: #2539bf; }
.ui-icon { display: inline-block; vertical-align: -.2em; width: 1.2em; height: 1.2em; flex: none; }
.store-actions > a { display: inline-flex; align-items: center; gap: 5px; }
.store-actions > :is(.nav-support, .nav-orders) { min-width: 32px; min-height: 36px; justify-content: center; }
.store-actions .ui-icon { width: 18px; height: 18px; }
.store-actions > a { position: relative; flex-direction: column; justify-content: center; gap: 3px; font-size: .73rem; }
.store-actions .nav-cart { padding-inline: 8px; }
.store-actions #cart-count, .buyer-badge { position: absolute; top: -3px; left: calc(50% + 6px); min-width: 17px; min-height: 17px; border-radius: 30px; padding: 1px 3px; background: #2539bf; color: white; text-align: center; font: 700 10px/15px Arial,sans-serif; }
.store-actions #cart-count { display: grid; }
.mobile-nav .buyer-badge { top: 5px; }
.account-shortcuts .buyer-badge { position: static; margin-left: auto; }
.nav-favorites, .nav-cart { display: inline-flex; align-items: center; gap: 5px; }
.nav-favorites > span:first-child { font-size: 1.25rem; line-height: 1; }
#cart-count { display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; padding: 0 5px; background: #e6edbd; border-radius: 50px; color: #171d2c; }
#shared-footer { border-top: 1px solid #deddd3; }
#shared-footer .store-shell { min-height: 75px; padding-block: 10px; display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: .82rem; }
.store-legal { display: flex; gap: 12px; flex-wrap: wrap; }
.favorite-toggle { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #171d2c; background: #fffefa; border: 1px solid #deddd3; border-radius: 50%; width: 43px; height: 43px; padding: 0; }
.favorite-toggle span:first-child { font: 1.4rem/1 Arial, sans-serif; }
.favorite-toggle[aria-pressed=true], .favorite-toggle:hover { color: #2539bf; border-color: #b4bff7; }
.favorite-toggle[aria-pressed=true] .ui-icon { fill: currentColor; }
.favorite-toggle.with-label { width: auto; padding: 0 12px; border-radius: 10px; font-size: .83rem; font-weight: 700; }
.nav-alert { position: fixed; bottom: 18px; right: 16px; max-width: min(350px, calc(100% - 32px)); padding: 10px 15px; z-index: 100; background: #171d2c; color: white; border-radius: 8px; }
.store-header a:focus-visible, .favorite-toggle:focus-visible { outline: 3px solid #495ee4; outline-offset: 3px; }
.footer-settings { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.mobile-nav { display: none; }
.privacy-banner, .privacy-dialog { color: #171d2c; background: #fffefa; border: 1px solid #deddd3; font: 15px/1.45 Arial, sans-serif; }
.privacy-banner { position: fixed; z-index: 80; left: max(12px, calc((100% - 980px) / 2)); right: max(12px, calc((100% - 980px) / 2)); bottom: 14px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; box-shadow: 0 8px 30px #131c3223; }
.privacy-banner p, .privacy-dialog p { margin: 3px 0 0; font-size: .88rem; }
.privacy-banner a, .privacy-dialog a { color: #2539bf; text-decoration: underline; }
.privacy-banner[hidden], .privacy-dialog [hidden], .mobile-nav [hidden] { display: none; }
.privacy-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.privacy-banner .privacy-actions { flex-shrink: 0; }
.privacy-btn { background: #2539bf; color: white; border: 1px solid #2539bf; border-radius: 9px; padding: 9px 13px; font: 700 .85rem/1.2 Arial, sans-serif; min-height: 42px; cursor: pointer; }
.privacy-btn.secondary { background: white; color: #2539bf; }
.privacy-dialog { padding: 20px; border-radius: 14px; width: min(450px, calc(100% - 26px)); }
.privacy-dialog::backdrop { background: #141c36a0; }
.privacy-dialog form { display: grid; gap: 13px; }
.privacy-dialog h2 { margin: 0; font-size: 1.4rem; }
.privacy-check { display: flex; align-items: start; gap: 8px; }
.privacy-check input { accent-color: #2539bf; width: 17px; height: 17px; flex-shrink: 0; }
.city-dialog { width: min(510px, calc(100% - 28px)); max-height: calc(100dvh - 26px); padding: 22px; border: 1px solid #deddd3; border-radius: 20px; box-sizing: border-box; background: #fffefa; color: #171d2c; font: 15px/1.4 Arial,sans-serif; box-shadow: 0 16px 70px #171d2c30; }
.city-dialog::backdrop { background: #141c3688; }
.city-dialog form { display: grid; gap: 9px; }
.city-dialog h2 { font: 500 clamp(1.6rem,6vw,2.1rem)/1.15 Georgia,serif; margin: 0 34px 0 0; }
.city-dialog p { margin: 0; color: #4a4b5a; }
.city-dialog :is(input, select) { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; box-sizing: border-box; font: 16px Arial,sans-serif; border: 1px solid #b8bac5; border-radius: 9px; background: #f7f7f2; color: #171d2c; }
.city-dialog label { display: grid; gap: 4px; }
.city-dialog label[hidden], .city-dialog [hidden] { display: none; }
.city-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #efefe7; color: #171d2c; font: 1.65rem Arial,sans-serif; cursor: pointer; }
.city-prompt-status { font-size: .79rem; }
.city-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; max-height: min(38dvh, 286px); min-height: 44px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; align-content: start; }
.city-results button { min-height: 42px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; background: #f0f0e9; color: #171d2c; font: 700 .88rem/1.25 Arial,sans-serif; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.city-results button:hover, .city-results button[aria-pressed=true] { border-color: #9cacee; background: #e9edfd; color: #2539bf; }
.city-dialog small { color: #4a4b5a; }
.city-dialog small a, .city-secondary { color: #2539bf; text-decoration: underline; }
.city-actions { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; }
.city-actions button:disabled { opacity: .48; cursor: default; }
.city-secondary { padding: 7px 0; border: 0; background: transparent; font: 700 .8rem Arial,sans-serif; cursor: pointer; }
.store-city:focus-visible, .city-dialog :is(button,input,select):focus-visible { outline: 2px solid #495ee4; outline-offset: 2px; }

@media (max-width: 1000px) { .store-shell { width: calc(100% - 48px); } }
@media (max-width: 790px) {
  .store-header .store-shell { min-height: auto; padding-block: 10px; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .store-switcher { grid-row: 2; grid-column: 1 / -1; }
  .store-switcher a { flex: 1; }
  .store-brand { font-size: .89rem; }
  .store-brand img { width: 37px; height: 37px; }
  .store-identity { gap: 0 8px; }
}
@media (max-width: 520px) {
  .store-shell { width: calc(100% - 28px); }
  .store-header .store-brand { gap: 6px; font-size: .75rem; line-height: 1.2; }
  .store-city { min-height: 32px; }
  .store-actions { font-size: .81rem; }
  .nav-favorites { padding: 5px 0; }
  .nav-favorites .nav-action-label { position: absolute; clip-path: inset(50%); }
  #cart-count { min-width: 19px; min-height: 19px; }
  .nav-cart { gap: 3px; }
  #shared-footer .store-shell { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  body:has(.mobile-nav) { padding-bottom: calc(61px + env(safe-area-inset-bottom)); }
  .store-header .store-actions > a:not(.nav-support) { display: none; }
  .store-actions > .nav-support { width: 66px; }
  .store-header .store-shell { grid-template-columns: 1fr auto; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); z-index: 60; bottom: 0; left: 0; right: 0; padding-bottom: env(safe-area-inset-bottom); background: #fffefa; border-top: 1px solid #deddd3; font: 700 .7rem/1.2 Arial, sans-serif; }
  .mobile-nav a { position: relative; display: grid; align-content: center; justify-items: center; gap: 3px; min-height: 60px; }
  .mobile-nav [aria-current=page] { color: #2539bf; background: #ecefff; }
  .mobile-icon { display: grid; place-items: center; }
  .mobile-icon .ui-icon { width: 21px; height: 21px; }
  #mobile-cart-count { position: absolute; left: calc(50% + 6px); top: 5px; min-width: 16px; height: 16px; padding: 1px 3px; border-radius: 20px; background: #2539bf; color: white; text-align: center; }
  .privacy-banner { align-items: stretch; flex-direction: column; bottom: calc(70px + env(safe-area-inset-bottom)); gap: 9px; padding: 10px 12px; }
  .city-dialog { padding: 18px; }
}
body:has(.store-header), body:has(.admin-wrap) { background-image: url("/assets/score-pattern.svg"); background-size: 460px 350px; }
