/* Base layout */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Let main fill remaining space */
main {
  flex: 1 0 auto;
}

/* Keep footer at the bottom */
footer.page-footer {
  margin-top: auto;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Optional: fix Materialize container margin */
footer .container {
  margin-bottom: 0;
}


/* Home page styles */
.truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* cart page styles */
.cart-container {
  max-width: 1000px;
  margin: 40px auto;
  background: #fff;
  padding: 24px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
}

.cart-header,
.cart-row {
  display: grid;
  grid-template-columns: 3fr 1fr 2fr 1fr 0.5fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}

.cart-header {
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.cart-row {
  border-bottom: 1px solid #eee;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.remove-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.cart-summary {
  max-width: 350px;
  margin-left: auto;
  margin-top: 20px;
  border-top: 1px solid #ddd;
  padding-top: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-row.total {
  font-size: 18px;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn {
  display: flex;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: #0a7d3b;
  color: #fff;
}

.btn.outline {
  border: 1px solid #0a7d3b;
  color: #0a7d3b;
  background: #fff;
}

.btn.danger {
  background: #c62828;
  color: #fff;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 2px;      /* pushes it up (superscript effect) */
  right: 1px;    /* pushes it to the corner */
  background: red;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}





