/* Cart page (Rev. November 2026): templates/page-cart.html + WooCommerce's
   Cart block, restyled. Button rule: from the cart on, buttons use the
   default solid style (theme.json), not doodles. */

.rr-page--cart { padding-top: var(--wp--preset--spacing--40); }

/* On the cart, the header keeps its menu (people add one more thing), but:
   - no Order Now doodle: they're already ordering, and from the cart on
     buttons are solid, never mixed with doodles
   - no newsletter panel between them and checkout */
.woocommerce-cart .site-header__order,
.woocommerce-cart .rr-newsletter { display: none !important; }

/* ---------- Pickup strip ---------- */
.rr-pickup-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 var(--wp--preset--spacing--30);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--wheat);
  color: var(--espresso);
  font: 500 15px/1.4 var(--font-archivo);
}
.rr-pickup-strip__label {
  color: var(--terracotta);
  font: 800 12px/1.3 var(--font-archivo-narrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rr-pickup-strip__addr { font-weight: 700; }
.rr-pickup-strip__note { color: var(--espresso-text); }

/* ---------- Items ---------- */
.wc-block-cart .wc-block-cart-items {
  border-collapse: separate;
  border-spacing: 0;
}
.wc-block-cart .wc-block-cart-items__header { color: var(--espresso-text); font: 800 12px/1.3 var(--font-archivo-narrow); letter-spacing: 0.14em; text-transform: uppercase; }
.wc-block-cart .wc-block-cart-items__row td { border-top: 1px solid color-mix(in srgb, var(--espresso) 12%, transparent); }
.wc-block-cart .wc-block-cart-item__image img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; }
.wc-block-cart .wc-block-components-product-name {
  color: var(--espresso);
  font: 700 17px/1.3 var(--font-archivo);
  text-decoration: none;
}
.wc-block-cart a.wc-block-components-product-name:hover { color: var(--terracotta); }

/* The item's choices, on one line: Iced · Oat · Vanilla Bean */
.wc-block-cart .wc-block-components-product-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--olive);
  font: 700 14px/1.4 var(--font-archivo);
}
.wc-block-cart .wc-block-components-product-details li + li::before { content: "·"; margin: 0 8px; color: color-mix(in srgb, var(--olive) 60%, transparent); }
.wc-block-cart .wc-block-components-product-details__name { font-weight: 600; color: var(--espresso-text); }
.wc-block-cart .wc-block-components-product-metadata__description { display: none; } /* product description: too long here */

.wc-block-cart .wc-block-components-product-price,
.wc-block-cart .wc-block-cart-item__total { color: var(--terracotta); font-weight: 800; }

.wc-block-cart .wc-block-components-quantity-selector {
  border: 1.5px solid color-mix(in srgb, var(--espresso) 20%, transparent);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.wc-block-cart .wc-block-components-quantity-selector::after { display: none; }
.wc-block-cart .wc-block-components-quantity-selector input { color: var(--espresso); font-weight: 700; }
.wc-block-cart .wc-block-components-quantity-selector__button { color: var(--espresso); }
.wc-block-cart .wc-block-cart-item__remove-link { color: var(--terracotta-dark); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Summary ---------- */
.wc-block-cart .wc-block-components-sidebar {
  box-sizing: border-box;
  padding: 22px;
  border: 1.5px solid color-mix(in srgb, var(--espresso) 10%, transparent);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.wc-block-cart .wc-block-cart__totals-title {
  margin: 0 0 8px;
  padding: 0;
  color: var(--espresso);
  font-family: var(--font-drummond);
  font-size: 26px !important;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  text-align: left;
}
.wc-block-cart .wc-block-components-totals-item { color: var(--espresso); }
.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font: 800 20px/1.2 var(--font-archivo); }
.wc-block-cart .wc-block-cart__submit-container { margin-top: 16px; }
.wc-block-cart .wc-block-cart__submit-button { width: 100%; }

/* ---------- Empty cart ---------- */
.rr-empty-cart {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
  border: 1.5px dashed color-mix(in srgb, var(--espresso) 22%, transparent);
  border-radius: var(--radius-lg);
  text-align: center;
}
.rr-empty-cart .rr-empty-cart__title { margin: 0 0 8px; font-size: clamp(28px, 3vw, 36px); line-height: 1.05; }
.rr-empty-cart .rr-empty-cart__text { margin: 0 0 22px; color: var(--espresso-text); }

@media (max-width: 600px) {
  .wc-block-cart .wc-block-components-sidebar { padding: 18px; }
}

/* ---------- Add something to go with it (Square category: Cart Suggestions) ----------
   Same cards and "+" buttons as the menu. Items already in the cart are left
   out, and the row hides itself when there's nothing to suggest. */
.rr-cart-suggestions { margin-top: var(--wp--preset--spacing--50); }
.rr-cart-suggestions:not(:has(.rr-menu-card)) { display: none; }
.rr-cart-suggestions .rr-cart-suggestions__title { margin: 0 0 var(--wp--preset--spacing--20); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.02em; }

/* Options window opened from the cart: the solid button style (theme.json) */
.rr-quick .single_add_to_cart_button.rr-solid-btn {
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: 0 14px 30px rgba(48, 31, 23, 0.12);
  font: 800 15px/1 var(--font-archivo);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.rr-quick .single_add_to_cart_button.rr-solid-btn:is(:hover, :focus) { background: var(--terracotta-dark); }
.rr-quick .single_add_to_cart_button.rr-solid-btn.is-waiting { opacity: 0.5; }
