*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
#head {
  text-align: center;
  padding: 2rem 0;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #f7f6f3;
  padding: 3rem 2rem;
}

/* ── GRID WRAPPER ── */
.display {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

/* ── CARD ── */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ── IMAGE AREA ── */
.card-img-wrap {
  background: #f2f0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  max-height: 170px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  display: block;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.07);
}

/* ── CATEGORY BADGE ── */
.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(6px);
  color: #444;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

/* ── CARD BODY ── */
.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── DESCRIPTION ── */
.card-desc {
  font-size: 0.83rem;
  color: #777;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.more-text {
  color: #555;
}

.dot {
  color: #bbb;
  font-weight: 700;
}

/* ── READ MORE BTN ── */
.more-btn {
  background: none;
  border: none;
  color: #b07d4a;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
  margin-top: 0.3rem;
  display: inline-block;
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.more-btn:hover {
  color: #7a5230;
}

/* ── DIVIDER ── */
.card-divider {
  height: 1px;
  background: #f0ede8;
  margin: 1rem 0;
}

/* ── PRICE + CTA ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-price {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.card-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: #aaa;
  margin-right: 2px;
}

/* ── ADD TO CART ── */
.btn-cart {
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  white-space: nowrap;
}

.btn-cart:hover {
  background: #b07d4a;
  transform: scale(1.03);
}

/* ── WISHLIST ICON ── */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  font-size: 0.85rem;
}

.wishlist-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
