@import url(https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Mono:wght@400;500&display=swap);
/* ── Reset & base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  overscroll-behavior: none;
}
body {
  font-family: 'DM Sans', sans-serif;
  background: #f0f4f8;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
::-webkit-scrollbar {
  display: none;
}

/* Accessibility */
:focus {
  outline: none;
}
:focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: inherit;
}

/* ── CSS Variables ── */
:root {
  /* Colors */
  --accent: rgb(33, 150, 243);
  --accent-dark: rgb(21, 101, 192);
  --accent-light: rgba(33, 150, 243, 0.1);
  --accent-mid: rgba(33, 150, 243, 0.18);
  --accent-border: rgba(33, 150, 243, 0.28);
  --accent-glow: rgba(33, 150, 243, 0.25);
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-input: #ffffff;
  --border: #cbd5e1;
  --text-primary: #020617;
  --text-secondary: #1e293b;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --bot-bubble: #ffffff;
  --bot-bubble-border: #cbd5e1;
  --danger: #ef4444;
  --danger-light: #fee2e2;

  /* Fonts */
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Type Scale (minor-third 1.25×, base 14px) */
  --fs-xs: 10px;
  --fs-sm: 12px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 22px;
  --fs-2xl: 26px;

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-base: 1.55;
  --lh-loose: 1.72;

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Letter Spacing */
  --ls-tight: -0.01em;
  --ls-normal: 0em;
  --ls-wide: 0.04em;
  --ls-wider: 0.08em;

  /* Spacing Scale (base-4) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* Border Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* Shadows (Depth) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 2px 8px var(--accent-glow);

  /* Z-Index Scale */
  --z-base: 1;
  --z-above: 10;
  --z-overlay: 100;
  --z-modal: 200;
  --z-max: 300;

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-base: 0.25s ease;
  --trans-slow: 0.38s ease;

  /* Focus States */
  --focus-ring: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--accent);

  /* Font Rendering */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Animations ── */
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pinPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ════════════════════════════════════════
  APP SHELL
════════════════════════════════════════ */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--bg-page);
  overflow: hidden;
}

/* ════════════════════════════════════════
  HEADER
════════════════════════════════════════ */
.header {
  padding: 13px var(--sp-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--bg-card);
  flex-shrink: 0;
  z-index: var(--z-above);
  box-shadow: var(--shadow-sm);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.header-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.header-name {
  color: var(--text-primary);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-base);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
.header-biz {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-wide);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.header-spacer {
  flex: 1;
}
.header-socials {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.social-li {
  color: var(--text-secondary);
  opacity: 0.85;
  transition:
    opacity var(--trans-fast),
    color var(--trans-fast);
}
.social-li:hover {
  opacity: 1;
  color: #0a66c2;
}
.social-fb {
  color: var(--text-secondary);
  opacity: 0.85;
  transition:
    opacity var(--trans-fast),
    color var(--trans-fast);
}
.social-fb:hover {
  opacity: 1;
  color: #1877f2;
}
.social-ig {
  color: var(--text-secondary);
  opacity: 0.85;
  transition:
    opacity var(--trans-fast),
    color var(--trans-fast);
}
.social-ig:hover {
  opacity: 1;
  color: #e1306c;
}
.social-tt {
  color: var(--text-secondary);
  opacity: 0.85;
  transition:
    opacity var(--trans-fast),
    color var(--trans-fast);
}
.social-tt:hover {
  opacity: 1;
  color: #ff0050;
}
.social-yt {
  color: var(--text-secondary);
  opacity: 0.85;
  transition:
    opacity var(--trans-fast),
    color var(--trans-fast);
}
.social-yt:hover {
  opacity: 1;
  color: #ff0000;
}
.social-wa {
  color: var(--text-secondary);
  opacity: 0.85;
  transition:
    opacity var(--trans-fast),
    color var(--trans-fast);
}
.social-wa:hover {
  opacity: 1;
  color: #25d366;
}
.header-phone {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-wide);
  text-decoration: none;
  transition: color var(--trans-fast);
}
.header-phone:hover {
  color: var(--accent);
}

/* ════════════════════════════════════════
  MESSAGES AREA
════════════════════════════════════════ */
.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  -webkit-overflow-scrolling: touch;
}
.messages-inner {
  max-width: 760px;
  margin: 0 auto;
}

