/* 1. MAIN CARD CONTAINER */

.product-card:hover 
{
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

/* 2. IMAGE SECTION (Smaller to allow bigger body) */
.card-img-top 
{
  width: 85%;            /* Slightly narrowed to give body more vertical "weight" */
  margin: 10px auto 0;   /* Centers image and adds top spacing */
  aspect-ratio: 1 / 1;   /* Keeps the square shape for consistency */
  object-fit: contain;
  display: block;
}

/* 3. OVERLAY ICON */
 .img-overlay 
{
  position: absolute;
  top: 0vh;
  right: 8vw;
  width: 6vw;
  height: auto;
  z-index: 2;
  opacity: 0.8;
}

/* 4. CARD BODY (Made bigger and more spacious) */
.card-body 
{
  padding: 0.75rem;      /* Increased padding for a "bigger" feel */
  flex-grow: 1;          /* Forces body to fill all remaining vertical space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes button to bottom, title to top */
  text-align: center;
  padding: 0.5rem 0.3rem; /* Maximize internal space */
}

/* 5. TYPOGRAPHY */
h6.card-title 
{
  font-size: clamp(0.6rem, 2.5vw, 4rem);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
  /* Limits title to 2 lines so cards stay aligned */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4em;         /* Reserves space for 2 lines exactly */
}

.fw-semibold 
{
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: #2b2b2b;
  margin-bottom: 8px;
}

/* 6. BUTTON STYLE */
.btn-sm 
{
  font-size: 1rem;
  padding: px 10px;      /* Taller button to fill body space */
  width: 100%;
  text-transform: uppercase;
  font-weight: bold;
}

/* 7. MOBILE OPTIMIZATION (4-ACROSS FORCING) */
@media (max-width: 768px) 
{
  /* Tightens the grid gaps so 4 cards can actually fit */
  .row 
  {
    margin-left: -5px;
    margin-right: -5px;
  }
  .row > [class*='col-'] 
  {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
  }  
}
