/* =========================================================
   Shop flow: cart, checkout, order confirmation
   ========================================================= */
.shop {
  --brand: #f51313;
  --brand-dark: #d10d0d;
  --teal: #04626c;
  --ink: #1f2933;
  --ink-2: #3e4c59;
  --muted: #7b8794;
  --line: #e4e7eb;
  --soft: #f7f9fa;
  --bg: #f3f5f7;
  --ok: #1a7f4b;
  --ok-bg: #e6f6ee;
  --radius: 14px;
  background: var(--bg);
  padding: 120px 0 72px;
  color: var(--ink-2);
  min-height: 70vh;
}
.shop *, .shop *::before, .shop *::after { box-sizing: border-box; }
.shop a { text-decoration: none; }
.shop h1, .shop h2, .shop h3 { color: var(--ink); }

.shop-head { margin-bottom: 28px; }
.shop-title { font-size: 30px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.shop-sub { color: var(--muted); margin: 0; font-size: 15px; }

/* Steps (3-step progress bar) */
.steps { list-style: none; margin: 0 0 26px; padding: 18px 12px 14px; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16,24,40,.06); max-width: 620px; counter-reset: none; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.25; }
.steps li a { display: contents; color: inherit; }
/* connector line from the previous step to this one */
.steps li + li::before { content: ""; position: absolute; top: 15px; right: calc(50% + 22px); left: calc(-50% + 22px); height: 3px; border-radius: 3px; background: var(--line); }
.steps li.is-done + li::before { background: var(--ok); }
.steps .num { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.steps li.is-done { color: var(--ok); }
.steps li.is-done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.is-active { color: var(--ink); }
.steps li.is-active .num { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(245,19,19,.14); }
.steps .lbl { max-width: 140px; }

/* Layout */
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06); }
.panel-pad { padding: 24px; }
.panel-title { font-size: 18px; font-weight: 700; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.panel-title .badge-num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: inline-grid; place-items: center; }
.sticky { position: sticky; top: 100px; }