.msg-row {
  display: flex;
  margin-bottom: var(--sp-2);
  animation: fadeUp 0.3s ease both;
}
.msg-row--bot {
  justify-content: flex-start;
}
.msg-row--user {
  justify-content: flex-end;
}
.msg-row--card {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--sp-3);
  animation: fadeUp 0.4s ease both;
}
/* Stagger entry for initial load */
.messages-inner > *:nth-child(1) {
  animation-delay: 0ms;
}
.messages-inner > *:nth-child(2) {
  animation-delay: 80ms;
}
.messages-inner > *:nth-child(3) {
  animation-delay: 160ms;
}
.messages-inner > *:nth-child(4) {
  animation-delay: 240ms;
}
.messages-inner > *:nth-child(n + 5) {
  animation-delay: 300ms;
}

.msg-bubble {
  padding: var(--sp-3) 15px;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-family: var(--font-sans);
  word-break: break-word;
  overflow-wrap: break-word;
}
.msg-bubble--bot {
  border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg);
  max-width: 72%;
  background: var(--bot-bubble);
  color: var(--text-primary);
  border: 1px solid var(--bot-bubble-border);
  box-shadow: var(--shadow-sm);
}
.msg-bubble--user {
  border-radius: var(--r-lg) var(--r-lg) 4px var(--r-lg);
  max-width: 72%;
  background: var(--accent);
  color: white;
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-glow);
}

.msg-card-wrap {
  flex: 1;
  min-width: 0;
  border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.msg-card-wrap--products {
  background: var(--bg-card);
  padding: var(--sp-2) var(--sp-2) var(--sp-2);
  box-shadow: var(--shadow-md);
}
.msg-card-wrap > .loc-card,
.msg-card-wrap > .yt-wrap,
.msg-card-wrap > .pdf-wrap {
  border-radius: 0;
  border: none;
}

.typing-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--sp-2);
  animation: fadeUp 0.3s ease;
}
.typing-bubble {
  padding: var(--sp-2) var(--sp-3);
  border-radius: 4px var(--r-full) var(--r-full) var(--r-full);
  background: var(--bot-bubble);
  border: 1px solid var(--bot-bubble-border);
}
.typing-dots {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
  padding: var(--sp-1) 0;
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: bounce 1.2s infinite;
}

