/* TryLoveMe header commerce v1.9.9 */

/* ------------------------------------------------------------------
   Search overlay
------------------------------------------------------------------ */
.tlm-search-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow-y: auto;
  background: var(--tlm-bg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--tlm-duration-normal) var(--tlm-ease),
    visibility var(--tlm-duration-normal) var(--tlm-ease);
}

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

.tlm-search-panel.is-open {
  opacity: 1;
  visibility: visible;
}

.tlm-search-panel__surface {
  min-height: 100%;
  padding: clamp(24px, 3vw, 46px) var(--tlm-gutter) clamp(48px, 6vw, 86px);
}

.tlm-search-panel__topbar {
  width: min(100%, 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.tlm-search-panel__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.tlm-search-panel__back svg {
  width: 18px;
}

.tlm-search-panel__label {
  color: #9a707d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.tlm-search-panel__close {
  justify-self: end;
  width: 46px;
  height: 46px;
}

.tlm-search-panel__close svg {
  width: 24px;
  height: 24px;
}

.tlm-search-panel__content {
  width: min(100%, 1180px);
  margin: clamp(72px, 9vh, 118px) auto 0;
}

.tlm-search-panel__content h2 {
  margin: 0 0 clamp(26px, 3vw, 40px);
  font-family: var(--tlm-font);
  font-size: clamp(48px, 5.4vw, 80px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.055em;
}

.tlm-product-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: stretch;
  border-bottom: 1px solid var(--tlm-border);
}

.tlm-product-search input[type="search"] {
  min-width: 0;
  width: 100%;
  min-height: 82px;
  padding: 6px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tlm-text);
  font-family: var(--tlm-font);
  font-size: clamp(28px, 3.15vw, 46px);
  font-weight: 400;
  letter-spacing: -.045em;
}

.tlm-product-search input[type="search"]::placeholder {
  color: #b996a2;
  opacity: 1;
}

.tlm-product-search input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.tlm-product-search button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--tlm-radius-pill);
  background: var(--tlm-accent-soft);
  color: #8f5569;
  cursor: pointer;
  transition: background var(--tlm-duration-fast) ease;
}

.tlm-product-search button:hover {
  background: var(--tlm-accent);
  color: #fff;
}

.tlm-product-search button svg {
  width: 24px;
  height: 24px;
}

.tlm-search-panel__results {
  margin-top: clamp(34px, 4vw, 54px);
  padding-top: 22px;
  border-top: 1px solid var(--tlm-border);
}

.tlm-search-panel__results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.tlm-search-panel__results-head p,
.tlm-search-panel__results-head span {
  margin: 0;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tlm-search-panel__results-head p {
  font-weight: 700;
}

.tlm-search-panel__results-head span {
  color: var(--tlm-muted);
}

.tlm-search-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
}

.tlm-search-panel__empty {
  grid-column: 1 / -1;
  margin: 22px 0 0;
  padding: 42px 0;
  color: var(--tlm-muted);
  font-size: 14px;
  text-align: center;
}

.tlm-search-product {
  min-width: 0;
}

.tlm-search-product__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.08;
  border: 1px solid var(--tlm-border);
  border-radius: var(--tlm-radius-md);
  background: #fff;
}

.tlm-search-product__media > a {
  display: block;
  width: 100%;
  height: 100%;
}

.tlm-search-product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--tlm-duration-normal) var(--tlm-ease);
}

.tlm-search-product:hover .tlm-search-product__media img {
  transform: scale(1.025);
}

.tlm-search-product__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(58,31,34,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--tlm-text);
  cursor: pointer;
  transition:
    color var(--tlm-duration-fast) ease,
    transform var(--tlm-duration-fast) ease;
}

.tlm-search-product__wishlist:hover {
  transform: scale(1.05);
}

.tlm-search-product__wishlist svg {
  width: 18px;
  height: 18px;
}

.tlm-search-product__wishlist.is-active {
  color: var(--tlm-accent);
}

