/* ==========================================================================
   uzrokas.lv · layout.css
   Announcement bar, header, navigation, mega menu, drawers, footer
   ========================================================================== */

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: rgba(247, 244, 239, .9);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 40px;
}
.announce__track { position: relative; flex: 1; height: 18px; overflow: hidden; }
.announce__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.announce__slide.is-active { opacity: 1; transform: none; }
.announce__slide strong { color: var(--gold-soft); font-weight: 500; }
.announce__side { display: flex; align-items: center; gap: var(--sp-4); }
.announce__link { white-space: nowrap; }
.announce__link:hover { color: var(--gold-soft); }

@media (max-width: 860px) {
  .announce__side--left { display: none; }
  .announce__inner { justify-content: center; }
}

@media (max-width: 600px) {
  .announce__inner { gap: .75rem; }
  .announce__track { min-width: 0; }
  .announce__slide { font-size: .6rem; letter-spacing: .06em; }
  .announce__slide span { display: none; }
  .announce__side--right .announce__link { display: none; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-sm); }
.header.is-hidden { transform: translateY(-100%); }

.header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.header__logo {
  display: flex;
  align-items: center;
  justify-self: center;
  color: #171f1c;
}
/* Match the previous logo's visible height (74/108), retaining its layout slot. */
.header__logo svg { height: 34px; width: auto; transform: scale(.6851851852); transform-origin: center; }
.header__logo:hover { color: var(--gold-ink); }

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
}

.header__search-label { display: none; }
@media (max-width: 600px) {
  .header__bar { grid-template-columns: 42px minmax(0, 1fr) auto; gap: .5rem; }
  .header__logo { min-width: 0; width: min(100%, 120px); }
  .header__logo svg { width: 100%; height: auto; }
  .header__actions { gap: 0; }
  .header__actions .icon-btn { width: 40px; height: 44px; }
}
@media (max-width: 360px) {
  .header__actions .icon-btn { width: 36px; }
}
@media (min-width: 1120px) {
  .header__search.icon-btn {
    width: auto;
    gap: .55rem;
    padding-inline: 1rem;
    margin-inline: .35rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #faf9f7;
    color: var(--muted);
    transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  }
  .header__search.icon-btn:hover,
  .header__search.icon-btn:focus-visible {
    border-color: var(--gold);
    background: var(--paper);
    color: var(--gold-ink);
  }
  .header__search-label { display: inline; font-size: .75rem; white-space: nowrap; }
  .header__search.icon-btn svg { width: 17px; height: 17px; }
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 42px;
  height: 42px;
  color: var(--ink);
  border-radius: 50%;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.icon-btn:hover { background: var(--bone); color: var(--gold-ink); }
.icon-btn svg { width: 20px; height: 20px; }
.header__account-check {
  position: absolute;
  top: 3px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--paper);
  border: 2px solid var(--paper);
  font: 600 9px/1 var(--font-body);
}
.header__account-check[hidden] { display: none; }
.header__account-label { display: none; }
.header__account[data-account-state="signed-in"] { color: var(--sage); }
.mnav__account-status { margin-top: .6rem; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.mnav__account-status.is-signed-in { color: var(--sage); }
@media (min-width: 1120px) {
  .header__account.icon-btn { width: auto; min-width: 68px; padding-inline: .45rem; flex-direction: column; gap: 2px; border-radius: var(--radius); }
  .header__account-label { display: block; font-size: .625rem; line-height: 1.15; white-space: nowrap; }
  .header__account-check { right: calc(50% - 17px); top: 1px; }
}
.icon-btn__count {
  position: absolute;
  top: 4px; right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: var(--gold-ink);
  color: #fff;
  font-size: .6rem;
  font-weight: 600;
  border-radius: 99px;
  line-height: 1;
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.icon-btn__count.is-visible { transform: scale(1); }
.icon-btn__count.is-bump { animation: pulseRing .6s var(--ease); }

.header__burger {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  color: var(--ink);
}
.header__burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background .2s var(--ease);
}
.header__burger span::before,
.header__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.header__burger span::before { top: -6px; }
.header__burger span::after { top: 6px; }

.header__tools {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.pill-select {
  appearance: none;
  padding: .35rem 1.4rem .35rem .6rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23746e65' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .4rem center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.pill-select:hover { border-color: var(--line); color: var(--ink); }
.pill-select option { color: var(--ink); text-transform: none; }

/* ---------- Primary nav ---------- */
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(.9rem, 1.8vw, 1.9rem); }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 0;
  font-size: var(--fs-xs);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: .2rem;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link.is-current { color: var(--gold-ink); }
.nav__link:hover::after, .nav__link[aria-expanded="true"]::after, .nav__link.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__caret { width: 9px; height: 6px; transition: transform .3s var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__item { position: static; }

/* ---------- Mega menu ---------- */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: var(--z-mega);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }

.mega__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) clamp(280px, 24vw, 340px);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
}
.mega--brands .mega__inner {
  grid-template-columns: repeat(2, minmax(0, 1fr)) clamp(280px, 24vw, 340px);
}

