/* Storefront engine: contact row, phone bottom bar, search band, product CTA and panel.
   Structure only; themes add colours and the attention animations. */

/* ---- contact row above the header (desktop) ---- */
.crow { display: none; grid-area: crow; align-items: center; justify-content: flex-end; gap: 4px 24px; font-size: 15px; }
.crow__hours { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 1099px) { .crow__hours { display: none; } }
.hdr--crow .hdr__bar { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand phone"; }
@media (min-width: 720px) {
  .crow { display: flex; }
  .hdr--crow .hdr__bar { grid-template-areas: "brand crow"; }
  .hdr--crow .hdr__phone { display: none; }
}
@media (max-width: 719px) { .hdr--crow .hdr__phone { justify-self: end; } }
.crow__list { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.crow__link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: inherit; font-weight: 600; text-decoration: none; }
.crow__link:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.crow__link--phone { font-weight: 700; }
.hdr--band:not(.hdr--crow) .hdr__bar { grid-template-areas: "brand . phone"; }

/* icon in a round badge; themes animate .ping::after */
.ping { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; color: #fff; background: var(--accent); }
.ping .icon { width: 18px; height: 18px; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.ping--whatsapp { background: #1f8a4c; }
.ping--telegram { background: #2477ab; }
.ping--max { background: #5b4fd6; }

/* ---- bottom bar on phones ---- */
.mbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .08); }
@media (min-width: 720px) { .mbar { display: none; } }
@media (max-width: 719px) { body.has-mbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); } }
.mbar__btn { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: 4px 2px; color: var(--ink); text-decoration: none;
  border-radius: var(--radius); font-size: 12px; font-weight: 600; transition: background-color .15s ease; }
.mbar__btn:hover, .mbar__btn:active { background: var(--surface); color: var(--ink); }

/* ---- search band under the header ---- */
.sband { padding-block: 16px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sband__in { display: flex; }
.sband .search__input, .sband .search__btn { height: 52px; font-size: 17px; }
.sband .search__btn { padding-inline: 20px; }
.sband__hint { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (min-width: 880px) { .sband { padding-block: 22px 16px; } .sband .search__input, .sband .search__btn { height: 56px; } }
@media (max-width: 479px) { .sband .search__btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .sband__hint { font-size: 13px; } }

/* ---- product call to action ---- */
.cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px;
  font-size: 18px; font-weight: 750; color: #fff; background: var(--accent); border-radius: var(--radius); text-decoration: none;
  transition: background-color .15s ease; }
.cta:hover { color: #fff; background: var(--accent-hover); }
.cta:active { transform: translateY(1px); }
.cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.cta__icon { width: 22px; height: 22px; }
.cta--quiet { background: var(--ink); }
.cta__fine { display: none; }
@media (pointer: fine) { .cta__touch { display: none; } .cta__fine { display: inline; } }

/* ---- contact panel (desktop) ---- */
.panel { width: min(440px, calc(100vw - 32px)); padding: 0; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 16px 48px rgba(0, 0, 0, .24); }
.panel::backdrop { background: rgba(16, 22, 24, .55); }
.panel__in { display: grid; gap: 12px; padding: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel__title { font-size: 20px; font-weight: 700; }
.panel__close { width: 40px; height: 40px; font-size: 26px; line-height: 1; color: var(--muted); background: transparent; border: 1px solid transparent;
  border-radius: var(--radius); cursor: pointer; }
.panel__close:hover { color: var(--ink); border-color: var(--line); }
.panel__lead { font-size: 15px; }
.panel__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; color: var(--ink); text-decoration: none; }
.panel__phone:hover { color: var(--accent); }
.panel__or { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.panel .form__row { grid-template-columns: 1fr 1fr; }
.panel .form__submit { justify-self: stretch; }
