.shop-banner {
  position: relative;
  width: 100%;
  height: 480px; /* adjust banner height */
  overflow: hidden;
}

.shop-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps image proportion */
  display: block;
}

.shop-banner h2 {
  position: absolute;
  top: 1%; /* pushes text slightly from the top */
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}



/* Desktop / Mobile visibility */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* ✅ Responsive for tablets & small laptops */
@media (max-width: 768px) {
  .shop-banner {
    height: 520px; /* shorter banner for smaller screens */
  }

  .shop-banner h2 {
    font-size: 50px;   /* reduce heading size */
    top: 10%;          /* push text a bit lower */
    text-align: center;
    width: 40%;
  }

    .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* ✅ Responsive for mobile phones */
@media (max-width: 480px) {
  .shop-banner {
    height: 500px; /* even smaller height */
  }

  .shop-banner h2 {
    line-height: 50px;
    font-size: 45px;  /* smaller text for phones */
    top: 5%;           /* push text further down */
    text-align: center;
    width: 20%;        /* let text fit screen */
    padding: 0 10px;    /* prevent text from touching edges */
  }
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}


.product-page {
  text-align: center;
  padding: 20px 20px;
  background-color: #f1f1f1;
}

.product-page h2 {
  color: #008e38;
  font-size: 50px;
  margin-bottom: 40px;
}


/* --- Breathe Font Animation --- */
@font-face {
  font-family: 'TheFont';
  src: url("https://garet.typeforward.com/assets/fonts/shared/TFMixVF.woff2") format('woff2');
}

.breathe-text {
  font-family: 'TheFont', sans-serif;
  animation: letter-breathe 3s ease-in-out infinite;
  display: inline-block;
}

/* Breathing animation keyframes */
@keyframes letter-breathe {
  from,
  to {
    font-variation-settings: 'wght' 100;
  }
  50% {
    font-variation-settings: 'wght' 900;
  }
}

.breathe-text {
  font-family: 'TheFont', sans-serif;
  animation: letter-breathe 3s ease-in-out infinite;
  display: inline-block;
  /*text-shadow: 2px 2px 6px rgba(0,0,0,0.3);*/
  letter-spacing: 1px;
}

.product-page p {
  color: #555;
  margin-bottom: 30px;
}

/* "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;
}



/* Grid layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
}

/* Product Card */
/* Base Card */
.product-card {
  position: relative; /* allow pseudo-element border */
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  width: 100%;
  max-width: 250px;
  text-align: center;
  transition: transform 0.2s ease;
  overflow: hidden; /* hide gradient overflow */
}

/* Gradient border using ::before */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0; /* cover full card */
  border-radius: 12px;
  padding: 1px; /* border thickness */
  background: linear-gradient(
    270deg,
    #2775e1,
    #edc304,
    #2775e1
  );
  background-size: 300% 300%;
  animation: borderMove 6s linear infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  pointer-events: none; /* don’t block hover */
  opacity: 0; /* hidden by default */
  transition: opacity 0.3s ease;
}

/* Show gradient border only on hover */
.product-card:hover::before {
  opacity: 1;
}

/* Animate gradient movement */
@keyframes borderMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.product-card img {
  width: 70%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 5px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #333;
}

.product-card p {
  font-size: 0.9rem;
  margin: 2px 0;
  color: #444;
}

.product-card strong {
  color: #000;
}


/* Button */
.supplier-btn {
  margin-top: 15px; /* increase spacing */
  padding: 10px 15px;
  background-color: #edc304;
  border: none;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none; /* for <a> tags */
  display: inline-block; /* ensures padding works */
}

.supplier-btn:hover {
  background-color: #c9a503;
}


/* Mobile layout */
@media (max-width: 768px) {
  .product-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .product-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 95%;
    padding: 8px;
    text-align: left;
  }

  .product-card a img {
    width: 200px;   /* fixed width instead of % */
    height: auto;
    margin-right: 8px; /* small spacing between image & details */
    flex-shrink: 0;    /* stops image from shrinking too small */
  }

  .product-card .details {
    flex: 0 1 auto;    /* don’t force it to the far right */
    margin-top: 20px;
  }

  .product-card h3 {
    font-size: 25px;

    margin-bottom: 30px;
  }

  .product-card p {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .supplier-btn {
    align-self: flex-start;
    margin-top: 20px;
  }
}


/* Very small screens (phones ≤ 480px) */
/* Small phone layout */
@media (max-width: 480px) {

  .product-page h2 {

  font-size: 35px;

}

  .product-grid {
    display: flex;
    flex-direction: column;
    gap: 6px; /* slightly smaller gap between cards */
  }

  .product-card {
    flex-direction: row;
    align-items: flex-start;
    max-width: 95%;
    padding: 6px; /* smaller padding for tiny screens */
    text-align: left;
  }

  .product-card a img {
    width: 150px;  /* smaller image for small phones */
    height: auto;
    margin-right: 6px; /* small gap between image & details */
    flex-shrink: 0;
  }

  .product-card .details {
    flex: 0 1 auto;
    margin-top: 0; /* remove extra top margin */
  }

  .product-card h3 {
    font-size: 1rem; /* slightly smaller text */
    margin-bottom: 6px;
  }

  .product-card p {
    font-size: 0.8rem; /* smaller text for small screen */
    margin-bottom: 4px;
  }

  .supplier-btn {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}


/* Ultra small screens (like iPhone SE ≤ 360px) */
@media (max-width: 360px) {
  .product-card a img {
    width: 80%;
    max-width: 140px;
  }

  .product-card h3 {
    font-size: 0.95rem;
  }

  .product-card p {
    font-size: 0.75rem;
  }

  .supplier-btn {
    font-size: 0.8rem;
    padding: 7px 10px;
  }
}


