/* ============================================================
   KOREA UI 2026 — Colorful · Motion · Glass · Bento
   ============================================================ */

:root {
  --bg: #fff9f7;
  --bg-2: #ffffff;
  --mesh-1: rgba(255, 99, 132, 0.28);
  --mesh-2: rgba(255, 159, 64, 0.22);
  --mesh-3: rgba(255, 205, 86, 0.2);
  --mesh-4: rgba(75, 192, 192, 0.14);
  --mesh-5: rgba(153, 102, 255, 0.12);
  --glow-red: 0 12px 40px rgba(225, 29, 72, 0.18);
  --glow-soft: 0 20px 50px rgba(28, 25, 23, 0.08);
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated mesh background */
.bg-mesh {
  background:
    radial-gradient(900px 500px at 5% -5%, var(--mesh-1), transparent 55%),
    radial-gradient(700px 420px at 95% 8%, var(--mesh-2), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, var(--mesh-3), transparent 55%),
    radial-gradient(500px 300px at 80% 70%, var(--mesh-4), transparent 50%),
    radial-gradient(400px 280px at 15% 60%, var(--mesh-5), transparent 45%),
    linear-gradient(165deg, #fff9f7 0%, #ffffff 40%, #fff5f8 70%, #fffaf5 100%);
  animation: meshShift 18s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(12deg); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bg-mesh { animation: none; }
  .mkt-marquee-track,
  .orb,
  .mkt-float-stats div,
  .food-glow::after { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-spring);
  transition-delay: var(--d, 0ms);
}

.reveal-scale.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Floating orbs ---------- */
.orb-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orbFloat 10s ease-in-out infinite;
}

.orb-a {
  width: 180px;
  height: 180px;
  background: #fb7185;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.orb-b {
  width: 220px;
  height: 220px;
  background: #fbbf24;
  top: 40%;
  right: 8%;
  animation-delay: -3s;
}

.orb-c {
  width: 140px;
  height: 140px;
  background: #a78bfa;
  bottom: 15%;
  left: 30%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -22px) scale(1.08); }
  66% { transform: translate(-14px, 12px) scale(0.95); }
}

/* ---------- Marquee food strip ---------- */
.mkt-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0 1.25rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mkt-marquee-track {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.mkt-marquee:hover .mkt-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Khung đồng bộ — cùng size, không to nhỏ lệch */
.mkt-marquee-item {
  flex-shrink: 0;
  width: 148px;
  height: 148px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: none;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  transition: transform 0.35s var(--ease-out);
}

.mkt-marquee-item:nth-child(3n),
.mkt-marquee-item:nth-child(5n) {
  width: 148px;
  height: 148px;
  border-radius: 16px;
  align-self: auto;
}

.mkt-marquee-item:hover {
  transform: translateY(-3px);
  z-index: 2;
}

.mkt-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.4s;
  filter: saturate(1.15) contrast(1.05);
}

.mkt-marquee-item:hover img {
  transform: scale(1.12);
  filter: saturate(1.35) contrast(1.08);
}

.mkt-marquee-item::after {
  content: attr(data-label);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.5rem 0.45rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

/* Color ring accents on marquee */
.mkt-marquee-item:nth-child(6n + 1) { box-shadow: 0 10px 28px rgba(244, 63, 94, 0.25); }
.mkt-marquee-item:nth-child(6n + 2) { box-shadow: 0 10px 28px rgba(251, 191, 36, 0.3); }
.mkt-marquee-item:nth-child(6n + 3) { box-shadow: 0 10px 28px rgba(34, 197, 94, 0.22); }
.mkt-marquee-item:nth-child(6n + 4) { box-shadow: 0 10px 28px rgba(56, 189, 248, 0.25); }
.mkt-marquee-item:nth-child(6n + 5) { box-shadow: 0 10px 28px rgba(167, 139, 250, 0.28); }
.mkt-marquee-item:nth-child(6n + 6) { box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28); }

