/* [project]/component/cart/cart.css [app-client] (css) */
.cart-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.cart-title {
  color: #2c4783;
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
}

.cart-items {
  border-radius: 8px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 2px 12px #0000000f;
}

.cart-empty {
  text-align: center;
  color: #666;
  background-color: #f9f9f9;
  border: 1px dashed #ddd;
  border-radius: 8px;
  padding: 40px 20px;
  font-size: 16px;
}

.cart-item {
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  grid-template-columns: 70px 1fr auto;
  grid-template-areas: "image info actions"
                       "image details details";
  align-items: start;
  gap: 15px;
  padding: 15px;
  transition: background-color .2s;
  display: grid;
}

.cart-item:hover {
  background-color: #f9f9f9;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  flex-shrink: 0;
  grid-area: image;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  display: flex;
  overflow: hidden;
}

.cart-item-img img {
  object-fit: contain;
  width: 90%;
  height: 90%;
}

.cart-item-info {
  flex-direction: column;
  grid-area: info;
  gap: 8px;
  display: flex;
}

.cart-item-header {
  align-items: flex-start;
  display: flex;
}

.cart-item-name {
  color: #2c2c2c;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.cart-item-ref {
  color: #777;
  margin-left: 5px;
  font-size: 13px;
}

.cart-remove-btn {
  color: #666;
  cursor: pointer;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  grid-area: actions;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  padding: 3px 6px;
  font-size: 14px;
  transition: all .2s;
  display: flex;
}

.cart-remove-btn:hover {
  color: #d32f2f;
  background-color: #ffebee;
  border-color: #ffcdd2;
}

.cart-item-details {
  grid-area: details;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 5px;
  display: flex;
}

.cart-qty-controls {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  align-items: center;
  height: 28px;
  padding: 3px;
  display: flex;
}

.cart-qty-btn {
  cursor: pointer;
  color: #333;
  background-color: #fff;
  border: none;
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  display: flex;
}

.cart-qty-btn:hover {
  color: #fff;
  background-color: #2c4783;
}

.cart-item-qty {
  text-align: center;
  color: #333;
  min-width: 24px;
  font-size: 14px;
  font-weight: 500;
}

.price-container {
  background-color: #f9f9f9;
  border-radius: 6px;
  min-width: 180px;
  margin-left: 10px;
  padding: 8px 12px;
}

.price-details {
  text-align: right;
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.unit-price, .line-total {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.line-total {
  border-top: 1px dashed #e0e0e0;
  margin-top: 3px;
  padding-top: 6px;
  font-weight: 500;
}

.price-label {
  color: #666;
  font-size: 13px;
  font-weight: normal;
}

.price-value {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.price-ttc {
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.price-ht {
  color: #777;
  font-size: 13px;
}

.total-value {
  color: #2c4783;
  font-size: 18px;
  font-weight: 700;
}

.cart-summary {
  background-color: #fff;
  border-radius: 8px;
  margin: 30px 0;
  padding: 20px;
  box-shadow: 0 2px 12px #0000000f;
}

.cart-summary-row {
  justify-content: space-between;
  padding: 12px 0;
  font-size: 16px;
  display: flex;
}

.cart-summary-row:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.cart-summary-total {
  border-top: 2px solid #e0e0e0;
  margin-top: 15px;
  padding-top: 15px;
  font-size: 18px;
  font-weight: 600;
}

.cart-summary-label {
  font-weight: 500;
}

.cart-total {
  color: #2c4783;
  font-size: 20px;
}

.cart-actions {
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  display: flex;
}

.cart-btn {
  cursor: pointer;
  text-align: center;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  transition: all .3s;
}

.cart-btn.continue {
  background-color: var(--secondary);
  color: #fff;
  flex: 1;
}

.cart-btn.checkout {
  color: #fff;
  background-color: #2c4783;
  flex: 2;
}

.cart-btn:hover {
  opacity: .9;
  transform: translateY(-2px);
}

.cart-btn.checkout:hover {
  box-shadow: 0 4px 8px #2c478333;
}

.cart-voucher {
  gap: 10px;
  margin-bottom: 20px;
  display: flex;
}

.cart-voucher-input {
  border: 1px solid #ddd;
  border-radius: 6px;
  flex: 1;
  padding: 10px 15px;
  font-size: 15px;
}

.cart-btn.voucher {
  color: #333;
  background-color: #f0f0f0;
  padding: 10px 15px;
}

.cart-btn.voucher:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

@media (width <= 768px) {
  .cart-item {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas: "image info actions"
                         "details details details";
    gap: 10px;
    padding: 12px;
  }

  .mobile-only {
    margin-top: 8px;
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .cart-item-img {
    width: 60px;
    height: 60px;
  }

  .cart-item-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .price-container {
    width: 100%;
    margin-left: 0;
  }

  .price-details {
    width: 100%;
  }

  .cart-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .cart-voucher {
    flex-direction: column;
  }

  .cart-actions {
    flex-direction: column;
    justify-content: center;
  }

  .cart-btn, .cart-btn.checkout {
    width: 100%;
  }
}


/*# sourceMappingURL=component_cart_cart_e443e4cf.css.map*/