/* Cart offcanvas — misma familia que header / menú */
#offcanvas-cart.sc-header-offcanvas {
  width: min(340px, 92vw) !important;
}

#offcanvas-cart .offcanvas-body,
.sc-cart-body {
  background: #fff !important;
  padding: 0.85rem 0.75rem 1.1rem !important;
}

.sc-cart-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0.85rem;
}

.sc-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.sc-cart-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.55rem;
  border: 0 !important;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 32, 85, 0.05);
}

.sc-cart-thumb {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f7f9fc;
  display: block;
}

.sc-cart-thumb img,
.sc-cart-item .cart-img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
}

.sc-cart-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sc-cart-top {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.sc-cart-title,
a.sc-cart-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #002055 !important;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  text-transform: none !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sc-cart-remove {
  appearance: none;
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 32, 85, 0.1);
  background: rgba(255, 255, 255, 0.95);
  color: rgba(0, 32, 85, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out;
}

.sc-cart-remove:hover {
  color: #bd0811;
  border-color: rgba(189, 8, 17, 0.25);
  background: #fff;
}

.sc-cart-remove i {
  font-size: 0.85rem;
  line-height: 1;
}

.sc-cart-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.sc-cart-qty {
  color: rgba(0, 32, 85, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
}

.sc-cart-price-block {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  max-width: 100%;
}

.sc-cart-price {
  color: #002055 !important;
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.sc-cart-price.is-normal {
  color: #002055 !important;
}

.sc-cart-price.is-sale {
  color: #bd0811 !important;
}

/* legacy gold accent — map to navy so old markup doesn't flash mustard */
.sc-cart-price.is-accent {
  color: #002055 !important;
}

.sc-cart-price-was {
  color: rgba(0, 32, 85, 0.48) !important;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: line-through;
  line-height: 1.2;
}

.sc-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 1.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #bd0811;
  color: #fff !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  box-shadow: 0 3px 8px rgba(189, 8, 17, 0.22);
}

.sc-cart-price-block.is-line-total .sc-cart-price {
  font-size: 1.05rem;
}

.sc-cart-price-block.is-checkout .sc-cart-price {
  font-size: 0.95rem;
}

.sc-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 2rem 0.75rem;
  text-align: center;
  list-style: none;
}

.sc-cart-empty-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 32, 85, 0.05);
  color: #002055;
  font-size: 1.2rem;
}

.sc-cart-empty-text {
  margin: 0;
  color: rgba(0, 32, 85, 0.65);
  font-size: 0.9rem;
  font-weight: 700;
}

.sc-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.sc-cart-cta,
a.sc-cart-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #ffd56a 0%, #fcb92c 55%, #f0a20f 100%) !important;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  box-shadow:
    0 6px 16px rgba(252, 185, 44, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), filter 160ms ease-out, box-shadow 180ms ease-out;
}

.sc-cart-cta:hover,
a.sc-cart-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #fff !important;
  background: linear-gradient(135deg, #ffe08a 0%, #ffc94a 45%, #f5b01a 100%) !important;
  box-shadow:
    0 10px 22px rgba(252, 185, 44, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}

.sc-cart-secondary,
a.sc-cart-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 32, 85, 0.28) !important;
  background: transparent !important;
  color: #002055 !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 140ms ease-out, border-color 140ms ease-out;
}

.sc-cart-secondary:hover,
a.sc-cart-secondary:hover {
  background: rgba(0, 32, 85, 0.05) !important;
  border-color: #002055 !important;
  color: #002055 !important;
}

/* Page /site/cart — compact checkout family */
.sc-cart-page.sc-checkout {
  background: #f7f9fc;
}

.sc-cart-page-head .sc-cart-page-lead {
  margin: 0.55rem 0 0;
  color: rgba(0, 32, 85, 0.58);
  font-size: 0.92rem;
  font-weight: 600;
}

.sc-cart-page-alert {
  margin: 0 0 1rem;
  padding: 0.9rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(220, 53, 69, 0.35);
  background: rgba(220, 53, 69, 0.08);
  color: #002055;
  font-size: 0.9rem;
}

.sc-cart-page-alert strong {
  display: block;
  color: #8a1f2b;
  font-size: 0.95rem;
  font-weight: 700;
}

.sc-cart-page-alert-hint {
  margin: 0.35rem 0 0.55rem;
  color: rgba(0, 32, 85, 0.72);
  font-size: 0.84rem;
  font-weight: 500;
}

.sc-cart-page-alert-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sc-cart-page-alert-list li {
  line-height: 1.35;
}

