/* Triplan V5 — isolated shop sub-website chrome (own header + footer). */
.tpshop-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e7e0d4;
  box-shadow: 0 1px 0 rgb(11 34 57 / 4%);
}

.tpshop-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  width: min(1280px, 100%);
  min-height: 66px;
  margin-inline: auto;
  padding: 10px clamp(18px, 4vw, 48px);
  font-family: var(--tp-body-font, "Inter", sans-serif);
}

.tpshop-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}

.tpshop-header__brand img {
  display: block;
  height: 30px;
  width: auto;
}

.tpshop-header__brand span {
  width: 1px;
  height: 22px;
  background: #dfe3e8;
}

.tpshop-header__brand strong {
  color: var(--tp-midnight, #0b2239);
  font-family: var(--tp-heading-font, "Bricolage Grotesque", sans-serif);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tpshop-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.tpshop-header__nav a {
  color: #45505c;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.tpshop-header__nav a:hover,
.tpshop-header__nav a:focus-visible {
  color: var(--tp-primary-dark, #087c89);
}

.tpshop-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.tpshop-header__icon {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  place-items: center;
  color: var(--tp-midnight, #0b2239);
  font-size: 17px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.tpshop-header__icon:hover,
.tpshop-header__icon:focus-visible {
  background: #f2efea;
  color: var(--tp-primary-dark, #087c89);
}

.tpshop-header__badge {
  position: absolute;
  top: 5px;
  right: 4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 999px;
  place-items: center;
  background: var(--tp-primary, #1bbaca);
  color: var(--tp-midnight, #0b2239);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.tpshop-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: 6px;
  padding: 0 16px;
  border: 1px solid var(--tp-line, #e7e0d4);
  border-radius: 12px;
  color: var(--tp-midnight, #0b2239);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.tpshop-header__back:hover,
.tpshop-header__back:focus-visible {
  border-color: var(--tp-primary, #1bbaca);
  background: #eefafb;
  color: var(--tp-primary-dark, #087c89);
}

.tpshop-header__back i {
  font-size: 12px;
}

/* Shop footer */
.tpshop-footer {
  background: var(--tp-midnight, #0b2239);
  color: var(--tp-ivory, #f6f3ee);
}

.tpshop-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  width: min(1280px, 100%);
  margin-inline: auto;
  padding: 22px clamp(18px, 4vw, 48px);
  font-family: var(--tp-body-font, "Inter", sans-serif);
}

.tpshop-footer__brand {
  margin: 0;
  color: rgb(246 243 238 / 82%);
  font-size: 13px;
}

.tpshop-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tp-ivory, #f6f3ee);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tpshop-footer__back:hover,
.tpshop-footer__back:focus-visible {
  color: var(--tp-cyan-soft, #9de2e8);
}

.tpshop-header a:focus-visible,
.tpshop-footer a:focus-visible {
  outline: 3px solid var(--tp-primary-dark, #087c89);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .tpshop-header__inner {
    min-height: 58px;
    gap: 10px;
  }

  .tpshop-header__nav {
    display: none;
  }

  .tpshop-header__brand strong {
    font-size: 16px;
  }

  .tpshop-header__back-label {
    display: none;
  }

  .tpshop-header__back {
    width: 44px;
    padding: 0;
    margin-left: 2px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpshop-header *,
  .tpshop-footer * {
    transition-duration: 0.01ms !important;
  }
}