.bot-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  margin-right: var(--sp-2);
  margin-top: 2px;
  box-shadow: var(--shadow-sm);
}
.bot-avatar--sm {
  width: 26px;
  height: 26px;
  margin-right: 7px;
  border-width: 0;
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: 7px;
  margin-top: 2px;
  font-size: 9px;
  font-weight: var(--fw-bold);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
/* Suppress repeated avatar in consecutive same-sender messages (Slack-style) */
.msg-row--bot + .msg-row--bot .bot-avatar,
.msg-row--bot + .msg-row--card .bot-avatar,
.msg-row--card + .msg-row--bot .bot-avatar,
.msg-row--card + .msg-row--card .bot-avatar {
  visibility: hidden;
}

/* ════════════════════════════════════════
  INPUT AREA
════════════════════════════════════════ */
.input-area {
  padding: var(--sp-2) var(--sp-6) var(--sp-5);
  flex-shrink: 0;
  background: var(--bg-card);
  border-top: none;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.input-inner {
  max-width: 760px;
  margin: 0 auto;
}

.pills-row {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pills-row::-webkit-scrollbar {
  display: none;
}
.pills-row::after {
  content: '';
  position: sticky;
  right: 0;
  flex-shrink: 0;
  width: 32px;
  background: linear-gradient(to right, transparent, var(--bg-card));
  pointer-events: none;
  align-self: stretch;
}
.pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 7px var(--sp-3);
  border-radius: var(--r-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  font-family: var(--font-sans);
  letter-spacing: var(--ls-normal);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-sm);
}
.pill:hover:not(:disabled) {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent);
}
.pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pill--used {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent);
}
.pill-icon {
  color: var(--text-muted);
  display: flex;
}
.pill-icon--used {
  color: var(--accent);
}
.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.input-box {
  background: var(--bg-input);
  border: 1.5px solid rgba(0, 0, 0, 0.11);
  border-radius: var(--r-lg);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition:
    border-color var(--trans-fast),
    box-shadow var(--trans-fast);
}
.input-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.input-textarea {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  resize: none;
  font-family: var(--font-sans);
  max-height: 140px;
  overflow-y: auto;
  display: block;
  padding: 0;
  margin: 0;
  outline: none;
}
.input-textarea:focus-visible {
  box-shadow: none;
  outline: none;
}
.send-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.send-btn--active {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-glow);
}
.send-btn--active:active {
  transform: scale(0.88);
  box-shadow: none;
  filter: brightness(1.12);
}
.send-btn--inactive {
  background: var(--bg-muted);
  color: var(--text-faint);
  cursor: not-allowed;
}
.input-footer {
  text-align: center;
  color: var(--text-faint);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ════════════════════════════════════════
  HERO CAROUSEL
════════════════════════════════════════ */
.carousel-wrap {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/8;
  box-shadow: var(--shadow-lg);
}
.carousel-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity var(--trans-slow);
}
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.38) 55%,
    rgba(0, 0, 0, 0.1) 100%
  );
}
.carousel-content {
  position: absolute;
  inset: 0;
  padding: var(--sp-5) 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    opacity var(--trans-slow),
    transform var(--trans-slow);
}
.carousel-content--fading-right {
  opacity: 0;
  transform: translateX(-12px);
}
.carousel-content--fading-left {
  opacity: 0;
  transform: translateX(12px);
}
.carousel-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  border-radius: var(--r-full);
  padding: 2px var(--sp-2);
  margin-bottom: var(--sp-1);
  width: fit-content;
  font-family: var(--font-mono);
}
.carousel-headline {
  color: white;
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--sp-1);
  white-space: pre-line;
  text-shadow: var(--shadow-md);
}
.carousel-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  margin: 0;
  max-width: 280px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--trans-fast);
}
.carousel-arrow:hover {
  background: white;
}
.carousel-arrow--left {
  left: 10px;
}
.carousel-arrow--right {
  right: 10px;
}
.carousel-counter {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2px 7px;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: white;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.carousel-dot {
  height: 5px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--trans-base);
}
.carousel-dot--active {
  width: 18px;
  background: var(--accent);
}
.carousel-dot--inactive {
  width: 5px;
  background: rgba(255, 255, 255, 0.6);
}

/* ════════════════════════════════════════
  PRODUCT CARD
════════════════════════════════════════ */
.product-card {
  flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--trans-base),
    box-shadow var(--trans-base);
  scroll-snap-align: start;
  animation: fadeUp 0.4s ease both;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
}
.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--trans-fast);
}
.product-card-img-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
}

.product-card-like {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}
.product-card-like--liked {
  color: #f43f5e;
}
.product-card-like--unliked {
  color: var(--text-muted);
}

.product-card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans-fast);
}
.product-card-nav:hover {
  background: white;
}
.product-card-nav--prev {
  left: 4px;
}
.product-card-nav--next {
  right: 4px;
}

.product-card-img-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
}
.product-card-img-dot {
  height: 4px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--trans-base);
}
.product-card-img-dot--active {
  width: 14px;
  background: var(--accent);
}
.product-card-img-dot--inactive {
  width: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-3) var(--sp-3);
}
.product-card-title {
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  margin: 0;
  line-height: var(--lh-snug);
  cursor: pointer;
  transition: color var(--trans-fast);
}
.product-card-title:hover {
  color: var(--accent);
}
.product-card-desc {
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  margin: 0;
  line-height: var(--lh-snug);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}
