/* GLOBAL */
body {
  background: #f4f7fb;
  font-family: "Poppins", sans-serif;
  color: #333;
  margin: 0;
}

/* PRODUCT HERO */
.product-hero {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.product-container {
  max-width: 1200px;
  width: 100%;
  background: #ffffff;
  border-radius: 22px;
  padding: 45px;
  box-shadow: 0px 20px 40px rgba(0,0,0,0.08);
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

/* PRODUCT IMAGE */
.product-gallery {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-gallery img {
  width: 100%;
  max-width: 500px;
  height: 420px;
  object-fit: contain;
  background: #f2f6ff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0px 15px 35px rgba(0,0,0,0.12);
  transition: 0.3s ease;
}

.product-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0px 25px 45px rgba(0,0,0,0.18);
}

/* PRODUCT CONTENT */
.product-content {
  flex: 1;
  min-width: 320px;
}

.product-content h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* PRICE BOX */
.price-box {
  background: linear-gradient(135deg, #fff5c3, #ffe27a);
  padding: 16px 20px;
  border-radius: 16px;
  margin: 10px 0 22px 0;
  border: 2px solid #ffd34a;
}

.old-price {
  font-size: 16px;
  color: #777;
}

.final-price {
  font-size: 32px;
  font-weight: 900;
  color: #ff9a00;
  text-shadow: 0px 0px 6px rgba(255,170,0,0.6);
}

.discount-text {
  color: #008000;
  font-weight: 600;
}

/* AGE TAG */
.age-tag {
  background: #e6f3ff;
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 600;
  color: #005bbb;
}

/* DESCRIPTION */
.product-desc {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* BUTTONS */
.action-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.btn-yellow {
  background: linear-gradient(135deg, #ffd84d, #ffb300);
  color: #222;
  box-shadow: 0 5px 15px rgba(255,204,0,0.45);
}

.btn-outline {
  border: 2px solid #ffd84d;
  color: #333;
}

/* RELATED PRODUCTS */
.related-section {
  padding: 70px 20px;
  background: #f5f7fc;
  text-align: center;
}

.related-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.related-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.related-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;                 /* MUST */
  box-shadow:0 10px 28px rgba(0,0,0,.1);
  display:flex;
  flex-direction:column;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0,0,0,0.14);
}
.rel-img{
  width:100%;
  height:220px;                    /* SAME HEIGHT FOR ALL */
  overflow:hidden;
  background:#eef5ff;
}

.rel-img img{
  width:100%;
  height:100%;
  object-fit:cover;                /* 🔥 KEY LINE */
  display:block;
}


.related-price {
  font-size: 18px;
  font-weight: bold;
  color: #e00000;
}
/* ================= RELATED PRODUCTS — FINAL FIX ================= */

.related-section{
  padding:60px 20px;
  background:#f6f8fc;
}

.related-title{
  text-align:center;
  font-size:28px;
  font-weight:800;
  color:#022a57;
  margin-bottom:35px;
}

/* GRID */
.related-grid{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:25px;
}

.related-card{
  background: transparent;   /* ❌ no card */
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}


/* IMAGE WRAPPER */
.rel-img{
  width:100%;
  aspect-ratio: 4 / 3;      /* 🔥 KEY FIX */
  background:#eef5ff;
  overflow:hidden;
}

/* IMAGE */
.rel-img img{
  width:100%;
  height:100%;
  object-fit:cover;         /* 🔥 FORCE SAME SIZE */
  display:block;
}

/* TITLE */
.related-card h3{
  font-size:16px;
  font-weight:800;
  color:#1e3a8a;
  padding:12px 15px 4px;
}

/* PRICE */
.related-price{
  font-size:18px;
  font-weight:800;
  color:#16a34a;
  padding:0 15px 10px;
}

/* BUTTON */
.related-card .btn{
  margin:10px 15px 15px;
  text-align:center;
}

