/* =========================
   PRODUCT CARD
========================= */
.best_seller_home_card {
  width: 12.4rem;
  flex: 0 0 12.4rem;
  min-height: 15rem;
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(17, 17, 17, 0.04),
    0 10px 24px rgba(17, 17, 17, 0.05);
  border: 1px solid #eeeeee;            /* light grey, not pink — reads cleaner */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.best_seller_home_card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 10px rgba(17, 17, 17, 0.06),
    0 16px 32px rgba(17, 17, 17, 0.10);
}

.best_seller_home_image {
  position: relative;
  width: 100%;
  height: 9rem;
  overflow: hidden;
}

.best_seller_home_image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.7rem;
  display: block;
}

.best_seller_home_heart {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.7rem;
  height: 1.7rem;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #ec4899;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.best_seller_home_heart:hover {
  background: #ffffff;
}

.best_seller_home_info {
  padding: 0.7rem 0.8rem 0.85rem;
}

.best_seller_home_info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  min-height: 2.1rem;

  /* keep long product names to two tidy lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* the row that holds rating (left) and price (right) */
.best_seller_home_rating {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  white-space: nowrap;
}

.bs_stars_wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.best_seller_home_stars {
  color: var(--color-star);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.best_seller_home_reviews {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: #9ca3af;
}

.best_seller_home_price {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111111;
}

/* kept for backward-compat if you reference it elsewhere */
.price_product_card {
  color: #111111;
  font-weight: 800;
}

.ex_body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

@media (max-width: 480px) {
  .best_seller_home_card {
    width: auto;
    min-height: 14.2rem;
  }

  .best_seller_home_image {
    height: 9rem;
  }

  .best_seller_home_info {
    padding: 0.5rem 0.55rem 0.65rem;
  }

  .best_seller_home_info h3 {
    font-size: 0.74rem;
    min-height: 2.15rem;
  }

  .best_seller_home_price {
    font-size: 0.86rem;
  }

  .best_seller_home_stars {
    font-size: 0.7rem;
  }

  .best_seller_home_reviews {
    font-size: 0.6rem;
  }
}


/* ===== PRODUCT CARDS — SHOPPING PAGE ===== */

.product_page_card {
  display: flex;
  flex-direction: column;
  width: 16.8rem;                 /* card grows to fit content now — no fixed height */
  background-color: #fff;
  border-radius: 1rem;
  border: 1px solid #eee;
  box-shadow:
    0 2px 6px rgba(17, 17, 17, 0.04),
    0 10px 24px rgba(17, 17, 17, 0.05);
  padding: 0.8rem 0.8rem 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product_page_card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 10px rgba(17, 17, 17, 0.06),
    0 16px 32px rgba(17, 17, 17, 0.08);
}

/* ----- image ----- */
.product_page_card_image_holder {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;          /* square like the goal; use 4 / 3 if you want shorter */
  overflow: hidden;
  background-color: #DAD0E7;     /* the lavender we sampled */
  border-radius: 0.75rem;
}

.product_page_card_image_holder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  display: block;
}

/* ----- wishlist heart ----- */
.product_page_card_wishlist_btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: #ec4899;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, transform 0.1s ease;
}
.product_page_card_wishlist_btn:hover {
  background: #fff;
  transform: scale(1.08);
}

/* ----- info column ----- */
.product_page_card_info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;                  /* replaces the old gap: 2rem that split price/button */
  padding-top: 0.7rem;
}

/* ----- badges ----- */
.product_page_card_badges {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.4rem;
}

.product_badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.product_badge--delivery {
  background: #fdf2f8;
  color: #be185d;
}
.product_badge--pickup {
  background: #f3f4f6;
  color: #4b5563;
}

/* ----- title ----- */
.product_page_card_title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  min-height: 2.1rem;           /* reserves 2 lines so cards line up evenly */
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- rating ----- */
.product_page_card_rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.product_page_card_stars {
  display: inline-flex;
  color: #ec4899;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.product_page_card_stars .star_empty {
  color: #d8d3de;               /* muted empty star */
}
.product_page_card_reviews {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  color: #9ca3af;
}

/* ----- price ----- */
.product_page_card_price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f2937;
}

/* ----- add to cart ----- */
.add_to_cart_button {
  margin-top: 0.3rem;
  background: linear-gradient(to right, #7c3aed, #ec4899);
  /* or: linear-gradient(to right, var(--color-purple), var(--color-pink)); */
  color: #fff;
  border: none;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5.5rem;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.add_to_cart_button span{

  white-space: nowrap;
}

.add_to_cart_svg{

  width: 25px;
  height: 25px;
}


.add_to_cart_button:hover  { filter: brightness(1.06); }
.add_to_cart_button:active { transform: scale(0.98); }







/* ===== END PRODUCT CARDS ===== */