.product-card-price {
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.product-card-currency {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.product-card-add {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-sm);
  color: white;
  border: none;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  transition: all var(--trans-base);
  white-space: nowrap;
}
.product-card-add--default {
  background: var(--accent);
  box-shadow: var(--shadow-glow);
}
.product-card-add--added {
  background: #10b981;
  box-shadow: var(--shadow-sm);
}

.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}
.pc-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}
.pc-count {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-left: 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.pc-nav-btns {
  display: flex;
  gap: var(--sp-1);
}
.pc-nav-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
  cursor: pointer;
  border: none;
}
.pc-nav-btn--active {
  background: var(--accent-light);
  border: 1px solid var(--accent-border) !important;
  color: var(--accent);
}
.pc-nav-btn--inactive {
  background: var(--bg-muted);
  border: 1px solid var(--border) !important;
  color: var(--text-faint);
  cursor: default;
}
.pc-scroll {
  display: flex;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* ════════════════════════════════════════
  PRODUCT MODAL
════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--sp-5);
  animation: fadeIn var(--trans-fast);
}
.modal-sheet {
  background: var(--bg-card);
  border-radius: var(--r-2xl);
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  animation: slideUp var(--trans-base);
  position: relative;
  z-index: var(--z-modal);
}
.modal-drag-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: var(--sp-3) auto 0;
}
.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-3);
  z-index: var(--z-above);
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-fast);
}
.modal-close:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.modal-gallery {
  position: relative;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.modal-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity var(--trans-base);
}
.modal-gallery-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.55) 0%,
    transparent 50%
  );
}
.modal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 8px;
  padding: 3px 10px;
  font-family: var(--font-mono);
}
.modal-like {
  position: absolute;
  top: 12px;
  right: 52px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-like--liked {
  color: #f43f5e;
}
.modal-like--unliked {
  color: var(--text-muted);
}
.modal-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans-fast);
}
.modal-gallery-nav:hover {
  background: white;
}
.modal-gallery-nav--prev {
  left: 10px;
  width: 34px;
  height: 34px;
}
.modal-gallery-nav--next {
  right: 10px;
  width: 34px;
  height: 34px;
}
.modal-thumbs {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.modal-thumb {
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--trans-fast);
}
.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-thumb--active {
  border: 2px solid var(--accent);
}
.modal-thumb--inactive {
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.modal-body {
  padding: var(--sp-6) var(--sp-7) var(--sp-7);
}
.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}
.modal-header-left {
  flex: 1;
  min-width: 0;
}
.modal-category {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 3px 10px;
  font-family: var(--font-mono);
}
.modal-product-name {
  color: var(--text-primary);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  margin: 8px 0 0;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
.modal-price-wrap {
  text-align: right;
  flex-shrink: 0;
  margin-left: var(--sp-3);
}
.modal-price {
  color: var(--accent);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.modal-price-sub {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  margin-top: 2px;
}
.modal-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-3) 0;
}
.modal-desc {
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  margin: 0 0 var(--sp-4);
}
.modal-features {
  margin-bottom: var(--sp-5);
}
.modal-features-title {
  color: var(--text-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--sp-2);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}
.modal-features-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.modal-feature-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.modal-feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-feature-text {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
.modal-cta-row {
  display: flex;
  gap: var(--sp-2);
}
.modal-add-btn {
  flex: 1;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  color: white;
  border: none;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  transition: all var(--trans-base);
}
.modal-add-btn--default {
  background: var(--accent);
  box-shadow: var(--shadow-md);
}
.modal-add-btn--added {
  background: #10b981;
  box-shadow: var(--shadow-md);
}
.modal-close-btn {
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background var(--trans-fast);
}
.modal-close-btn:hover {
  background: var(--border);
}

/* ════════════════════════════════════════
  LOCATION CARD
════════════════════════════════════════ */
.loc-card {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.loc-map-wrap {
  position: relative;
  overflow: hidden;
  background: #e8f0fe;
}
.loc-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.loc-map-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(255, 255, 255, 0.4) 100%
  );
  pointer-events: none;
}
.loc-map-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
}
.loc-pin-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.loc-pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: var(--accent-mid);
}
.loc-pin-pulse--outer {
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  animation: pinPulse 2s ease-out infinite;
}
.loc-pin-pulse--inner {
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  animation: pinPulse 2s ease-out infinite 0.4s;
}
.loc-pin-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid white;
  box-shadow: var(--shadow-glow);
  z-index: var(--z-above);
}
.loc-maps-btn {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-1) 9px;
  font-size: 10px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-sans);
  font-weight: 600;
  transition: all var(--trans-fast);
}
.loc-maps-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.loc-coords {
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-2);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px 7px;
  font-size: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.loc-body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}
