/* ============================================================
   Catálogo Digital — DEMO (restaurant) styles
   Premium, business-neutral. Navy text · blue actions · white
   canvas · light neutral borders · restrained shadows.
   ============================================================ */

:root {
  --navy: #0f2440;
  --navy-soft: #26364f;
  --muted: #5b6b82;
  --muted-2: #7c8aa0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-050: #eef4ff;
  --blue-100: #dfe9ff;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --line: #e7edf5;
  --line-strong: #d7e0ee;
  --green: #16a34a;
  --green-dark: #15803d;
  --danger: #dc2626;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 1px 2px rgba(15, 36, 64, .04), 0 6px 20px rgba(15, 36, 64, .06);
  --shadow-pop: 0 10px 30px rgba(15, 36, 64, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- top utility bar ---------- */
.demo-topbar {
  background: var(--navy); color: #dbe6ff; font-size: 13px;
  position: sticky; top: 0; z-index: 75;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.demo-topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(1200px, calc(100% - 32px)); margin-inline: auto; height: 46px;
}
.demo-topbar__back {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  color: rgba(219, 230, 255, .85); text-decoration: none; font-weight: 600; font-size: 13px;
}
.demo-topbar__back svg { width: 15px; height: 15px; flex-shrink: 0; }
.demo-topbar__back:hover { color: #fff; }
.demo-switcher {
  display: flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,.09); border-radius: 999px; padding: 3px;
}
.demo-sw {
  border: 0; background: transparent; font-family: inherit; cursor: pointer;
  color: rgba(219, 230, 255, .6); font-size: 13px; font-weight: 650;
  padding: 5px 15px; border-radius: 999px; white-space: nowrap;
  text-decoration: none; display: inline-block;
  transition: all .15s var(--ease);
}
.demo-sw:hover { color: #fff; }
.demo-sw--active { background: rgba(255,255,255,.18); color: #fff; cursor: default; }
.demo-sw--active:hover { color: #fff; }
.demo-sw--soon { opacity: .42; cursor: default; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: rgba(255,255,255,.1); color: #fff;
  padding: 4px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .04em;
  font-size: 11px; text-transform: uppercase;
}
.demo-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #7fffd4; }

/* ---------- hero / banner ---------- */
.hero { position: relative; }
.hero__banner {
  position: relative; height: clamp(200px, 28vw, 340px); overflow: hidden;
  background: #21324a;
}
.hero__banner img { width: 100%; height: 100%; object-fit: cover; }
.hero__banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 34, .18) 0%, rgba(8, 18, 34, .58) 100%);
}
.hero__bar { position: relative; margin-top: -54px; }
.hero__card {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; gap: 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 20px 26px 20px;
}
.hero__logo {
  flex: 0 0 auto; width: 104px; height: 104px; margin-top: -62px;
  border-radius: 50%; background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 38px; letter-spacing: .01em;
  border: 5px solid #fff; overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,36,64,.22), 0 0 0 1px rgba(37,99,235,.14);
}
/* Image logo variant — white background, image fills the circular slot */
.hero__logo--img { background: #fff; }
.hero__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero__id { flex: 1 1 auto; min-width: 0; }
.hero__name { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.015em; }
.hero__tag { margin: 4px 0 0; color: var(--muted); font-size: clamp(13.5px, 1.4vw, 15.5px); }
.hero__actions { flex: 0 0 auto; align-self: center; }

/* order / cart pill */
.order-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue); color: #fff; border: 0;
  padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.order-pill:hover { background: var(--blue-dark); transform: translateY(-1px); }
.order-pill svg { width: 19px; height: 19px; }
.order-pill__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--blue); font-size: 13px; font-weight: 800;
  display: inline-grid; place-items: center;
}
.order-pill[data-empty="true"] .order-pill__count { display: none; }

/* ---------- business info row ---------- */
.bizinfo { margin-top: 14px; }
.bizinfo ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.bizinfo li {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--navy-soft); font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.bizinfo .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .16); }
.bizinfo svg { width: 15px; height: 15px; color: var(--muted-2); }

/* ---------- search ---------- */
.toolbar { margin-top: 22px; }
.search {
  position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 16px; width: 19px; height: 19px; color: var(--muted-2); pointer-events: none; }
