/* Storefront colours and offers. Responsive column counts and card sizes
   belong to public-shop.css, so the two can be maintained independently. */
:root {
  --navy: #172f70;
  --ink: #182f58;
  --muted: #506282;
  --blue: #173f86;
  --line: #cdd7ec;
  --yellow: #ffd239;
  --green: #128344;
  background: #f3f6fc;
}

.store-header { border-bottom-color: #cdd7ec; }
.brand-name, .product-title { color: var(--navy); font-weight: 800; }
.brand-mark { background: var(--navy); }
.hero { background: #e8effc; border-bottom-color: var(--line); }
.hero::before, .hero::after { display: none; }
.hero-title { font-weight: 800; letter-spacing: -.025em; }
.hero-description, .hero-eyebrow { color: #405a83; }
.hero-cta { box-shadow: 0 3px 0 #101f4b; }
.hero-plan-summary { margin-top: 5px; color: var(--navy); }
.hero-plan-summary strong { font-weight: 800; }

.condition-options { background: #e4eaf7; }
.condition-option input:checked + span { background: var(--navy); }
.product-card {
  border-color: #ccd6e9;
  box-shadow: 0 4px 16px #172f700a;
  overflow: hidden;
}
.product-media, .detail-gallery { background: #f2f5fc; }
.condition-tag { color: var(--navy); background: #e6edfb; }
.condition-tag[data-condition="new"] { color: #106338; background: #e3f4e8; }
.price-block { margin-bottom: 2px; }
.cash-price { color: var(--navy); font-weight: 800; }
.product-actions { border-top-color: #d7dfef; }
.product-actions .button { border-radius: 9px; }
.product-button { background: var(--navy); color: white; }
.product-actions .contact-line { background: var(--green); color: white; }

.installment-summary { margin-block: 3px 1px; }
.installment-summary .down-payment {
  display: inline-flex; width: fit-content; max-width: 100%;
  align-items: center; justify-content: flex-start;
  gap: 4px; padding: 0; border: 0;
  border-radius: 0; background: transparent; color: var(--navy); line-height: 1.35;
}
.installment-summary .down-payment-label {
  padding: 0; background: transparent; color: var(--navy);
  font-size: .75rem; font-weight: 700;
}
.installment-summary .down-payment-value {
  padding: 1px 5px; border-radius: 4px;
  background: var(--yellow); color: var(--navy);
  font-size: .9rem; font-weight: 800; white-space: nowrap;
}
.installment-table {
  width: min(100%, 168px); margin-top: 4px; table-layout: fixed;
  border-spacing: 0; border: 1px solid #d2dcef;
  border-radius: 0 0 8px 8px; overflow: hidden;
  color: var(--navy); font-size: .8rem; line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.installment-table caption {
  padding: 3px 5px; border-radius: 8px 8px 0 0;
  background: var(--navy); color: white; text-align: center;
  font-size: .73rem; font-weight: 600;
}
.installment-table td { width: 50%; padding: 4px; text-align: center; background: #f0f4fd; }
.installment-table td + td { border-left: 1px solid #dce3f2; }
.installment-table tr + tr td { border-top: 1px solid #dce3f2; }
.installment-table .installment-term {
  display: block; margin-bottom: 1px; color: #506282;
  font-size: .72rem; font-weight: 500;
}
.installment-table .installment-amount {
  display: inline-block; font-size: inherit; font-weight: 800; white-space: nowrap;
}
.installment-table td.installment-long { background: #fff9df; }
.installment-table .installment-long .installment-amount {
  padding: 0 5px; border-radius: 4px; background: #ffe783;
}
.installment-unavailable { color: #63718c; font-size: .75rem; font-weight: 500; }
.plan-section { padding: 12px; border-color: var(--line); background: #f7f9fe; }
.plan-section h3 { color: var(--navy); font-size: 1rem; }
.plan-section .installment-table { width: min(100%, 220px); font-size: .9rem; }
.plan-section .installment-table td { padding: 5px 8px; }
.plan-section .installment-term { font-size: .85rem; }
.hero-installment .installment-summary .down-payment { width: fit-content; gap: 4px; }
.store-footer { border-top-color: var(--line); color: #4c6081; }

@media (max-width: 540px) {
  .installment-summary .down-payment { padding: 0; gap: 3px; }
  .installment-summary .down-payment-label { font-size: .7rem; }
  .installment-summary .down-payment-value { font-size: .85rem; padding-inline: 4px; }
  .installment-table { width: min(100%, 136px); font-size: .75rem; }
  .installment-table td { padding: 3px 2px; }
  .installment-table caption { font-size: .68rem; padding-block: 2px; }
  .installment-table .installment-term { font-size: .65rem; }
  .installment-table .installment-amount-wide { font-size: .68rem; letter-spacing: -.02em; }
  .installment-table .installment-long .installment-amount { padding-inline: 2px; }
  .installment-unavailable { font-size: .7rem; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .product-card { transition: box-shadow .15s ease, border-color .15s ease; }
  .product-card:hover { border-color: #9bafd6; box-shadow: 0 6px 18px #172f7014; }
}
