/* ===========================================================
   NOVA EUROPE — cart (brand design system)
   Styles the stock WooCommerce cart markup
   (templates/cart/cart.php + cart-totals.php, Woo 11.x).
   Tokens mirror checkout.css :root.
   =========================================================== */

.ca-hero{
  max-width:760px;
  margin:0 auto;
  padding:46px 24px 10px;
  text-align:center;
}
.ca-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:#12787e;
}
.ca-eyebrow::before{ content:''; width:22px; height:1px; background:currentColor; opacity:.55; }
.ca-h1{
  font-family:'Fraunces',Georgia,serif;
  font-weight:520; font-size:clamp(34px,5vw,46px); line-height:1.02;
  letter-spacing:-.02em; color:#0b3b3f;
  margin:12px 0 0;
}
.ca-sub{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:15px; line-height:1.55; color:#4e6357;
  margin:12px 0 0;
}
.ca-trust{
  display:flex; flex-wrap:wrap; gap:10px 22px; justify-content:center;
  margin-top:18px;
}
.ca-trust span{
  display:inline-flex; align-items:center; gap:7px;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:12.5px; font-weight:600; color:#0e5a5f;
  background:#eaf5f5; border:1px solid rgba(18,120,126,.15);
  border-radius:999px; padding:7px 13px;
}

/* ---------- shell ---------- */
.ca-main{
  max-width:1120px;
  margin:0 auto;
  padding:18px 24px 90px;
}

/* ---------- notices (cart errors / success, e.g. invalid coupon) ---------- */
.ca-main .woocommerce-notices-wrapper,
.ca-main .woocommerce-notices-wrapper .woocommerce-message,
.ca-main .woocommerce-notices-wrapper .woocommerce-info,
.ca-main .woocommerce-notices-wrapper .woocommerce-error{
  margin:0 0 20px;
  padding:13px 18px;
  border-radius:12px;
  font:500 14px/1.5 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  list-style:none;
}
.ca-main .woocommerce-notices-wrapper{ margin-top:4px; }
.ca-main .woocommerce-notices-wrapper:empty{ display:none; }
.ca-main .woocommerce-message{
  background:#e9f6ee; border:1px solid rgba(22,101,52,.18); color:#14532d;
}
.ca-main .woocommerce-error{
  background:#fdf0ef; border:1px solid rgba(178,32,28,.18); color:#7f1d1d;
}
.ca-main .woocommerce-info{
  background:#eaf5f5; border:1px solid rgba(18,120,126,.18); color:#0e5a5f;
}
.ca-main .woocommerce-notices-wrapper a{ color:inherit; text-decoration:underline; }

/* ---------- two-column layout: line items + order summary ----------
   Live DOM (Woo 11.3, [woocommerce_cart]):
     .ca-main
       .woocommerce
         .woocommerce-notices-wrapper (errors, e.g. min-order)
         form.woocommerce-cart-form
           table.shop_table.cart.woocommerce-cart-form__contents
             ...rows..., tr>td.actions (coupon + update)
         .cart-collaterals
           .cart-collaterals .cart_totals / .cross-sells  */
.ca-main > .woocommerce{
  display:grid;
  grid-template-columns:minmax(0,1fr) 372px;
  grid-auto-rows:auto;
  gap:26px;
  align-items:start;
}
.ca-main > .woocommerce .woocommerce-notices-wrapper{ grid-column:1 / -1; }
.ca-main > .woocommerce form.woocommerce-cart-form{ grid-column:1; min-width:0; }
.ca-main > .woocommerce .cart-collaterals{ grid-column:2; min-width:0; }

