/* PRODUCT CATALOG INFO MODAL — session-once scroll prompt */
html.catalog-info-modal-open,
html.catalog-info-modal-open body { overflow: hidden; }
.storefront-catalog .catalog-info-modal[hidden] { display: none !important; }
.storefront-catalog .catalog-info-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 1rem; isolation: isolate; }
.storefront-catalog .catalog-info-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: color-mix(in srgb, var(--catalog-text) 58%, transparent); backdrop-filter: blur(17px) saturate(.82); opacity: 0; transition: opacity 260ms ease; }
.storefront-catalog .catalog-info-modal-panel { position: relative; z-index: 1; width: min(34rem, calc(100vw - 2rem)); max-height: min(42rem, calc(100dvh - 2rem)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--catalog-border-strong); border-radius: 1.45rem; color: var(--catalog-text); background: var(--catalog-surface); box-shadow: 0 28px 72px color-mix(in srgb, var(--catalog-text) 24%, transparent); opacity: 0; translate: 0 1.1rem; scale: .965; transform-origin: center; transition: opacity 240ms ease, translate 340ms cubic-bezier(.22,1,.36,1), scale 340ms cubic-bezier(.22,1,.36,1); }
.storefront-catalog .catalog-info-modal.is-open .catalog-info-modal-backdrop { opacity: 1; }
.storefront-catalog .catalog-info-modal.is-open .catalog-info-modal-panel { opacity: 1; translate: 0 0; scale: 1; }
.storefront-catalog .catalog-info-modal.is-closing .catalog-info-modal-backdrop { opacity: 0; }
.storefront-catalog .catalog-info-modal.is-closing .catalog-info-modal-panel { opacity: 0; translate: 0 .65rem; scale: .975; }
.storefront-catalog .catalog-info-modal-close { position: absolute; top: 1rem; right: 1rem; z-index: 4; width: 2.55rem; height: 2.55rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--catalog-border); border-radius: 999px; color: var(--catalog-text-soft); background: var(--catalog-surface); box-shadow: none; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, translate 220ms cubic-bezier(.22,1,.36,1), rotate 260ms cubic-bezier(.22,1,.36,1); }
.storefront-catalog .catalog-info-modal-close svg { width: 1rem; height: 1rem; }
.storefront-catalog .catalog-info-modal-close:hover { color: var(--catalog-primary); border-color: var(--catalog-border-strong); background: var(--catalog-surface-soft); translate: 0 -1px; rotate: 4deg; }
.storefront-catalog .catalog-info-modal-header { flex: 0 0 auto; padding: 2rem 4.35rem 1.35rem 2rem; border-bottom: 1px solid var(--catalog-border); }
.storefront-catalog .catalog-info-modal-eyebrow { display: inline-flex; align-items: center; gap: .55rem; min-height: 2rem; padding: .35rem .72rem; border: 1px solid var(--catalog-border); border-radius: 999px; color: var(--catalog-primary); background: var(--catalog-surface-soft); font-size: .68rem; font-weight: 800; letter-spacing: .11em; line-height: 1; text-transform: uppercase; }
.storefront-catalog .catalog-info-modal-eyebrow-icon, .storefront-catalog .catalog-info-hours-heading > span { width: 1.15rem; height: 1.15rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.storefront-catalog .catalog-info-modal-eyebrow-icon svg, .storefront-catalog .catalog-info-hours-heading svg { width: 100%; height: 100%; }
.storefront-catalog .catalog-info-modal-header h2 { margin: 1rem 0 0; color: var(--catalog-text); font-family: var(--catalog-display); font-size: clamp(2rem,5vw,2.65rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
.storefront-catalog .catalog-info-modal-header p { max-width: 29rem; margin: .7rem 0 0; color: var(--catalog-text-soft); font-size: .86rem; font-weight: 540; line-height: 1.65; }
.storefront-catalog .catalog-info-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1.35rem 2rem 1.5rem; scrollbar-width: thin; scrollbar-color: var(--catalog-border-strong) transparent; }
.storefront-catalog .catalog-info-list { display: grid; gap: .72rem; margin: 0; padding: 0; list-style: none; }
.storefront-catalog .catalog-info-list li { display: grid; grid-template-columns: 2.25rem minmax(0,1fr); align-items: start; gap: .8rem; padding: .82rem .9rem; border: 1px solid var(--catalog-border); border-radius: .95rem; color: var(--catalog-text-soft); background: color-mix(in srgb,var(--catalog-surface-soft) 72%,var(--catalog-surface)); font-size: .79rem; font-weight: 560; line-height: 1.55; opacity: 0; translate: 0 .5rem; transition: opacity 340ms ease calc(var(--catalog-info-index)*55ms + 110ms), translate 420ms cubic-bezier(.22,1,.36,1) calc(var(--catalog-info-index)*55ms + 110ms); }
.storefront-catalog .catalog-info-modal.is-open .catalog-info-list li { opacity: 1; translate: 0 0; }
.storefront-catalog .catalog-info-list li strong { color: var(--catalog-text); font-weight: 800; }
.storefront-catalog .catalog-info-list-icon, .storefront-catalog .catalog-info-session-icon { width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid var(--catalog-border); border-radius: .72rem; color: var(--catalog-primary); background: var(--catalog-surface); }
.storefront-catalog .catalog-info-list-icon svg { width: 1.14rem; height: 1.14rem; }
.storefront-catalog .catalog-info-hours { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid var(--catalog-border); }
.storefront-catalog .catalog-info-hours-heading { display: flex; align-items: center; gap: .58rem; color: var(--catalog-primary); }
.storefront-catalog .catalog-info-hours-heading h3 { margin: 0; color: var(--catalog-text); font-size: .88rem; font-weight: 800; }
.storefront-catalog .catalog-info-session-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .72rem; margin-top: .78rem; }
.storefront-catalog .catalog-info-session { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .78rem; border: 1px solid var(--catalog-border); border-radius: .95rem; background: var(--catalog-surface-soft); }
.storefront-catalog .catalog-info-session-icon { width: 2.35rem; height: 2.35rem; border-radius: .78rem; background: var(--catalog-surface); }
.storefront-catalog .catalog-info-session-icon svg { width: 1.12rem; height: 1.12rem; }
.storefront-catalog .catalog-info-session-copy { min-width: 0; display: grid; gap: .18rem; }
.storefront-catalog .catalog-info-session-copy small { color: var(--catalog-text-muted); font-size: .65rem; font-weight: 750; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.storefront-catalog .catalog-info-session-copy strong { color: var(--catalog-text); font-size: .82rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.storefront-catalog .catalog-info-modal-footer { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(7rem,.55fr); gap: .72rem; padding: 1rem 2rem 1.3rem; border-top: 1px solid var(--catalog-border); background: var(--catalog-surface); }
.storefront-catalog .catalog-info-telegram-button, .storefront-catalog .catalog-info-close-button { min-height: 3.15rem; display: inline-flex; align-items: center; justify-content: center; gap: .62rem; border-radius: .88rem; font-family: var(--catalog-sans); font-size: .78rem; font-weight: 800; text-decoration: none; transition: translate 230ms cubic-bezier(.22,1,.36,1), color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 230ms ease; }
.storefront-catalog .catalog-info-telegram-button { padding: .8rem 1rem; border: 1px solid var(--catalog-primary); color: #fff; background: var(--catalog-primary); box-shadow: none; }
.storefront-catalog .catalog-info-telegram-button > svg:first-child { width: 1.12rem; height: 1.12rem; flex: 0 0 auto; }
.storefront-catalog .catalog-info-telegram-arrow { width: 1rem; height: 1rem; margin-left: auto; transition: translate 230ms cubic-bezier(.22,1,.36,1); }
.storefront-catalog .catalog-info-telegram-button:hover { color: #fff; background: var(--catalog-primary-hover); translate: 0 -2px; box-shadow: 0 12px 26px color-mix(in srgb,var(--catalog-primary) 20%,transparent); }
.storefront-catalog .catalog-info-telegram-button:hover .catalog-info-telegram-arrow { translate: .22rem 0; }
.storefront-catalog .catalog-info-close-button { padding: .8rem 1rem; border: 1px solid var(--catalog-border-strong); color: var(--catalog-text-soft); background: var(--catalog-surface); }
.storefront-catalog .catalog-info-close-button:hover { color: var(--catalog-primary); border-color: var(--catalog-primary); background: var(--catalog-surface-soft); translate: 0 -1px; }
html[data-theme='dark'] body.storefront-catalog .catalog-info-modal-backdrop { background: rgb(0 0 0 / .68); }
html[data-theme='dark'] body.storefront-catalog .catalog-info-modal-panel, html[data-theme='dark'] body.storefront-catalog .catalog-info-modal-close, html[data-theme='dark'] body.storefront-catalog .catalog-info-list-icon, html[data-theme='dark'] body.storefront-catalog .catalog-info-session-icon, html[data-theme='dark'] body.storefront-catalog .catalog-info-modal-footer { background: var(--catalog-surface); }
html[data-theme='dark'] body.storefront-catalog .catalog-info-list li, html[data-theme='dark'] body.storefront-catalog .catalog-info-session { background: var(--catalog-surface-soft); }
@media (max-width:639px) {
  .storefront-catalog .catalog-info-modal { padding: .7rem; }
  .storefront-catalog .catalog-info-modal-panel { width: min(34rem,calc(100vw - 1.4rem)); max-height: calc(100dvh - 1.4rem); border-radius: 1.2rem; }
  .storefront-catalog .catalog-info-modal-header { padding: 1.55rem 3.75rem 1rem 1.25rem; }
  .storefront-catalog .catalog-info-modal-header h2 { font-size: 2rem; }
  .storefront-catalog .catalog-info-modal-header p { font-size: .78rem; line-height: 1.55; }
  .storefront-catalog .catalog-info-modal-body { padding: 1rem 1.25rem 1.1rem; }
  .storefront-catalog .catalog-info-list { gap: .58rem; }
  .storefront-catalog .catalog-info-list li { grid-template-columns: 2rem minmax(0,1fr); gap: .66rem; padding: .7rem .72rem; font-size: .73rem; line-height: 1.5; }
  .storefront-catalog .catalog-info-list-icon { width: 2rem; height: 2rem; }
  .storefront-catalog .catalog-info-session-grid { grid-template-columns: 1fr; gap: .55rem; }
  .storefront-catalog .catalog-info-modal-footer { grid-template-columns: 1fr; padding: .85rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); }
  .storefront-catalog .catalog-info-telegram-button, .storefront-catalog .catalog-info-close-button { min-height: 3rem; }
}
@media (prefers-reduced-motion:reduce) {
  .storefront-catalog .catalog-info-modal-backdrop, .storefront-catalog .catalog-info-modal-panel, .storefront-catalog .catalog-info-list li, .storefront-catalog .catalog-info-modal-close, .storefront-catalog .catalog-info-telegram-button, .storefront-catalog .catalog-info-close-button, .storefront-catalog .catalog-info-telegram-arrow { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* =========================================================
   PRODUCT CATALOG INFO MODAL — COMPACT PREMIUM V20
   Smaller footprint with asymmetric corners and compact
   content rhythm. Existing copy and session-once behavior stay.
   ========================================================= */

.storefront-catalog .catalog-info-modal-panel {
  width: min(29.5rem, calc(100vw - 2rem));
  max-height: min(37rem, calc(100dvh - 2rem));
  border-radius: 1.9rem 1.9rem 1.9rem 0.85rem;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--catalog-text) 20%, transparent);
}

.storefront-catalog .catalog-info-modal-panel::before {
  content: '';
  position: absolute;
  top: -4.5rem;
  right: -4rem;
  z-index: 0;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--catalog-primary) 12%, transparent), transparent 68%);
  pointer-events: none;
}

.storefront-catalog .catalog-info-modal-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 1.35rem;
  z-index: 3;
  width: 3.8rem;
  height: 0.2rem;
  border-radius: 0 0 999px 999px;
  background: var(--catalog-primary);
  opacity: 0.72;
  pointer-events: none;
}

