/* ============================================================
   FOOD BAE — styles.css
   ============================================================ */

:root {
  --primary: #E8B84B;
  --primary-dark: #c99d35;
  --accent: #E84B4B;
  /* dark sections (hero, header, footer, about, contact, cart, modal) */
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --surface2: #242424;
  --surface3: #2e2e2e;
  --text: #f5f5f5;
  --text-muted: rgba(245,245,245,0.55);
  --border: rgba(255,255,255,0.08);
  /* light menu section */
  --menu-bg: #f5f5f0;
  --menu-surface: #ffffff;
  --menu-surface2: #f0ede8;
  --menu-text: #1a1a1a;
  --menu-text-muted: rgba(26,26,26,0.55);
  --menu-border: rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 100px;
  --container: 1200px;
  --header-h: 70px;
  --shadow-card: 0 2px 16px rgba(0,0,0,0.10);
  --transition: .22s ease;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0d0d0d;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .55s ease, transform .55s ease;
}
#loader.hide {
  opacity: 0; transform: translateY(-12px); pointer-events: none;
}
.loader-inner {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  animation: loaderIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes loaderIn {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}
.loader-ring-wrap {
  position: relative; width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
}
.loader-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.loader-ring-track {
  fill: none; stroke: rgba(232,184,75,.15); stroke-width: 5;
}
.loader-ring-arc {
  fill: none; stroke: var(--primary); stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 276; stroke-dashoffset: 276;
  animation: arcFill 1.4s ease forwards .2s;
}
@keyframes arcFill {
  to { stroke-dashoffset: 0; }
}
.loader-logo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary);
  animation: logoPop .6s cubic-bezier(.34,1.56,.64,1) both .1s;
}
@keyframes logoPop {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}
.loader-brand {
  font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700;
  color: #fff; letter-spacing: .02em;
  animation: fadeUp .4s ease both .5s;
}
.loader-tagline {
  font-size: .78rem; color: var(--primary); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  animation: fadeUp .4s ease both .65s;
}
.loader-bar {
  width: 140px; height: 3px; background: rgba(255,255,255,.1); border-radius: 3px;
  margin-top: .4rem; overflow: hidden;
  animation: fadeUp .3s ease both .7s;
}
.loader-progress {
  height: 100%; width: 0; background: var(--primary); border-radius: 3px;
  animation: barFill 1.3s ease forwards .3s;
}
@keyframes barFill { to { width: 100%; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.25rem;
  height: 100%; display: flex; align-items: center;
}
.header-brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.header-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.header-name { font-weight: 700; font-size: 1.1rem; color: var(--primary); letter-spacing: .02em; }
.header-nav {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 1.75rem;
}
.header-nav a { font-size: .88rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); }
.header-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; flex-shrink: 0; }
.cart-btn {
  position: relative; background: var(--primary); color: #000;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.cart-btn:hover { background: var(--primary-dark); transform: scale(1.07); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff; font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
  opacity: 0; transform: scale(0); transition: opacity .2s, transform .2s;
}
.cart-badge.visible { opacity: 1; transform: scale(1); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Drawer ── */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 1100; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed; top: 0; left: -280px; width: 280px; height: 100vh;
  background: var(--surface); z-index: 1200; padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: left .3s cubic-bezier(.4,0,.2,1);
}
.drawer.open { left: 0; }
.drawer-close { align-self: flex-end; font-size: 1.4rem; color: var(--text-muted); margin-bottom: .5rem; }
.drawer-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); margin: 0 auto 1rem; }
.drawer a { font-size: 1.05rem; font-weight: 600; color: var(--text); padding: .7rem 0; border-bottom: 1px solid var(--border); }
.drawer a:hover { color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; height: 100vh; min-height: 560px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.6) 60%, rgba(13,13,13,1) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 1.25rem; max-width: 680px; }
.hero-tag {
  display: inline-block; background: rgba(232,184,75,.15); border: 1px solid rgba(232,184,75,.35);
  color: var(--primary); font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: .35rem 1rem; border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Playfair Display', serif; font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.1; margin-bottom: 1rem;
}
.hero-title span { color: var(--primary); }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: #000; font-weight: 700; font-size: .95rem;
  padding: .85rem 2rem; border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(232,184,75,.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,184,75,.45); }