/* ---------------- Cart items ---------------- */
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 96px; height: 96px; border-radius: 12px; background: var(--soft); overflow: hidden; display: grid; place-items: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-name { font-size: 16px; font-weight: 600; color: var(--ink); display: inline-block; margin-bottom: 6px; }
.cart-name:hover { color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font-size: 12px; font-weight: 600; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); padding: 3px 10px; border-radius: 999px; }
.unit { font-size: 13px; color: var(--muted); }
.cart-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty form { margin: 0; display: flex; }
.qty a, .qty button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; transition: background .15s; }
.qty a:hover, .qty button:hover { background: var(--soft); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; color: var(--ink); font-size: 15px; }
.link-remove { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.link-remove:hover { color: var(--brand); }
.line-total { font-size: 17px; font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }

/* ---------------- Summary ---------------- */
.ship-meter { background: var(--soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-size: 13px; color: var(--ink-2); }
.ship-meter strong { color: var(--ink); }
.ship-meter.is-free { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.meter { height: 6px; background: #e4e7eb; border-radius: 999px; margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #ff6b3d); border-radius: 999px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; font-size: 15px; }
.sum-row span:last-child { color: var(--ink); font-weight: 600; }
.sum-row .free { color: var(--ok); }
.sum-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 18px; font-weight: 700; color: var(--ink); }
.sum-total small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.btn-primary-x { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; background: var(--brand); color: #fff !important; font-weight: 700; font-size: 16px; padding: 16px 20px; border-radius: 12px; border: 0; margin-top: 20px; transition: background .15s, transform .15s; cursor: pointer; }
.btn-primary-x:hover { background: var(--brand-dark); }
.btn-primary-x:active { transform: translateY(1px); }
.btn-primary-x[disabled] { opacity: .7; cursor: wait; }
.btn-ghost { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 12px; color: var(--ink-2) !important; font-weight: 600; font-size: 14px; border-radius: 12px; }
.btn-ghost:hover { background: var(--soft); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); text-align: center; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.trust i { display: block; font-size: 18px; color: var(--teal); margin-bottom: 6px; }

/* Empty */
.empty { text-align: center; padding: 64px 24px; }
.empty-icon { width: 88px; height: 88px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; margin: 0 auto 20px; font-size: 34px; color: var(--muted); }
.empty h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 24px; }
.empty .btn-primary-x { display: inline-flex; width: auto; padding: 14px 32px; }

/* ---------------- Checkout form ---------------- */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s; font-family: inherit; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%237b8794' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(4,98,108,.12); }
.field input.is-invalid, .field.has-error input { border-color: var(--brand); }
.field .err { display: none; color: var(--brand); font-size: 12.5px; margin-top: 5px; }
.field .err.show, .field.has-error .err { display: block; }
.field textarea { min-height: 96px; resize: vertical; }
.field .input-icon { position: relative; }
.field .input-icon i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.notice { display: flex; gap: 12px; align-items: flex-start; background: #e7f3f4; color: #0b4a51; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.notice i { margin-top: 3px; }
.notice.warn { background: #fdecec; color: #8a1c1c; }

/* Payment options */
.pay-options { display: grid; gap: 12px; margin-bottom: 18px; }
.pay-opt { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.pay-opt:hover { border-color: #cbd2d9; }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex-shrink: 0; }
.pay-opt .pay-label { font-weight: 600; color: var(--ink); flex: 1; }
.pay-opt .pay-icons { color: var(--muted); font-size: 22px; display: flex; gap: 6px; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.pay-fields { border: 1.5px solid var(--line); border-radius: 12px; padding: 18px; margin-top: -4px; }
.pay-fields[hidden] { display: none; }
/* Neutralise legacy #card-form-container / #paypal-form-container rules in style.css */
.shop #card-form-container label, .shop #paypal-form-container label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.shop #card-form-container input::placeholder, .shop #paypal-form-container input::placeholder { font-style: normal; color: #9aa5b1; opacity: 1; }
.shop .field input::placeholder, .shop .field textarea::placeholder { color: #9aa5b1; }
.mini-thumb img { font-size: 0; }

/* Checkout mini summary */
.mini-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-item:last-of-type { border-bottom: 0; }
.mini-thumb { position: relative; width: 60px; height: 60px; border-radius: 10px; background: var(--soft); flex-shrink: 0; }
.mini-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.mini-thumb .q { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.mini-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mini-var { font-size: 12.5px; color: var(--muted); }
.mini-price { margin-left: auto; font-weight: 600; color: var(--ink); white-space: nowrap; }
.secure-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* Processing overlay */
.processing { position: fixed; inset: 0; background: rgba(255,255,255,.96); z-index: 99999; display: none; place-items: center; text-align: center; padding: 24px; }
.processing.show { display: grid; }
.processing .spin { width: 64px; height: 64px; border-radius: 50%; border: 6px solid #e4e7eb; border-top-color: var(--brand); animation: shopspin .8s linear infinite; margin: 0 auto 22px; }
.processing h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.processing p { color: var(--muted); margin: 0; }
@keyframes shopspin { to { transform: rotate(360deg); } }

/* ---------------- Confirmation ---------------- */
.confirm-hero { text-align: center; padding: 40px 24px 32px; }
.check-badge { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 34px; margin: 0 auto 18px; animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.confirm-hero p { color: var(--muted); max-width: 520px; margin: 0 auto; font-size: 15.5px; }
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.meta-grid div { background: var(--soft); padding: 16px 18px; }
.meta-grid small { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.meta-grid strong { color: var(--ink); font-size: 15px; word-break: break-word; }
.status-pill { display: inline-block; background: #fff4e5; color: #b45309; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.now .dot { border-color: var(--brand); color: var(--brand); }
.timeline h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 3px 0 2px; }
.timeline p { font-size: 13.5px; color: var(--muted); margin: 0; }

.addr { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.addr strong { color: var(--ink); }
.account-card { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, #04626c, #06808d); color: #fff; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.account-card i { font-size: 22px; margin-top: 2px; }
.account-card h3 { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.account-card p { margin: 0; font-size: 14px; opacity: .92; line-height: 1.5; }
.account-card a { color: #fff; font-weight: 700; text-decoration: underline !important; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row .btn-primary-x, .btn-row .btn-outline-x { flex: 1 1 200px; margin-top: 0; }
.btn-outline-x { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line); color: var(--ink) !important; font-weight: 700; padding: 15px 20px; border-radius: 12px; background: #fff; }
.btn-outline-x:hover { border-color: var(--ink); }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
  .shop { padding-top: 100px; }
  .shop-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .shop { padding: 92px 0 48px; }
  .steps { margin-bottom: 20px; padding: 14px 6px 12px; max-width: none; }
  .steps li { font-size: 11.5px; gap: 6px; }
  .steps .num { width: 28px; height: 28px; font-size: 12px; }
  .steps li + li::before { top: 13px; right: calc(50% + 19px); left: calc(-50% + 19px); }
  .shop .container { padding-left: 14px; padding-right: 14px; }
  .shop-title { font-size: 24px; }
  .panel-pad { padding: 18px; }
  .cart-item { grid-template-columns: 76px minmax(0,1fr); gap: 14px; padding: 16px; align-items: start; }
  .cart-thumb { width: 76px; height: 76px; }
  .line-total { grid-column: 2; text-align: left; font-size: 16px; }
  .fgrid { grid-template-columns: 1fr; }
  .confirm-hero { padding: 32px 18px 24px; }
  .confirm-hero h1 { font-size: 24px; }
  .trust { font-size: 11px; }
  /* Sticky mobile checkout bar */
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(16,24,40,.1); z-index: 1000; display: flex; align-items: center; gap: 12px; }
  .mobile-bar .mb-total { font-size: 12px; color: var(--muted); line-height: 1.2; }
  .mobile-bar .mb-total strong { display: block; font-size: 18px; color: var(--ink); }
  .mobile-bar .btn-primary-x { margin: 0; flex: 1; padding: 14px; }
  .has-mobile-bar { padding-bottom: 110px; }
}
@media (min-width: 576px) { .mobile-bar { display: none; } }
@media print {
  header, footer, .section_padding, .btn-row, .steps { display: none !important; }
  .shop { padding: 0; background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ddd; }
}

/* =========================================================
   v2: page banner, cart card, checkout sections, payment tabs
   ========================================================= */
.shop-hero { background: linear-gradient(120deg, #04626c 0%, #034a52 100%); border-bottom: 4px solid #f51313; padding: 118px 0 30px; color: #fff; }
.shop-hero-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; }
.shop-hero h1 { color: #fff; font-size: 34px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
.shop-hero .crumbs { display: flex; gap: 8px; align-items: center; font-size: 14.5px; font-weight: 500; flex-wrap: wrap; }
.shop-hero .crumbs a { color: #ffc4c4; text-decoration: none; }
.shop-hero .crumbs a:hover { color: #fff; }
.shop-hero .crumbs span { color: rgba(255,255,255,.65); }
.shop-hero .crumbs [aria-current] { color: #fff; }
.shop.shop-after-hero { padding-top: 30px; }

/* progress bar on the dark banner */
.steps.on-dark { margin: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); box-shadow: none; min-width: 420px; padding: 14px 10px 12px; }
.steps.on-dark li { color: rgba(255,255,255,.7); }
.steps.on-dark li.is-active { color: #fff; }
.steps.on-dark li.is-done { color: #a7f3d0; }
.steps.on-dark .num { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.steps.on-dark li.is-done .num { background: #1a7f4b; border-color: #1a7f4b; color: #fff; }
.steps.on-dark li.is-active .num { background: #f51313; border-color: #f51313; color: #fff; box-shadow: 0 0 0 5px rgba(245,19,19,.25); }
.steps.on-dark li + li::before { background: rgba(255,255,255,.25); }
.steps.on-dark li.is-done + li::before { background: #34d399; }

/* free-shipping card */
.ship-card { display: flex; gap: 14px; align-items: center; padding: 16px 20px; margin-bottom: 16px; }
.ship-card > i { color: var(--brand); font-size: 20px; flex: none; }
.ship-card-body { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink-2); }
.ship-card-body strong { color: var(--ink); }
.ship-card .meter { margin-top: 10px; height: 7px; background: #fde2e2; }
.ship-card.is-free { background: var(--ok-bg); }
.ship-card.is-free > i, .ship-card.is-free strong { color: var(--ok); }

/* cart card */
.cart-card-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cart-card-h h2 { font-size: 18px; font-weight: 700; margin: 0; }
.cart-card-h span { font-size: 13.5px; color: var(--muted); }
.cart-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-areas: "thumb info qty end"; gap: 20px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row .cart-thumb { grid-area: thumb; }
.cart-row .cart-info { grid-area: info; min-width: 0; }
.cart-row .qty { grid-area: qty; border-radius: 999px; }
.cart-row .qty a, .cart-row .qty button { border-radius: 50%; }
.cart-row .cart-end { grid-area: end; text-align: right; min-width: 110px; }
.cart-info .chip { display: inline-block; margin: 0 0 8px; background: #e7f3f4; border-color: #cde6e9; color: var(--teal); }
.cart-end .line-total { font-size: 17px; text-align: right; }
.cart-end .line-total small { font-size: 12px; color: var(--muted); font-weight: 600; }
.cart-end .link-remove { margin-top: 6px; }
.continue-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--teal) !important; }
.continue-link:hover { color: var(--ink) !important; }

/* summary */
.summary-card .sum-total { border-top: 1.5px dashed var(--line); }
.card-logos { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.card-logos svg { width: 46px; height: 29px; display: block; }

/* checkout sections */
.co-section { margin-bottom: 20px; }
.co-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.co-head .badge-num { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 1px; }
.co-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.co-head p { font-size: 13.5px; color: var(--muted); margin: 2px 0 0; }
.field .opt { color: var(--muted); font-weight: 400; }

/* payment method tabs + panel */
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pay-tab { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; margin: 0; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.pay-tab:hover { border-color: #cbd2d9; }
.pay-tab input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); flex: none; }
.pay-tab-label { flex: 1; font-weight: 600; color: var(--ink); }
.pay-tab i { font-size: 20px; color: var(--muted); }
.pay-tab:has(input:checked) { border-color: var(--teal); background: #f1f8f9; box-shadow: 0 0 0 3px rgba(4,98,108,.1); }
.pay-tab:has(input:checked) i { color: var(--teal); }
.pay-panel { background: #f7f9fa; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.pay-panel[hidden] { display: none; }
.pay-panel .field input { background: #fff; }
.pay-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.ssl-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

@media (max-width: 991px) {
  .steps.on-dark { min-width: 0; width: 100%; max-width: none; }
}
@media (max-width: 575px) {
  .shop-hero { padding: 96px 0 18px; }
  .shop-hero h1 { font-size: 26px; }
  .shop-hero .crumbs { font-size: 13.5px; }
  .shop-hero-in { gap: 14px; }
  .shop.shop-after-hero { padding-top: 18px; }
  .ship-card { padding: 14px 16px; }
  .cart-card-h { padding: 14px 16px; }
  .cart-row { grid-template-columns: 76px auto minmax(0, 1fr); grid-template-areas: "thumb info info" "thumb qty end"; gap: 10px 14px; padding: 16px; align-items: start; }
  .cart-row .cart-thumb { width: 76px; height: 76px; }
  .cart-row .qty { align-self: center; }
  .cart-row .cart-end { min-width: 0; align-self: center; }
  .cart-end .line-total { font-size: 16px; }
  .co-head h2 { font-size: 17px; }
  .pay-tab { padding: 14px; gap: 10px; }
  .pay-panel { padding: 14px; }
}

/* Solid header on pages with the teal banner (the site header is transparent at the top) */
body:has(.shop-hero) header.header { background: #fff; box-shadow: 0 1px 0 rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.05); }
/* Expiry + CVV stay side by side on phones */
@media (max-width: 575px) {
  .pay-panel .fgrid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .pay-panel .fgrid .full { grid-column: 1 / -1; }
}