.sc-cart-page-alert-list a {
  color: #002055;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: uppercase;
}

.sc-cart-page-alert-meta {
  color: rgba(0, 32, 85, 0.65);
  font-weight: 500;
  font-size: 0.84rem;
}

.sc-cart-page-stock-msg {
  margin: 0.15rem 0 0.2rem;
  color: #8a1f2b;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sc-cart-page-stock-msg i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sc-cart-page .sc-checkout-panel,
.sc-cart-page .sc-cart-page-panel {
  padding: 1.05rem 1.1rem 1.15rem !important;
}

.sc-cart-page-trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(0, 32, 85, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sc-cart-page-trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(0, 32, 85, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
}

.sc-cart-page-trust i {
  color: #002055;
  font-size: 1rem;
}

.sc-cart-page .sc-cart-page-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
}

.sc-cart-page article.sc-cart-page-item,
.sc-cart-page .sc-cart-page-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.9rem 0.95rem !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(0, 32, 85, 0.08) !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 32, 85, 0.05) !important;
  transition: box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease, background-color 160ms ease;
  scroll-margin-top: 5.5rem;
}

.sc-cart-page article.sc-cart-page-item:hover,
.sc-cart-page .sc-cart-page-item:hover {
  box-shadow: 0 8px 22px rgba(0, 32, 85, 0.08) !important;
}

.sc-cart-page article.sc-cart-page-item.is-stock-issue,
.sc-cart-page .sc-cart-page-item.is-stock-issue {
  border-color: rgba(220, 53, 69, 0.55) !important;
  background: rgba(220, 53, 69, 0.06) !important;
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.18), 0 6px 18px rgba(220, 53, 69, 0.1) !important;
}

.sc-cart-page article.sc-cart-page-item.is-stock-issue:hover,
.sc-cart-page .sc-cart-page-item.is-stock-issue:hover {
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.28), 0 10px 24px rgba(220, 53, 69, 0.14) !important;
}

.sc-cart-page article.sc-cart-page-item.is-stock-issue .sc-cart-page-title,
.sc-cart-page .sc-cart-page-item.is-stock-issue .sc-cart-page-title {
  color: #8a1f2b !important;
}

.sc-cart-page .sc-cart-page-thumb {
  flex: 0 0 5.5rem !important;
  width: 5.5rem !important;
  height: 5.5rem !important;
  max-width: 5.5rem !important;
  max-height: 5.5rem !important;
  border-radius: 0.85rem !important;
  overflow: hidden !important;
  background: #f7f9fc !important;
  border: 1px solid rgba(0, 32, 85, 0.08) !important;
  display: block !important;
}

.sc-cart-page .sc-cart-page-thumb a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.sc-cart-page .sc-cart-page-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 5.5rem !important;
  object-fit: contain !important;
  display: block !important;
}

.sc-cart-page .sc-cart-page-meta {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
}

.sc-cart-page .sc-cart-page-top {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.4rem !important;
}

.sc-cart-page .sc-cart-page-title,
.sc-cart-page a.sc-cart-page-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #002055 !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

.sc-cart-page .sc-cart-page-sku {
  color: rgba(0, 32, 85, 0.48) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}

.sc-cart-page .sc-cart-page-unit {
  color: rgba(0, 32, 85, 0.62) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

.sc-cart-page .sc-cart-page-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  margin-top: 0.35rem !important;
  flex-wrap: wrap !important;
}

.sc-cart-page .sc-cart-page-qty {
  display: flex !important;
  align-items: center !important;
}

.sc-cart-page .sc-cart-page-qty-controls {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.1rem !important;
  padding: 0.12rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 32, 85, 0.14) !important;
  background: #f7f9fc !important;
}

