/*
 * Barbara Rizzi website: the cart (/shopping-cart/), the WordPress theme's page-cart.php (.brc2, its inline styles).
 * Not ported: the sale badge. Added: the coupon applied, with "Remove". Changed: the title clears the fixed header at
 * ≤ 900 px (WordPress hid it under the header); forms wrap the buttons, so the cart works without JavaScript; text 12 px
 * at least, with less letter-spacing (WordPress' colours kept: docs/phases/07-checkout-payments/07a-cart.md).
 */

/* The page's background as on WordPress' WooCommerce pages (woocommerce-br.css: .woocommerce-page): it shows below
   "You may also love.", whose margin leaves .brc2 */
body { background: #faf8f5; }
.brc2 { min-height: 60vh; font-family: var(--br-font-sans); background: #faf8f5; }

/* Top: "Your Selection." and the number of pieces */
.brc2__top { padding: 0; background: #1a1816; }
.brc2__top-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 40px 100px;
}
.brc2__top-left .eye {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b8923a;
}
.brc2__top-left h1 {
  font-family: var(--br-font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: #ffffff;
}
.brc2__top-left h1 em { font-style: italic; color: #b8923a; }
.brc2__top-count {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: right;
  color: rgba(250, 248, 245, 0.4);
}
.brc2__top-count strong {
  display: block;
  font-family: var(--br-font-serif);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  color: #b8923a;
}

/* Trust bar */
.brc2__trust { background: #ffffff; border-bottom: 0.5px solid #e2ddd6; }
.brc2__trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
}
.brc2__trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8580;
}
.brc2__trust span::before { content: '✓'; color: #b8923a; }

/* Lines beside the summary */
.brc2__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}
.brc2__notices { grid-column: 1 / -1; }
.brc2 .woocommerce-error, .brc2 .woocommerce-info, .brc2 .woocommerce-message {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
}
.brc2__item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 0.5px solid #e2ddd6;
}
.brc2__item:first-child { padding-top: 0; }
.brc2__item-img { position: relative; }
.brc2__item-img a { display: block; }
.brc2__item-img img { display: block; width: 100px; height: 133px; object-fit: cover; }
.brc2__item-body { display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0; }
.brc2__item-cat {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8923a;
}
.brc2__item-name {
  display: block;
  margin-bottom: 6px;
  font-family: var(--br-font-serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  color: #1a1816;
}
.brc2__item-name:hover { color: #b8923a; }
.brc2__item-meta { margin-bottom: 12px; font-size: 13px; letter-spacing: 0.02em; color: #8a8580; }
.brc2__item-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brc2__qty { position: relative; display: flex; align-items: center; border: 0.5px solid #e2ddd6; }
.brc2__qty button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: #1a1816;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.brc2__qty button:hover { color: #b8923a; }
.brc2__qty input {
  width: 40px;
  height: 32px;
  font-family: var(--br-font-sans);
  font-size: 14px;
  text-align: center;
  background: #ffffff;
  border: none;
  border-left: 0.5px solid #e2ddd6;
  border-right: 0.5px solid #e2ddd6;
  outline: none;
}
/* The button Enter presses in the quantity field: there for the form, never seen. */
.brc2__qty .brc2__qty-update {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.brc2__item-price { font-size: 16px; font-weight: 400; letter-spacing: 0.04em; color: #1a1816; }
.brc2__item-remove {
  position: absolute;
  top: 24px;
  right: 0;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  color: #c8c2b8;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.brc2__item-remove:hover { color: #1a1816; }

/* WordPress' "Discount code" and "Apply"; the coupon applied and its "Remove" */
.brc2__coupon { display: flex; gap: 8px; margin-top: 24px; }
.brc2__coupon input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  font-family: var(--br-font-sans);
  font-size: 14px;
  background: #ffffff;
  border: 0.5px solid #e2ddd6;
  outline: none;
  transition: border-color 0.2s;
}
.brc2__coupon input:focus { border-color: #b8923a; }
.brc2__coupon button {
  padding: 11px 20px;
  font-family: var(--br-font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  background: #1a1816;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.brc2__coupon button:hover { background: #b8923a; }
.brc2__coupon-applied {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 12px;
  font-size: 13px;
  color: #5a5650;
}
.brc2__coupon-applied strong { font-weight: 600; color: #1a1816; }
.brc2__coupon-applied button {
  padding: 0;
  font-family: var(--br-font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8580;
  background: none;
  border: none;
  border-bottom: 0.5px solid currentColor;
  cursor: pointer;
  transition: color 0.2s;
}
.brc2__coupon-applied button:hover { color: #1a1816; }

/* "Empty cart ×" */
.brc2__empty-cart { margin-top: 28px; text-align: right; }
.brc2__empty-cart-btn {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--br-font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a8a2;
  background: none;
  border: 0.5px solid #e2ddd6;
  cursor: pointer;
  transition: all 0.2s;
}
.brc2__empty-cart-btn:hover { color: #1a1816; border-color: #1a1816; }

/* Empty cart */
.brc2__empty { grid-column: 1 / -1; padding: 80px 40px; text-align: center; }
.brc2__empty h2 {
  margin-bottom: 12px;
  font-family: var(--br-font-serif);
  font-size: 36px;
  font-weight: 300;
  color: #1a1816;
}
.brc2__empty h2 em { font-style: italic; color: #b8923a; }
.brc2__empty p { margin-bottom: 28px; font-size: 15px; color: #8a8580; }
.brc2__empty a {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--br-font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: #1a1816;
  transition: background 0.3s;
}
.brc2__empty a:hover { background: #b8923a; }

/* Order summary and "Secure Purchase" */
.brc2__sidebar { position: sticky; top: 80px; }
.brc2__summary { margin-bottom: 16px; padding: 32px; background: #ffffff; border: 0.5px solid #e2ddd6; }
.brc2__summary h2 {
  margin-bottom: 20px;
  padding-bottom: 14px;
  font-family: var(--br-font-serif);
  font-size: 20px;
  font-weight: 300;
  color: #1a1816;
  border-bottom: 0.5px solid #e2ddd6;
}
.brc2__sum-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
  color: #5a5650;
  border-bottom: 0.5px solid #f0ede8;
}
.brc2__sum-row:last-of-type { border-bottom: none; }
.brc2__sum-row.total { padding-top: 16px; font-size: 16px; font-weight: 500; color: #1a1816; }
.brc2__sum-row.total span:last-child, .brc2__free, .brc2__sum-discount { color: #b8923a; }
.brc2__checkout-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 17px 16px;
  font-family: var(--br-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  background: #b8923a;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.brc2__checkout-btn:hover { background: #a07830; }
.brc2__continue {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #8a8580;
  transition: color 0.2s;
}
.brc2__continue:hover { color: #b8923a; }
.brc2__secure { padding: 20px 24px; background: #ffffff; border: 0.5px solid #e2ddd6; }
.brc2__secure-title {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8580;
}
.brc2__secure-items { display: flex; flex-direction: column; gap: 10px; }
.brc2__secure-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #5a5650; }
.brc2__secure-item::before { content: '🔒'; flex-shrink: 0; font-size: 13px; }

/* "You may also love." */
.brc2__recent { max-width: 1200px; margin: 0 auto 64px; padding: 0 40px; }
.brc2__recent-title {
  margin-bottom: 24px;
  padding-bottom: 14px;
  font-family: var(--br-font-serif);
  font-size: 24px;
  font-weight: 300;
  color: #1a1816;
  border-bottom: 0.5px solid #e2ddd6;
}
.brc2__recent-title em { font-style: italic; color: #b8923a; }
.brc2__recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.brc2__recent-card { display: block; background: #ffffff; }
.brc2__recent-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #f0ede8; }
.brc2__recent-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brc2__recent-info { padding: 12px 14px; }
.brc2__recent-name {
  margin-bottom: 4px;
  font-family: var(--br-font-serif);
  font-size: 15px;
  font-weight: 300;
  color: #1a1816;
}
.brc2__recent-price { font-size: 13px; color: #b8923a; }

@media (max-width: 900px) {
  .brc2__layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px 64px; }
  .brc2__top-inner { padding: 88px 20px 20px; }
  .brc2__trust-inner { gap: 6px 16px; padding: 12px 20px; }
  .brc2__trust span { letter-spacing: 0.04em; }
  .brc2__sidebar { position: static; }
  .brc2__recent { padding: 0 20px; }
  .brc2__recent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .brc2__coupon { flex-direction: column; }
  .brc2__item { grid-template-columns: 80px 1fr; gap: 14px; }
  .brc2__item-img img { width: 80px; height: 107px; }
  .brc2__item-name { font-size: 16px; }
  .brc2__recent-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
}
