/* ========== Header ========== */
.tw-announce {
  background: var(--tw-color-announce);
  color: var(--tw-color-white);
  text-align: center;
}

.tw-announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.tw-announce__text,
.tw-announce__text p {
  margin: 0;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  color: var(--tw-color-white);
}

.tw-announce__text strong,
.tw-announce__text b {
  font-weight: 700;
}

.tw-header__bar {
  background: transparent;
  position: relative;
  z-index: 20;
}

.tw-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 36px;
  padding-bottom: 36px;
  background: transparent;
}

.tw-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  flex-wrap: wrap;
  /* Match Figma left-to-right order of cart → links → phone */
  direction: ltr;
}

.tw-header__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tw-header__link,
.tw-header__phone {
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
  color: var(--tw-color-ink);
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.tw-header__link:hover,
.tw-header__link:focus-visible,
.tw-header__link:active,
.tw-header__link.is-active,
.tw-header__phone:hover,
.tw-header__phone:focus-visible,
.tw-header__phone:active {
  color: #f9b253;
  opacity: 1;
}

.tw-header__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f9b253;
  flex-shrink: 0;
}

.tw-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tw-color-ink);
  width: 24px;
  height: 24px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.tw-header__cart:hover,
.tw-header__cart:focus-visible,
.tw-header__cart:active,
.tw-header__cart.is-active {
  color: #f9b253;
  opacity: 1;
}

.tw-header__cart svg {
  display: block;
  width: 24px;
  height: 24px;
}

.tw-header__cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #f9b253;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tw-header__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.tw-header__logo:hover,
.tw-header__logo:focus-visible {
  opacity: 0.85;
}

.tw-header__logo-img {
  width: auto;
  height: 18px;
  max-width: 180px;
  object-fit: contain;
}

.tw-header__logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--tw-color-ink);
}

.tw-header__logo-text span {
  color: #f9b253;
  font-weight: 500;
}

.tw-header__spacer {
  /* Balances logo centering in 3-col grid */
}

/* Mobile menu button — hidden on desktop/tablet */
.tw-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--tw-color-ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.tw-header__menu-btn:hover,
.tw-header__menu-btn:focus-visible,
.tw-header__menu-btn[aria-expanded="true"] {
  color: #f9b253;
}

.tw-header__menu-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 18px;
}

.tw-header__menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

.tw-header__menu-icon span:nth-child(1) {
  top: 0;
}

.tw-header__menu-icon span:nth-child(2) {
  top: 7px;
}

.tw-header__menu-icon span:nth-child(3) {
  top: 14px;
}

.tw-header.is-menu-open .tw-header__menu-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.tw-header.is-menu-open .tw-header__menu-icon span:nth-child(2) {
  opacity: 0;
}

.tw-header.is-menu-open .tw-header__menu-icon span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* Mobile dropdown panel (styled like footer nav family) */
.tw-header__dropdown {
  display: none;
}

body.tw-menu-locked {
  overflow: hidden;
}

/* ========== Footer ========== */
.tw-footer {
  background: var(--tw-color-footer);
  color: var(--tw-color-white);
}

.tw-footer__links {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tw-footer__nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tw-footer__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 32px;
}

.tw-footer__menu a {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.tw-footer__bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tw-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.tw-footer__social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.tw-footer__social-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff14;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

.tw-footer__social-link:hover,
.tw-footer__social-link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.tw-footer__social-label {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0;
  color: #ffffff;
  text-align: center;
}

.tw-footer__social-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/*
 * Physical screen sides (direction:ltr so RTL page cannot flip this):
 * LEFT  = payment cards
 * RIGHT = tw-footer__dev (logo + text)
 */
.tw-footer__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  width: 100%;
}

