@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

.cec-cart-layout {
  --cec-ink: #072333;
  --cec-muted: #576c7b;
  --cec-line: #cbd9e4;
  --cec-surface: rgba(255,255,255,.78);
  --cec-accent: #004265;
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, .95fr);
  gap: 40px;
  align-items: start;
  width: 100%;
  color: var(--cec-ink);
  font-family: 'DM Sans', sans-serif;
}
.cec-cart-main-column { min-width: 0; }
.cec-cart-wrap { width: 100%; min-width: 0; }
.cec-cart-items {
  background: var(--cec-surface);
  border-radius: 30px;
  padding: 26px;
  box-shadow: 0 18px 44px rgba(19, 43, 60, .08);
}
.cec-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--cec-line);
}
.cec-cart-item:first-child { padding-top: 25px; }
.cec-cart-item:last-child { border-bottom: 0; padding-bottom: 25px; }
.cec-product-main { display: flex; align-items: center; gap: 15px; min-width: 0; flex: 1; }
.cec-product-thumb { flex: 0 0 125px; width: 125px; height: 125px; overflow: hidden; border-radius: 21px; background: #e7f0f8; }
.cec-product-thumb a { display: block; width: 100%; height: 100%; }
.cec-product-image { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; }
.cec-product-info { min-width: 0; }
.cec-product-title { margin: 0 0 8px !important; color: #072333 !important; font-family: 'Fraunces', Georgia, serif !important; font-size: 20px !important; line-height: 1.25; font-weight: 600 !important; }
.cec-product-title a { color: inherit !important; text-decoration: none !important; }
.cec-product-title a:hover { opacity: .78; }
.cec-product-meta { color: var(--cec-muted); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.45; margin: 0 0 19px; }
.cec-product-meta dl, .cec-product-meta p { margin: 0; }
.cec-product-meta dl { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.cec-product-meta dt { font-weight: 600; }
.cec-product-meta dd { margin: 0; }
.cec-quantity { display: inline-flex; align-items: center; justify-content: space-between; width: 147px; height: 55px; border: 1px solid var(--cec-line); border-radius: 30px; overflow: hidden; background: transparent; }
.cec-qty-btn { appearance: none; border: 0 !important; background: transparent !important; color: var(--cec-ink) !important; font-family: 'DM Sans', sans-serif !important; font-size: 18px !important; line-height: 1; padding: 0 !important; width: 42px; height: 100%; min-width: 42px; box-shadow: none !important; cursor: pointer; }
.cec-qty-btn:hover { background: #eef4f8 !important; }
.cec-qty-input { appearance: textfield; -moz-appearance: textfield; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: #072333 !important; text-align: center; width: 45px !important; min-width: 0; height: 100% !important; margin: 0 !important; padding: 0 !important; font-family: 'DM Sans', sans-serif !important; font-size: 12px !important; font-weight: 600; }
.cec-qty-input::-webkit-inner-spin-button, .cec-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cec-product-actions { display: flex; align-items: center; justify-content: flex-end; gap: 17px; flex: 0 0 auto; }
.cec-line-price { white-space: nowrap; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; color: #072333; }
.cec-line-price .amount { color: inherit; }
.cec-remove { display: inline-flex; width: 26px; height: 30px; align-items: center; justify-content: center; color: #587083; text-decoration: none !important; }
.cec-remove svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cec-remove:hover { color: #b42318; }
.cec-hidden-update { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.cec-order-summary {
  box-sizing: border-box;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 18px 44px rgba(19, 43, 60, .07);
  min-width: 0;
}
.cec-summary-title { margin: 0 0 28px !important; color: #072333 !important; font-family: 'Fraunces', Georgia, serif !important; font-size: 24px !important; font-weight: 600 !important; line-height: 1.2; }
.cec-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 21px; border-bottom: 1px solid var(--cec-line); font-family: 'DM Sans', sans-serif; font-size: 14px; color: #576c7b; }
.cec-summary-row strong { color: #072333; font-size: 16px; font-weight: 700; white-space: nowrap; }
.cec-summary-row .amount { color: inherit; }
.cec-summary-note { padding: 20px 0 25px; color: #576c7b; font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.7; }
.cec-checkout-btn { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; padding: 17px 18px; border-radius: 999px; background: #004265; color: #fff !important; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none !important; box-shadow: 0 12px 22px rgba(0, 66, 101, .12); transition: background .2s ease, transform .2s ease; }
.cec-checkout-btn:hover { background: #003650; transform: translateY(-1px); }
.cec-continue-shopping { display: block; margin: 20px 0 0; text-align: center; color: #004265 !important; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.cec-continue-shopping:hover { text-decoration: underline !important; }
.cec-cart-status { grid-column: 1 / -1; margin-top: -24px; font-size: 13px; color: var(--cec-muted); }
.cec-cart-empty { text-align: center; padding: 50px 20px; background: var(--cec-surface); border-radius: 24px; }
.cec-cart-empty p { margin: 0 0 16px; color: var(--cec-ink); }
.cec-continue { display: inline-block; background: var(--cec-accent); color: #fff !important; border-radius: 999px; padding: 12px 22px; text-decoration: none !important; }
.cec-notice { padding: 16px; border: 1px solid #e4b4b4; border-radius: 10px; }

@media (max-width: 1024px) {
  .cec-cart-layout { grid-template-columns: minmax(0, 1.6fr) minmax(270px, .9fr); gap: 22px; }
  .cec-cart-items { padding: 20px; }
  .cec-product-thumb { flex-basis: 100px; width: 100px; height: 100px; }
  .cec-product-actions { gap: 10px; }
  .cec-order-summary { padding: 24px; }
}
@media (max-width: 767px) {
  .cec-cart-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cec-cart-items { padding: 15px; border-radius: 20px; }
  .cec-cart-item, .cec-cart-item:first-child { padding: 18px 0; gap: 0; align-items: flex-start; flex-wrap: wrap; }
  .cec-product-main { gap: 12px; align-items: flex-start; flex: 1 1 100%; width: 100%; }
  .cec-product-thumb { flex-basis: 82px; width: 82px; height: 82px; border-radius: 14px; }
  .cec-product-title { font-size: 20px !important; margin-bottom: 5px !important; }
  .cec-product-meta { font-size: 14px; margin-bottom: 12px; }
  .cec-quantity { width: 104px; height: 36px; }
  .cec-qty-btn { width: 30px; min-width: 30px; font-size: 16px !important; }
  .cec-qty-input { width: 32px !important; font-size: 12px !important; }
  .cec-product-meta { margin-bottom: 10px; }
  /* Price sits under the quantity (aligned with the info column); trash on the far right; both top-aligned */
  .cec-product-actions { flex: 1 1 100%; width: 100%; box-sizing: border-box; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 10px; padding-left: 94px; margin-top: 4px; }
  .cec-line-price { font-size: 16px; line-height: 24px; }
  .cec-remove { width: 24px; height: 25px; }
  .cec-remove svg { width: 18px; height: 18px; }
  .cec-order-summary { border-radius: 22px; padding: 23px; }
  .cec-summary-title { margin-bottom: 22px !important; }
  .cec-summary-note { padding: 17px 0 21px; }
  .cec-cart-status { margin-top: -8px; }
}
@media (max-width: 420px) {
  .cec-cart-item { gap: 7px; }
  .cec-product-main { gap: 9px; }
  .cec-product-thumb { flex-basis: 68px; width: 68px; height: 68px; }
  .cec-product-title { font-size: 17px !important; }
  .cec-product-meta { font-size: 12px; }
  .cec-quantity { width: 96px; height: 34px; }
  .cec-qty-btn { width: 28px; min-width: 28px; }
  .cec-qty-input { width: 28px !important; }
  .cec-line-price { font-size: 14px; line-height: 24px; }
  .cec-product-actions { gap: 4px; padding-left: 77px; }
  .cec-order-summary { padding: 20px; }
}