/* ---------- line items card ---------- */
form.woocommerce-cart-form .woocommerce-cart-form__contents{
  background:#fff;
  border:1px solid #dbecee;
  border-radius:14px;
  box-shadow:0 1px 2px rgba(11,59,63,.04), 0 10px 30px rgba(11,59,63,.05);
  overflow:hidden;
}
table.shop_table.cart{
  width:100%;
  border-collapse:collapse;
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
table.shop_table.cart thead th{
  text-align:left;
  font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:#7a8c81;
  background:#f7fbfb;
  border-bottom:1px solid #e6f0f1;
  padding:12px 14px;
}
table.shop_table.cart thead th.product-price,
table.shop_table.cart thead th.product-quantity,
table.shop_table.cart thead th.product-subtotal{ text-align:right; }
table.shop_table.cart thead th.product-remove{ padding-right:4px; }

tr.woocommerce-cart-form__cart-item td{
  padding:18px 14px;
  border-bottom:1px solid #eef4f5;
  vertical-align:middle;
  font-size:14.5px;
  color:#4e6357;
}
tr.woocommerce-cart-form__cart-item:last-of-type td{ border-bottom:0; }

/* remove */
td.product-remove{ width:28px; padding-left:16px; }
a.remove{
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:999px;
  color:#9db0a6; text-decoration:none; font-size:18px; line-height:1;
  transition:background .15s ease, color .15s ease;
}
a.remove:hover{ background:#fdf0ef; color:#b3352c; }

/* thumbnail */
td.product-thumbnail{ width:64px; }
td.product-thumbnail img{
  width:56px; height:56px; object-fit:cover;
  border-radius:10px; border:1px solid #e6f0f1;
  background:#f7fbfb;
}
td.product-thumbnail:empty{ display:none; }

/* name + variation */
td.product-name{ font-weight:600; color:#0b3b3f; }
td.product-name a{ color:inherit; text-decoration:none; }
td.product-name a:hover{ color:#12787e; text-decoration:underline; }
td.product-name .variation{ font-weight:400; }
td.product-name .variation > p,
td.product-name div.variation{
  margin:4px 0 0;
  font-size:13px; font-weight:500; color:#7a8c81;
}
td.product-name .variation p{ margin:0 0 2px; }

/* price / subtotal */
td.product-price, td.product-subtotal{ text-align:right; white-space:nowrap; }
td.product-subtotal{ font-weight:700; color:#0b3b3f; }
td.product-subtotal del{ color:#9db0a6; font-weight:400; margin-right:6px; }
td.product-subtotal ins{ text-decoration:none; }
td.product-price{ color:#4e6357; }

/* quantity */
td.product-quantity{ text-align:right; }
.quantity{ position:relative; display:inline-block; }
.quantity .qty{
  width:64px;
  padding:9px 12px;
  border:1px solid #dbecee;
  border-radius:10px;
  background:#fff;
  font:600 14px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:#0b3b3f;
  text-align:center;
  -moz-appearance:textfield;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.quantity .qty:focus{
  outline:none; border-color:#12787e;
  box-shadow:0 0 0 3px rgba(18,120,126,.14);
}
.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

/* actions row (coupon + update) — inside the items table.
   NOTE: keep the td as a table-cell (display:flex on a td breaks table layout
   and shrinks it to content width). Use floats for the left/right split. */
tr td.actions{
  padding:16px 16px 20px;
  background:#f7fbfb;
  border-top:1px solid #e6f0f1;
  overflow:hidden; /* clearfix for floats */
}
tr td.actions .coupon{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  float:left;
  flex:1 1 260px; min-width:240px;
  max-width:calc(100% - 170px);
}
tr td.actions .coupon label{ display:none; }
tr td.actions .coupon .input-text{
  flex:1 1 140px; min-width:120px;
  padding:11px 14px;
  border:1px solid #dbecee;
  border-radius:10px;
  font:500 14px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:#0b3b3f; background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
tr td.actions .coupon .input-text:focus{
  outline:none; border-color:#12787e; box-shadow:0 0 0 3px rgba(18,120,126,.14);
}
tr td.actions .coupon .input-text::placeholder{ color:#9db0a6; }

/* shared button base for the Woo .button class on this page */
form.woocommerce-cart-form .button,
button.button{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 20px;
  border-radius:10px;
  border:1px solid transparent;
  font:700 14px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  cursor:pointer; text-decoration:none;
  transition:background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
form.woocommerce-cart-form .button:active,
button.button:active{ transform:translateY(1px); }

/* Update cart — outline teal, right side of the actions row */
form.woocommerce-cart-form button[name=update_cart]{
  background:#fff; border-color:#12787e; color:#12787e; flex:none;
  float:right; margin-left:12px;
}
form.woocommerce-cart-form button[name=update_cart]:hover{
  background:#eaf5f5;
}

/* coupon apply — solid soft teal */
form.woocommerce-cart-form .coupon .button{
  background:#12787e; border-color:#12787e; color:#fff;
}
form.woocommerce-cart-form .coupon .button:hover{
  background:#0e5a5f; border-color:#0e5a5f;
}

/* shipping calculator (inside totals) */
.shipping-calculator{ margin:0; }
.shipping-calculator-button{
  font:600 13.5px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:#12787e; cursor:pointer; text-decoration:underline; text-underline-offset:3px;
}
.shipping-calculator-button:hover{ color:#0e5a5f; }
.shipping-calculator-form{
  margin-top:10px; padding:14px;
  background:#fff; border:1px solid #dbecee; border-radius:10px;
}
.shipping-calculator-form .form-row{ margin:0 0 10px; }
.shipping-calculator-form .form-row:last-child{ margin-bottom:0; }
.shipping-calculator-form label{
  display:block; margin-bottom:4px;
  font:600 12px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; color:#4e6357;
}
.shipping-calculator-form input,
.shipping-calculator-form select{
  width:100%; box-sizing:border-box;
  padding:9px 11px;
  border:1px solid #dbecee; border-radius:9px;
  font:500 13.5px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:#0b3b3f; background:#fff;
}
.shipping-calculator-form .button{
  padding:9px 16px; font-size:13px;
  background:#12787e; border-color:#12787e; color:#fff;
}
.shipping-calculator-form .button:hover{ background:#0e5a5f; border-color:#0e5a5f; }

/* ---------- order summary ---------- */
.cart-collaterals{ margin:0; }
.cart_totals{
  background:#f0fafb;
  border:1px solid #dbecee;
  border-radius:14px;
  padding:22px 22px 24px;
  position:sticky; top:96px;
}
.cart_totals h2{
  font-family:'Fraunces',Georgia,serif;
  font-weight:520; font-size:21px; letter-spacing:-.01em;
  color:#0b3b3f; margin:0 0 14px;
}
.cart_totals table.shop_table{
  width:100%; border-collapse:collapse;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
.cart_totals table.shop_table th,
.cart_totals table.shop_table td{
  padding:8px 0; font-size:14.5px; border:0;
}
.cart_totals table.shop_table th{ font-weight:600; color:#4e6357; }
.cart_totals table.shop_table td{ text-align:right; color:#0b3b3f; font-weight:600; }
.cart_totals table.shop_table .cart-subtotal td,
.cart_totals table.shop_table .shipping td{ font-weight:500; }
.cart_totals table.shop_table .cart-discount th{ color:#0e5a5f; }
.cart_totals table.shop_table .cart-discount td{ color:#0e5a5f; }
.cart_totals table.shop_table .order-total{
  border-top:1px solid rgba(18,120,126,.22);
  margin-top:8px; padding-top:14px;
}
.cart_totals table.shop_table .order-total th{
  font-family:'Fraunces',Georgia,serif;
  font-size:16px; font-weight:600; color:#0b3b3f;
}
.cart_totals table.shop_table .order-total td{
  font-family:'Fraunces',Georgia,serif;
  font-size:26px; font-weight:600; color:#0b3b3f;
}
.cart_totals table.shop_table .order-total td ins{ text-decoration:none; }

/* checkout CTA */
.wc-proceed-to-checkout{ margin-top:16px; }
.wc-proceed-to-checkout a.button,
.wc-proceed-to-checkout a.checkout-button{
  display:flex; width:100%; justify-content:center; align-items:center; gap:10px;
  padding:15px 20px;
  border-radius:12px;
  background:#0b3b3f; border:1px solid #0b3b3f; color:#fff;
  font:700 15.5px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  text-decoration:none; letter-spacing:.01em;
  box-shadow:0 8px 20px rgba(11,59,63,.22);
  transition:background .15s ease, box-shadow .15s ease, transform .05s ease;
}
.wc-proceed-to-checkout a.button:hover,
.wc-proceed-to-checkout a.checkout-button:hover{
  background:#072a2c; border-color:#072a2c; color:#fff;
  box-shadow:0 10px 26px rgba(11,59,63,.28);
}
.wc-proceed-to-checkout a.button:active,
.wc-proceed-to-checkout a.checkout-button:active{ transform:translateY(1px); }

/* reassurance under CTA */
.ca-secure{
  display:flex; flex-direction:column; gap:8px;
  margin-top:14px;
}
.ca-secure span{
  display:flex; align-items:center; gap:8px;
  font:500 12.5px/1.4 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:#4e6357;
}

/* ---------- empty state ---------- */
.ca-empty{
  max-width:560px; margin:8px auto 0;
  background:#fff;
  border:1px solid #dbecee;
  border-radius:14px;
  box-shadow:0 1px 2px rgba(11,59,63,.04), 0 10px 30px rgba(11,59,63,.05);
  padding:52px 36px 44px;
  text-align:center;
}
.ca-empty-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:84px; height:84px; border-radius:999px;
  background:#eaf5f5; color:#12787e;
  margin-bottom:18px;
}
.ca-empty-note{
  margin:0 0 24px;
  font:400 14.5px/1.6 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:#4e6357;
}
.ca-btn-primary{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 30px;
  border-radius:12px;
  background:#0b3b3f; color:#fff;
  font:700 15px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(11,59,63,.22);
  transition:background .15s ease;
}
.ca-btn-primary:hover{ background:#072a2c; }

/* continue shopping */
.ca-continue{
  margin:18px 2px 0;
  font:600 14px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
.ca-continue a{ color:#12787e; text-decoration:none; }
.ca-continue a:hover{ text-decoration:underline; text-underline-offset:3px; }

/* ---------- cross-sells (if enabled per-product) — inside the summary panel ---------- */
.cross-sells{ margin:18px 0 0; }
.cross-sells h2{
  font-family:'Fraunces',Georgia,serif;
  font-weight:520; font-size:17px; letter-spacing:-.01em;
  color:#0b3b3f; margin:0 0 12px;
}
.cross-sells ul.products{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.cross-sells li.product{
  display:flex; flex-direction:column; gap:6px;
  background:#fff; border:1px solid #dbecee; border-radius:10px;
  padding:10px;
}
.cross-sells li.product img{
  width:100%; aspect-ratio:1; object-fit:cover;
  border-radius:7px; background:#f7fbfb;
}
.cross-sells li.product .woocommerce-loop-product__title{
  font:600 13px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:#0b3b3f; margin:0;
}
.cross-sells li.product .price{ margin:0 0 2px; font-weight:700; color:#0b3b3f; }
.cross-sells li.product .price del{ color:#9db0a6; margin-right:5px; font-weight:400; }
.cross-sells li.product .price ins{ text-decoration:none; }
.cross-sells li.product button,
.cross-sells li.product .button{
  padding:8px 10px; border-radius:8px;
  background:#fff; border:1px solid #12787e; color:#12787e;
  font:700 12.5px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  cursor:pointer; text-decoration:none;
}
.cross-sells li.product button:hover,
.cross-sells li.product .button:hover{ background:#eaf5f5; }

/* ---------- responsive ---------- */
@media (max-width:960px){
  .ca-main > .woocommerce{
    grid-template-columns:1fr;
    gap:18px;
  }
  .ca-main > .woocommerce form.woocommerce-cart-form,
  .ca-main > .woocommerce .cart-collaterals{
    grid-column:1;
  }
  .cart_totals{ position:static; }
  .cross-sells ul.products{ grid-template-columns:1fr 1fr; }
}

@media (max-width:640px){
  /* stock Woo responsive-table pattern: hide the header, label cells via data-title */
  table.shop_table.cart thead{ display:none; }
  table.shop_table.cart tbody tr{
    display:block;
    padding:6px 0;
    border-bottom:1px solid #eef4f5;
  }
  tr.woocommerce-cart-form__cart-item:last-of-type{ border-bottom:0; }
  tr.woocommerce-cart-form__cart-item td{
    display:flex; align-items:center; gap:10px;
    padding:8px 4px;
    border:0;
    text-align:left;
  }
  td.product-remove{ order:-1; width:auto; padding-left:0; }
  td.product-thumbnail{ width:52px; }
  td.product-thumbnail img{ width:44px; height:44px; }
  td.product-name{ order:2; flex:1 1 auto; }
  td.product-name::before{ display:none; }
  td.product-price, td.product-quantity, td.product-subtotal{
    border-top:1px dashed #e6f0f1;
    justify-content:space-between;
  }
  td.product-price::before,
  td.product-quantity::before,
  td.product-subtotal::before{
    content:attr(data-title);
    font:700 10.5px 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    letter-spacing:.1em; text-transform:uppercase;
    color:#7a8c81;
  }
  td.product-subtotal{ font-size:15.5px; }
  tr td.actions .coupon{ float:none; max-width:none; width:100%; }
  tr td.actions .coupon .button{ width:auto; }
  form.woocommerce-cart-form button[name=update_cart]{
    float:none; width:100%; margin-left:0; margin-top:10px;
  }
  .cross-sells ul.products{ grid-template-columns:1fr 1fr; }
}
