/* ---- Product Grid ---- */


.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 19px !important;  /* Preferred icon size */
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.catalog-top-grid {
  grid-template-columns: repeat(2, minmax(0, 330px));
}

/* ---- Product Card ---- */
.catalog-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(195, 198, 214, 0.45);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(25, 27, 35, 0.04);
  overflow: hidden;
}

/* .catalog-product-media {
  position: relative;
  overflow: hidden;
  margin: 16px 16px 0;
  border-radius: 10px;
  background: var(--cat-mid);
  aspect-ratio: 1;
} */

.catalog-product-media {
    position: relative;
    overflow: hidden;
    margin: 2px 2px 0;
    border-radius: 10px;
    background: var(--cat-mid);
    aspect-ratio: 1;
}

.catalog-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-placeholder {
  display: grid;
  place-items: center;
  color: var(--cat-outline);
}

.catalog-placeholder span {
  font-size: 58px;
}

.catalog-product-media .heart {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.catalog-product-media em {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 6px;
  background: var(--cat-green);
  color: #fff;
  font-style: normal;
  font-weight: 900;
  padding: 7px 10px;
}

.catalog-product-media .sale {
  background: var(--cat-red);
}

.catalog-product-card section {
  display: grid;
  gap: 5px;
  flex: 1;
  padding: 18px 18px 10px;
}

.catalog-product-card h3 {
  font-family: var(--cat-display);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}


  /* Merchant name — bodySmall: 12px/400 */
  /* .catalog-product-card section a {
    font-size: 10px ;
    font-weight: 400;
    color: var(--cat-outline);
    text-transform: none;
    line-height: 16px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  } */

  .catalog-product-card section a.merchant_name {
    font-size: 12px !important;
    font-weight: 400;
    color: var(--cat-outline) !important;
    text-transform: none;
    line-height: 16px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }


  .catalog-product-card section a {
  color: var(--cat-primary);
  font-weight: 700;
}

.catalog-product-card strong {
  color: var(--cat-primary);
  font-family: var(--cat-display);
  /* font-size: 24px; */
   font-size: 14px;
}

.catalog-product-card strong del {
  color: var(--cat-outline);
  font-family: var(--cat-body);
  font-size: 14px;
  font-weight: 600;
  margin-left: 4px;
}

.catalog-product-card small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--cat-green);
  font-weight: 900;
}

.catalog-product-card .rating {
  color: var(--cat-gold);
}

.catalog-product-card p {
  color: var(--cat-muted);
  line-height: 1.45;
}

.catalog-product-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(195, 198, 214, 0.28);
  /* padding: 14px 18px 18px; */
  padding: 6px 6px 6px;
}

.catalog-product-card footer button:not(.heart) {
  border: 0;
  border-radius: 9px;
  background: var(--cat-primary);
  color: #fff;
  font-weight: 400;
  /* padding: 11px 20px; */
  padding: 6px 14px;
}

.catalog-product-card footer .heart {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--cat-line);
  border-radius: 10px;
  background: #fff;
}

.cart-round {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  padding: 0 !important;
}

.catalog-product-grid.is-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.catalog-product-grid.is-list .ldm-product-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px;
}

.catalog-product-grid.is-list .ldm-product-card__image {
  border-radius: 10px;
}

.catalog-product-grid.is-list .ldm-product-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
}

.catalog-product-grid.is-list .ldm-product-card__info {
  min-width: 0;
}

.catalog-product-grid.is-list .catalog-card__cart {
  flex: none;
  width: auto;
  margin-top: 0;
}

@media (max-width: 1100px) {
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .catalog-product-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(25, 27, 35, 0.06);
  }

  .catalog-product-card:not(.mobile-style) {
    display: none;
  }

  /* Image: wider aspect ratio like mobile app (1.45:1) instead of square */
  .catalog-product-media {
    margin: 0;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 1.45;
  }

  /* Wishlist heart sits top-right over image */
  .catalog-product-media .heart {
    width: 34px;
    height: 34px;
    top: 8px;
    right: 8px;
  }

  /* Card body — tighter padding, vertical stack */
  .catalog-product-card section {
    padding: 10px 10px 4px;
    gap: 4px;
  }



  /* Product name — labelLarge: 14px/600, 2-line clamp */
  .catalog-product-card h3 {
    font-family: var(--cat-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Price — priceSmall: 16px/700 */
  .catalog-product-card strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
  }

  /* Strikethrough original price — caption: 12px */
  .catalog-product-card strong del {
    font-size: 12px;
    line-height: 16px;
  }

  /* Footer — full-width cart button, no left heart on mobile */
  .catalog-product-card footer {
    position: relative;
    border: 0;
    padding: 6px 10px 10px;
    justify-content: flex-end;
  }

  .catalog-product-card footer .heart {
    display: none;
  }

  .catalog-product-card footer .cart-round {
    width: 38px !important;
    height: 38px !important;
    box-shadow: 0 4px 10px rgba(0, 61, 155, 0.2);
  }

  /* Hide long description on mobile */
  .catalog-product-card p {
    display: none;
  }

  /* Hide stock indicator text on mobile */
  .catalog-product-card small:not(.rating) {
    display: none;
  }

  /* ---- List view on mobile ---- */
  .catalog-product-grid.is-list .ldm-product-card {
    grid-template-columns: 108px 1fr;
    align-items: start;
    padding: 8px;
  }

  .catalog-product-grid.is-list .ldm-product-card__body {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .catalog-product-grid.is-list .catalog-card__cart {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .catalog-product-grid {
    gap: 10px;
  }

  .catalog-product-card h3 {
    font-size: 13px;
    line-height: 18px;
  }

  .catalog-product-card strong {
    font-size: 15px;
  }

  .catalog-product-card strong del {
    font-size: 11px;
  }

  .catalog-product-card section {
    padding: 8px 8px 2px;
  }

  .catalog-product-card footer {
    padding: 4px 8px 8px;
  }
}

/* ---- Shared product card on the catalogue ----
   The grid emits .ldm-product-card (styled in shared.css) so the catalogue
   matches the home page grids and the live show's Recently Featured. Only the
   two controls this page adds — the wishlist heart and Add to Cart — are
   styled here. The older .catalog-product-card rules above still serve the
   loading placeholder and the empty state. */
.catalog-card__heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cat-outline);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.catalog-card__heart:hover,
.catalog-card__heart[aria-pressed="true"] {
  background: #fff;
  color: var(--cat-red);
}

.catalog-card__heart .material-symbols-outlined {
  font-size: 18px;
}

.catalog-card__cart {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--cat-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
}

.catalog-card__cart:disabled {
  background: var(--cat-high);
  color: var(--cat-outline);
  cursor: not-allowed;
}

.catalog-card__cart .material-symbols-outlined {
  font-size: 16px;
}