/* ---------- Hero 2026 upgrades ---------- */
.mkt-hero {
  isolation: isolate;
}

.mkt-hero-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--glow-red), var(--glow-soft);
  animation: cardIn 0.9s var(--ease-out) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.mkt-hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #fb7185, #fbbf24, #f472b6, #fb7185);
  background-size: 300% 300%;
  animation: borderFlow 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.mkt-hero-card img {
  transition: transform 0.8s var(--ease-out);
}

.mkt-hero-card:hover img {
  transform: scale(1.06);
}

.mkt-hero-copy h1 {
  animation: titleIn 0.85s var(--ease-out) both;
}

.mkt-lead {
  animation: titleIn 0.85s var(--ease-out) 0.1s both;
}

.mkt-hero-cta {
  animation: titleIn 0.85s var(--ease-out) 0.18s both;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.mkt-h1-accent {
  background: linear-gradient(120deg, #be123c, #e11d48, #f59e0b, #ec4899, #be123c);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShine 5s linear infinite;
}

@keyframes textShine {
  to { background-position: 200% center; }
}

.mkt-float-stats div {
  animation: floatY 4s ease-in-out infinite;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
}

.mkt-float-stats div:nth-child(2) { animation-delay: 0.4s; }
.mkt-float-stats div:nth-child(3) { animation-delay: 0.8s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Glass pills */
.mkt-trust-pill {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.08);
}

/* ---------- Bento promise ---------- */
.mkt-promise-grid {
  gap: 1rem;
}

.mkt-promise-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 0 transparent;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, border-color 0.3s;
}

.mkt-promise-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.15;
  transition: transform 0.5s var(--ease-out);
}

.mkt-promise-card:nth-child(1)::after { background: #f43f5e; }
.mkt-promise-card:nth-child(2)::after { background: #f59e0b; }
.mkt-promise-card:nth-child(3)::after { background: #22c55e; }
.mkt-promise-card:nth-child(4)::after { background: #8b5cf6; }

.mkt-promise-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--glow-soft);
  border-color: transparent;
}

.mkt-promise-card:hover::after {
  transform: scale(2.2);
  opacity: 0.22;
}

.mkt-ico {
  transition: transform 0.4s var(--ease-spring);
}

.mkt-promise-card:hover .mkt-ico {
  transform: scale(1.12) rotate(-6deg);
}

/* ---------- Signature food cards — vivid ---------- */
.mkt-sig-grid {
  gap: 1.1rem;
}

.mkt-sig-card {
  border-radius: 24px;
  border: none;
  background: #fff;
  box-shadow: 0 8px 30px rgba(28, 25, 23, 0.06);
  overflow: hidden;
  position: relative;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.4s;
}

.mkt-sig-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(145deg, transparent 40%, rgba(251, 113, 133, 0.5), rgba(251, 191, 36, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 2;
  pointer-events: none;
}

.mkt-sig-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.16);
}

.mkt-sig-card:hover::before {
  opacity: 1;
}

.mkt-sig-thumb {
  position: relative;
  overflow: hidden;
}

.mkt-sig-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.15));
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.mkt-sig-card:hover .mkt-sig-thumb::after {
  opacity: 1;
}

.mkt-sig-thumb img {
  filter: saturate(1.2) contrast(1.05) brightness(1.02);
  transition: transform 0.7s var(--ease-out), filter 0.4s;
}

.mkt-sig-card:hover .mkt-sig-thumb img {
  transform: scale(1.1) rotate(1deg);
  filter: saturate(1.4) contrast(1.08);
}