.search input {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 999px; padding: 13px 44px 13px 44px; font-size: 15px; color: var(--navy);
  box-shadow: var(--shadow-soft); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.search__clear {
  position: absolute; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: var(--blue-050); color: var(--blue); display: none; place-items: center; font-size: 16px;
}
.search__clear.is-visible { display: grid; }

/* ---------- category chips ---------- */
.chips {
  margin-top: 16px; display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--navy-soft); font-weight: 650; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--blue-100); color: var(--blue); }
.chip[aria-pressed="true"] {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .26);
}

/* ---------- product sections + grid ---------- */
main { padding-bottom: 64px; }
.section { margin-top: 30px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__title { margin: 0; font-size: clamp(17px, 1.9vw, 20px); font-weight: 800; letter-spacing: -.01em; }
.section__link {
  background: none; border: 0; color: var(--blue); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 5px;
}
.section__link:hover { text-decoration: underline; }

.grid {
  display: grid; gap: clamp(14px, 1.6vw, 20px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--line-strong); }
.card__media { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #eef1f6; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__open { position: absolute; inset: 0; border: 0; background: transparent; width: 100%; height: 100%; }
.card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(15, 36, 64, .78); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px 15px; flex: 1 1 auto; }
.card__name {
  margin: 0; font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; text-align: left;
  background: none; border: 0; padding: 0; color: var(--navy);
}
.card__name:hover { color: var(--blue); }
.card__desc {
  margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.card__price { font-size: 16px; font-weight: 800; color: var(--navy); }
.add-btn {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  box-shadow: 0 5px 12px rgba(37, 99, 235, .28); transition: transform .14s var(--ease), background .14s var(--ease);
}
.add-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.add-btn:active { transform: scale(.94); }
.add-btn svg { width: 20px; height: 20px; }
.add-btn[data-count]::after {
  content: attr(data-count); position: absolute; margin: -30px 0 0 26px;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center;
}

/* ---------- empty states ---------- */
.empty {
  text-align: center; padding: 54px 20px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.empty p { margin: 0 0 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; font-weight: 700; font-size: 15px;
  padding: 12px 18px; transition: all .15s var(--ease); text-decoration: none;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, .26); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--blue-100); color: var(--blue); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(22, 163, 74, .26); }
.btn--green:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 22px; font-size: 16px; }

/* ---------- quantity stepper ---------- */
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); overflow: hidden; }
.qty button {
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--blue);
  font-size: 20px; font-weight: 700; display: grid; place-items: center;
}
.qty button:hover { background: var(--blue-050); }
.qty button:disabled { color: var(--muted-2); cursor: not-allowed; background: transparent; }
.qty output { min-width: 34px; text-align: center; font-weight: 800; font-size: 15px; }

/* ---------- toast ---------- */
.toast-wrap {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 650; box-shadow: var(--shadow-pop);
  animation: toast-in .25s var(--ease);
}
.toast svg { width: 17px; height: 17px; color: #7fffd4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.toast.is-out { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- overlay + modal + drawer ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(9, 18, 34, .5); backdrop-filter: blur(2px);
  z-index: 80; opacity: 0; transition: opacity .22s var(--ease);
}
.scrim.is-open { opacity: 1; }
[hidden] { display: none !important; }

/* centered modal (product detail / preview) */
.modal {
  position: fixed; z-index: 85; inset: 0; display: grid; place-items: center; padding: 20px;
  pointer-events: none;
}
.modal__panel {
  pointer-events: auto; width: min(560px, 100%); max-height: min(88vh, 900px); overflow: auto;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-pop);
  transform: translateY(10px) scale(.98); opacity: 0; transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-soft);
}
.modal__close svg { width: 20px; height: 20px; }

