/* Shell: announcement, header, navigation, footer, boot. */
.paint-strip { height: 4px; background: linear-gradient(90deg, var(--accent) 0 34%, var(--honey) 34% 67%, var(--jade) 67%); }
.promo-bar { background: var(--night); color: #f2ece2; font-size: .74rem; letter-spacing: .015em; }
.promo-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.promo-demo { color: var(--honey); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; }
.promo-line { color: #d7cfc2; }
.promo-side { display: flex; align-items: center; gap: 10px; color: #aaa18f; }
.promo-side a:hover { color: var(--paper-raised); }

.site-header { position: sticky; top: 0; z-index: 80; background: rgba(246, 241, 232, .94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(205, 186, 162, .55); }
.header-main { height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: #fff8ee; box-shadow: 0 5px 0 #a8301c; }
.brand-mark svg { width: 27px; height: 27px; }
.brand-mark--footer { background: var(--honey); box-shadow: none; color: var(--night); width: 34px; height: 34px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-word b { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; }
.brand-word em { font-family: var(--font-display); font-size: 1.3rem; font-style: normal; letter-spacing: .08em; font-weight: 700; }
.header-search { position: relative; flex: 1; max-width: 570px; display: flex; align-items: center; background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); transition: border-color .2s, box-shadow .2s; }
.header-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(34, 27, 22, .06); }
.header-search input { flex: 1; height: 44px; padding: 0 8px 0 4px; border: 0; outline: 0; background: transparent; font-size: .88rem; }
.search-icon { width: 16px; height: 16px; border: 2px solid var(--ink-soft); border-radius: 50%; margin-left: 17px; margin-right: 10px; position: relative; flex: none; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; border-radius: 2px; background: var(--ink-soft); transform: rotate(45deg); right: -5px; bottom: -2px; }
.search-go { height: 34px; min-width: 64px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper-raised); font-size: .78rem; font-weight: 650; margin-right: 5px; transition: background .2s; }
.search-go:hover { background: var(--accent); }
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 90; overflow: hidden; }
.search-suggest button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: .86rem; }
.search-suggest button:hover { background: var(--paper-deep); }
.search-suggest .suggest-label { color: var(--muted); font-size: .72rem; padding: 8px 12px 4px; }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-shrink: 0; }
.header-trust { display: inline-flex; align-items: center; gap: 6px; color: var(--jade); font-size: .74rem; font-weight: 650; white-space: nowrap; }
.header-trust span { font-size: .62rem; }
.header-action { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; border: 0; background: transparent; color: var(--ink-soft); font-size: .78rem; white-space: nowrap; }
.header-action:hover { color: var(--accent); }
.action-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; }
.avatar-mini { border: 1px solid var(--line-strong); overflow: hidden; background: var(--paper-deep); font-family: var(--font-display); font-size: .76rem; font-weight: 700; color: var(--accent-deep); }
.avatar-mini img { width: 100%; height: 100%; object-fit: cover; }
.cart-icon::before { content: ""; width: 12px; height: 8px; border: 1.7px solid currentColor; border-top: 0; position: absolute; top: 11px; left: 6px; transform: skew(-8deg); }
.cart-icon::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; position: absolute; top: 19px; left: 8px; box-shadow: 8px 0 currentColor; }
.cart-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff8f0; font-size: .65rem; font-weight: 700; line-height: 1; position: absolute; top: -2px; left: 18px; border: 2px solid var(--paper); }
.menu-toggle { display: none; }
.menu-lines { display: grid; gap: 4px; }
.menu-lines i { display: block; width: 18px; height: 1.5px; background: currentColor; }

.primary-nav { border-top: 1px solid var(--line); }
.nav-inner { height: 43px; display: flex; align-items: center; gap: 24px; }
.nav-home, .nav-deal { font-size: .78rem; font-weight: 650; white-space: nowrap; }
.nav-home { color: var(--accent); }
.nav-deal { margin-left: auto; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 5px; }
.nav-deal span { font-size: 1rem; }
.category-links { display: flex; align-items: center; gap: 24px; overflow: hidden; }
.category-links a { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; position: relative; }
.category-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--accent); transition: right .22s var(--ease); }
.category-links a:hover { color: var(--ink); }
.category-links a:hover::after { right: 0; }
.nav-skeleton { color: var(--muted); font-size: .76rem; }