/* Stagger color accents on signature cards */
.mkt-sig-card:nth-child(6n + 1) .mkt-sig-add { color: #e11d48; }
.mkt-sig-card:nth-child(6n + 2) .mkt-sig-add { color: #d97706; }
.mkt-sig-card:nth-child(6n + 3) .mkt-sig-add { color: #16a34a; }
.mkt-sig-card:nth-child(6n + 4) .mkt-sig-add { color: #0284c7; }
.mkt-sig-card:nth-child(6n + 5) .mkt-sig-add { color: #7c3aed; }
.mkt-sig-card:nth-child(6n + 6) .mkt-sig-add { color: #ea580c; }

.mkt-sig-add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--red-50);
  transition: transform 0.3s var(--ease-spring), background 0.2s;
}

.mkt-sig-card:hover .mkt-sig-add {
  transform: scale(1.08);
  background: var(--red-100);
}

/* ---------- Related cards motion ---------- */
.mkt-related-card {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.35s;
  border: none;
  box-shadow: 0 8px 28px rgba(28, 25, 23, 0.06);
}

.mkt-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(225, 29, 72, 0.12);
}

.mkt-related-card img {
  transition: transform 0.6s var(--ease-out), filter 0.4s;
  filter: saturate(1.15);
}

.mkt-related-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.35);
}

/* ---------- Steps bounce ---------- */
.mkt-step {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s;
  border: none;
  box-shadow: 0 6px 24px rgba(28, 25, 23, 0.05);
}

.mkt-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.12);
}

.mkt-step span {
  transition: transform 0.35s var(--ease-spring);
}

.mkt-step:hover span {
  transform: scale(1.12);
}

/* ---------- Spice pulse ---------- */
.mkt-spice-step {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s;
}

.mkt-spice-step:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--spice, #e11d48) 25%, transparent);
}

/* ---------- CTA shimmer ---------- */
.mkt-cta-band {
  position: relative;
  overflow: hidden;
}

.mkt-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.mkt-cta-band .btn-primary {
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.mkt-cta-band .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ---------- Global menu cards (order page) vivid ---------- */
.menu-card {
  border-radius: 16px;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s;
}

.menu-card:hover {
  transform: translateY(-4px);
}

.menu-card .thumb img {
  filter: saturate(1.12) contrast(1.03);
  object-position: center center;
  transition: transform 0.5s var(--ease-out), filter 0.3s;
}

.menu-card:hover .thumb img {
  transform: scale(1.06);
  filter: saturate(1.22) contrast(1.05);
}

.menu-card .add-btn {
  transition: transform 0.3s var(--ease-spring);
}

.menu-card:hover .add-btn {
  transform: scale(1.08);
}

/* Topbar glass 2026 */
.topbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 24px rgba(225, 29, 72, 0.04);
}

.brand-mark {
  animation: brandPulse 3s ease-in-out infinite;
}

.brand-mark img {
  border-radius: 12px;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.28); }
  50% { box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
}

/* Buttons micro */
.btn-primary {
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, filter 0.2s;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.97);
}

/* Food glow helper */
.food-glow {
  position: relative;
}

.food-glow::after {
  content: "";
  position: absolute;
  inset: 20% 15% auto;
  height: 40%;
  background: radial-gradient(ellipse, rgba(251, 113, 133, 0.45), transparent 70%);
  filter: blur(24px);
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

/* Bento highlight strip under marquee */
/* Bento cũ: lưới đều (nếu còn dùng) */
.mkt-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.mkt-bento-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.07);
  transition: transform 0.35s var(--ease-out);
}

.mkt-bento-item:first-child {
  grid-row: auto;
  min-height: 0;
}

.mkt-bento-item:hover {
  transform: translateY(-3px);
}

.mkt-bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15);
  transition: transform 0.5s var(--ease-out);
}

.mkt-bento-item:hover img {
  transform: scale(1.05);
}

.mkt-bento-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
}

.mkt-bento-cap strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.mkt-bento-cap span {
  font-size: 0.82rem;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .mkt-bento {
    grid-template-columns: 1fr 1fr;
  }
  .mkt-bento-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .mkt-bento {
    grid-template-columns: 1fr;
  }
  .mkt-bento-item:first-child {
    grid-column: span 1;
    min-height: 200px;
  }
  .mkt-marquee-item {
    width: 110px;
    height: 110px;
  }
  .mkt-marquee-item:nth-child(3n) {
    width: 120px;
    height: 120px;
  }
}
