:root {
  --tm-coral: #ff385c;
  --tm-coral-dark: #e21f47;
  --tm-ink: #222;
  --tm-muted: #717171;
  --tm-line: #e7e7e7;
  --tm-footer: #202020;
  --tm-max: 1180px;
}

.tm-shell,
.tm-footer {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.tm-shell {
  position: relative;
  z-index: 50;
  color: var(--tm-ink);
}

.tm-shell *,
.tm-footer * {
  box-sizing: border-box;
}

.tm-container {
  width: min(var(--tm-max), calc(100% - 40px));
  margin: 0 auto;
}

.tm-shell > header,
.target-theme-fashion .tm-shell > header,
.target-theme-apparel .tm-shell > header {
  position: static;
  inset: auto;
  z-index: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.tm-top {
  border-bottom: 1px solid var(--tm-line);
  background: #fff;
}

.tm-top-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.tm-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--tm-ink);
  font-weight: 750;
  padding: 10px 0;
  text-align: left;
}

.tm-logo {
  display: block;
}

.tm-logo img {
  display: block;
  width: auto;
  max-width: 230px;
  height: 46px;
  object-fit: contain;
}

.tm-contact {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 650;
}

.tm-contact a,
.tm-shell nav a {
  margin-left: 0;
  color: inherit;
  text-decoration: none;
}

.tm-contact a:hover {
  color: var(--tm-coral);
}

.tm-tailor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tm-coral);
  color: #fff !important;
  padding: 11px 17px;
  box-shadow: 0 8px 22px rgba(255, 56, 92, .22);
}

.tm-nav {
  position: relative;
  border-bottom: 1px solid var(--tm-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 22px rgba(34, 34, 34, .05);
  backdrop-filter: blur(12px);
}

.tm-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tm-search {
  display: flex;
  align-items: center;
  width: 190px;
  margin-right: auto;
  overflow: hidden;
  border: 1px solid var(--tm-line);
  border-radius: 999px;
  background: #fff;
}

.tm-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 9px 4px 9px 14px;
}

.tm-search button {
  border: 0;
  background: transparent;
  color: var(--tm-coral);
  cursor: pointer;
  padding: 9px 12px;
}

.tm-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-nav-item {
  position: relative;
}

.tm-drop-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 14px;
}

.tm-drop-toggle:hover {
  color: var(--tm-coral);
}

.tm-chevron {
  font-size: 10px;
}

.tm-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 310px;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  border: 1px solid var(--tm-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(34, 34, 34, .14);
  padding: 14px;
  transition: opacity .18s, transform .18s, visibility .18s;
}

.tm-nav-item:hover .tm-dropdown,
.tm-nav-item:focus-within .tm-dropdown,
.tm-nav-item.is-open .tm-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tm-nav-item:last-child .tm-dropdown {
  right: 0;
  left: auto;
  transform: translateY(8px);
}

.tm-nav-item:last-child:hover .tm-dropdown,
.tm-nav-item:last-child:focus-within .tm-dropdown,
.tm-nav-item:last-child.is-open .tm-dropdown {
  transform: translateY(0);
}