.tlm-search-product__wishlist.is-active svg {
  fill: currentColor;
}

.tlm-search-product__body {
  padding-top: 12px;
}

.tlm-search-product__body h3 {
  min-height: 2.7em;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.tlm-search-product__price {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
}

.tlm-search-product__price del {
  margin-right: 5px;
  color: #a29a96;
  font-weight: 400;
}

.tlm-search-product__price ins {
  text-decoration: none;
}

.tlm-search-product__action {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--tlm-accent);
  border-radius: var(--tlm-radius-pill);
  background: var(--tlm-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform var(--tlm-duration-fast) ease,
    opacity var(--tlm-duration-fast) ease,
    background var(--tlm-duration-fast) ease;
}

.tlm-search-product__action:hover {
  transform: translateY(-1px);
}

.tlm-search-product__action--secondary {
  border-color: var(--tlm-border);
  background: transparent;
  color: var(--tlm-text);
}

.tlm-search-product__action.is-loading {
  opacity: .65;
}

/* ------------------------------------------------------------------
   Shared slide-out panels
------------------------------------------------------------------ */
.tlm-commerce-panel {
  position: fixed;
  inset: 0;
  z-index: 1120;
  visibility: hidden;
}

.tlm-commerce-panel[hidden] {
  display: none;
}

.tlm-commerce-panel.is-open {
  visibility: visible;
}

.tlm-commerce-panel__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 18, 18, .28);
  opacity: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 260ms var(--tlm-ease);
}

.tlm-commerce-panel.is-open .tlm-commerce-panel__backdrop {
  opacity: 1;
}

.tlm-commerce-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(92vw, 520px);
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: #fbf8f6;
  box-shadow: -24px 0 70px rgba(41, 25, 30, .14);
  transform: translateX(102%);
  transition: transform 260ms var(--tlm-ease);
}

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

.tlm-commerce-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 28px 22px;
  border-bottom: 1px solid var(--tlm-border);
  background: rgba(251,248,246,.98);
}

.tlm-commerce-drawer__head .tlm-eyebrow {
  margin-bottom: 5px;
  color: #9b6a78;
  font-size: 9px;
}

.tlm-commerce-drawer__head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.tlm-commerce-drawer__head h2 span {
  color: #948a86;
  font-family: var(--tlm-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.tlm-commerce-drawer__loading,
.tlm-commerce-drawer__error {
  margin: 0;
  padding: 36px 28px;
  color: var(--tlm-muted);
  font-size: 13px;
}

/* ------------------------------------------------------------------
   Cart drawer
------------------------------------------------------------------ */
.tlm-cart-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 28px;
}

.tlm-cart-drawer__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--tlm-border);
}

.tlm-cart-drawer__image {
  display: block;
  overflow: hidden;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;
}

.tlm-cart-drawer__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tlm-cart-drawer__item-content {
  min-width: 0;
}

.tlm-cart-drawer__item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
}

.tlm-cart-drawer__item-name {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.tlm-cart-drawer__item-price {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

.tlm-cart-drawer__remove {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7f7572;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tlm-cart-drawer__meta {
  margin-top: 5px;
  color: #8d8380;
  font-size: 10px;
}

.tlm-cart-drawer__meta dl,
.tlm-cart-drawer__meta p {
  margin: 0;
}

.tlm-cart-drawer__quantity {
  display: inline-grid;
  grid-template-columns: 32px 34px 32px;
  align-items: center;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--tlm-border);
  border-radius: var(--tlm-radius-pill);
  background: #fff;
}

.tlm-cart-drawer__quantity button,
.tlm-cart-drawer__quantity span {
  display: grid;
  min-height: 32px;
  place-items: center;
}

.tlm-cart-drawer__quantity button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tlm-cart-drawer__quantity button:disabled {
  opacity: .35;
  cursor: default;
}

.tlm-cart-drawer__quantity span {
  font-size: 12px;
  font-weight: 600;
}

.tlm-cart-drawer__footer {
  flex: 0 0 auto;
  padding: 20px 28px 26px;
  border-top: 1px solid var(--tlm-border);
  background: #fff;
}

.tlm-cart-drawer__footer[hidden] {
  display: none;
}

.tlm-cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.tlm-cart-drawer__subtotal strong {
  font-size: 18px;
}

.tlm-cart-drawer__shipping {
  margin-top: 14px;
}

.tlm-cart-drawer__shipping-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f6562;
  font-size: 11px;
}

.tlm-cart-drawer__shipping-copy svg {
  width: 17px;
  height: 17px;
}

.tlm-cart-drawer__shipping-copy strong {
  color: var(--tlm-text);
}

.tlm-cart-drawer__progress {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7e5;
}

.tlm-cart-drawer__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--tlm-accent);
  transition: width var(--tlm-duration-normal) var(--tlm-ease);
}

