/* ==========================================================================
   ShopNova storefront — site chrome: top bar, header, search, navigation,
   mega menu, drawers, footer, mobile bottom bar, popups
   ========================================================================== */

/* ---------------------------------------------------------------- top bar */
.topbar { background: var(--topbar-bg, #141A24); color: var(--topbar-text, #fff); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.topbar a { opacity: .82; transition: opacity .2s; }
.topbar a:hover { opacity: 1; }
.topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links .icon { width: 15px; height: 15px; }
.ticker { position: relative; flex: 1; height: 40px; overflow: hidden; }
.ticker-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); white-space: nowrap; }
.ticker-item.is-active { opacity: 1; transform: none; }
.ticker-item .icon { width: 15px; height: 15px; color: var(--accent); stroke-width: 2.2; }
@media (max-width: 860px) { .topbar-links { display: none; } .ticker-item { justify-content: center; } }

/* ---------------------------------------------------------------- header */
.site-header { position: relative; z-index: 60; background: var(--header-bg, #fff); color: var(--header-text, var(--text)); }
.site-header.is-sticky { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(16, 24, 40, .22); }
.header-main .container { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--header-text, var(--text)); }
.logo img { max-height: 44px; width: auto; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary); color: var(--primary-contrast); flex: none; position: relative; overflow: hidden; }
.logo-mark::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .28), transparent 55%); }
.logo-mark svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.logo-mark .spark { fill: var(--accent); stroke: none; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 23px; letter-spacing: -.035em; line-height: 1; }
.logo-text em { font-style: normal; color: var(--accent); }
.logo-light .logo-text { color: #fff; }

.header-search { flex: 1; max-width: 680px; position: relative; }
.search-form { position: relative; display: flex; align-items: center; height: 48px; border-radius: 99px; background: var(--surface); border: 1.5px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s; }
.search-form:focus-within { background: var(--bg); border-color: var(--text); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-form > .icon { position: absolute; left: 18px; color: var(--muted); }
.search-form input { flex: 1; height: 100%; min-width: 0; border: 0; background: transparent; padding: 0 12px 0 48px; font-size: 15px; outline: none; color: var(--text); }
.search-form input::placeholder { color: #8B9099; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form .btn { height: 38px; margin-right: 5px; padding: 0 18px; border-radius: 99px; font-size: 14px; }

.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px; display: none; max-height: min(70vh, 560px); overflow-y: auto; }
.suggest.is-open { display: block; animation: pop .2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.suggest-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.suggest-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 8px; }
.suggest-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 600; }
.suggest-chips a:hover { background: var(--surface-2); }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; transition: background .15s; }
.suggest-item:hover, .suggest-item.is-active { background: var(--surface); }
.suggest-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface); flex: none; }
.suggest-item .name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.suggest-item .name mark { background: none; color: var(--accent); }
.suggest-item .meta { font-size: 12.5px; color: var(--muted); }
.suggest-item .price { margin-left: auto; font-weight: 700; font-size: 14px; white-space: nowrap; }
.suggest-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 12px; border-radius: 12px; background: var(--surface); font-weight: 700; font-size: 14px; }
.suggest-empty { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hbtn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 14px; border: 0; background: transparent; color: inherit; transition: background .2s; }
.hbtn:hover { background: var(--surface); }
.hbtn .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.hbtn-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.hbtn-text small { font-size: 12px; color: var(--muted); font-weight: 500; }
.hbtn-text b { font-size: 14px; font-weight: 700; }
.hbtn .count {
  position: absolute; top: 3px; left: 24px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: var(--accent-contrast); font-size: 11px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--header-bg, #fff); line-height: 1;
}
.hbtn .count.is-empty { display: none; }
.hbtn .count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
.menu-toggle { display: none; }