.mega__col-title {
  font-size: var(--fs-xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-ink);
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-4);
}

.mega__list { display: grid; gap: .1rem; }
.mega__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem 0;
  color: var(--muted);
  font-size: var(--fs-base);
  transition: color .22s var(--ease), padding-left .22s var(--ease);
}
.mega__list a:hover { color: var(--ink); padding-left: 6px; }
.mega__list a span.count { font-size: var(--fs-xs); color: var(--muted-2); }

.mega__promo {
  position: relative;
  overflow: hidden;
  background: var(--bone);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  align-self: start;
}
.mega__promo-art { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.mega__promo-body { position: relative; padding: 1.4rem; }
.mega__promo-body h4 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.mega__promo-body p { font-size: var(--fs-sm); margin-top: .35rem; }
.mega__promo .link-arrow { margin-top: var(--sp-4); white-space: nowrap; }
.mega__promo .link-arrow svg { width: 16px; height: 16px; flex: 0 0 16px; }

.mega__features { display: grid; gap: var(--sp-4); align-content: start; }
.mega__feature { display: flex; gap: .8rem; align-items: flex-start; }
.mega__feature svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--gold-ink); margin-top: 3px; }
.mega__feature strong { display: block; font-size: var(--fs-sm); font-weight: 500; letter-spacing: .04em; }
.mega__feature span { font-size: var(--fs-sm); color: var(--muted-2); }

/* Compact screens swap the horizontal nav for the burger + mobile drawer. */
@media (max-width: 1024px) {
  .nav { display: none; }
  .mega { display: none; }
  .header__burger { display: grid; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(89vw, 400px);
  background: var(--paper);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(-101%);
  transition: transform .42s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
}
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav__head {
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.mobile-nav__body { flex: 1; padding: var(--sp-4) 0 var(--sp-6); }
.mobile-nav__foot { padding: var(--sp-5); border-top: 1px solid var(--line); display: grid; gap: var(--sp-4); }

.mnav { display: grid; }
.mnav__row {
  border-bottom: 1px solid var(--line);
}
.mnav__btn,
.mnav__link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 1.05rem var(--sp-5);
  text-align: left;
  font-size: var(--fs-sm);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.mnav__btn:hover, .mnav__link:hover { background: var(--bone); color: var(--gold-ink); }
.mnav__link svg { width: 18px; height: 18px; flex: 0 0 18px; }
.mnav__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out);
  background: var(--bone);
  visibility: hidden;
}
.mnav__panel.is-open { max-height: 900px; visibility: visible; }
.mnav__panel ul { padding: .35rem 0; }
.mnav__panel a {
  display: block;
  padding: .6rem var(--sp-5) .6rem 2.2rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.mnav__panel a:hover { color: var(--gold-ink); }
.mnav__caret { transition: transform .3s var(--ease); width: 11px; height: 7px; flex: 0 0 11px; }
.mnav__btn[aria-expanded="true"] .mnav__caret { transform: rotate(180deg); }

/* ---------- Overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 26, .5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .38s var(--ease), visibility .38s;
  z-index: var(--z-overlay);
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Slide-in drawer (cart / wishlist) ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(94vw, 460px);
  background: var(--paper);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  transition: transform .42s var(--ease-out);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 1.15rem; letter-spacing: .06em; }
.drawer__count {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: .12em;
}
.drawer__body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--sp-5); overscroll-behavior: contain; }
.drawer__notices { flex: 0 0 auto; min-width: 0; padding: .75rem 1.5rem 0; }
.drawer__foot {
  border-top: 1px solid var(--line);
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-4);
  background: var(--bone);
  flex-shrink: 0;
  max-height: 55dvh;
  overflow-y: auto;
}

.drawer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
}
.drawer-total span:first-child {
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer-total strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }

/* Free shipping progress */
.ship-meter { font-size: var(--fs-xs); letter-spacing: .08em; color: var(--muted); }
.ship-meter__bar {
  height: 3px;
  background: var(--sand);
  margin-top: .55rem;
  overflow: hidden;
}
.ship-meter__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transition: width .5s var(--ease-out);
}
.ship-meter.is-reached { color: var(--sage); }