.loc-body-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}
.loc-biz-name {
  color: var(--text-primary);
  font-size: var(--fs-md);
  font-weight: var(--fw-extrabold);
  margin: 0 0 2px;
  letter-spacing: var(--ls-tight);
}
.loc-landmark {
  font-size: var(--fs-xs);
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: var(--ls-wide);
}
.loc-copy-btn {
  border-radius: var(--r-sm);
  padding: 3px var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  transition: all var(--trans-fast);
  font-family: var(--font-sans);
}
.loc-copy-btn--default {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.loc-copy-btn--copied {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}
.loc-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 6px;
}
.loc-info-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.loc-info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.loc-info-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.loc-info-primary {
  color: var(--text-primary);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
.loc-info-secondary {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}
.loc-directions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--sp-3);
  padding: var(--sp-2) 0;
  border-radius: var(--r-md);
  background: var(--accent);
  color: white;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: background var(--trans-fast);
}
.loc-directions:hover {
  background: var(--accent-dark);
}

/* ════════════════════════════════════════
  PROFILE PANEL
════════════════════════════════════════ */
.profile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  animation: fadeIn var(--trans-fast);
}
.profile-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: min(520px, 95vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--sp-8);
  animation: slideUp var(--trans-base);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: var(--z-overlay);
}
.profile-drag-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto var(--sp-4);
}
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.profile-title {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
}
.profile-subtitle {
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}
.profile-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.profile-field {
  margin-bottom: var(--sp-4);
}
.field-label {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: 5px;
  display: block;
  font-family: var(--font-mono);
  font-weight: var(--fw-medium);
}
.field-input,
.field-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-2) 13px;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  transition: border-color var(--trans-fast);
  font-family: var(--font-sans);
}
.field-input:focus,
.field-textarea:focus {
  border-color: var(--accent);
}
.field-textarea {
  resize: vertical;
}
.profile-socials {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 18px;
}
.profile-socials-title {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: 14px;
  display: block;
  font-family: var(--font-mono);
  font-weight: var(--fw-medium);
}
.profile-social-row {
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.profile-save-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--r-lg);
  color: white;
  border: none;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  transition: all var(--trans-base);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
}
.profile-save-btn--default {
  background: var(--accent);
}
.profile-save-btn--saved {
  background: #10b981;
}

/* ════════════════════════════════════════
  YOUTUBE CAROUSEL
════════════════════════════════════════ */
.yt-wrap {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.yt-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) 14px var(--sp-2);
}
.yt-header-icon {
  color: #ff0000;
  display: flex;
}
.yt-header-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}
.yt-header-count {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-left: var(--sp-1);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.yt-scroll {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding: 0 14px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.yt-card {
  flex-shrink: 0;
  width: 236px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  position: relative;
  scroll-snap-align: start;
  transition:
    transform var(--trans-fast),
    box-shadow var(--trans-fast);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.yt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.yt-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--trans-base);
}
.yt-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background var(--trans-fast);
}
.yt-card:hover .yt-play-btn {
  background: rgba(0, 0, 0, 0.45);
}
.yt-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--trans-fast);
}
.yt-card:hover .yt-play-circle {
  transform: scale(1.1);
}
.yt-duration {
  position: absolute;
  bottom: 6px;
  right: 7px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  border-radius: var(--sp-1);
  padding: 1px 5px;
}
.yt-info {
  padding: var(--sp-2) var(--sp-2) var(--sp-2);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.yt-video-title {
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-channel {
  display: none;
}

/* YouTube full player modal */
.yt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(var(--sp-2));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-max);
  padding: var(--sp-5);
  animation: fadeIn var(--trans-fast);
}
.yt-modal-inner {
  position: relative;
  width: min(900px, 100%);
  background: #000;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--trans-base);
  z-index: var(--z-max);
}
.yt-modal-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}
.yt-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--trans-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
}
.yt-modal-close:hover {
  opacity: 1;
}