.storefront-catalog .catalog-info-modal-header,
.storefront-catalog .catalog-info-modal-body,
.storefront-catalog .catalog-info-modal-footer {
  position: relative;
  z-index: 1;
}

.storefront-catalog .catalog-info-modal-close {
  top: 0.8rem;
  right: 0.8rem;
  width: 2.3rem;
  height: 2.3rem;
}

.storefront-catalog .catalog-info-modal-header {
  padding: 1.35rem 3.65rem 0.85rem 1.35rem;
}

.storefront-catalog .catalog-info-modal-eyebrow {
  min-height: 1.75rem;
  padding: 0.3rem 0.62rem;
  font-size: 0.6rem;
}

.storefront-catalog .catalog-info-modal-header h2 {
  margin-top: 0.72rem;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
}

.storefront-catalog .catalog-info-modal-header p {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  line-height: 1.5;
}

.storefront-catalog .catalog-info-modal-body {
  padding: 0.8rem 1.35rem 0.9rem;
}

.storefront-catalog .catalog-info-list {
  gap: 0.45rem;
}

.storefront-catalog .catalog-info-list li {
  grid-template-columns: 1.85rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.58rem 0.65rem;
  border-radius: 0.78rem 0.78rem 0.78rem 0.42rem;
  font-size: 0.7rem;
  line-height: 1.42;
}

