body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #f5f5f5;
}
.products-container {
    max-width: 1200px;
    margin: auto;
}
h2 {
    text-align: center;
    margin-bottom: 20px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}
.card h3 {
    font-size: 18px;
    margin: 10px 0 5px;
}
.card .price {
    font-size: 20px;
    color: #e91e63;
    font-weight: bold;
}
.rating {
    margin: 8px 0;
}

.star.filled {
    background: gold;
}

.star {
  display: inline-block;
  font-size: 2rem;
  color: #ccc;
}




.star-rating {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  line-height: 1;
}

.stars-outer {
  position: relative;
  display: inline-block;
  color: #ccc;
}

.stars-outer::before {
  content: "★★★★★";
  letter-spacing: 3px;
}

.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  width: 0; /* dynamically set */
  color: gold;
  pointer-events: none;
}

.stars-inner::before {
  content: "★★★★★";
  letter-spacing: 3px;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #2196f3;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
}

/* Date time CSS */
.time-slot-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}


.input-date-time {
  display: inline-block;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  color: #3d464d;
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 300px;
}

.input-date-time:focus {
  border-color: #3366cc;
  box-shadow: 0 0 5px rgba(51, 102, 204, 0.5);
  outline: none;
}

/* For consistent icon positioning if using calendar/time icon */
.input-date-time::-webkit-calendar-picker-indicator {
  filter: invert(0.4);
  cursor: pointer;
}

.input-time-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 300px;
}

.input-date-time {
  width: 100%;
  padding-right: 2.5rem; /* Space for the icon */
}

.input-time-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1.2rem;
  color: #888;
}

/*Time slot CSS*/

/* Time slot container layout */
.time-slot-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

/* Individual time slot styling */
.time-slot {
  padding: 0.75rem 1rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  background-color: #f7f7f7;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Hover and active states */
.time-slot:hover {
  background-color: #e6f0ff;
  border-color: #3366cc;
}

.time-slot.selected {
  background-color: #ffc107;
  color: #000;
  border-color: #ffc107;
  font-weight: bold;
}



/* align add cart to buttonat right */

.flex-end {
    display: flex;
    justify-content: flex-end;
}


.brand-title {
  font-size: 24px;
  font-weight: bold;
  color: #2a2a2a;
}