/* product detail internals */
.pd__media { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px 20px 0 0; background: #eef1f6; }
.pd__media img { width: 100%; height: 100%; object-fit: cover; }
.pd__body { padding: 20px 22px 22px; }
.pd__name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.pd__price { margin: 6px 0 0; font-size: 20px; font-weight: 800; color: var(--blue); }
.pd__desc { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pd__note { margin-top: 16px; }
.pd__note label { display: block; font-size: 13px; font-weight: 700; color: var(--navy-soft); margin-bottom: 6px; }
.pd__note textarea {
  width: 100%; resize: vertical; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--navy);
}
.pd__note textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.pd__actions { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.pd__actions .qty { flex: 0 0 auto; }
.pd__actions .btn { flex: 1 1 auto; }

/* right-side drawer (cart) */
.drawer {
  position: fixed; z-index: 85; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--surface); box-shadow: var(--shadow-pop); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .26s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.drawer__body { flex: 1 1 auto; overflow: auto; padding: 8px 20px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px; background: linear-gradient(180deg, #fff, #fbfdff); }

/* order line item */
.line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__thumb { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; background: #eef1f6; }
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__main { flex: 1 1 auto; min-width: 0; }
.line__name { font-weight: 750; font-size: 14.5px; }
.line__note { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.line__price { font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.line .qty button { width: 34px; height: 34px; font-size: 18px; }
.line .qty output { min-width: 26px; font-size: 14px; }
.link-danger { background: none; border: 0; color: var(--muted-2); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.link-danger:hover { color: var(--danger); }
.link-danger svg { width: 15px; height: 15px; }

.totals { display: grid; gap: 7px; margin-bottom: 14px; }
.totals__row { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; color: var(--muted); }
.totals__row span:last-child { color: var(--navy); font-weight: 700; }
.totals__row--grand { font-size: 17px; }
.totals__row--grand span { color: var(--navy) !important; font-weight: 800 !important; }
.drawer__foot .btn + .btn { margin-top: 9px; }

/* ---------- footer attribution ---------- */
.attrib { text-align: center; color: var(--muted-2); font-size: 12.5px; padding: 26px 20px 40px; }
.attrib strong { color: var(--navy-soft); font-weight: 700; }

/* ---------- floating sticky cart (catalog page) ---------- */
.float-cart {
  position: fixed; bottom: 26px; left: 50%; z-index: 72;
  transform: translateX(-50%) translateY(90px);
  opacity: 0; pointer-events: none;
  transition: transform .32s var(--ease), opacity .28s var(--ease);
}
.float-cart.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: auto;
}
.float-cart__btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--blue); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 22px 14px 18px; font-size: 15px; font-weight: 700; font-family: inherit;
  box-shadow: 0 10px 32px rgba(37,99,235,.42), 0 2px 8px rgba(37,99,235,.22);
  cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.float-cart__btn:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 14px 38px rgba(37,99,235,.46), 0 3px 10px rgba(37,99,235,.24); }
.float-cart__btn svg { width: 20px; height: 20px; }
.float-cart__count {
  background: #fff; color: var(--blue); min-width: 24px; height: 24px;
  border-radius: 999px; padding: 0 6px;
  display: inline-grid; place-items: center;
  font-size: 13px; font-weight: 800;
}
.float-cart__sep { width: 1px; height: 14px; background: rgba(255,255,255,.28); }
.float-cart__price { font-size: 14.5px; font-weight: 750; }

/* ===========================================================
   CHECKOUT
   =========================================================== */
.co-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.co-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; padding-block: 10px; }
.co-back { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-soft); font-weight: 700; text-decoration: none; font-size: 14.5px; }
.co-back:hover { color: var(--blue); }
.co-back svg { width: 18px; height: 18px; }
.co-head__biz { font-weight: 800; font-size: 15px; }
.co-head__biz small { display: block; font-weight: 600; color: var(--muted-2); font-size: 12px; }

.co-steps { display: flex; gap: 8px; align-items: center; }
.co-steps span { font-size: 12.5px; color: var(--muted-2); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.co-steps span b { width: 20px; height: 20px; border-radius: 50%; background: var(--blue-050); color: var(--blue); display: grid; place-items: center; font-size: 12px; }
.co-steps .sep { width: 16px; height: 1px; background: var(--line-strong); }

.co-title { margin: 26px 0 4px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.co-sub { margin: 0 0 22px; color: var(--muted); }

.co-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .95fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.co-main { display: grid; gap: 16px; }

.fs { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: clamp(18px, 2.2vw, 24px); }
.fs__eyebrow { display: block; margin: 0 0 12px; padding: 0; font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.fs__title { margin: 0 0 16px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }

/* selectable tiles (delivery mode, billing, payment) */
.tiles { display: grid; gap: 12px; }
.tiles--2 { grid-template-columns: 1fr 1fr; }
.tile {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface);
  padding: 14px 15px; transition: all .15s var(--ease); cursor: pointer;
}
.tile:hover { border-color: var(--blue-100); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile__ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-050); color: var(--blue); display: grid; place-items: center; }
.tile__ico svg { width: 21px; height: 21px; }
.tile__t { display: block; font-weight: 750; font-size: 15px; }
.tile__d { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tile__check { margin-left: auto; align-self: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: 0 0 auto; }
.tile__check svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.tile:has(input:checked) { border-color: var(--blue); background: var(--blue-050); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.tile:has(input:checked) .tile__check { background: var(--blue); border-color: var(--blue); }
.tile:has(input:checked) .tile__check svg { opacity: 1; }

/* fields */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy-soft); margin-bottom: 6px; }
.field .req { color: var(--danger); }
.input, .field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--navy);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 52px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.field .hint { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.field .err { display: none; color: var(--danger); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.field.has-error .err { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.phone { display: flex; gap: 8px; }
.phone .prefix {
  flex: 0 0 auto; display: inline-flex; align-items: center; padding: 0 14px; font-weight: 700;
  background: var(--blue-050); color: var(--blue); border: 1px solid var(--line-strong); border-radius: 12px;
}
.phone input { flex: 1 1 auto; }

.pay-hint {
  margin-top: 12px; background: var(--blue-050); border: 1px solid var(--blue-100); color: var(--navy-soft);
  border-radius: 12px; padding: 12px 14px; font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start;
}
.pay-hint svg { width: 17px; height: 17px; color: var(--blue); flex: 0 0 auto; margin-top: 1px; }

/* sticky summary */
.co-aside { position: sticky; top: 18px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.summary__head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.summary__head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.summary__count { color: var(--muted-2); font-size: 13px; font-weight: 600; }
.summary__items { max-height: 320px; overflow: auto; padding: 4px 18px; }
.summary__foot { padding: 16px 18px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fbfdff); }

.demo-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted-2); font-size: 12px; margin-top: 12px; }
.demo-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }

/* final preview modal internals */
.fp { padding: 24px; }
.fp__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.fp__title { margin: 6px 0 2px; font-size: 22px; font-weight: 800; }
.fp__biz { color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.fp__block { border-top: 1px dashed var(--line-strong); padding: 12px 0; }
.fp__block h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.fp__list { display: grid; gap: 6px; }
.fp__li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.fp__li span:first-child { color: var(--navy-soft); }
.fp__li span:last-child { font-weight: 700; white-space: nowrap; }
.fp__kv { font-size: 14.5px; color: var(--navy-soft); }
.fp__kv b { color: var(--navy); }
.fp__total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line-strong); margin-top: 4px; }
.fp__total .t { font-size: 18px; font-weight: 800; }
.fp__disc { margin-top: 14px; font-size: 12px; color: var(--muted-2); text-align: center; }
.fp__actions { margin-top: 16px; display: grid; gap: 10px; }

/* success state */
.fp--success { text-align: center; }
.fp__check { width: 66px; height: 66px; border-radius: 50%; background: rgba(22, 163, 74, .12); color: var(--green); display: grid; place-items: center; margin: 4px auto 14px; }
.fp__check svg { width: 34px; height: 34px; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-aside { position: static; order: -1; }
  .summary__items { max-height: none; }
}
@media (max-width: 680px) {
  /* decorative progress steps would force horizontal overflow — drop them */
  .co-steps { display: none; }
  .co-head .wrap { flex-wrap: wrap; gap: 4px 12px; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__card { flex-wrap: wrap; }
  .hero__actions { order: 3; width: 100%; }
  .order-pill { width: 100%; justify-content: center; }
  .tiles--2 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  /* product detail + preview become bottom sheets */
  .modal { place-items: end center; padding: 0; }
  .modal__panel { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .modal.is-open .modal__panel { transform: none; }
  .pd__media { border-radius: 22px 22px 0 0; }

  /* cart drawer becomes bottom sheet */
  .drawer { top: auto; bottom: 0; right: 0; width: 100%; height: auto; max-height: 88vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .drawer.is-open { transform: none; }
}
@media (max-width: 540px) {
  /* compact topbar on small phones */
  .demo-back-label { display: none; }
  .demo-badge { display: none; }
  .demo-sw { padding: 5px 11px; font-size: 12.5px; }
  /* float cart full-width */
  .float-cart { left: 12px; right: 12px; bottom: 16px; transform: translateY(90px); }
  .float-cart.is-visible { transform: translateY(0); }
  .float-cart__btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wrap { width: calc(100% - 24px); }
  .card__body { padding: 10px 10px 11px; }
  .card__name { font-size: 14px; }
  .card__price { font-size: 14.5px; }
  .add-btn { width: 36px; height: 36px; border-radius: 10px; }
  .add-btn svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