.tlm-cart-drawer__actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.tlm-cart-drawer__actions .tlm-btn {
  width: 100%;
}

.tlm-cart-drawer__empty {
  display: grid;
  min-height: 48vh;
  place-items: center;
  align-content: center;
  padding: 42px 16px;
  text-align: center;
}

.tlm-cart-drawer__empty h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
}

.tlm-cart-drawer__empty p {
  max-width: 300px;
  margin: 10px auto 20px;
  color: var(--tlm-muted);
  font-size: 13px;
}

/* ------------------------------------------------------------------
   Wishlist drawer
------------------------------------------------------------------ */
.tlm-wishlist-panel__list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 28px;
}

.tlm-wishlist-panel__empty,
.tlm-wishlist-panel__loading,
.tlm-wishlist-panel__error {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 40px 0;
  color: var(--tlm-muted);
  text-align: center;
}

.tlm-wishlist-panel__empty strong,
.tlm-wishlist-panel__loading strong,
.tlm-wishlist-panel__error strong {
  color: var(--tlm-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.tlm-wishlist-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--tlm-border);
}

.tlm-wishlist-item__image {
  display: block;
  overflow: hidden;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;
}

.tlm-wishlist-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tlm-wishlist-item__main {
  min-width: 0;
}

.tlm-wishlist-item__copy > a {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.tlm-wishlist-item__price {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

.tlm-wishlist-item__add {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 11px;
  padding: 0 12px;
  border: 1px solid rgba(225,128,177,.34);
  border-radius: var(--tlm-radius-pill);
  background: rgba(225,128,177,.18);
  color: #7f465b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}

.tlm-wishlist-item__add:hover {
  background: rgba(225,128,177,.28);
}

.tlm-wishlist-item__remove {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7f7572;
  font-size: 22px;
  cursor: pointer;
}

.tlm-wishlist-panel__footer {
  flex: 0 0 auto;
  padding: 18px 28px 26px;
  border-top: 1px solid var(--tlm-border);
  background: #fff;
}

.tlm-wishlist-panel__footer .tlm-btn {
  width: 100%;
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 900px) {
  .tlm-search-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tlm-search-panel__content {
    margin-top: 64px;
  }
}

@media (max-width: 767px) {
  .tlm-search-panel__surface {
    padding-inline: 18px;
  }

  .tlm-search-panel__topbar {
    grid-template-columns: 1fr auto;
  }

  .tlm-search-panel__label {
    display: none;
  }

  .tlm-search-panel__content {
    margin-top: 42px;
  }

  .tlm-search-panel__content h2 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .tlm-product-search {
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .tlm-product-search input[type="search"] {
    min-height: 64px;
    font-size: clamp(25px, 7vw, 34px);
  }

  .tlm-search-panel__grid {
    gap: 16px 10px;
  }

  .tlm-search-product__media {
    border-radius: 14px;
  }

  .tlm-search-product__wishlist {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .tlm-search-product__body h3 {
    min-height: 0;
    font-size: 12px;
  }

  .tlm-search-product__action {
    min-height: 38px;
    font-size: 9px;
  }

  .tlm-commerce-drawer {
    width: min(100vw, 480px);
  }

  .tlm-commerce-drawer__head {
    padding: 22px 18px 17px;
  }

  .tlm-commerce-drawer__head h2 {
    font-size: 34px;
  }

  .tlm-cart-drawer__body,
  .tlm-wishlist-panel__list {
    padding-inline: 18px;
  }

  .tlm-cart-drawer__footer,
  .tlm-wishlist-panel__footer {
    padding-inline: 18px;
  }

  .tlm-cart-drawer__item,
  .tlm-wishlist-item {
    grid-template-columns: 78px minmax(0, 1fr) 26px;
    gap: 12px;
  }

  .tlm-cart-drawer__item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .tlm-cart-drawer__image,
  .tlm-wishlist-item__image {
    width: 78px;
  }

  .tlm-cart-drawer__remove {
    position: absolute;
    right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlm-search-panel,
  .tlm-commerce-panel__backdrop,
  .tlm-commerce-drawer {
    transition-duration: .01ms;
  }
}


/* v1.9.10 — TryLoveMe brand alignment for search.
   The reference defines the UX pattern only; typography and palette stay native to TryLoveMe. */
.tlm-search-panel__surface {
  background:
    radial-gradient(circle at 88% 15%, rgba(225, 128, 177, .07), transparent 25%),
    var(--tlm-bg);
}

.tlm-search-panel__back {
  color: var(--tlm-text);
}

.tlm-search-panel__back:hover {
  color: #92566a;
}

.tlm-search-panel__label {
  color: #a06b7d;
}

.tlm-search-panel__content h2 {
  color: var(--tlm-text);
  max-width: 900px;
}

.tlm-product-search {
  position: relative;
  gap: 16px;
  padding-bottom: 8px;
}

.tlm-product-search::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tlm-accent) 0 16%, transparent 16%);
  content: "";
  opacity: .42;
  pointer-events: none;
}

.tlm-product-search input[type="search"] {
  color: var(--tlm-text);
}

.tlm-product-search input[type="search"]::placeholder {
  color: #b992a0;
}

.tlm-product-search button {
  align-self: center;
  width: 54px;
  height: 54px;
  min-height: 54px;
  border-radius: var(--tlm-radius-pill);
  box-shadow: 0 8px 22px rgba(225, 128, 177, .16);
}

.tlm-product-search button:hover {
  background: var(--tlm-accent-strong);
  transform: translateY(-1px);
}

.tlm-search-panel__results-head p {
  color: #8d596b;
}

.tlm-search-product__media {
  box-shadow: var(--tlm-shadow-sm);
}

.tlm-search-product__body h3,
.tlm-search-product__body h3 a {
  color: var(--tlm-text);
  font-family: var(--tlm-font);
}

.tlm-search-product__price {
  color: var(--tlm-text);
}

.tlm-search-product__wishlist {
  border-color: rgba(225, 128, 177, .2);
}

.tlm-search-product__wishlist:hover,
.tlm-search-product__wishlist.is-active {
  border-color: rgba(225, 128, 177, .42);
  background: var(--tlm-accent-soft);
  color: #92566a;
}

.tlm-search-product__action {
  box-shadow: 0 8px 18px rgba(225, 128, 177, .12);
}

.tlm-search-product__action:hover {
  background: #d972a4;
}

@media (max-width: 767px) {
  .tlm-search-panel__content h2 {
    font-family: var(--tlm-font);
    font-size: clamp(40px, 11vw, 58px);
    font-weight: 500;
    letter-spacing: -.055em;
  }

  .tlm-product-search input[type="search"] {
    font-family: var(--tlm-font);
    font-size: clamp(24px, 6.5vw, 32px);
    letter-spacing: -.04em;
  }

  .tlm-product-search button {
    width: 46px;
    height: 46px;
    min-height: 46px;
  }
}
