/* TryLoveMe empty cart / empty checkout — compact shared state. */

.tlm-empty-commerce {
  width: min(calc(100% - (var(--tlm-gutter) * 2)), var(--tlm-container));
  margin-inline: auto;
  padding: 28px 0 64px;
}

.tlm-checkout-page--empty .tlm-checkout-page__inner {
  width: 100%;
  max-width: none;
  padding: 0;
}

.tlm-checkout-page--empty .tlm-empty-commerce {
  padding-top: 34px;
}

.tlm-empty-commerce__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--tlm-border);
  border-radius: var(--tlm-radius-lg);
  background: linear-gradient(110deg, #fff 0%, #fff 58%, #fff5f8 100%);
  box-shadow: var(--tlm-shadow-sm);
}

.tlm-empty-commerce__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4.2vw, 56px);
}

.tlm-empty-commerce__topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tlm-empty-commerce__eyebrow {
  margin: 0;
  color: #9f687b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tlm-empty-commerce__count {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding-inline: 10px;
  border: 1px solid #eadde1;
  border-radius: var(--tlm-radius-pill);
  color: #897d81;
  font-size: 9px;
}

.tlm-empty-commerce h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .98;
}

.tlm-empty-commerce__lead {
  max-width: 610px;
  margin: 17px 0 0;
  color: var(--tlm-muted);
  font-size: 14px;
  line-height: 1.62;
}

.tlm-empty-commerce__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.tlm-empty-commerce__actions .tlm-btn {
  min-height: 46px;
  padding-inline: 20px;
}

.tlm-empty-commerce__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: #766b6f;
  font-size: 10px;
}

.tlm-empty-commerce__benefits span {
  position: relative;
  padding-left: 12px;
}

.tlm-empty-commerce__benefits span::before {
  position: absolute;
  top: .5em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tlm-accent);
  content: "";
}

.tlm-empty-commerce__visual {
  display: grid;
  place-items: center;
  padding: 24px;
  border-left: 1px solid rgba(58,31,34,.06);
  background: linear-gradient(145deg, #fffafd, #f9e8ef);
}

.tlm-empty-commerce__feature {
  display: grid;
  width: min(100%, 260px);
  justify-items: center;
  gap: 9px;
  color: var(--tlm-text);
  text-align: center;
}

.tlm-empty-commerce__feature > span {
  justify-self: start;
  padding: 6px 9px;
  border-radius: var(--tlm-radius-pill);
  background: rgba(255,255,255,.8);
  color: #9f687b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tlm-empty-commerce__feature img {
  display: block;
  width: min(100%, 210px);
  height: 210px;
  object-fit: contain;
  transition: transform var(--tlm-duration-normal) var(--tlm-ease);
}

.tlm-empty-commerce__feature:hover img {
  transform: translateY(-3px) scale(1.02);
}

.tlm-empty-commerce__feature strong {
  max-width: 240px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tlm-empty-commerce__mark {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 1px solid rgba(159,104,123,.24);
  border-radius: 50%;
  color: #ad7186;
  font-size: 42px;
}

.tlm-empty-commerce__recommendations {
  margin-top: 48px;
}

.tlm-empty-commerce__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.tlm-empty-commerce__section-head p {
  margin: 0 0 6px;
  color: #9f687b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tlm-empty-commerce__section-head h2 {
  margin: 0;
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: 400;
  letter-spacing: -.045em;
}

.tlm-empty-commerce__section-head > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--tlm-text);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tlm-empty-commerce__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Empty views use the exact shared store card component. */
.tlm-empty-commerce__grid .tlm-product-card {
  min-width: 0;
}

body.woocommerce-cart .woocommerce:has(.tlm-empty-commerce) {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.woocommerce-cart .woocommerce:has(.tlm-empty-commerce) .woocommerce-notices-wrapper:empty {
  display: none;
}

@media (max-width: 1024px) {
  .tlm-empty-commerce__hero {
    grid-template-columns: 1fr minmax(250px, .55fr);
  }

  .tlm-empty-commerce__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tlm-empty-commerce {
    width: calc(100% - 24px);
    padding: 20px 0 44px;
  }

  .tlm-empty-commerce__hero {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 24px;
  }

  .tlm-empty-commerce__copy {
    padding: 30px 22px;
  }

  .tlm-empty-commerce h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .tlm-empty-commerce__lead {
    font-size: 13px;
  }

  .tlm-empty-commerce__actions {
    display: grid;
  }

  .tlm-empty-commerce__actions .tlm-btn {
    width: 100%;
    justify-content: center;
  }

  .tlm-empty-commerce__visual {
    min-height: 270px;
    border-top: 1px solid rgba(58,31,34,.06);
    border-left: 0;
  }

  .tlm-empty-commerce__feature img {
    height: 190px;
  }

  .tlm-empty-commerce__recommendations {
    margin-top: 38px;
  }

  .tlm-empty-commerce__section-head {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .tlm-empty-commerce__benefits {
    display: grid;
    gap: 7px;
  }

  .tlm-empty-commerce__section-head {
    display: grid;
    gap: 12px;
  }

  .tlm-empty-commerce__section-head > a {
    justify-self: start;
  }

  .tlm-empty-commerce__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlm-empty-commerce__feature img {
    transition: none;
  }
}
