/* ── Cart Page Wrapper ── */
.workforce-page-cart__wrap {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px) {
  .workforce-page-cart__wrap { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .workforce-page-cart__wrap { padding-inline: 2rem; }
}

/* ── Empty Cart ── */
.workforce-cart-empty {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}
.workforce-cart-empty__icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(200, 149, 108, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: rgba(200, 149, 108, 0.4);
}
.workforce-cart-empty__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .workforce-cart-empty__title { font-size: 1.5rem; }
}
.workforce-cart-empty__desc {
  color: rgba(245, 240, 232, 0.5);
  font-size: 14px;
  margin-bottom: 1.5rem;
}
.workforce-cart-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary, #c8956c);
  color: #0a0a0a;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.workforce-cart-empty__btn:hover {
  background: #d4a57c;
}

/* ── Cart with Items ── */
.workforce-cart {
  padding-top: 1.5rem;
}
@media (min-width: 640px) {
  .workforce-cart { padding-top: 2.5rem; }
}
.workforce-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .workforce-cart__header { margin-bottom: 2rem; }
}
.workforce-cart__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f5f0e8;
}
@media (min-width: 640px) {
  .workforce-cart__title { font-size: 1.875rem; }
}
.workforce-cart__continue {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(200, 149, 108, 0.6);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.workforce-cart__continue:hover {
  color: var(--color-primary, #c8956c);
}

/* ── Grid: items + summary ── */
.workforce-cart__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .workforce-cart__grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* ── Cart Items ── */
.workforce-cart__items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .workforce-cart__items { gap: 1rem; }
}

/* ── Single Cart Item ── */
.workforce-cart-item {
  background: #1a1a1a;
  border-radius: 0.75rem;
  border: 1px solid rgba(200, 149, 108, 0.05);
  overflow: hidden;
  transition: border-color 0.3s;
  animation: camipxCartFadeIn 0.4s ease both;
}
@media (min-width: 640px) {
  .workforce-cart-item { border-radius: 1rem; }
}
.workforce-cart-item:hover {
  border-color: rgba(200, 149, 108, 0.15);
}
@keyframes camipxCartFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.workforce-cart-item__inner {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
}
@media (min-width: 640px) {
  .workforce-cart-item__inner { gap: 1rem; padding: 1rem; }
}
.workforce-cart-item__thumb {
  flex-shrink: 0;
}
.workforce-cart-item__thumb img {
  width: 5rem;
  height: 5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}
@media (min-width: 640px) {
  .workforce-cart-item__thumb img { width: 7rem; height: 7rem; }
}
.workforce-cart-item__details {
  flex: 1;
  min-width: 0;
}
.workforce-cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.workforce-cart-item__name {
  color: #f5f0e8;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  margin-bottom: 0.25rem;
  display: block;
}
.workforce-cart-item__remove {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 113, 113, 0.4);
  transition: color 0.2s, background 0.2s;
}
.workforce-cart-item__remove:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}
.workforce-cart-item__cat {
  color: rgba(245, 240, 232, 0.4);
  font-size: 12px;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .workforce-cart-item__cat { margin-bottom: 0.75rem; }
}
.workforce-cart-item__rental-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: rgba(245, 240, 232, 0.5);
  font-size: 12px;
  margin-bottom: 0.5rem;
}
.workforce-cart-item__rental-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.workforce-cart-item__rental-tag svg {
  color: rgba(200, 149, 108, 0.5);
}
.workforce-cart-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(200, 149, 108, 0.05);
}
@media (min-width: 640px) {
  .workforce-cart-item__footer { margin-top: 0.75rem; padding-top: 0.75rem; }
}
.workforce-cart-item__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(245, 240, 232, 0.5);
  font-size: 12px;
}
.workforce-cart-item__meta strong {
  color: #f5f0e8;
  font-weight: 600;
}
.workforce-cart-item__price {
  color: var(--color-primary, #c8956c);
  font-weight: 700;
  font-size: 15px;
}

/* ── Cart Actions ── */
.workforce-cart-actions {
  margin-top: 0.75rem;
}
.workforce-cart-update-btn {
  background: rgba(200, 149, 108, 0.1);
  color: var(--color-primary, #c8956c);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.workforce-cart-update-btn:hover {
  background: rgba(200, 149, 108, 0.2);
}

/* ── Summary Sidebar ── */
.workforce-cart-summary {
  background: #1a1a1a;
  border-radius: 0.75rem;
  border: 1px solid rgba(200, 149, 108, 0.05);
  padding: 1rem;
}
@media (min-width: 640px) {
  .workforce-cart-summary { padding: 1.5rem; border-radius: 1rem; }
}
@media (min-width: 1024px) {
  .workforce-cart-summary { position: sticky; top: 7rem; }
}
.workforce-cart-summary__title {
  color: #f5f0e8;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .workforce-cart-summary__title { margin-bottom: 1.25rem; }
}
.workforce-cart-summary__lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .workforce-cart-summary__lines { margin-bottom: 1.25rem; }
}
.workforce-cart-summary__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 13px;
}
.workforce-cart-summary__line-name {
  color: rgba(245, 240, 232, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workforce-cart-summary__line-price {
  color: rgba(245, 240, 232, 0.8);
  font-weight: 600;
  flex-shrink: 0;
}
.workforce-cart-summary__insurance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(200, 149, 108, 0.1);
  font-size: 13px;
  color: rgba(245, 240, 232, 0.4);
}
.workforce-cart-summary__insurance span:last-child {
  color: rgba(245, 240, 232, 0.6);
  font-weight: 600;
}
.workforce-cart-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(200, 149, 108, 0.1);
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .workforce-cart-summary__total { margin-bottom: 1.5rem; }
}
.workforce-cart-summary__total span:first-child {
  color: #f5f0e8;
  font-weight: 700;
  font-size: 16px;
}
.workforce-cart-summary__total-price {
  color: var(--color-primary, #c8956c);
  font-weight: 800;
  font-size: 20px;
}
.workforce-cart-summary__checkout-btn {
  display: block;
  text-align: center;
  background: var(--color-primary, #c8956c);
  color: #0a0a0a;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 0.75rem;
}
.workforce-cart-summary__checkout-btn:hover {
  background: #d4a57c;
}
.workforce-cart-summary__continue {
  display: block;
  text-align: center;
  color: rgba(200, 149, 108, 0.6);
  padding: 0.5rem;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.workforce-cart-summary__continue:hover {
  color: var(--color-primary, #c8956c);
}

/* ── Hide default WC cart totals (we show our own summary) ── */
.workforce-page-cart .cart-collaterals,
.workforce-page-cart .cart_totals {
  display: none;
}

/* ── WC notices ── */
.workforce-page-cart .woocommerce-message,
.workforce-page-cart .woocommerce-info,
.workforce-page-cart .woocommerce-error {
  margin-bottom: 1rem;
}
