/**
 * Additive stylesheet for the new shop features (cart, checkout, account,
 * returns). Deliberately kept separate from assets/css/app.css so the
 * original theme file is never touched. Reuses the site's existing design
 * tokens (colors, radii, fonts) rather than inventing a new visual language:
 *   olive  #444B28   gold accent #D4AF37   cream bg #FFFAEE
 *   card bg #f9f7f4  body text #45474f     headings: "Playfair Display"
 *   body font: "Poppins"
 */

/* ── Header cart icon + badge ──────────────────────────────────────────── */
.ortodoxo-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fafafa;
  background: rgba(250, 250, 250, .12);
  transition: background .2s ease;
}
.ortodoxo-cart-btn:hover { background: rgba(212, 175, 55, .35); }
.ortodoxo-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #D4AF37;
  color: #121010;
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ortodoxo-cart-floater {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ortodoxo-cart-floater .ortodoxo-cart-btn {
  width: 52px;
  height: 52px;
  background: #444B28;
  color: #fafafa;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.ortodoxo-cart-floater .ortodoxo-cart-btn:hover { background: #D4AF37; color: #121010; }

/* ── Add-to-cart controls injected into .pricing-table-row ──────────────── */
.pricing-table-row {
  flex-wrap: wrap;
  row-gap: 10px;
}
.pricing-table-cart {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(146, 148, 159, .3);
  border-radius: 999px;
  overflow: hidden;
}
.qty-btn {
  border: none;
  background: rgba(68, 75, 40, .08);
  color: #444B28;
  width: 30px;
  height: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.qty-btn:hover { background: rgba(212, 175, 55, .25); }
.qty-input {
  width: 44px;
  height: 30px;
  border: none;
  text-align: center;
  font-size: 13px;
  color: #45474f;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cus-btn--sm {
  padding: 8px 18px !important;
  font-size: 13px !important;
  border-radius: 999px !important;
}
.add-to-cart-btn.added { background-color: #444B28 !important; }

/* ── Shared shop page shell (cart / checkout / account / order pages) ──── */
.shop-page { padding: 64px 0 96px; background: #FFFAEE; min-height: 60vh; }
.shop-page h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: #121010;
  margin-bottom: 24px;
}
.shop-page h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  color: #121010;
  margin-bottom: 16px;
}
.shop-nav {
  padding: 20px 0;
  border-bottom: 1px solid rgba(146, 148, 159, .15);
  background: #fff;
}
.shop-empty {
  padding: 48px 24px;
  text-align: center;
  color: #92949F;
  background: #f9f7f4;
  border-radius: 16px;
}

/* ── Cart lines ──────────────────────────────────────────────────────────── */
.cart-lines { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  background: #f9f7f4;
  border: 1px solid rgba(212, 175, 55, .25);
  border-radius: 14px;
  padding: 16px 20px;
}
.cart-line-title { font-weight: 700; color: #444B28; }
.cart-line-sub { font-size: 13px; color: #92949F; }
.cart-line-price { font-weight: 700; color: #121010; min-width: 90px; text-align: right; }
.cart-line-remove {
  border: none; background: none; color: #f87171; cursor: pointer; font-size: 13px;
  text-decoration: underline;
}
.cart-summary {
  background: #f9f7f4;
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  margin-left: auto;
}
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 15px; color: #45474f; }
.cart-summary-total { font-weight: 700; font-size: 20px; color: #121010; border-top: 1px solid rgba(146,148,159,.2); padding-top: 12px; margin-top: 8px; }

/* ── Forms (checkout / account) ─────────────────────────────────────────── */
.ortodoxo-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .ortodoxo-form-grid { grid-template-columns: 1fr; } }
.ortodoxo-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ortodoxo-field label { font-size: 13px; font-weight: 600; color: #444B28; }
.ortodoxo-input, .ortodoxo-select {
  border-radius: 12px;
  border: 1px solid rgba(146, 148, 159, .35);
  background: #fff;
  padding: 13px 18px;
  color: #45474f;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  width: 100%;
}
.ortodoxo-input:focus, .ortodoxo-select:focus { outline: none; border-color: #D4AF37; }
.ortodoxo-field textarea.ortodoxo-input { min-height: 90px; resize: vertical; }

/* ── Order cards (cuenta.html) ──────────────────────────────────────────── */
.order-card {
  background: #f9f7f4;
  border: 1px solid rgba(212, 175, 55, .25);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.order-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.order-number { font-weight: 700; color: #121010; }
.order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.order-status--new { background: rgba(146, 148, 159, .18); color: #45474f; }
.order-status--paid { background: rgba(34, 197, 94, .15); color: #22c55e; }
.order-status--processing { background: rgba(212, 175, 55, .2); color: #a3801f; }
.order-status--shipped { background: rgba(59, 130, 246, .15); color: #3b82f6; }
.order-status--delivered { background: rgba(34, 197, 94, .25); color: #16803c; }
.order-status--refunded,
.order-status--cancelled { background: rgba(239, 68, 68, .12); color: #f87171; }
.order-lines { font-size: 13px; color: #666; margin-bottom: 10px; }
.order-lines div { margin-bottom: 2px; }
.order-tracking a { color: #444B28; text-decoration: underline; font-size: 13px; }

/* ── Small helper badges ─────────────────────────────────────────────────── */
.shop-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #a3801f;
  background: rgba(212, 175, 55, .18);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