.sc-cart-page .sc-cart-page-qty-btn,
.sc-cart-page button.sc-cart-page-qty-btn,
.sc-cart-page .btn.sc-cart-page-qty-btn,
.sc-cart-page .btn.btn-minus.sc-cart-page-qty-btn,
.sc-cart-page .btn.btn-plus.sc-cart-page-qty-btn {
  width: 1.7rem !important;
  height: 1.7rem !important;
  min-width: 1.7rem !important;
  min-height: 1.7rem !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #002055 !important;
  background-color: #002055 !important;
  color: #fff !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.sc-cart-page .sc-cart-page-qty-btn:hover,
.sc-cart-page .btn.sc-cart-page-qty-btn:hover {
  background: #00163d !important;
  background-color: #00163d !important;
  color: #fff !important;
}

.sc-cart-page .sc-cart-page-qty-btn i {
  font-size: 0.9rem !important;
  color: #fff !important;
  line-height: 1 !important;
}

.sc-cart-page .sc-cart-page-qty-input,
.sc-cart-page input.input-qty.sc-cart-page-qty-input,
.sc-cart-page .input-qty {
  width: 2.1rem !important;
  max-width: 2.1rem !important;
  min-height: 1.7rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #002055 !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.sc-cart-page .sc-cart-page-line {
  margin: 0 !important;
  color: #002055 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.sc-cart-page .sc-cart-page-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  padding: 2rem 1rem !important;
  text-align: center !important;
}

.sc-cart-page .sc-cart-page-summary {
  padding: 1.2rem 1.15rem 1.25rem !important;
}

.sc-cart-page .sc-cart-summary-title {
  margin: 0 0 0.95rem !important;
  color: #002055 !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}

.sc-cart-page .sc-cart-summary-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  margin: 0 0 1.15rem !important;
  padding: 0.95rem 1rem !important;
  border-radius: 0.95rem !important;
  background: #f7f9fc !important;
  border: 1px solid rgba(0, 32, 85, 0.08) !important;
}

.sc-cart-page .sc-cart-summary-row {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
}

.sc-cart-page .sc-cart-summary-row.is-total {
  margin-top: 0.15rem !important;
  padding-top: 0.75rem !important;
  border-top: 1px solid rgba(0, 32, 85, 0.1) !important;
}

.sc-cart-page .sc-cart-summary-row.is-was .sc-cart-summary-label,
.sc-cart-page .sc-cart-summary-value.is-was {
  color: rgba(0, 32, 85, 0.45) !important;
  font-weight: 600 !important;
  text-decoration: line-through;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.88rem !important;
}

.sc-cart-page .sc-cart-summary-row.is-was .sc-cart-summary-label {
  text-decoration: none !important;
}

.sc-cart-page .sc-cart-summary-row.is-savings .sc-cart-summary-label {
  color: #bd0811 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
}

.sc-cart-page .sc-cart-summary-value.is-savings {
  color: #bd0811 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

.sc-cart-page .sc-cart-page-unit .sc-cart-price-block {
  margin-left: 0.2rem;
}

.sc-cart-page .sc-cart-page-line-wrap {
  margin: 0 !important;
  text-align: right;
}

.sc-cart-mini-savings {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(189, 8, 17, 0.06);
  border: 1px solid rgba(189, 8, 17, 0.14);
}

.sc-cart-mini-savings-label {
  color: #bd0811;
  font-size: 0.82rem;
  font-weight: 800;
}

.sc-cart-mini-savings-amount {
  color: #bd0811;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sc-cart-page .sc-cart-summary-label {
  color: rgba(0, 32, 85, 0.58) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

.sc-cart-page .sc-cart-summary-row.is-total .sc-cart-summary-label {
  color: #002055 !important;
  font-size: 0.9rem !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  font-weight: 800 !important;
}

.sc-cart-page .sc-cart-summary-value {
  color: #002055 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
}

.sc-cart-page .sc-cart-summary-amount,
.sc-cart-page #total-cart {
  color: #002055 !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1.15 !important;
}

.sc-cart-page .sc-cart-summary-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  margin: 0 !important;
}

.sc-cart-page .sc-cart-page-summary .sc-cart-cta,
.sc-cart-page .sc-cart-page-summary a.sc-cart-cta {
  width: 100% !important;
  min-height: 2.85rem !important;
  font-size: 0.95rem !important;
}

.sc-cart-page .sc-cart-page-summary .sc-cart-secondary,
.sc-cart-page .sc-cart-page-summary a.sc-cart-secondary {
  width: 100% !important;
  min-height: 2.65rem !important;
}

@media (min-width: 1200px) {
  .sc-cart-page .sc-cart-page-summary {
    position: sticky;
    top: 5.5rem;
  }
}

@media (max-width: 575.98px) {
  .sc-cart-page article.sc-cart-page-item,
  .sc-cart-page .sc-cart-page-item {
    gap: 0.7rem !important;
    padding: 0.75rem 0.65rem !important;
  }

  .sc-cart-page .sc-cart-page-thumb {
    flex-basis: 4.35rem !important;
    width: 4.35rem !important;
    height: 4.35rem !important;
    max-width: 4.35rem !important;
    max-height: 4.35rem !important;
  }

  .sc-cart-page .sc-cart-page-thumb img {
    max-height: 4.35rem !important;
  }

  .sc-cart-page .sc-cart-page-title,
  .sc-cart-page a.sc-cart-page-title {
    font-size: 0.82rem !important;
  }
}