/* ════════════════════════════════════════
  PDF PREVIEW
════════════════════════════════════════ */
.pdf-wrap {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.pdf-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) 14px var(--sp-2);
  border-bottom: 1px solid var(--border);
}
.pdf-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--sp-2);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.pdf-header-info {
  flex: 1;
  min-width: 0;
}
.pdf-filename {
  color: var(--text-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-meta {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-wide);
  margin-top: 1px;
}
.pdf-preview-area {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
  cursor: pointer;
}
.pdf-preview-area:hover .pdf-preview-overlay {
  opacity: 1;
}
.pdf-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.pdf-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--trans-fast);
}
.pdf-open-hint {
  background: white;
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}
.pdf-footer {
  padding: var(--sp-2) 14px;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.pdf-open-btn {
  flex: 1;
  padding: 9px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: white;
  border: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-sans);
  transition: background var(--trans-fast);
  box-shadow: var(--shadow-glow);
}
.pdf-open-btn:hover {
  background: var(--accent-dark);
}
.pdf-download-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
  flex-shrink: 0;
}
.pdf-download-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* PDF full-screen modal */
.pdf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  flex-direction: column;
  z-index: var(--z-max);
  animation: fadeIn var(--trans-fast);
}
.pdf-modal-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.pdf-modal-title {
  color: white;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  border-radius: var(--sp-2);
  padding: 6px var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  transition: background var(--trans-fast);
  flex-shrink: 0;
}
.pdf-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.pdf-modal-iframe {
  flex: 1;
  border: none;
  display: block;
}

/* ════════════════════════════════════════
  LOADER
════════════════════════════════════════ */
.loader-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  background: var(--bg-page);
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--accent-light);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ════════════════════════════════════════
  ORDER FLOW
════════════════════════════════════════ */
.order-action-pills {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3);
  flex-wrap: wrap;
}
.order-action-pill {
  flex: 1;
  min-width: 120px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--accent-border);
  background: var(--accent-light);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--trans-fast);
  min-height: 44px;
}
.order-action-pill:hover {
  background: var(--accent-mid);
  border-color: var(--accent);
}
.order-action-pill:active {
  transform: scale(0.97);
}

/* Order Summary Message (osm) */
.osm {
  border: 1px solid var(--bot-bubble-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  min-width: 240px;
}
.osm-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent-light);
  border-bottom: 1px solid var(--accent-border);
}
.osm-header-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.osm-header-title {
  flex: 1;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}
