/* Import Raleway */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;900&display=swap');

/* Apply globally */
body {
  font-family: 'Raleway', sans-serif;
}

/* ==============================
   Banner Section
============================== */
.productdetails-banner {
  position: relative;
  width: 100%;
  height: 430px; /* adjust height as needed */
  overflow: hidden;
}

.productdetails-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps image looking nice */
  display: block;
}

.productdetails-banner h2 {
  position: absolute;
  top: 10%;   /* adjust vertical position */
  left: 140px; /* push text from left */
  color: white;
  font-size: 60px;
  font-weight: bold;
  line-height: 1.2;

  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/* Desktop / Mobile visibility */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* Tablet screens */
@media (max-width: 768px) {
  .productdetails-banner {
    height: 520px;
  }

  .productdetails-banner h2 {
    font-size: 36px;
    left: 40px;
    top: 5%;
    line-height: 1.3;
  }

    .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* Mobile phones */
@media (max-width: 480px) {
  .productdetails-banner {
    height: 500px;
  }

  .productdetails-banner h2 {
    font-size: 44px;
    left: 30px;
    top: 1%;
    line-height: 50px;
  }


  /* ✅ Reduce button margin on mobile */
  .detail-info .button-row {
    margin-top: 5px;
  }

  .detail-info .supplier-btn,
  .detail-info .share-btn {
    margin-top: 3px; /* tighter spacing */
  }

    .desktop-only { display: none; }
  .mobile-only { display: block; }
}



/* "New" Starburst Badge */
.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff1a1a; /* bright red */
  color: #fff;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 15px 14px;
  z-index: 3;
  text-align: center;
  clip-path: polygon(
    50% 0%, 60% 25%, 85% 15%, 70% 40%, 100% 50%, 
    70% 60%, 85% 85%, 60% 75%, 50% 100%, 40% 75%, 
    15% 85%, 30% 60%, 0% 50%, 30% 40%, 15% 15%, 40% 25%
  );
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: pulseBadge 2s infinite ease-in-out;
}

/* ==============================
   Product Details Section
============================== */
.product-detail {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
  background-color: #f1f1f1;
}

.detail-card {
  display: flex;
  flex-direction: row; /* side by side */
  background: #ffffff;
  border-radius: 12px;
  max-width: 800px;
  padding: 30px;
  gap: 30px;
  align-items: flex-start;
}

.detail-card img {
  flex: 0 0 400px; /* fixed width for image */
  max-width: 95%;
  border-radius: 12px;
  object-fit: cover;
}

.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.detail-info h2 {
  font-size: 32px;
  margin-bottom: 70px;
  color: #222;
}

.detail-info p {
  font-size: 18px;
  margin-bottom: 10px;
  color: #555;
}

/* Buttons */
.detail-info .button-row {
  display: flex;
  gap: 15px; /* space between buttons */
  margin-top: 30px;
}

.detail-info .supplier-btn,
.detail-info .share-btn {
  font-weight: bold;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  text-decoration: none;
}

/* Supplier Button */
.detail-info .supplier-btn {
  background-color: #edc304;
  color: #000;
}

.detail-info .supplier-btn:hover {
  background-color: #d4aa02;
  transform: translateY(-2px);
}

/* Share Button */
.detail-info .share-btn {
  background-color: #2775e1;
  color: #fff;
}

.detail-info .share-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* ==============================
   Responsive Layout (Product)
============================== */
@media (max-width: 786px) {
  .detail-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detail-card img {
    flex: unset;
    width: 70%;
    max-width: 400px;
  }

  .detail-info {
    align-items: center;
    text-align: center;
    margin-bottom: 2px;
  }

  .detail-info h2 {
    font-size: 30px;
    margin-bottom: 5px;
  }

  .detail-info p {
    font-size: 16px;
    margin-bottom: 1px;
  }

  .detail-info .button-row {
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }

  .detail-info .supplier-btn,
  .detail-info .share-btn {
    width: 70%; /* make buttons wider on mobile */
    align-self: center;
    margin-top: 5px;
  }
}