.storefront-catalog .catalog-info-list-icon,
.storefront-catalog .catalog-info-session-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.62rem;
}

.storefront-catalog .catalog-info-list-icon svg {
  width: 0.98rem;
  height: 0.98rem;
}

.storefront-catalog .catalog-info-hours {
  margin-top: 0.72rem;
  padding-top: 0.72rem;
}

.storefront-catalog .catalog-info-hours-heading {
  gap: 0.45rem;
}

.storefront-catalog .catalog-info-hours-heading h3 {
  font-size: 0.78rem;
}

.storefront-catalog .catalog-info-session-grid {
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.storefront-catalog .catalog-info-session {
  gap: 0.52rem;
  padding: 0.56rem;
  border-radius: 0.78rem 0.78rem 0.78rem 0.42rem;
}

.storefront-catalog .catalog-info-session-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.storefront-catalog .catalog-info-session-copy small {
  font-size: 0.56rem;
}

.storefront-catalog .catalog-info-session-copy strong {
  font-size: 0.72rem;
}

.storefront-catalog .catalog-info-modal-footer {
  gap: 0.55rem;
  padding: 0.72rem 1.35rem 0.9rem;
}

.storefront-catalog .catalog-info-telegram-button,
.storefront-catalog .catalog-info-close-button {
  min-height: 2.75rem;
  border-radius: 0.78rem 0.78rem 0.78rem 0.45rem;
  font-size: 0.7rem;
}

@media (max-width: 639px) {
  .storefront-catalog .catalog-info-modal {
    padding: 0.55rem;
  }

  .storefront-catalog .catalog-info-modal-panel {
    width: min(29.5rem, calc(100vw - 1.1rem));
    max-height: calc(100dvh - 1.1rem);
    border-radius: 1.55rem 1.55rem 1.55rem 0.7rem;
  }

  .storefront-catalog .catalog-info-modal-header {
    padding: 1.15rem 3.25rem 0.68rem 1rem;
  }

  .storefront-catalog .catalog-info-modal-header h2 {
    font-size: 1.65rem;
  }

  .storefront-catalog .catalog-info-modal-header p {
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .storefront-catalog .catalog-info-modal-body {
    padding: 0.66rem 1rem 0.72rem;
  }

  .storefront-catalog .catalog-info-list {
    gap: 0.38rem;
  }

  .storefront-catalog .catalog-info-list li {
    grid-template-columns: 1.72rem minmax(0, 1fr);
    gap: 0.52rem;
    padding: 0.52rem 0.56rem;
    font-size: 0.66rem;
    line-height: 1.38;
  }

  .storefront-catalog .catalog-info-list-icon {
    width: 1.72rem;
    height: 1.72rem;
  }

  .storefront-catalog .catalog-info-session-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
  }

  .storefront-catalog .catalog-info-session {
    gap: 0.4rem;
    padding: 0.48rem;
  }

  .storefront-catalog .catalog-info-session-icon {
    width: 1.7rem;
    height: 1.7rem;
  }

  .storefront-catalog .catalog-info-session-copy strong {
    font-size: 0.63rem;
  }

  .storefront-catalog .catalog-info-modal-footer {
    grid-template-columns: minmax(0, 1.5fr) minmax(5.5rem, 0.5fr);
    gap: 0.45rem;
    padding: 0.65rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  }

  .storefront-catalog .catalog-info-telegram-button,
  .storefront-catalog .catalog-info-close-button {
    min-height: 2.65rem;
    padding: 0.65rem 0.72rem;
    font-size: 0.66rem;
  }
}
