.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar--overlay {
  position: fixed;
  left: 0;
  right: 0;
}

.topbar--overlay .header {
  background: transparent;
  transition: background 0.25s ease;
}

.topbar--overlay.is-scrolled .header {
  background: var(--c-green);
}

.promo-bar {
  height: var(--promo-h);
  background: var(--c-purple-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.promo-bar__track {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.promo-bar__item {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding-inline: 26px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.header {
  height: var(--header-h);
  background: var(--c-green);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding-inline: 10px;
}

.header__logo {
  justify-self: center;
  display: inline-flex;
}

.header__search {
  display: none;
}

.header__logo img {
  height: 48px;
  width: auto;
}

.cart-btn {
  position: relative;
  justify-self: end;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-green);
  background: var(--c-white);
  border-radius: var(--r-pill);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 210;
  width: 86%;
  max-width: 360px;
  background: var(--c-purple-deep);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer--menu {
  left: 0;
  transform: translateX(-100%);
}

.drawer--cart {
  right: 0;
  transform: translateX(100%);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
}

.drawer__head--menu {
  justify-content: flex-end;
}

.drawer__close {
  display: inline-flex;
  color: var(--c-white);
  font-size: 26px;
  line-height: 1;
  padding: 4px;
}

.menu__search {
  padding: 0 16px 8px;
}

.menu__search-form {
  position: relative;
}

.menu__search-form .input-pill {
  padding-right: 48px;
}

.menu__search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

.menu__list {
  padding: 8px 0 24px;
}

.menu__item {
  border-bottom: 1px solid var(--c-purple-line);
}

.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  padding: 15px 20px;
}

.menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 16px;
  transition: transform 0.2s ease;
}

.menu__item.is-open .menu__toggle {
  transform: rotate(180deg);
}

.menu__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.menu__item.is-open .menu__sub {
  max-height: 420px;
}

.menu__sub-link {
  display: block;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-muted);
  padding: 11px 20px 11px 34px;
}

.menu__sub-link:hover {
  color: var(--c-white);
}

.cart-drawer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
}

.cart-back {
  display: inline-flex;
  font-size: 24px;
  line-height: 1;
}

.drawer--cart {
  overflow: hidden;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 16px 16px;
}

.cart-empty {
  display: block;
  text-align: center;
  font-weight: 700;
  color: #8fb8ff;
  border: 1.5px solid var(--c-purple-line);
  border-radius: var(--r-pill);
  padding: 12px 16px;
  margin-top: 8px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--c-purple-soft);
}

.cart-item__main {
  position: relative;
  padding-right: 26px;
}

.cart-item__remove {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  color: var(--c-muted);
}

.cart-item__remove svg {
  width: 20px;
  height: 20px;
}

.cart-item__remove:hover {
  color: var(--c-white);
}

.cart-item__name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.cart-item__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 6px 0 10px;
}

.cart-item__price .price-old {
  font-size: 13px;
}

.cart-item__disc {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--c-green-bright);
}

.cart-item__sale {
  width: 100%;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
}

.qty-stepper--sm {
  padding: 3px;
  gap: 4px;
}

.qty-stepper--sm .qty-stepper__btn {
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.qty-stepper--sm .qty-stepper__value {
  min-width: 34px;
  font-size: 16px;
}

.cart-progress {
  margin-top: 22px;
}

.cart-progress__bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.cart-progress__bar span {
  display: block;
  height: 100%;
  background: var(--c-green-bright);
  border-radius: var(--r-pill);
  transition: width 0.3s ease;
}

.cart-progress__msg {
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-progress__msg.is-success {
  color: var(--c-green-bright);
}

.cart-cep {
  margin-top: 24px;
}

.cart-cep__label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 10px;
}

.cart-cep__row {
  display: flex;
  gap: 8px;
}

.cart-cep__row .input-pill {
  height: 46px;
}

.cart-cep__btn {
  flex: 0 0 auto;
  padding: 0 18px;
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  font-weight: 700;
}

.cep-help {
  display: inline-block;
  margin-top: 10px;
  color: var(--c-green-bright);
  font-weight: 700;
  font-size: 14px;
}

.cart-ship:not(:empty) {
  margin-top: 16px;
}

.cart-ship__addr {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 8px;
}

.cart-ship__opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--c-purple-line);
}

.cart-ship__opt-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-ship__opt-name {
  font-weight: 700;
  font-size: 14px;
}

.cart-ship__opt-eta {
  font-size: 12px;
  color: var(--c-muted);
}

.cart-ship__opt-price {
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.cart-ship__free {
  color: var(--c-green-bright);
}

.cart-ship__msg {
  font-size: 13px;
  color: var(--c-muted);
}

.cart-foot {
  border-top: 1px solid var(--c-purple-line);
  padding: 16px;
}

.cart-foot__rows {
  margin-bottom: 14px;
}

.cart-foot__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.cart-foot__row--total {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  margin-top: 4px;
  margin-bottom: 0;
}

.cart-foot__total {
  color: var(--c-green-bright);
}

.cart-cta {
  margin-top: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-keep {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--c-white);
}

.cart-keep:hover {
  color: var(--c-green-bright);
}

.newsletter {
  text-align: center;
  padding: 36px 20px 44px;
}

.newsletter__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 10vw, 42px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.newsletter__text {
  font-weight: 700;
  color: var(--c-muted);
  max-width: 320px;
  margin: 0 auto 22px;
}

.newsletter__form {
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.newsletter__form .input-pill {
  text-align: left;
}

.newsletter__form .btn {
  min-width: 180px;
  letter-spacing: 0.2em;
}

.newsletter__success {
  font-weight: 800;
  font-size: 17px;
  color: var(--c-green-bright);
  margin: 8px 0;
}

.footer {
  background: var(--c-purple);
  padding: 24px 20px 40px;
  text-align: center;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.footer__social a {
  display: inline-flex;
  color: var(--c-white);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.footer__nav a {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
}

.footer__address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 24px;
}

.footer__pay {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto 26px;
}

.footer__pay img {
  height: 30px;
  width: auto;
  border-radius: 5px;
}

.footer__copy {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
}

.cart-foot .btn {
  letter-spacing: 0.06em;
}

.search-suggest {
  margin-top: 10px;
  background: var(--c-purple-soft);
  border: 1px solid var(--c-purple-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-suggest[hidden] {
  display: none;
}

.header__search .search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin-top: 0;
  z-index: 120;
}

.search-suggest__row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-purple-line);
}

.search-suggest__row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-suggest__img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--c-purple);
}

.search-suggest__text {
  min-width: 0;
}

.search-suggest__name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.search-suggest__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 3px;
}

.search-suggest__price .price-sale {
  font-size: 15px;
}

.search-suggest__price .price-old {
  font-size: 12px;
}

.search-suggest__chevron {
  color: var(--c-muted);
  font-size: 22px;
  line-height: 1;
}

.search-suggest__all {
  display: flex;
  margin: 12px 14px 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.search-suggest__label {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 14px 14px 0;
}

.search-suggest__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 16px;
}

.search-suggest__term {
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-pill);
  padding: 8px 16px;
}

.search-suggest__term:hover {
  background: rgba(255, 255, 255, 0.12);
}

.search-suggest__empty {
  font-weight: 700;
  color: var(--c-muted);
  padding: 18px 14px;
  text-align: center;
}
