body {
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.product-page {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* ===============================
   PRODUCT PAGE – FORCE SIDE BY SIDE
================================ */

/* Main container */
.product-page.container {
  display: flex !important;
  flex-direction: row !important;   /* 🔒 always row */
  align-items: flex-start;
  gap: 16px;
  flex-wrap: nowrap !important;     /* 🔒 no wrapping */
}

/* Image section */
.product-image {
  flex: 0 0 45%;                    /* fixed width */
}

/* Info section */
.product-info {
  flex: 0 0 55%;
}

/* Image styling */
.product-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* ===============================
   MOBILE SAFETY
================================ */
@media (max-width: 768px) {
  .product-page.container {
    flex-direction: row !important; /* 🔥 force side by side */
    flex-wrap: nowrap !important;
  }

  .product-image {
    flex: 0 0 42%;
  }

  .product-info {
    flex: 0 0 58%;
  }

  .product-info h1 {
    font-size: 18px;
  }

  .product-info .price {
    font-size: 18px;
  }
}
.related-products {
  margin: 50px 0;
}

.related-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.related-card {
  min-width: 180px;
  text-align: center;
}

.related-card img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.related-card img.zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
  z-index: 5;
}

.related-card h3 {
  cursor: pointer;
  margin: 8px 0 4px;
  color: #000;
}
/* =================================
   RESET + BASE
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* =================================
   PRODUCT PAGE LAYOUT
================================= */
.product-page {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  align-items: flex-start;
}

/* =================================
   PRODUCT IMAGE (FIXED ISSUE)
================================= */
.product-image {
  max-width: 320px;
  margin: 0 auto;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: auto;                /* IMPORTANT */
  aspect-ratio: 3 / 4;         /* controls tall image */
  object-fit: cover;
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* =================================
   PRODUCT INFO
================================= */
.product-info {
  flex: 1;
}

.product-info h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
}

.rating {
  font-size: 15px;
  color: #f4a261;
  margin-bottom: 8px;
}

.rating span {
  color: #666;
  font-size: 14px;
}

.price {
  font-size: 24px;
  font-weight: 600;
  color: #e63946;
  margin-bottom: 14px;
}

.description {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.product-title{
	text-align: center;
}

/* =================================
   BUTTONS
================================= */
.product-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.btn {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  min-width: 110px;
  transition: 0.25s ease;
}

/* Add to Cart */
.add-cart {
  background: #f7941d;
  color: #fff;
}

.add-cart.added {
  background: #2ecc71;
}

/* Buy Now */
.buy-now {
  background: #ff5722;
  color: #fff;
}

.btn:hover {
  opacity: 0.9;
}

/* =================================
   BACK LINK
================================= */
.home-btn {
  font-size: 14px;
  color: #555;
}

/* ===============================
   YOU MAY ALSO LIKE – CENTER
================================ */
.related-products {
  text-align: center;
  margin: 40px 0 20px;
}

.related-title {
  font-size: 22px;
  font-weight: 600;
  color: #264653;        /* same dark brand color */
  margin-bottom: 20px;
}
.related-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.related-scroll::-webkit-scrollbar {
  display: none;
}

.related-card {
  min-width: 160px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 10px;
  text-align: center;
}

.related-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.related-card h3 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.related-card p {
  font-size: 14px;
  font-weight: 600;
  color: #e63946;
}

/* =================================
   MOBILE RESPONSIVE
================================= */
@media (max-width: 768px) {
  .product-page {
    flex-direction: row;     /* ✅ keep side by side */
    gap: 16px;
    align-items: flex-start;
  }

  .product-image {
    max-width: 140px;        /* smaller image on mobile */
  }

  .product-image img {
    aspect-ratio: 3 / 4;
  }

  .product-info h1 {
    font-size: 18px;
  }

  .price {
    font-size: 18px;
  }

  .description {
    font-size: 13px;
  }
}

/* =================================
   FIX: PRODUCT IMAGE + INFO SIDE BY SIDE
================================= */

.product-page {
  display: flex !important;
  flex-direction: row !important;  /* 🔒 always side by side */
  flex-wrap: nowrap !important;    /* 🔒 prevent stacking */
  gap: 20px;
  align-items: flex-start;
}

/* Image column */
.product-image {
  flex: 0 0 42%;
  max-width: 42%;
}

/* Info column */
.product-info {
  flex: 0 0 58%;
  max-width: 58%;
}

/* MOBILE – still side by side */
@media (max-width: 768px) {
  .product-page {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .product-image {
    max-width: 140px;
    flex: 0 0 140px;
  }

  .product-info {
    flex: 1;
  }
}