/* ---------------------------------------------------------------- nav row */
.header-nav { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--header-bg, #fff); }
.header-nav .container { display: flex; align-items: center; gap: 8px; height: 52px; }
.cat-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px; border-radius: 12px; border: 0;
  background: var(--primary); color: var(--primary-contrast); font-weight: 700; font-size: 14px; margin-right: 10px; transition: background .2s;
  white-space: nowrap; flex: none;
}
.cat-trigger:hover, .cat-trigger[aria-expanded="true"] { background: var(--primary-hover); }
.cat-trigger .icon { width: 18px; height: 18px; }
.cat-trigger .chev { width: 16px; height: 16px; transition: transform .25s var(--ease); margin-left: 4px; }
.cat-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.main-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.main-menu > li { position: relative; }
.main-menu > li > a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 10px; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; white-space: nowrap; }
.main-menu > li > a:hover, .main-menu > li > a.is-active { background: var(--surface); }
.main-menu > li > a .icon { width: 16px; height: 16px; }
.menu-badge { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: var(--accent); color: var(--accent-contrast); line-height: 1.3; }
.submenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease); z-index: 70; }
.main-menu > li:hover > .submenu, .main-menu > li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.submenu a:hover { background: var(--surface); }
.nav-extra { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; flex: none; white-space: nowrap; }
.nav-deals { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.nav-deals .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.nav-deals:hover { background: var(--accent); color: var(--accent-contrast); }
.nav-hotline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.nav-hotline .icon { width: 17px; height: 17px; color: var(--muted); }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 55; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega-panel { display: grid; grid-template-columns: 280px 1fr; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; min-height: 400px; }
.mega-roots { list-style: none; margin: 0; padding: 12px; background: var(--surface); }
.mega-roots a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.mega-roots a .icon { width: 19px; height: 19px; color: var(--muted); }
.mega-roots a .chev { margin-left: auto; width: 15px; height: 15px; opacity: .4; }
.mega-roots li.is-active a { background: var(--bg); box-shadow: var(--shadow-xs); }
.mega-roots li.is-active a .icon:first-child { color: var(--accent); }
.mega-body { padding: 26px 30px; position: relative; }
.mega-pane { display: none; animation: fadeIn .25s var(--ease); }
.mega-pane.is-active { display: grid; grid-template-columns: 1fr 260px; gap: 30px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mega-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mega-head h4 { margin: 0; font-size: 20px; }
.mega-subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.mega-sub { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s, transform .2s; }
.mega-sub:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mega-sub img { width: 54px; height: 54px; border-radius: 10px; background: var(--surface); object-fit: contain; flex: none; }
.mega-sub b { display: block; font-size: 14px; line-height: 1.25; }
.mega-sub small { color: var(--muted); font-size: 12.5px; }
.mega-promo { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface); min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: var(--text); }
.mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-promo > * { position: relative; }
.mega-promo .eyebrow { margin-bottom: 4px; }
.mega-promo h5 { font-size: 20px; margin: 0 0 12px; font-family: var(--font-heading); letter-spacing: -.02em; }

/* ---------------------------------------------------------------- mobile header */
@media (max-width: 1560px) { .nav-hotline { display: none; } }
@media (max-width: 1240px) { .main-menu > li > a { padding: 0 9px; font-size: 14px; } .cat-trigger { margin-right: 4px; } }
@media (max-width: 1040px) { .nav-deals { display: none; } }
@media (max-width: 1100px) {
  .hbtn-text { display: none; }
}
@media (max-width: 860px) {
  .header-nav { display: none; }
  .header-main .container { gap: 10px; height: var(--header-h); }
  .menu-toggle { display: inline-flex; margin-left: -8px; }
  .header-main { position: relative; }
  .header-search { position: absolute; left: 0; right: 0; top: var(--header-h); max-width: none; padding: 0 16px 12px; background: var(--header-bg, #fff); display: block; }
  .site-header .header-main { padding-bottom: 60px; }
  .site-header.is-scrolled .header-main { padding-bottom: 60px; }
  .logo-text { font-size: 21px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .hbtn { padding: 0 9px; }
  .hbtn .count { left: 22px; }
  .hbtn-account, .hbtn-wishlist { display: none; }
  .search-form { height: 44px; }
  .search-form .btn { display: none; }
}

/* ---------------------------------------------------------------- mobile menu drawer */
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.mnav-account { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface); }
.mnav-account .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--primary-contrast); display: grid; place-items: center; font-weight: 700; }
.mnav-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.mnav-tabs button { height: 48px; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.mnav-tabs button.is-active { color: var(--text); border-color: var(--text); }
.mnav-list { list-style: none; margin: 0; padding: 8px; }
.mnav-list a, .mnav-list summary { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.mnav-list summary::-webkit-details-marker { display: none; }
.mnav-list a:hover, .mnav-list summary:hover { background: var(--surface); }
.mnav-list .icon { width: 19px; height: 19px; color: var(--muted); }
.mnav-list summary .chev { margin-left: auto; transition: transform .2s; }
.mnav-list details[open] summary .chev { transform: rotate(90deg); }
.mnav-list ul { list-style: none; margin: 0 0 6px 42px; padding: 0; border-left: 1px solid var(--border); }
.mnav-list ul a { font-weight: 500; font-size: 14.5px; padding: 9px 12px; }
.mnav-foot { padding: 16px 18px; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 14px; }
.mnav-foot a { display: flex; align-items: center; gap: 10px; color: var(--muted); }

/* ---------------------------------------------------------------- cart drawer */
.fsbar { padding: 14px 20px; background: var(--surface); font-size: 13.5px; }
.fsbar p { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.fsbar p .icon { width: 17px; height: 17px; color: var(--success); }
.fsbar-track { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.fsbar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #FFB020); transition: width .5s var(--ease); }
.fsbar.is-done .fsbar-fill { background: var(--success); }
.cart-lines { list-style: none; margin: 0; padding: 6px 20px; }
.cart-line { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: 0; }
.cart-line-img { width: 80px; height: 80px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-weight: 600; font-size: 14px; line-height: 1.35; display: block; }
.cart-line-name:hover { text-decoration: underline; }
.cart-line-variant { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cart-line-issue { font-size: 12.5px; color: var(--danger); font-weight: 600; margin-top: 4px; }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cart-line-price { font-weight: 700; font-size: 14.5px; text-align: right; line-height: 1.2; }
.cart-line-price s { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.cart-line-remove { border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; padding: 0; margin-top: 6px; }
.cart-line-remove:hover { color: var(--danger); }
.qty { display: inline-flex; align-items: center; height: 36px; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.qty button { width: 34px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--text); transition: background .15s; }
.qty button:hover { background: var(--surface); }
.qty button .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.qty input { width: 38px; height: 100%; border: 0; text-align: center; font-weight: 700; font-size: 14px; background: none; -moz-appearance: textfield; outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-lg { height: 48px; border-radius: var(--btn-radius); }
.qty-lg button { width: 42px; }
.qty-lg input { width: 44px; font-size: 16px; }
.cart-totals { display: grid; gap: 8px; margin-bottom: 14px; font-size: 14px; }
.cart-totals .row-between b { font-size: 17px; }
.cart-drawer-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.drawer-empty { padding: 40px 28px; text-align: center; }
.drawer-empty svg { width: 220px; margin: 0 auto 14px; }
.drawer-empty h4 { font-size: 19px; margin-bottom: 6px; }
.drawer-empty p { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--footer-bg, #10151D); color: var(--footer-text, #C9CFD8); margin-top: 64px; font-size: 14.5px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-trust { border-bottom: 1px solid var(--footer-line); }
.footer-trust .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 30px; padding-bottom: 30px; }
.footer-trust-item { display: flex; align-items: center; gap: 14px; }
.footer-trust-item .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--footer-card); color: #fff; flex: none; }
.footer-trust-item b { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.footer-trust-item span { color: var(--footer-muted); font-size: 13.5px; }
.footer-main .container { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, .8fr)) 1.3fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.footer-about p { color: var(--footer-muted); margin: 16px 0 20px; max-width: 340px; line-height: 1.7; }
.footer-col h5 { color: #fff; font-family: var(--font-heading); font-size: 15px; font-weight: 700; margin: 6px 0 16px; letter-spacing: -.01em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col ul a { color: var(--footer-text); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--footer-text); }
.footer-contact .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--footer-muted); }
.footer-news h5 { margin-bottom: 8px; }
.footer-news p { color: var(--footer-muted); margin: 0 0 14px; font-size: 13.5px; }
.footer-news form { display: flex; gap: 8px; }
.footer-news input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--footer-line); background: var(--footer-card); color: #fff; padding: 0 14px; font-size: 14px; outline: none; }
.footer-news input:focus { border-color: var(--footer-muted); }
.footer-news .btn { height: 46px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--footer-card); border: 1px solid var(--footer-line); color: var(--footer-text); transition: all .2s; }
.socials a:hover { background: #fff; color: #10151D; border-color: #fff; }
.socials .icon { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid var(--footer-line); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 22px; font-size: 13px; color: var(--footer-muted); }
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pay-badge { height: 28px; padding: 0 10px; border-radius: 7px; background: #fff; color: #1D2330; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; letter-spacing: -.01em; white-space: nowrap; }
.pay-badge.b-bkash { color: #D12053; } .pay-badge.b-nagad { color: #EC5A1B; } .pay-badge.b-rocket { color: #7B2C8F; }
.pay-badge.b-visa { color: #1A1F71; font-style: italic; letter-spacing: .02em; } .pay-badge.b-mastercard { color: #EB001B; } .pay-badge.b-cod { color: #0E7C4A; }

@media (max-width: 1100px) {
  .footer-main .container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about, .footer-news { grid-column: span 3; }
  .footer-trust .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-footer { margin-top: 40px; padding-bottom: 70px; }
  .footer-main .container { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 36px; }
  .footer-about, .footer-news { grid-column: span 2; }
  .footer-trust .container { gap: 16px; }
  .footer-trust-item .ic { width: 40px; height: 40px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

/* ---------------------------------------------------------------- mobile bottom bar */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-bar a, .mobile-bar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
  .mobile-bar .icon { width: 22px; height: 22px; }
  .mobile-bar .is-active { color: var(--text); }
  .mobile-bar .count { position: absolute; top: 0; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
  .mobile-bar .count.is-empty { display: none; }
  body { padding-bottom: 64px; }
}

/* ---------------------------------------------------------------- floating chat, popup, cookie */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 65; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-fab-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6); transition: transform .25s var(--ease); }
.chat-fab-btn:hover { transform: scale(1.06); }
.chat-fab-btn .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.chat-fab-menu { display: none; flex-direction: column; gap: 8px; }
.chat-fab.is-open .chat-fab-menu { display: flex; animation: pop .2s var(--ease); }
.chat-fab-menu a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-md); font-weight: 600; font-size: 14px; }
.chat-fab-menu .icon { width: 18px; height: 18px; }
@media (max-width: 860px) { .chat-fab { bottom: 84px; right: 14px; } .chat-fab-btn { width: 50px; height: 50px; } }

.back-top { position: fixed; right: 26px; bottom: 90px; z-index: 64; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 860px) { .back-top { display: none; } }

.popup .modal-dialog { width: min(760px, 100%); display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; }
.popup-art { background: var(--accent-soft); position: relative; min-height: 380px; display: grid; place-items: center; overflow: hidden; }
.popup-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.popup-art .big-off { position: relative; font-family: var(--font-heading); font-weight: 800; font-size: 86px; letter-spacing: -.06em; line-height: .9; color: var(--accent); text-align: center; }
.popup-art .big-off small { display: block; font-size: 22px; letter-spacing: 0; color: var(--text); margin-top: 8px; }
.popup-body { padding: 44px 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.popup-body h3 { font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.popup-body p { color: var(--muted); margin-bottom: 20px; }
.popup-body .no-thanks { border: 0; background: none; color: var(--muted); font-size: 13px; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .popup .modal-dialog { grid-template-columns: 1fr; } .popup-art { min-height: 150px; } .popup-art .big-off { font-size: 56px; } .popup-body { padding: 26px 22px; } }

.cookie-bar { position: fixed; left: 20px; bottom: 20px; z-index: 66; width: min(420px, calc(100vw - 40px)); background: #141A24; color: #E5E7EB; padding: 16px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; font-size: 13.5px; line-height: 1.45; animation: toastIn .4s var(--ease); }
.cookie-bar .btn { height: 38px; flex: none; }
@media (max-width: 860px) { .cookie-bar { bottom: 76px; left: 12px; } }