.tm-dropdown-title {
  margin: 3px 6px 10px;
  color: var(--tm-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tm-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.tm-dropdown a {
  display: block;
  border-radius: 8px;
  color: var(--tm-ink);
  font-size: 13px;
  line-height: 1.3;
  padding: 9px;
}

.tm-dropdown a:hover {
  background: #fff0f3;
  color: var(--tm-coral);
}

.tm-dropdown .tm-all {
  grid-column: 1 / -1;
  margin-top: 5px;
  background: var(--tm-coral);
  color: #fff;
  font-weight: 750;
  text-align: center;
}

.tm-dropdown .tm-all:hover {
  background: var(--tm-coral-dark);
  color: #fff;
}

.tm-footer,
.target-theme-apparel .tm-footer,
.target-theme-fashion .tm-footer {
  border: 0;
  background: var(--tm-footer);
  color: #fff;
  font-size: 14px;
  padding: 0;
}

.tm-footer a,
.target-theme-apparel .tm-footer a,
.target-theme-fashion .tm-footer a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.tm-footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 54px;
  padding: 62px 0 46px;
}

.tm-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.tm-footer h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tm-footer-col a {
  display: block;
  margin: 0 0 11px;
  color: #bdbdbd;
  font-size: 14px;
}

.tm-footer-col a:hover,
.tm-service a:hover,
.tm-legal a:hover {
  color: #fff;
}

.tm-service {
  border-left: 1px solid #444;
  padding-left: 42px;
}

.tm-service-badge {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--tm-coral);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.tm-service h2 {
  margin: 18px 0 8px;
  font-size: 22px;
  text-transform: none;
}

.tm-service a {
  display: block;
  margin: 8px 0;
  color: #d8d8d8;
}

.tm-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.tm-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #565656;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.tm-social a:hover {
  border-color: var(--tm-coral);
  background: var(--tm-coral);
}

.tm-footer-bottom {
  border-top: 1px solid #3c3c3c;
  color: #aaa;
  font-size: 13px;
  padding: 24px 0;
}

.tm-footer-bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.tm-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tm-whatsapp {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20vw;
  min-width: 210px;
  max-width: 290px;
  height: 54px;
  border-radius: 999px;
  background: var(--tm-coral);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(255, 56, 92, .34);
  transform: translateX(-50%);
  transition: background-color .2s, transform .2s;
}

.tm-whatsapp:hover {
  background: var(--tm-coral-dark);
  color: #fff;
  transform: translateX(-50%) translateY(-2px);
}

.target-theme-fashion main.wrap {
  padding-top: 0;
}

@media (max-width: 900px) {
  .tm-top-row {
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    min-height: 66px;
  }

  .tm-menu-toggle {
    display: block;
  }

  .tm-logo img {
    max-width: 180px;
    height: 34px;
  }

  .tm-contact .tm-phone,
  .tm-contact .tm-email {
    display: none;
  }

  .tm-tailor {
    padding: 9px 13px;
    font-size: 12px;
  }

  .tm-nav {
    position: fixed;
    inset: 66px 0 0;
    display: none;
    overflow: auto;
    background: #fff;
  }

  .tm-shell.is-menu-open .tm-nav {
    display: block;
  }

  .tm-nav-row {
    display: block;
    padding: 18px 0 80px;
  }

  .tm-search {
    width: 100%;
    margin: 0 0 12px;
  }

  .tm-nav-list {
    display: block;
  }

  .tm-nav-item {
    border-bottom: 1px solid var(--tm-line);
  }

  .tm-drop-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
  }

  .tm-dropdown,
  .tm-nav-item:last-child .tm-dropdown {
    position: static;
    display: none;
    width: 100%;
    visibility: visible;
    opacity: 1;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 14px;
  }

  .tm-nav-item.is-open .tm-dropdown,
  .tm-nav-item:last-child.is-open .tm-dropdown {
    display: block;
    transform: none;
  }

  .tm-dropdown-grid {
    grid-template-columns: 1fr;
  }

  .tm-dropdown .tm-all {
    grid-column: auto;
  }

  .tm-footer-main {
    grid-template-columns: 1fr;
  }

  .tm-footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .tm-service {
    border-top: 1px solid #444;
    border-left: 0;
    padding: 32px 0 0;
  }

  .tm-footer-bottom-row {
    display: grid;
  }

  .tm-whatsapp {
    right: 18px;
    left: 18px;
    bottom: 18px;
    width: auto;
    min-width: 0;
    max-width: none;
    transform: none;
  }

  .tm-whatsapp:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .tm-container {
    width: calc(100% - 30px);
  }

  .tm-top-row {
    gap: 10px;
  }

  .tm-tailor {
    white-space: nowrap;
  }

  .tm-footer-links {
    grid-template-columns: 1fr;
  }

  .tm-footer-main {
    padding-top: 46px;
  }
}
