/* =====================================================================
  CART PAGE
  Cart states, item rows, order summary, and WhatsApp checkout actions.
  ===================================================================== */
.cart-loading {
  text-align:center;
  padding:64px 24px;
  color:var(--label-gray);
  font-size:0.95rem;
}

body .section-head h2 { font-size:24px; }
body .cart-empty h3,body .cart-summary h3 { font-size:18px; }
body .cart-empty p,body .cart-summary p { font-size:13px; }
.cart-loading i {
  margin-right:8px;
}
.cart-empty {
  text-align:center;
  padding:72px 24px;
  color:var(--label-gray);
}
.cart-empty i {
  font-size:2rem;
  color:var(--brand-blue);
  margin-bottom:14px;
  display:block;
}
.cart-empty h3 {
  font-family:var(--font-display);
  color:var(--text-dark);
  margin:0 0 8px;
  font-size:1.2rem;
}
.cart-empty p {
  margin:0 0 22px;
}
.hidden {
  display:none !important;
}
.cart-layout {
  display:grid;
  grid-template-columns:1fr 340px;
  gap:28px;
  align-items:start;
}
.cart-items {
  display:flex;
  flex-direction:column;
  gap:14px;
}
.cart-item {
  display:grid;
  grid-template-columns:76px 1fr auto auto auto;
  align-items:center;
  gap:16px;
  background:#fff;
  border-radius:18px;
  padding:14px 16px;
  box-shadow:0 16px 40px -30px rgba(15,27,61,0.35);
}
.cart-item-thumb-link {
  display:block;
}
.cart-item-thumb {
  width:76px;
  height:76px;
  border-radius:14px;
  background:var(--bg-sage);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
}
.cart-item-thumb img {
  width:100%;
  height:100%;
  object-fit:contain;
  padding:8px;
}
.cart-item-thumb .product-thumb-fallback {
  display:none;
  font-size:1.2rem;
  color:var(--brand-blue-2);
}
.cart-item-thumb.img-fallback .product-thumb-fallback {
  display:flex;
}
.cart-item-info {
  min-width:0;
}
.cart-item-category {
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--label-gray);
  margin-bottom:2px;
}
.cart-item-info h4 {
  margin:0 0 4px;
  font-size:0.98rem;
  line-height:1.3;
}
.cart-item-info h4 a {
  color:var(--text-dark);
}
.cart-item-unit-price {
  font-size:12.5px;
  color:var(--label-gray);
}
.cart-item-qty {
  display:flex;
  align-items:center;
  border:1px solid var(--line-light);
  border-radius:999px;
  overflow:hidden;
  flex:none;
}
.cart-qty-btn {
  width:32px;
  height:32px;
  border:none;
  background:#fff;
  color:var(--text-dark);
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  line-height:1;
}
.cart-qty-btn:hover {
  background:var(--bg-sage);
}
.cart-qty-input {
  width:40px;
  height:32px;
  border:none;
  border-left:1px solid var(--line-light);
  border-right:1px solid var(--line-light);
  text-align:center;
  font-family:var(--font-body);
  font-weight:600;
  font-size:14px;
  -moz-appearance:textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance:none;
  margin:0;
}
.cart-item-line-total {
  font-family:var(--font-display);
  font-weight:800;
  color:var(--text-dark);
  font-size:0.98rem;
  white-space:nowrap;
  flex:none;
}
.cart-item-remove {
  width:36px;
  height:36px;
  border-radius:50%;
  border:none;
  background:rgba(220,38,38,0.08);
  color:#dc2626;
  font-size:14px;
  cursor:pointer;
  flex:none;
  transition:background 0.2s ease;
}
.cart-item-remove:hover {
  background:rgba(220,38,38,0.16);
}
.cart-summary {
  background:#fff;
  border-radius:22px;
  padding:26px;
  box-shadow:0 20px 50px -32px rgba(15,27,61,0.3);
  position:sticky;
  top:calc(var(--header-height, 96px) + var(--topbar-height, 38px) + var(--announce-height, 0px) + var(--vat-banner-height, 0px) + 20px);
  margin-top:-240px;
}
.cart-summary h3 {
  margin:0 0 18px;
  font-family:var(--font-display);
  font-size:1.15rem;
  color:var(--text-dark);
}
.cart-summary-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid var(--line-light);
  font-size:0.95rem;
  color:var(--label-gray);
}
.cart-summary-row strong {
  color:var(--text-dark);
  font-weight:700;
}
.cart-summary-total {
  border-bottom:none;
  padding-top:14px;
  font-size:1.05rem;
}
.cart-summary-total span {
  color:var(--text-dark);
  font-weight:700;
}
.cart-summary-total strong {
  font-family:var(--font-display);
  font-size:1.3rem;
  color:var(--brand-blue);
}
.cart-summary .vat-note {
  margin:2px 0 20px;
}
.cart-whatsapp-btn {
  width:100%;
  justify-content:center;
  align-items:center;
  min-height:52px;
  background:linear-gradient(120deg,#1fb855,#25d366);
  box-shadow:0 10px 26px -10px rgba(37,211,102,0.55);
  margin-bottom:10px;
}
.cart-whatsapp-btn:hover {
  filter:brightness(1.05);
}
.cart-continue-btn {
  display:flex;
  align-items:center;
  width:100%;
  justify-content:center;
  min-height:52px;
  margin-bottom:10px;
  padding:13px 22px;
  box-sizing:border-box;
}
.cart-clear-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  background:none;
  border:none;
  color:var(--label-gray);
  font-size:13px;
  font-weight:600;
  padding:8px;
  cursor:pointer;
  transition:color 0.2s ease;
}
.cart-clear-btn:hover {
  color:#dc2626;
}
@media (max-width:980px) {
  .cart-layout {
    grid-template-columns:1fr;
  }
  .cart-summary {
    position:static;
    margin-top:0;
  }
}
@media (max-width:640px) {
  .cart-item {
    grid-template-columns:56px 1fr;
    grid-template-areas:"thumb info" "qty qty" "total remove";
    row-gap:10px;
  }
  .cart-item-thumb-link {
    grid-area:thumb;
  }
  .cart-item-thumb {
    width:56px;
    height:56px;
  }
  .cart-item-info {
    grid-area:info;
  }
  .cart-item-qty {
    grid-area:qty;
    justify-self:start;
  }
  .cart-item-line-total {
    grid-area:total;
  }
  .cart-item-remove {
    grid-area:remove;
    justify-self:end;
  }
  /* Order summary CTAs: cap width and center instead of stretching edge to
     edge inside the card — matches the tighter, app-like button sizing used
     elsewhere on mobile rather than a full-bleed bar. */
  .cart-summary {
    padding:22px 20px;
  }
  .cart-whatsapp-btn,
  .cart-continue-btn {
    display:flex;
    width:100%;
    max-width:min(260px, 82%);
    margin-left:auto;
    margin-right:auto;
  }
  .cart-clear-btn {
    width:auto;
    margin:4px auto 0;
  }
}