.mobile-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 110; width: min(370px, 88vw); padding: 22px; background: var(--paper); border-right: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow-y: auto; animation: drawer-in .25s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-head b { font-family: var(--font-display); font-size: 1.35rem; }
.drawer-categories { display: grid; gap: 2px; padding: 18px 0; }
.drawer-categories a { display: flex; justify-content: space-between; padding: 13px 4px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.drawer-categories a span { color: var(--muted); font-family: var(--font-mono); font-size: .68rem; }
.drawer-links { display: grid; gap: 10px; padding-top: 12px; color: var(--jade); font-size: .86rem; font-weight: 650; }
.nav-scrim { position: fixed; inset: 0; background: rgba(22, 18, 14, .42); z-index: 100; animation: fade-in .2s ease; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.mobile-tabbar { display: none; }
.boot-screen { min-height: 58vh; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--muted); }
.boot-mark { width: 38px; height: 38px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: rotate .8s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }

.site-footer { margin-top: 100px; background: var(--night); color: #e8e1d5; }
.footer-grid { display: grid; grid-template-columns: 2.1fr repeat(3, 1fr); gap: 50px; padding: 56px 0 48px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand b { font-family: var(--font-body); font-size: .9rem; letter-spacing: .11em; }
.footer-brand b em { font-family: var(--font-display); font-size: 1.2rem; font-style: normal; letter-spacing: .07em; color: var(--honey); margin-left: 4px; }
.footer-brand p { color: #9ca79f; font-size: .82rem; line-height: 1.8; }
.footer-column { display: grid; gap: 10px; align-content: start; font-size: .8rem; }
.footer-column b { color: var(--honey); font-size: .78rem; letter-spacing: .06em; margin-bottom: 5px; }
.footer-column a { color: #adb7b0; }
.footer-column a:hover { color: #fff9ed; }
.footer-bottom { border-top: 1px solid #36453f; padding: 18px 0 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #849089; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .01em; }

@media (max-width: 1080px) {
  .header-main { gap: 16px; }
  .header-trust { display: none; }
  .header-search { max-width: none; }
  .category-links { gap: 18px; }
}
@media (max-width: 800px) {
  .promo-demo { display: none; }
  .promo-inner { justify-content: center; }
  .promo-line { font-size: .7rem; }
  .promo-side { display: none; }
  .site-header { position: sticky; }
  .header-main { height: 66px; gap: 10px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 10px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand-word b { font-size: .7rem; }
  .brand-word em { font-size: 1.08rem; }
  .menu-toggle { display: inline-grid; width: 38px; height: 38px; }
  .header-search { display: none; }
  .header-actions { gap: 10px; }
  .header-action .action-label { display: none; }
  .header-action { padding: 3px; }
  .cart-badge { left: 15px; top: -4px; }
  .primary-nav { display: none; }
  .header-main::after { content: ""; }
  .mobile-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; justify-content: space-around; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 250, 242, .96); backdrop-filter: blur(12px); }
  .mobile-tabbar a { position: relative; display: grid; gap: 2px; place-items: center; width: 64px; color: var(--muted); font-size: .65rem; }
  .mobile-tabbar a:hover, .mobile-tabbar a.is-active { color: var(--accent); }
  .tab-icon { display: grid; place-items: center; width: 22px; height: 22px; font-size: 1.25rem; line-height: 1.1; }
  .tab-icon svg { width: 21px; height: 21px; }
  .tab-badge { position: absolute; top: -2px; right: 12px; min-width: 16px; height: 16px; padding-inline: 4px; border-radius: 8px; background: var(--accent); color: white; font-size: .58rem; text-align: center; line-height: 16px; }
  body { padding-bottom: 66px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 38px 0 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { margin-top: 64px; }
  .footer-bottom { font-size: .6rem; padding-bottom: 22px; }
}
@media (max-width: 480px) {
  .brand-word b { display: none; }
  .footer-grid { gap: 22px; }
  .footer-column:nth-last-child(-n+1) { display: none; }
  .header-main { gap: 8px; }
  .brand { gap: 7px; }
  .header-actions { gap: 2px; }
  .promo-line { max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