.tw-footer__payments {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tw-footer__dev {
  grid-column: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tw-footer__dev-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.tw-footer__dev-logo {
  display: inline-flex;
  align-items: center;
}

.tw-footer__dev-logo img {
  height: 18px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.tw-footer__payment-icon {
  height: 24px;
  width: auto;
  max-width: 42px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .tw-announce__inner {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .tw-header__inner {
    grid-template-columns: 1fr auto;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .tw-header__spacer {
    display: none;
  }

  .tw-header__actions {
    gap: 16px;
  }

  .tw-header__links {
    gap: 12px;
  }

  .tw-header__link,
  .tw-header__phone {
    font-size: 14px;
  }
  .tw-header__logo{
    justify-content: start;
  }
}

@media (max-width: 768px) {
  .tw-announce__inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .tw-announce__text,
  .tw-announce__text p {
    font-size: 14px;
  }

  .tw-header__bar {
    position: relative;
  }

  /*
   * RTL: column 1 = visual right, column 2 = visual left
   * Logo on right · menu + cart on left
   */
  .tw-header__inner {
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 12px;
  }

  .tw-header__spacer {
    display: none;
  }

  .tw-header__logo {
    order: 1;
    justify-self: start; /* visual right in RTL */
    justify-content: flex-start;
  }

  .tw-header__logo-img {
    height: 16px;
  }

  .tw-header__actions {
    order: 2;
    justify-self: end; /* visual left in RTL */
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
  }

  .tw-header__menu-btn {
    display: inline-flex;
  }

  .tw-header__links--desktop {
    display: none;
  }

  .tw-header__dot {
    display: none;
  }

  .tw-header__dropdown {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 30;
    padding: 0 16px 16px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .tw-header.is-menu-open .tw-header__dropdown {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .tw-header__dropdown[hidden] {
    display: none;
  }

  .tw-header.is-menu-open .tw-header__dropdown[hidden] {
    display: block;
  }

  .tw-header__dropdown-inner {
    background: #1b1919;
    border-radius: 16px;
    padding: 10px 8px;
    box-shadow: 0 18px 40px rgba(17, 15, 15, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform: scale(0.98);
    transform-origin: top center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .tw-header.is-menu-open .tw-header__dropdown-inner {
    transform: scale(1);
  }

  .tw-header__dropdown-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .tw-header__dropdown-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .tw-header__dropdown-link:hover,
  .tw-header__dropdown-link:focus-visible,
  .tw-header__dropdown-link:active {
    background: rgba(249, 178, 83, 0.12);
    color: #f9b253;
    opacity: 1;
  }

  .tw-header__dropdown-link--phone {
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 12px 12px;
  }

  .tw-header__dropdown-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
  }

  .tw-header__dropdown-value {
    font-size: 18px;
    font-weight: 500;
    color: #f9b253;
    direction: ltr;
  }

  /* Footer menu — mobile only */
  .tw-footer__nav {
    min-height: 0;
    padding: 20px 0;
  }

  .tw-footer__menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    text-align: center;
  }

  .tw-footer__menu > li {
    width: 100%;
    text-align: center;
  }

  .tw-footer__menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 120%;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .tw-footer__menu a:hover,
  .tw-footer__menu a:focus-visible,
  .tw-footer__menu a:active {
    background: rgba(249, 178, 83, 0.12);
    color: #f9b253;
    opacity: 1;
  }

  .tw-footer__bottom {
    padding: 24px 0;
  }

  .tw-footer__bottom-inner {
    align-items: center;
    gap: 20px;
  }

  .tw-footer__social {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  /* Meta: two centered rows */
  .tw-footer__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    text-align: center;
  }

  .tw-footer__payments {
    width: 100%;
    justify-content: center;
    justify-self: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tw-footer__dev {
    width: 100%;
    justify-content: center;
    justify-self: center;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
  }

  .tw-footer__dev-logo {
    justify-content: center;
  }

  .tw-footer__dev-text {
    white-space: normal;
    text-align: center;
  }
}

/* ========== WhatsApp float ========== */
.tw-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tw-whatsapp:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.tw-whatsapp svg {
  display: block;
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .tw-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .tw-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}
