.hero-section {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 80vh, 720px);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Black backdrop overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px 16px;
  max-width: 900px;

  /* entry animation */
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 900ms ease-out forwards;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 46px);
  line-height: 1.15;
  color: #fff;

  /* stagger */
  opacity: 0;
  transform: translateY(16px);
  animation: textIn 850ms ease-out forwards;
  animation-delay: 150ms;
}

.hero-desc {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);

  /* stagger */
  opacity: 0;
  transform: translateY(16px);
  animation: textIn 850ms ease-out forwards;
  animation-delay: 320ms;
}

.cardsDetailsServiceSection {
  min-height: 600px;
}

/* =========================
         Product grid
         (Desktop: 4 columns like screenshot)
         (Tablet: 2 columns)
         (Small: 1 column)
         ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
  padding-left: 50px;
  padding-right: 50px;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 450px) {
  .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* =========================
         Card + entry animation
         ========================= */
.Pcard {
  display: block;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(14px);
  animation: enter 700ms var(--ease) forwards;
  position: relative;
  z-index: 10;
}
.Pcard:nth-child(1) {
  animation-delay: 80ms;
}
.Pcard:nth-child(2) {
  animation-delay: 160ms;
}
.Pcard:nth-child(3) {
  animation-delay: 240ms;
}
.Pcard:nth-child(4) {
  animation-delay: 320ms;
}
.Pcard:nth-child(5) {
  animation-delay: 400ms;
}
.Pcard:nth-child(6) {
  animation-delay: 480ms;
}
.Pcard:nth-child(7) {
  animation-delay: 560ms;
}
.Pcard:nth-child(8) {
  animation-delay: 640ms;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f3f3f3;
  /* similar to your screenshot (tall) */
  aspect-ratio: 4 / 5;
  transform: translateZ(0);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 20% 10%,
    rgba(255, 255, 255, 0.08),
    rgba(0, 0, 0, 0.09)
  );
  opacity: 0;
  transition: opacity 450ms var(--ease);
  pointer-events: none;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0001);
  transition:
    transform 650ms var(--ease),
    filter 650ms var(--ease);
  will-change: transform;
  background-color: #f3f3f3 !important;
}

.meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 16px);
  letter-spacing: 0.01em;
}

.price {
  margin: 0;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text);
  white-space: nowrap;
}

.name,
.price {
  position: relative;
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #006e3c;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
  will-change: transform;
}

.see-more-btn .arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 220ms ease;
  font-size: 1.05em;
}

.see-more-btn:hover {
  transform: translateY(-2px);
  background: #006e3c;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  color: #fff;
}

.see-more-btn:hover .arrow {
  transform: translateX(6px);
}

.see-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.see-more-btn:focus-visible {
  outline: 3px solid rgba(0, 110, 60, 0.55);
  outline-offset: 3px;
}

.arrowClass {
  width: unset !important;
}

/* premium underline animation */
.name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: #006e3c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms var(--ease);
  opacity: 0.9;
}

/* hover */
.Pcard:hover .media {
  box-shadow: var(--shadow);
}
.Pcard:hover .media img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.03);
}
.Pcard:hover .media::after {
  opacity: 1;
}
.Pcard:hover .name::after {
  transform: scaleX(1);
}

/* focus */
.Pcard:focus-visible {
  outline: 3px solid #006e3c;
  outline-offset: 6px;
  border-radius: 10px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .Pcard {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .media img,
  .media::after,
  .name::after {
    transition: none;
  }
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .hero-section {
    min-height: 420px;
  }
  .hero-content {
    padding: 22px 14px;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-title,
  .hero-desc {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