/* ============================================================
   MENU SECTION — light mode
   ============================================================ */
#menu { padding: 5rem 0 4rem; background: var(--menu-bg); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .5rem; color: var(--menu-text); }
.section-header p { color: var(--menu-text-muted); font-size: .95rem; }

/* ── Tabs ── */
.tabs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 2.5rem; }
.tabs-wrap::-webkit-scrollbar { height: 3px; }
.tabs-wrap::-webkit-scrollbar-track { background: var(--menu-surface2); }
.tabs-wrap::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
.tabs { display: flex; gap: .5rem; padding-bottom: .4rem; width: max-content; min-width: 100%; }
.tab-btn {
  flex-shrink: 0; background: var(--menu-surface); color: var(--menu-text-muted);
  border: 1px solid var(--menu-border); border-radius: var(--radius-pill);
  padding: .55rem 1.2rem; font-size: .82rem; font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--primary-dark); border-color: rgba(232,184,75,.5); }
.tab-btn.active { background: var(--primary); color: #000; border-color: var(--primary); transform: scale(1.04); }
.tab-btn { transform-origin: center; }

/* ── Items Grid ── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
/* card entrance keyframe */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.item-card {
  background: var(--menu-surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--menu-border); display: flex; flex-direction: column;
  cursor: pointer;
  will-change: transform;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.item-card.animate-in {
  animation: cardIn .38s cubic-bezier(.22,1,.36,1) both;
}
.item-card:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 12px 32px rgba(0,0,0,0.13); border-color: rgba(232,184,75,.55); }
.item-card-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--menu-surface2);
}
.item-card-img-placeholder {
  width: 100%; height: 180px; background: var(--menu-surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.item-card-body { padding: .9rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.item-name { font-weight: 700; font-size: .95rem; margin-bottom: .3rem; line-height: 1.3; color: var(--menu-text); }
.item-desc { color: var(--menu-text-muted); font-size: .78rem; flex: 1; line-height: 1.5; margin-bottom: .85rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.item-price { font-weight: 800; font-size: 1rem; color: var(--primary-dark); }
.add-btn {
  background: var(--primary); color: #000; border-radius: 50%;
  width: 34px; height: 34px; font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.item-card:hover .add-btn { background: var(--primary-dark); transform: scale(1.1); }

/* ============================================================
   PRODUCT MODAL (bottom sheet)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
  z-index: 1400; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 480px; max-height: 92vh;
  background: var(--surface); border-radius: 24px 24px 0 0;
  z-index: 1500; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.modal-sheet.open { transform: translateX(-50%) translateY(0); }

.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  background: rgba(0,0,0,0.5); color: #fff; border-radius: 50%;
  width: 34px; height: 34px; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(0,0,0,0.8); }

.modal-img-wrap { flex-shrink: 0; height: 230px; overflow: hidden; }
.modal-img { width: 100%; height: 100%; object-fit: cover; }

.modal-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.25rem 0; }
.modal-body::-webkit-scrollbar { width: 3px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.modal-cat { font-size: .75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.modal-name { font-size: 1.35rem; font-weight: 800; line-height: 1.25; margin-bottom: .5rem; }
.modal-desc { color: var(--text-muted); font-size: .85rem; line-height: 1.6; margin-bottom: 1rem; }

.modal-price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-price-usd { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-right: .5rem; }
.modal-price-lbp { font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.in-stock-badge {
  background: rgba(46,213,115,.15); color: #2ed573; border: 1px solid rgba(46,213,115,.3);
  font-size: .75rem; font-weight: 700; padding: .3rem .8rem; border-radius: var(--radius-pill);
}

.modal-customize { border-top: 1px solid var(--border); padding-top: 1.1rem; padding-bottom: 1rem; }
.modal-customize h4 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.customize-sub { font-size: .78rem; color: var(--text-muted); margin-bottom: 1rem; }

.customize-section { margin-bottom: 1rem; }
.customize-section-title {
  display: flex; flex-direction: column; gap: .15rem;
  margin-bottom: .65rem;
}
.customize-section-title > span:first-child { font-size: .72rem; font-weight: 800; letter-spacing: .07em; color: var(--text-muted); }
.customize-hint { font-size: .72rem; color: var(--text-muted); opacity: .7; }
.customize-list { display: flex; flex-direction: column; gap: .45rem; }

.customize-row {
  background: var(--surface2); border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: .85rem; padding: .75rem 1rem;
  cursor: pointer; transition: background var(--transition);
}
.customize-row:hover { background: var(--surface3); }
.customize-checkbox {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.customize-row.checked .customize-checkbox {
  background: var(--primary); border-color: var(--primary);
}
.customize-row.checked .customize-checkbox::after {
  content: '✓'; color: #000; font-size: .75rem; font-weight: 800;
}
.customize-row-label { flex: 1; font-size: .9rem; font-weight: 500; }
.customize-row-price { font-size: .82rem; font-weight: 700; color: var(--primary); }

/* ── Modal Footer ── */
.modal-footer {
  flex-shrink: 0; padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: .85rem;
  background: var(--surface);
}
.qty-row { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.qty-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.qty-btn:hover { background: var(--primary); border-color: var(--primary); color: #000; }
.qty-val { font-size: 1rem; font-weight: 700; min-width: 22px; text-align: center; }
.btn-add-order {
  flex: 1; background: var(--primary); color: #000;
  font-weight: 700; font-size: .95rem; padding: .85rem 1rem;
  border-radius: var(--radius-pill); text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.btn-add-order:hover { background: var(--primary-dark); transform: scale(1.02); }

/* ============================================================
   ABOUT
   ============================================================ */
#about { padding: 5rem 0; background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1.2rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: .95rem; }
.about-text strong { color: var(--primary); }
.about-badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.badge {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface2); border: 1px solid var(--border);
  padding: .5rem 1rem; border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600;
}
.badge i { color: var(--primary); }
.about-img-wrap { border-radius: var(--radius); overflow: hidden; }
.about-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.contact-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.contact-card > i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.contact-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
.contact-card a { color: var(--primary); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
.footer-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); margin-bottom: .25rem; }
.footer-copy { font-size: .82rem; color: var(--text-muted); }
.footer-powered { font-size: .72rem; color: var(--text-muted); }
.footer-powered a { color: var(--primary); font-weight: 600; }
.footer-powered a:hover { text-decoration: underline; }

/* ============================================================
   CART PANEL
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  z-index: 1300; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-panel {
  position: fixed; top: 0; right: -400px; width: 380px; height: 100vh;
  background: var(--surface); z-index: 1350; display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.cart-panel.open { right: 0; }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.cart-header h3 i { color: var(--primary); }
.cart-close { font-size: 1.3rem; color: var(--text-muted); transition: color var(--transition); }
.cart-close:hover { color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--text-muted); text-align: center; }
.cart-empty i { font-size: 3rem; opacity: .3; }
.cart-empty p { font-size: .9rem; }
.cart-item { background: var(--surface2); border-radius: var(--radius-sm); padding: .85rem 1rem; display: flex; align-items: flex-start; gap: .75rem; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 600; font-size: .88rem; line-height: 1.3; }
.ci-price { color: var(--primary); font-weight: 700; font-size: .85rem; margin-top: .2rem; }
.ci-controls { display: flex; align-items: center; gap: .5rem; }
.ci-qty-btn {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}
.ci-qty-btn:hover { background: var(--primary); border-color: var(--primary); color: #000; }
.ci-qty { font-weight: 700; font-size: .9rem; min-width: 18px; text-align: center; }
.cart-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: 700; font-size: 1rem; }
#cartTotal { color: var(--primary); font-size: 1.2rem; }
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; background: #25D366; color: #fff; font-weight: 700; font-size: .95rem;
  padding: .9rem; border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
}
.btn-whatsapp:hover { background: #1ebd5b; transform: scale(1.02); }

/* ============================================================
   ANIMATION ENGINE
   ============================================================ */

/* ── New keyframes ── */
@keyframes slideUp    { from{opacity:0;transform:translateY(36px)}  to{opacity:1;transform:translateY(0)} }
@keyframes slideRight { from{opacity:0;transform:translateX(30px)}  to{opacity:1;transform:translateX(0)} }
@keyframes popUp      { from{opacity:0;transform:scale(.78)}        to{opacity:1;transform:scale(1)} }
@keyframes wordUp     { from{opacity:0;transform:translateY(110%)}  to{opacity:1;transform:translateY(0)} }
@keyframes charUp     { from{opacity:0;transform:translateY(80%)}   to{opacity:1;transform:translateY(0)} }
@keyframes btnPulse   { 0%,100%{box-shadow:0 4px 20px rgba(232,184,75,.35)} 50%{box-shadow:0 6px 36px rgba(232,184,75,.65)} }
@keyframes headerDrop { from{opacity:0;transform:translateY(-56px)} to{opacity:1;transform:translateY(0)} }
@keyframes footerUp   { from{opacity:0;transform:translateY(18px)}  to{opacity:1;transform:translateY(0)} }

/* ── Header entrance ── */
#header { animation: headerDrop .5s cubic-bezier(.22,1,.36,1) .2s both; }

/* ── Hero section auto-fires ── */
.hero-tag { animation: slideUp .65s cubic-bezier(.22,1,.36,1) .3s both; }
.hero-sub  { animation: slideUp .65s cubic-bezier(.22,1,.36,1) 1.35s both; }
.btn-primary {
  animation: popUp .55s cubic-bezier(.34,1.56,.64,1) 1.6s both,
             btnPulse 2.8s ease 2.2s infinite;
}

/* ── Word / Char split wrappers (filled by JS) ── */
.word-clip { overflow:hidden; display:inline-block; vertical-align:bottom; }
.word-clip .word { display:inline-block; }
.char-clip { overflow:hidden; display:inline-block; vertical-align:bottom; }
.char-clip .char { display:inline-block; }

/* ── Nav link hover underline slide ── */
.header-nav a { position:relative; }
.header-nav a::after {
  content:''; position:absolute; bottom:-3px; left:0;
  height:2px; width:0; background:var(--primary); border-radius:2px;
  transition: width .28s cubic-bezier(.22,1,.36,1);
}
.header-nav a:hover::after { width:100%; }

/* ── Section header: underline draw + subtitle reveal ── */
.section-header h2 { position:relative; display:inline-block; }
.section-header h2::after {
  content:''; position:absolute; bottom:-8px; left:50%; transform:translateX(-50%);
  height:3px; width:0; background:var(--primary); border-radius:3px;
  transition: width .7s cubic-bezier(.22,1,.36,1) .25s;
}
.section-header.hdr-in h2::after { width:55%; }
.section-header p {
  opacity:0; transform:translateY(12px);
  transition: opacity .6s ease .45s, transform .6s ease .45s;
}
.section-header.hdr-in p { opacity:1; transform:translateY(0); }

/* ── Scroll-animate (data-ao) system ── */
[data-ao] { opacity:0; }
[data-ao="slideUp"].ao-in    { animation: slideUp   .7s  cubic-bezier(.22,1,.36,1) both; }
[data-ao="slideRight"].ao-in { animation: slideRight .65s cubic-bezier(.22,1,.36,1) both; }
[data-ao="popUp"].ao-in      { animation: popUp     .6s  cubic-bezier(.34,1.56,.64,1) both; }

/* ── Card hover shimmer sweep ── */
.item-card::after {
  content:''; position:absolute; top:0; left:-120%; width:65%; height:100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  pointer-events:none;
}
.item-card:hover::after { left:140%; transition: left .55s ease; }

/* ── Footer children hidden until scrolled into view ── */
#footer .footer-logo,
#footer .footer-copy,
#footer .footer-powered { opacity:0; }
.footer-anim { animation: footerUp .55s ease both; }

/* ── Legacy .reveal (section-header still uses it) ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { gap: 2.5rem; }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 280px; }
  .contact-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .items-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .item-card-img, .item-card-img-placeholder { height: 140px; }
  .cart-panel { width: 100%; right: -100%; }
  #hero { min-height: 100svh; }
  .modal-sheet { max-width: 100%; border-radius: 20px 20px 0 0; }
}

@media (max-width: 400px) {
  .items-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .item-name { font-size: .85rem; }
  .item-price { font-size: .9rem; }
}
