.cart-empty-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* This handles the vertical centering */
    align-items: center;     /* This handles the horizontal centering */
    min-height: 60vh;        /* Gives the container height to center within */
    gap: 2rem;               /* Adds some space between the message and summary */
    padding: 1rem;
}

.cart-empty-container .summary-card {
    width: 600px;
    max-width: 100%;
}

.cart-empty-container .summary-section {
    width: 100%;
}

.proceed-to-checkout-btn {
  color: white;
  border: none;
  border-radius: 5px;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.summary-section {
  padding-left: 1rem;
  padding-right: 1rem;
  min-width: 0;
}

.summary-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  margin: auto;
}

.summary-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	border-bottom: 1px solid #ddd;
	padding-bottom: 0.5rem;
	text-align: center;
}

.summary-item,
.summary-total {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
  font-size: 1rem;
}

.summary-total {
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* feature section */

.features-section {
  display: flex;
  flex-wrap: wrap; /* Allow vertical stacking on mobile */
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 1rem;
}

.feature-card {
  flex: 1 1 250px; /* Base width so they wrap on smaller screens */
  min-width: 0; /* Let them shrink if needed */
  border-radius: 12px;
  box-shadow: 2px 2px 25px #0000002e;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 30px #0000003e;
  }
  .feature-card:hover .feature-detail {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
  }
}

.feature-card.expanded {
  transform: translateY(-4px);
  box-shadow: 4px 4px 30px #0000003e;
}

.feature-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
  font-size: 0.85rem;
  color: #4b5563;
  text-align: left;
  line-height: 1.5;
  margin-top: 0;
}

.feature-card.expanded .feature-detail {
  max-height: 300px;
  opacity: 1;
  margin-top: 1rem;
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card img {
  width: 36px;
  height: 36px;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.2rem;
}

.feature-card p {
  color: #4b5563;
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;        /* Prevent line break */
  overflow: hidden;
  text-overflow: ellipsis;    /* Cut off with ... if needed */
  max-width: 100%;
}

@media (max-width: 576px) {
	.feature-card p {
	  display: none;
	}
	.feature-card.expanded p {
	  display: block;
	  white-space: normal;
	}
  }
  


.cart-page-grid {
	display: grid;
	grid-template-columns: 3fr 2fr;
}

.cart-section {
	min-width: 0;
}

.cart-card-item {
	/* width: calc(66% - 1rem); */
	margin-bottom: 1rem;
	border: 1px solid #cfcfcf;
	border-radius: 10px;
	min-width: 0;
}

.item-content-grid {
	padding: 1rem;
	display: grid;
	grid-template-columns: 4fr 6fr;
	gap: 1rem;
	align-items: stretch;
	position: relative;
}

.cart-text-content {
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.cart-prod-img img,
.cart-prod-img svg {
	width: 100%;
	height: 100%;
	max-height: 186px;
	object-fit: contain;
}

.cart-card-controls {
	position: absolute;
	right: 1rem;
	top: 3rem;
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
}

.cart-item-counter {
	display: flex;
	align-items: center;
	gap: 4px;
	/* border: 1px solid #b8b8b8; */
	/* border-radius: 20px; */
}

.item-price {
	font-size: 1.125rem;
}

.minus-btn,
.plus-btn {
	width: 33px;
	height: 33px;
	background: #000000;
	border-radius: 4px;
	padding: 4px 0;
	/* border: 1px solid #b8b8b8; */
	display: inline-block;
	vertical-align: middle;
	text-align: center;
	color: #fff;
	cursor: pointer;
}

.btn-inactive {
	background: #999;
}


.counter_num {
	height: 33px;
	line-height: 33px;
	width: 40px;
	text-align: center;
	font-size: 1rem;
	border: 1px solid #b8b8b8;
	border-radius: 4px;
	display: inline-block;
	vertical-align: middle;
}


.remove-btn-posc {
	position: absolute;
	top: 6px;
	right: 6px;
}

/*cart css*/
td.align-middle svg {
	width: 25px;
}

.table>:not(:first-child) {
	border-top: 2px solid #e5e5e5 !important;
}

@media (min-width:768px) and (max-width:991px) {
	.cart-card-controls {
		position: static;
	}

	/* .minus,
	.plus {
		width: 20px;
		line-height: 12px;
		height: unset;
	} */

	/* .counter_num {
		width: 18px;
		line-height: 12px;
		height: unset;
		font-size: 15px;
	} */
}

@media (min-width:0px) and (max-width:767px) {
	.cart-page-grid {
		grid-template-columns: 1fr;
		gap: 1rem
	}

	.prod-attr {
		font-size: 0.875rem;
	}
}

@media (min-width:0px) and (max-width:575px) {
	.cart-card-controls {
		position: static;
	}
}
