/* Hide native radio inputs */
.product-option-input {
  display: none;
}

/* Product Card Styling */
.product-card {
  background-color: #fff;
  color: #212529;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 2 / 3; /* Portrait shape */
  padding: 1rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: auto;
  max-width: 220px; /* Cap size for desktop */
  margin: 0 auto;
}


/* Responsive grid will control width, let column classes handle it */
.col-4, .col-sm-3, .col-md-2 {
  max-width: 100%;
}

/* Image inside the product card */
.product-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  object-fit: contain; /* optional: show full image, no cropping */
}


/* Product name */
.product-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Short description */
.product-card small {
  font-size: 0.85rem;
}

/* Selected state */
.product-option-input:checked + .product-card {
  border-color: #0d6efd;
  background-color: #f0f7ff;
  border-width: 7px;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.15);
}

/* White text titles on dark backgrounds */
.white-title-on-dark {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