.osm-header-badge {
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.osm-items {
  display: flex;
  flex-direction: column;
  padding: var(--sp-2) 0;
}
.osm-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
}
.osm-item + .osm-item {
  border-top: 1px solid var(--border);
}
.osm-item-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.osm-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.osm-item-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.osm-item-unit {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.osm-price {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.osm-price-currency {
  font-size: 0.75em;
  font-weight: var(--fw-bold);
  margin-right: 1px;
  opacity: 0.6;
}
.osm-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
}
.osm-total-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-family: var(--font-mono);
}
.osm-total .osm-price {
  font-size: var(--fs-base);
  font-weight: var(--fw-extrabold);
  color: var(--accent);
}
.osm-divider {
  height: 1px;
  background: var(--border);
}
.osm-contact {
  padding: var(--sp-3) var(--sp-4);
}
.osm-contact-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-family: var(--font-mono);
  margin-bottom: var(--sp-2);
}
.osm-contact-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.osm-contact-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.osm-contact-row svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.osm-contact-name {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
.osm-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  border-top: 1px solid var(--border);
}
.osm-btn {
  width: 100%;
  padding: var(--sp-3);
  border: none;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--trans-fast);
}
.osm-btn--confirm {
  min-height: 44px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.osm-btn--confirm:hover {
  background: var(--accent-dark);
}
.osm-btn--cancel {
  min-height: 32px;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  padding: var(--sp-1);
}
.osm-btn--cancel:hover {
  color: var(--text-secondary);
}

/* Order flow choice buttons — replaces ChatInput when the flow offers fixed options */
.order-flow-choices {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
}
.order-flow-choice-btn {
  flex: 1;
  min-height: 44px;
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--r-md);
  border: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--trans-fast);
}
.order-flow-choice-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.order-flow-choice-btn--primary:hover {
  background: var(--accent-dark);
}
.order-flow-choice-btn--secondary {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.order-flow-choice-btn--secondary:hover {
  background: var(--border);
}

/* Mobile tweaks for new components */
@media (max-width: 639px) {
  .yt-play-circle {
    width: 36px;
    height: 36px;
  }
  .pdf-preview-area {
    height: 150px;
  }
}

/* ════════════════════════════════════════
  MOBILE  (max-width: 639px)
════════════════════════════════════════ */
@media (max-width: 639px) {
  .header {
    padding: 10px 14px;
    gap: var(--sp-2);
  }
  .header-logo {
    width: 30px;
    height: 30px;
    border-radius: var(--sp-2);
  }
  .header-name {
    font-size: var(--fs-sm);
  }
  .header-biz {
    font-size: var(--fs-xs);
    max-width: 120px;
  }
  .header-socials {
    display: flex;
    gap: var(--sp-2);
  }

  .messages-area {
    padding: var(--sp-3) 0 var(--sp-2);
  }
  .msg-row {
    padding: 0 var(--sp-3);
    margin-bottom: var(--sp-2);
  }
  .msg-row--card {
    padding: 0 var(--sp-3);
    margin-bottom: var(--sp-3);
  }
  .msg-bubble {
    font-size: var(--fs-sm);
    padding: 9px 13px;
  }
  .msg-bubble--bot,
  .msg-bubble--user {
    max-width: 82%;
  }

  .input-area {
    padding: var(--sp-2) 10px var(--sp-3);
  }
  .pills-row {
    gap: 6px;
    padding-bottom: var(--sp-2);
  }
  .pill {
    font-size: var(--fs-xs);
    padding: 6px 10px;
  }
  .input-box {
    padding: 9px 9px 9px 13px;
    border-radius: var(--r-md);
  }
  .input-textarea {
    max-height: 100px;
  }
  .send-btn {
    width: 34px;
    height: 34px;
  }
  .input-footer {
    font-size: var(--fs-xs);
    margin-top: 5px;
  }
  .yt-card {
    width: 180px;
  }

  .carousel-wrap {
    aspect-ratio: 16/10;
  }
  .carousel-content {
    padding: 14px;
  }
  .carousel-headline {
    font-size: var(--fs-md);
  }
  .carousel-tag {
    font-size: var(--fs-xs);
  }
  .carousel-sub {
    display: none;
  }
  .carousel-arrow {
    width: 24px;
    height: 24px;
  }
  .carousel-arrow--left {
    left: 6px;
  }
  .carousel-arrow--right {
    right: 6px;
  }

  .product-card-body {
    padding: 9px 10px 10px;
    gap: 4px;
  }
  .product-card-title {
    font-size: var(--fs-sm);
  }
  .product-card-desc {
    font-size: var(--fs-xs);
  }
  .product-card-price {
    font-size: var(--fs-sm);
  }
  .product-card-add {
    padding: 4px 8px;
    font-size: var(--fs-xs);
  }
  .pc-title {
    font-size: var(--fs-xs);
  }
  .pc-scroll {
    scroll-snap-type: x mandatory;
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal-sheet {
    border-radius: min(var(--r-xl), 20px) min(var(--r-xl), 20px) 0 0;
    width: 100%;
    max-height: 92vh;
    animation: slideUpModal 0.3s ease;
  }
  .modal-gallery {
    border-radius: min(var(--r-xl), 20px) min(var(--r-xl), 20px) 0 0;
  }
  .modal-close {
    top: 14px;
  }
  .modal-gallery-nav--prev,
  .modal-gallery-nav--next {
    width: 30px;
    height: 30px;
  }
  .modal-body {
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
  }
  .modal-product-name {
    font-size: var(--fs-lg);
  }
  .modal-price {
    font-size: var(--fs-lg);
  }
  .modal-add-btn {
    padding: 12px;
    font-size: var(--fs-sm);
  }
  .modal-close-btn {
    padding: 12px 14px;
    font-size: var(--fs-sm);
  }
  .modal-desc {
    font-size: var(--fs-sm);
  }
  .modal-feature-text {
    font-size: var(--fs-sm);
  }

  .loc-body {
    padding: 12px 13px 14px;
  }
  .loc-biz-name {
    font-size: var(--fs-sm);
  }
  .loc-info-primary {
    font-size: var(--fs-sm);
  }
  .loc-info-secondary {
    font-size: var(--fs-xs);
  }
  .loc-directions {
    font-size: var(--fs-sm);
  }

  .profile-backdrop {
    align-items: flex-end;
  }
  .profile-sheet {
    border-radius: min(var(--r-xl), 20px) min(var(--r-xl), 20px) 0 0;
    width: 100%;
    max-height: 90vh;
    padding: var(--sp-5) 18px var(--sp-8);
    animation: slideUpModal 0.3s ease;
  }
  .profile-title {
    font-size: var(--fs-md);
  }
}

/* ── Added in the rebuild ── */
.product-card-title-btn {
  all: unset;
  position: relative;
  cursor: pointer;
  display: block;
}
.product-card-title-btn:focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}
.msg-bubble--lead {
  margin-bottom: 8px;
}
.loc-map-wrap {
  border-radius: 12px 12px 0 0;
}
.loc-map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.pdf-preview-area {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: inherit;
}
.yt-card {
  text-decoration: none;
  color: inherit;
}
.header-name {
  margin: 0;
}
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  gap: 12px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-page);
}
.not-found-code {
  font-size: 48px;
  font-weight: var(--fw-extrabold);
  color: var(--accent);
}
.not-found-text {
  font-size: var(--fs-md);
  color: var(--text-secondary);
}
.not-found-link {
  margin-top: 8px;
  font-size: var(--fs-base);
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Touch targets ≥ 44px on phones (PRD §11.3) without changing how the controls look: an invisible hit area around
   the small ones. The carousel and image dots stay small on purpose — they sit too close together, and their arrows
   do the same job. */
/* :where() has no specificity, so a control the design already positions (absolute arrows) keeps its position. */
:where(
  .header-socials a,
  .header-phone,
  .carousel-arrow,
  .pc-nav-btn,
  .product-card-add,
  .product-card-title-btn,
  .loc-copy-btn,
  .loc-maps-btn,
  .pill,
  .input-footer a,
  .product-card-nav,
  .send-btn,
  .modal-close
) {
  position: relative;
}
.header-socials a::before,
.header-phone::before,
.carousel-arrow::before,
.pc-nav-btn::before,
.product-card-add::before,
.product-card-title-btn::before,
.loc-copy-btn::before,
.loc-maps-btn::before,
.pill::before,
.input-footer a::before,
.product-card-nav::before,
.send-btn::before,
.modal-close::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}
/* The pills row scrolls sideways, which clips anything outside it: room above and below for the pills' hit areas. */
.pills-row {
  padding-top: 9px;
  padding-bottom: calc(var(--sp-2) + 9px);
  margin-top: -9px;
  margin-bottom: -9px;
}

.osm-contact-row--top {
  align-items: flex-start;
}
.osm-contact-message {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* The tagline wraps instead of being cut ("Time to have your…"). */
.bf-brand .header-biz,
.reg-brand .header-biz {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

