.caruso-section {
  padding: 20px;
  background: #fff;
}

.caruso-heading {
  color:#fff;
  font-size: 22px;
  margin-bottom: 15px;
  background-color: #f00;
  padding: 10px;;
}

.caruso-subheading {
  font-size: 16px;
  color:#fff;
}

.caruso-scroll {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* exactly 6 items per row */
  gap: 15px;
  overflow: hidden;
}


.caruso-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 10px;
  text-align: center;
  min-width: 180px;
  flex-shrink: 0;
}


.caruso-img {
  width: 100%;
  height: 250px; /* fixed height for uniformity */
  object-fit: cover; /* crop/zoom to fill */
  border-radius: 4px;
  background: #f8f8f8; /* fallback background */
}


.caruso-info {
  margin-top: 8px;
}

.caruso-title{
  background: white;
  color: #0b227d;
  padding: 6px 8px;
  margin: 5px 0;
  font-size: 18px;
  border-radius: 4px;
}
.caruso-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.caruso-price {
  background: #0b227d;
  color: white;
  padding: 6px 8px;
  font-size: 14px;
  border-radius: 4px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.caruso-buy,
.caruso-book {
  border: none;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.caruso-buy {
  background: green;
}

.caruso-book {
  background: blue;
}


.caruso-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.caruso-popup-box {
  background: #fff;
  padding: 20px;
  max-width: 320px;
  width: 90%;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.caruso-popup-close {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 22px;
  cursor: pointer;
}

.caruso-popup-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.caruso-popup-auth a {
  display: inline-block;
  margin: 6px 8px;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.caruso-login-btn { background: green; color: #fff; }
.caruso-create-btn { background: blue; color: #fff; }

.caruso-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.caruso-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease;
}

.caruso-popup-btn i {
  font-size: 18px;
}

.caruso-popup-btn.green { background-color: #28a745; }     /* Buy Now */
.caruso-popup-btn.orange { background-color: #fd7e14; }    /* Add to Cart */
.caruso-popup-btn.blue { background-color: #007bff; }      /* Book */
.caruso-popup-btn.gray { background-color: #6c757d; }      /* View Details */
.caruso-popup-btn.dark { background-color: #343a40; }      /* Cancel */

.caruso-popup-btn:hover {
  opacity: 0.92;
}

/*Table on cart responsive*/
.responsive-cart-table {
  width: 100%;
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  padding: 8px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.cart-table img {
  max-width: 80px;
  height: auto;
  border-radius: 4px;
}

@media screen and (max-width: 600px) {
  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    display: block;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
  }

  .cart-table td {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .cart-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #555;
    flex: 1;
    margin-right: 10px;
  }

  .cart-table td:last-child {
    justify-content: flex-start;
  }
}


/* Mobile carousel behavior */
@media screen and (max-width: 768px) {
  .caruso-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .caruso-section { padding:0px; padding-top: 10px;}

  .caruso-card {
    scroll-snap-align: start;
    min-width: 70%;
    margin-right: 10px;
    width: 10%;
  }

  .caruso-card:last-child {
    margin-right: 0;
  }
}
