/* The classic WooCommerce cart uses the SneakLab layout within SOLEIL's shell. */
.soleil-cart-page {
  --soleil-cart-page-gap: 24px;
  --soleil-cart-page-summary: 390px;
  width: 100%;
  color: #111;
  background: #fff;
  font-family: var(--soleil-font-family);
}

.soleil-cart-page *, .soleil-cart-page *::before, .soleil-cart-page *::after { box-sizing: border-box; }
.soleil-cart-page.is-updating .soleil-cart-page__layout,
.soleil-cart-page.is-updating .soleil-cart-page__empty { opacity: 0.64; pointer-events: none; }
.soleil-cart-page__feedback:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}
.soleil-cart-page__feedback:not([hidden])::before {
  content: '';
  width: 13px;
  height: 13px;
  border: 1.5px solid #dedede;
  border-top-color: #777;
  border-radius: 50%;
  animation: soleil-cart-page-spin 700ms linear infinite;
}
.soleil-cart-page__error {
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid #f1d6d6;
  border-radius: 12px;
  background: #fff6f6;
  color: #8d3434;
  font-size: 13px;
}
@keyframes soleil-cart-page-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .soleil-cart-page__feedback:not([hidden])::before { animation: none; }
}
.soleil-cart-page__layout { display: flex; align-items: flex-start; gap: var(--soleil-cart-page-gap); }
.soleil-cart-page__products { flex: 1 1 0; min-width: 0; margin: 0; }
.soleil-cart-page__items { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.soleil-cart-page__item {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: 100%;
  padding: 20px;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
}
.soleil-cart-page__image { display: flex; flex: 0 0 110px; align-items: center; justify-content: center; min-width: 0; }
.soleil-cart-page__image a { display: flex; align-items: center; justify-content: center; width: 100%; }
.soleil-cart-page__image img {
  display: block;
  width: 110px;
  height: 100px;
  max-height: 100px;
  border-radius: 10px;
  background: #fafaf9;
  object-fit: contain;
  object-position: center;
}
.soleil-cart-page__item-content { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: space-between; gap: 20px; }
.soleil-cart-page__details { min-width: 0; }
.soleil-cart-page__name { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; }
.soleil-cart-page__name a { color: inherit; text-decoration: none; }
.soleil-cart-page__sku { display: block; margin-top: 4px; color: #777; font-size: 11px; line-height: 1.45; }
.soleil-cart-page__variation, .soleil-cart-page__variation .variation { margin: 4px 0 0; color: #777; font-size: 11px; line-height: 1.45; }
.soleil-cart-page__variation:empty { display: none; }
.soleil-cart-page__variation .variation { display: flex; flex-wrap: wrap; gap: 2px 8px; padding: 0; list-style: none; }
.soleil-cart-page__variation dt, .soleil-cart-page__variation dd, .soleil-cart-page__variation p { margin: 0; font-weight: 400; }
.soleil-cart-page__item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.soleil-cart-page__price { color: #111; font-size: 18px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.soleil-cart-page__controls { display: flex; align-items: center; justify-content: flex-end; gap: 20px; white-space: nowrap; }
.soleil-cart-page__remove, .soleil-cart-page__remove:hover {
  color: #111;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.soleil-cart-page__quantity { display: inline-flex; align-items: center; gap: 4px; }
.soleil-cart-page__quantity button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f3f2;
  box-shadow: none;
  color: #111;
  font-size: 18px;
  line-height: 1;
}
.soleil-cart-page__quantity button:disabled { opacity: 0.38; cursor: not-allowed; }
.soleil-cart-page__quantity .quantity { display: inline-flex; align-items: center; }
.soleil-cart-page__quantity input.qty, .soleil-cart-page__quantity-value {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #111;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  appearance: textfield;
}
.soleil-cart-page__quantity input.qty::-webkit-outer-spin-button,
.soleil-cart-page__quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.soleil-cart-page__update { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.soleil-cart-page__summary {
  position: sticky;
  top: 24px;
  flex: 0 0 var(--soleil-cart-page-summary);
  width: min(100%, var(--soleil-cart-page-summary));
  padding: 22px;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
}
.soleil-cart-page__summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.soleil-cart-page__summary-title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.soleil-cart-page__summary-amount { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.soleil-cart-page__summary-amount strong { font-size: 20px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.soleil-cart-page__summary-amount small { color: #858585; font-size: 9px; line-height: 1.3; }
.soleil-cart-page__divider { height: 1px; margin: 18px 0 10px; background: #e5e5e5; }
.soleil-cart-page__shipping-note { margin: 0 0 22px; color: #858585; font-size: 10px; line-height: 1.5; }
.soleil-cart-page__coupon { display: flex; flex-direction: column; gap: 9px; margin: 0 0 20px; }
.soleil-cart-page__coupon label { font-size: 12px; font-weight: 700; line-height: 1.4; }
.soleil-cart-page__coupon-controls { display: flex; }
.soleil-cart-page__coupon-controls input, .soleil-cart-page__coupon-controls button {
  height: 46px;
  min-height: 46px;
  margin: 0;
  box-shadow: none;
  font-size: 12px;
}
.soleil-cart-page__coupon-controls input {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: #111;
}
.soleil-cart-page__coupon-controls button {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 0 18px;
  border: 1px solid #111;
  border-radius: 0 10px 10px 0;
  background: #111;
  color: #fff;
  font-weight: 700;
}
.soleil-cart-page__coupon-controls button:is(:hover, :focus-visible) {
  border-color: var(--soleil-color-accent);
  background: var(--soleil-color-accent);
  color: #fff;
}
.soleil-cart-page__coupons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.soleil-cart-page__coupon-applied { display: flex; justify-content: space-between; gap: 18px; }
.soleil-cart-page__coupon-status { color: #777; font-size: 10px; }
.soleil-cart-page__coupon-applied p { margin: 5px 0 0; font-size: 11px; }
.soleil-cart-page__coupon-applied a { align-self: start; color: #777; font-size: 10px; text-decoration: underline; }
.soleil-cart-page__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.soleil-cart-page__checkout:is(:hover, :focus-visible) { border-color: var(--soleil-color-accent); background: var(--soleil-color-accent); color: #fff; }
.soleil-cart-page__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 24px; text-align: center; }
.soleil-cart-page__empty-icon { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 999px; background: #f3f3f0; }
.soleil-cart-page__empty-icon svg { width: 25px; height: 25px; }
.soleil-cart-page__empty h2 { margin: 0; font-size: 24px; }
.soleil-cart-page__empty p { max-width: 550px; margin: 0; color: #777; font-size: 13px; line-height: 1.65; }
.soleil-cart-page__empty a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #111; color: #fff; font-size: 13px; font-weight: 700; }
.soleil-cart-page__empty a:is(:hover, :focus-visible) { background: var(--soleil-color-accent); color: #fff; }

/* WooCommerce Cart Block compatibility: its interactions remain Store API-owned. */
body.woocommerce-cart .wp-block-woocommerce-cart {
  width: 100%;
  color: #111;
  font-family: var(--soleil-font-family);
}
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout { gap: 24px; }
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar {
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 22px;
  background: #fff;
}
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items { border: 0; }
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row {
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
}
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-button,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-button {
  min-height: 48px;
  border-radius: 999px;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
}
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-button { background: #111; color: #fff; }
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-button:is(:hover, :focus-visible) { background: var(--soleil-color-accent); color: #fff; }
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-text-input input {
  border-color: #d8d8d8;
  border-radius: 10px;
  box-shadow: none;
}

@media (max-width: 1024px) {
  .soleil-cart-page__layout { flex-direction: column; gap: 20px; }
  .soleil-cart-page__products, .soleil-cart-page__summary { flex-basis: auto; width: 100%; }
  .soleil-cart-page__summary { position: static; max-width: none; }
}
@media (max-width: 767px) {
  .soleil-cart-page__item { gap: 14px; padding: 16px; }
  .soleil-cart-page__image { flex-basis: 82px; }
  .soleil-cart-page__image img { width: 82px; height: 82px; }
  .soleil-cart-page__item-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .soleil-cart-page__controls { flex-wrap: wrap; justify-content: flex-start; gap: 14px; }
  .soleil-cart-page__coupon-controls { flex-direction: column; gap: 8px; }
  .soleil-cart-page__coupon-controls input, .soleil-cart-page__coupon-controls button { width: 100%; border: 1px solid #d8d8d8; border-radius: 10px; }
  .soleil-cart-page__coupon-controls button { border-color: #111; }
}
