/* Ticker, header, mega menu, footer */

/* ---------- announcement ticker ---------- */
.ticker { position: relative; height: 36px; overflow: hidden; background: var(--ink); color: #E9EBF5; font: 500 12.5px/36px var(--font-ui); letter-spacing: .02em; }
.ticker__track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 14px; padding-right: 34px; white-space: nowrap; }
.ticker__item .ico { width: 13px; height: 13px; color: var(--sun); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 241, .78);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.hdr.is-stuck { box-shadow: 0 10px 30px -18px rgba(18, 22, 43, .35); }
.hdr__bar { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__word { font: 800 27px/1 var(--font-display); font-stretch: 90%; letter-spacing: -.045em; color: var(--ink); }
.logo__format {
  margin-left: 2px; padding: 4px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand);
  font: 700 10.5px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; transition: background .4s, color .4s;
}

.loc { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 14px; text-align: left; flex: none; transition: background .2s; }
.loc:hover { background: rgba(18, 22, 43, .05); }
.loc__pin { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.loc__pin .ico { width: 18px; height: 18px; }
.loc__text small { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.2; }
.loc__text b { font-size: 13.5px; font-weight: 600; }
.loc__eta { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 4px 8px; border-radius: 999px; background: var(--fresh-soft); color: var(--fresh); font: 700 11.5px/1 var(--font-ui); }
.loc__eta .ico { width: 12px; height: 12px; }

.search { position: relative; flex: 1; min-width: 0; max-width: 620px; }
.search input {
  width: 100%; height: 48px; padding: 0 44px 0 46px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--line); outline: none;
  font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.search input::-webkit-search-cancel-button { display: none; }
.search__icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.search__kbd { position: absolute; right: 14px; top: 50%; translate: 0 -50%; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); font: 600 11px/1 var(--font-ui); color: var(--ink-3); }
.search input:focus ~ .search__kbd { display: none; }

.hdr__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.pts { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 8px; border-radius: 999px; background: linear-gradient(135deg, #FFF4D2, #FFE6A6); color: #6B4A00; font: 500 13px/1 var(--font-ui); }
.pts b { font-weight: 700; }
.pts__icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #C98A00; }
.pts__icon .ico { width: 15px; height: 15px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: rgba(18, 22, 43, .06); }
.icon-btn .ico { width: 22px; height: 22px; }

.cart-btn {
  position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 10px;
  border-radius: 999px; background: var(--ink); color: #fff; transition: background .3s, transform .3s var(--ease);
}
.cart-btn:hover { background: #000; }
.cart-btn__meta { text-align: left; line-height: 1.1; }
.cart-btn__meta small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .62); letter-spacing: .04em; }
.cart-btn__meta b { font: 700 14.5px/1.1 var(--font-ui); font-variant-numeric: tabular-nums; }
.cart-btn .badge { top: -3px; right: auto; left: 30px; border-color: var(--ivory); }

.basket { width: 32px; height: 32px; overflow: visible; }
.basket__body { fill: #fff; }
.basket__lines { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.bi { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(-6px) scale(.6); transition: opacity .3s, transform .5s var(--spring); }
.bi1 { fill: #41C27B; }
.bi2 { fill: var(--sun); }
.bi3 { fill: #FF7A45; }
.cart-btn[data-fill="1"] .bi1, .cart-btn[data-fill="2"] .bi1, .cart-btn[data-fill="3"] .bi1,
.cart-btn[data-fill="2"] .bi2, .cart-btn[data-fill="3"] .bi2,
.cart-btn[data-fill="3"] .bi3 { opacity: 1; transform: none; }
.cart-btn.is-bump { animation: bump .6s var(--spring); }
.cart-btn.is-bump .basket { animation: wiggle .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.09); } 60% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -9deg; } 55% { rotate: 7deg; } 80% { rotate: -3deg; } }
.badge.is-flip { animation: flip .5s var(--spring); }
@keyframes flip { 0% { transform: translateY(6px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* nav row */
.hdr__nav { display: flex; align-items: center; gap: 4px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.hdr__nav::-webkit-scrollbar { display: none; }
.hdr__nav a, .dept-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; font: 500 14px/1 var(--font-ui); color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.hdr__nav a:hover, .dept-btn:hover { background: rgba(18, 22, 43, .06); color: var(--ink); }
.dept-btn { background: var(--ink); color: #fff; padding: 0 14px; margin-right: 8px; }
.dept-btn:hover, .dept-btn[aria-expanded="true"] { background: var(--brand); color: #fff; }
.dept-btn .ico { width: 16px; height: 16px; }
.dept-btn__chev { transition: transform .25s; }
.dept-btn[aria-expanded="true"] .dept-btn__chev { transform: rotate(180deg); }
.hdr__spacer { flex: 1; }
.hdr__promo { color: var(--berry) !important; font-weight: 600 !important; }
.hdr__promo .ico { width: 15px; height: 15px; }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(18, 22, 43, .35); animation: drop .35s var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mega__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding-block: 22px 26px; }
.mega__item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-m); transition: background .2s; }
.mega__item:hover { background: var(--tint); }
.mega__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.mega__item:hover .mega__icon { background: #fff; }
.mega__name { font: 600 14.5px/1.2 var(--font-ui); }
.mega__meta { font-size: 12px; color: var(--ink-3); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #C9CCDA; padding-top: 80px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1.4fr 1.1fr; gap: 48px; padding-bottom: 56px; }
.footer__word { font: 800 64px/.9 var(--font-display); font-stretch: 88%; letter-spacing: -.05em; color: #fff; }
.footer__word span { color: var(--sun); }
.footer__brand > p:not(.footer__word) { margin-top: 16px; max-width: 340px; font-size: 15px; }
.footer__apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.footer__apps .btn--dark { background: #fff; color: var(--ink); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { margin-bottom: 14px; font: 600 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer__cols a { display: block; padding: 6px 0; font-size: 14.5px; transition: color .2s; }
.footer__cols a:hover { color: #fff; }
.newsletter label { display: block; font-size: 14.5px; }
.newsletter label b { display: block; margin-bottom: 4px; font: 700 22px/1.2 var(--font-display); color: #fff; }
.newsletter__field { display: flex; gap: 8px; margin-top: 16px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.newsletter__field input { flex: 1; min-width: 0; padding: 0 14px; background: none; border: 0; outline: none; color: #fff; }
.newsletter__field input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter__field:focus-within { border-color: rgba(255, 255, 255, .45); }
.newsletter__msg { min-height: 22px; margin-top: 10px; font-size: 13.5px; }
.newsletter__msg.is-ok { color: #7FE0AE; }
.newsletter__msg.is-err { color: #FFB59A; }
.footer__legal { display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #8E93AB; }
.footer__legal p { max-width: 640px; }
.footer__legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pts, .loc__eta { display: none; }
  .mega__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .loc { display: none; }
  .cart-btn__meta { display: none; }
  .cart-btn { padding: 0 12px 0 10px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --hdr-h: 160px; }
  .hdr__bar { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 44px; }
  .search__kbd { display: none; }
  .hdr__actions { margin-left: auto; }
  .logo__word { font-size: 24px; }
  .hdr__promo { display: none !important; }
  .mega__grid { grid-template-columns: repeat(2, 1fr); max-height: 60vh; overflow: auto; }
  .footer { padding-top: 56px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__word { font-size: 52px; }
}