/* ---------- Line items ---------- */
.line-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.line-item:first-child { padding-top: 0; }
.line-item__media { background: var(--bone); overflow: hidden; aspect-ratio: 4 / 5; }
.line-item__media svg, .line-item__media img { width: 100%; height: 100%; object-fit: cover; }
.line-item__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.line-item__brand {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.line-item__name { font-size: var(--fs-base); line-height: 1.35; }
.line-item__name:hover { color: var(--gold-ink); }
.line-item__meta { font-size: var(--fs-xs); color: var(--muted-2); }
.line-item__row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: .4rem;
}
.line-item__price { font-size: var(--fs-base); white-space: nowrap; }
.line-item__price del { color: var(--muted-2); font-size: var(--fs-sm); margin-right: .35rem; }
.line-item__remove {
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.line-item__remove:hover { color: var(--wine); }

/* ---------- Quantity stepper ---------- */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty button {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.qty button:hover { background: var(--bone); color: var(--ink); }
.qty input {
  width: 40px;
  height: 32px;
  border: 0;
  text-align: center;
  font-size: var(--fs-sm);
  background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--lg button { width: 46px; height: 46px; }
.qty--lg input { width: 54px; height: 46px; }

/* Match the cart page, while keeping the drawer compact on a phone. */
#cart-drawer { width: min(96vw, 480px); }
#cart-drawer .drawer__head { padding: 1.25rem 1.5rem; }
#cart-drawer .drawer__head h2 { display: flex; align-items: center; gap: .75rem; font-size: 1.9rem; letter-spacing: 0; }
#cart-drawer .drawer__count:not(:empty) { display: grid; place-items: center; min-width: 26px; height: 26px; padding-inline: .4rem; border-radius: 50%; background: var(--bone); font-family: var(--font-body); font-size: .75rem; letter-spacing: 0; }
#cart-drawer .drawer__body { padding: 1.5rem; }
#cart-drawer .line-item { grid-template-columns: 80px minmax(0, 1fr); gap: 1rem; padding-block: 1.2rem; }
#cart-drawer .line-item:first-child { padding-top: 0; }
#cart-drawer .line-item__media { border-radius: 4px; background: #f6f3ee; }
#cart-drawer .line-item__media img { object-fit: contain; padding: .45rem; mix-blend-mode: multiply; }
#cart-drawer .line-item__name { font-family: var(--font-display); font-size: 1.3rem; }
#cart-drawer .line-item__meta { color: var(--muted); }
#cart-drawer .line-item__row { flex-wrap: wrap; gap: .65rem; padding-top: .65rem; }
#cart-drawer .line-item__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem; font-size: .9rem; }
#cart-drawer .line-item__price del { margin: 0; font-size: .7rem; }
#cart-drawer .line-item__remove { align-self: start; min-height: 36px; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: .75rem; }
#cart-drawer .line-item__remove:hover { color: var(--wine); }
#cart-drawer .qty { border-radius: 4px; width: 116px; }
#cart-drawer .qty button { flex: 0 0 40px; width: 40px; height: 40px; }
#cart-drawer .qty input { flex: 1; width: 34px; min-width: 0; height: 40px; }
#cart-drawer .qty svg { width: 15px; height: 15px; }
#cart-drawer .qty:focus-within { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
#cart-drawer .qty button:focus-visible { outline-offset: -3px; }
#cart-drawer .drawer__foot { padding: 1.25rem 1.5rem; gap: .9rem; background: #f7f5f1; }
#cart-drawer .ship-meter { font-size: .75rem; letter-spacing: 0; }
#cart-drawer .drawer-total span:first-child { font-size: .8rem; letter-spacing: 0; text-transform: none; }
#cart-drawer .drawer-total strong { font-size: 1.8rem; }
#cart-drawer .drawer__foot .btn { min-height: 50px; white-space: normal; font-size: .7rem; letter-spacing: .1em; padding-inline: .75rem; }
#cart-drawer .drawer__foot .btn svg { flex: 0 0 17px; width: 17px; height: 17px; }
#cart-drawer .drawer__view-bag { justify-self: center; padding: .2rem .5rem; color: var(--muted); font-size: .8rem; text-decoration: underline; text-underline-offset: 4px; }
#cart-drawer .drawer__view-bag:hover { color: var(--gold-ink); }
#cart-drawer .drawer__foot .form-note { font-size: .7rem; line-height: 1.6; }
@media (max-width: 600px) {
  #cart-drawer .drawer__head { padding: 1rem 1.1rem; }
  #cart-drawer .drawer__notices { padding: .6rem 1.1rem 0; }
  #cart-drawer .drawer__body, #cart-drawer .drawer__foot { padding: 1.1rem; }
  #cart-drawer .line-item { grid-template-columns: 68px minmax(0, 1fr); gap: .8rem; }
}

/* ---------- Empty state ---------- */
.empty-state {
  display: grid;
  place-items: center;
  gap: var(--sp-4);
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}
.empty-state svg { width: 54px; height: 54px; color: var(--sand); }
.empty-state h3 { font-size: 1.25rem; }
.empty-state p { max-width: 34ch; }

/* ---------- Search overlay ---------- */
.search-panel {
  position: fixed;
  inset: 0 0 auto 0;
  background: var(--paper);
  z-index: var(--z-drawer);
  transform: translateY(-101%);
  transition: transform .45s var(--ease-out);
  max-height: 92dvh;
  overflow-y: auto;
  visibility: hidden;
}
.search-panel.is-open { transform: none; visibility: visible; }
.search-panel__inner { padding-block: clamp(1.75rem, 4vw, 3.5rem); }

.search-form {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  border-bottom: 1px solid var(--ink);
  padding-bottom: var(--sp-3);
}
.search-form > svg { width: 22px; height: 22px; color: var(--muted); flex: 0 0 auto; }
.search-form input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  padding: .3rem 0;
  min-width: 0;
}
.search-form input:focus { outline: none; }

.search-panel__hints {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: var(--sp-5);
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--paper);
  transition: all .22s var(--ease);
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--gold.is-active { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }
.chip--clear { border-style: dashed; }

.search-results { margin-top: var(--sp-7); }
.search-results h4 {
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.search-results__grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(247, 244, 239, .72);
  margin-top: auto;
}
.footer p { color: inherit; }
.footer a { color: inherit; transition: color .22s var(--ease); }
.footer a:hover { color: var(--gold-soft); }

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.footer__brand svg { height: 40px; width: auto; color: var(--bone); --logo-accent: var(--gold-soft); }
.footer__brand p { margin-top: var(--sp-4); max-width: 34ch; font-size: var(--fs-sm); }
.footer__social { display: flex; gap: .6rem; margin-top: var(--sp-5); }
.footer__social a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: all .25s var(--ease);
}
.footer__social a:hover { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }

.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: var(--sp-5);
}
.footer__col ul { display: grid; gap: .6rem; font-size: var(--fs-sm); }

.footer__pay {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.pay-badge {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 28px;
  padding: 0 .4rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  font-size: .62rem;
  letter-spacing: .06em;
  font-weight: 600;
  color: rgba(247, 244, 239, .8);
}

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-5); }

.footer__news {
  border-bottom: 1px solid var(--line-dark);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: var(--sp-6);
  align-items: center;
}
.footer__news h3 { color: var(--bone); font-size: 1.5rem; }
.footer__news p { font-size: var(--fs-sm); margin-top: .35rem; }

.news-form { display: flex; gap: .5rem; }
.news-form .input {
  background: rgba(255, 255, 255, .06);
  border-color: var(--line-dark);
  color: var(--bone);
}
.news-form .input::placeholder { color: rgba(247, 244, 239, .6); }
.news-form .input:focus { border-color: var(--gold); box-shadow: none; }

@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__news { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bone);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
  box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-ink); }
.to-top svg { width: 18px; height: 18px; }



