/* Base */
:root {
  --accent: #0a1e5c;
  --muted: #3ac1d8;
  --secondary: #f47c25;
  --secondaryH: #d28a57;
  --tertiary: #1e87c9;
  --glass: rgba(255, 255, 255, 0.75);
}

.nav-link.active {
  font-weight: 600;
  border: 1px solid var(--tertiary);
  border-radius: 10px;
  color: var(--tertiary) !important;
}

body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  background: linear-gradient(180deg, #fbfdff, #f7f9ff 60%);
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}

.card {
  border: 0;
}

#cartItemsWrap img {
  object-fit: cover;
  height: 72px;
  width: 72px;
}

.quantity-group .btn {
  padding: 0.3rem 0.5rem;
}

.nav-link.active {
  font-weight: 600;
  border: 1px solid var(--tertiary);
  border-radius: 10px;
  color: var(--tertiary) !important;
}

/* Cart responsiveness fixes */
.cart-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* explicit parts */
.cart-line .img-wrap {
  flex: 0 0 72px;
  width: 72px;
}
.cart-line .img-wrap img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.cart-line .cart-body {
  flex: 1 1 auto;
  min-width: 0; /* allow truncation of children */
}

/* quantity + price row inside body */
.cart-line .cart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* remove button style */
.cart-line .remove-btn {
  flex: 0 0 auto;
  margin-left: 12px;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .cart-line {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .cart-line .img-wrap {
    flex: 0 0 64px;
    width: 64px;
    margin-bottom: 6px;
  }

  .cart-line .cart-body {
    flex: 1 1 100%;
    min-width: 0;
  }

  /* Put controls (qty + price) on first line, remove button on its own row aligned to right */
  .cart-line .cart-controls {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .cart-line .remove-btn {
    width: auto;
    margin: 8px 0 0 auto; /* pushes it to the right on its own row */
    order: 3;
  }

  /* Make Remove easier to tap on mobile */
  .cart-line .remove-btn.btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.92rem;
  }

  /* make price align right on small screens */
  .cart-line .cart-price {
    margin-left: auto;
    font-weight: 700;
  }
}
