/* E-commerce (/ecommerce). Loaded only by that page, after pages.css and crm.css (the order test uses the CRM
   page's stepper styles). Markup: website_2026-11_ecommerce/build/ecommerce.py. */

/* ---------- Hero ---------- */
@media (min-width: 1001px) { .ec-hero .sp-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; } }
.ec-hero h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.ec-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: #2A1F14; color: #CDBFAE; font-size: .8rem; }
.ec-card-top p { margin: 0; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: .84rem; }
.ec-card-top i { width: 10px; height: 10px; border-radius: 50%; background: #E2A04A; display: inline-block; }
.ec-orders { padding: 8px 18px 10px; }
.ec-orders li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #F0F2F5; font-size: .92rem; color: #374151; }
.ec-orders li:first-child { border-top: 0; }
.ec-orders b { color: #111827; margin-right: 6px; font-variant-numeric: tabular-nums; }
.ec-orders .chip { font-size: .76rem; padding: 3px 10px; flex: none; }

/* ---------- Order test (screens) ---------- */
.cx-items { display: grid; gap: 8px; }
.cx-items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid #E3E6EA; font-size: .92rem; color: #111827; font-variant-numeric: tabular-nums; }
.cx-items b { display: block; font-size: .92rem; }
.cx-items small { display: block; color: #6B7280; font-size: .8rem; }
.cx-items .is-total { background: #F5F7FA; font-weight: 700; }
.ec-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 28px; }
.ec-after p { margin: 0; color: var(--text-2); max-width: 40em; }

/* ---------- What we do ---------- */
.ec-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ec-kinds li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 14px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ec-kinds .sp-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-pale); color: var(--blue-deep); }
.ec-kinds .sp-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ec-kinds h3 { font-size: 1.08rem; margin: 3px 0 6px; }
.ec-kinds p { margin: 0; color: var(--text-2); font-size: .97rem; }

/* ---------- Test list ---------- */
.ec-tests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ec-tests li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: .97rem; }
.ec-tests svg { width: 18px; height: 18px; margin-top: 3px; color: var(--green); }

/* ---------- Work ---------- */
.ec-case { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.ec-case h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 10px; }
.ec-case p:not(.eyebrow) { color: var(--text-2); }
.ec-shot { margin: 0; }
.ec-shot img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.ec-more { font-weight: 700; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.ec-more::after { content: "\2192"; margin-left: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ec-hero-art { max-width: 560px; }
  .ec-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ec-case { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px 20px; }
  .ec-tests { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .ec-kinds { grid-template-columns: minmax(0, 1fr); }
  .ec-kinds li { padding: 18px; grid-template-columns: 42px minmax(0, 1fr); }
  .ec-kinds .sp-ico { width: 42px; height: 42px; }
  .ec-after .btn { width: 100%; }
}
@media (max-width: 480px) {
  .ec-hero-art { padding: 14px; border-radius: 18px; }
  .ec-card-top > span { display: none; }
  .ec-orders { padding: 6px 12px 8px; }
  .ec-orders li { flex-wrap: wrap; }
}
