/* ============================================================
   Ibis Styles Makassar – Streats Restaurant
   Main Customer Stylesheet  (mobile-first, max-width 480px)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --red:        #C41E3A;
  --red-dark:   #8B0000;
  --red-light:  #e8294a;
  --gold:       #D4AF37;
  --gold-light: #f0d060;
  --white:      #ffffff;
  --off-white:  #fafafa;
  --gray-100:   #f5f5f5;
  --gray-200:   #eeeeee;
  --gray-400:   #bdbdbd;
  --gray-600:   #757575;
  --gray-800:   #424242;
  --dark:       #1a1a1a;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.18);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray-100);
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Centre the app on wide screens */
.app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.15);
}

/* ── RESPONSIVE WRAPPER ───────────────────────────────────── */
@media (min-width: 600px)  { .app-wrapper { max-width: 100%; box-shadow: none; } }
@media (min-width: 768px)  { .app-wrapper { max-width: 100%; } }
@media (min-width: 1024px) { .app-wrapper { max-width: 1200px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,.1); } }

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p  { font-size: .875rem; line-height: 1.6; color: var(--gray-600); }

/* ── Hero / Header ────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

/* Photo background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  /* Black overlay merata + gelap lebih kuat di bawah untuk teks */
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.50) 0%,
      rgba(0,0,0,.45) 40%,
      rgba(0,0,0,.75) 100%
    );
}

/* Floating sparkle particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.particle {
  position: absolute;
  color: var(--gold);
  font-size: .7rem;
  opacity: 0;
  animation: floatParticle 6s ease-in-out infinite;
}
.p1 { top: 20%; left: 15%; animation-delay: 0s;   animation-duration: 5s; }
.p2 { top: 35%; right: 18%; animation-delay: 1.5s; animation-duration: 7s; }
.p3 { top: 55%; left: 30%; animation-delay: 3s;   animation-duration: 6s; }
.p4 { top: 15%; right: 35%; animation-delay: 4.5s; animation-duration: 5.5s; }
@keyframes floatParticle {
  0%   { opacity: 0; transform: translateY(0) scale(.5); }
  30%  { opacity: .8; }
  70%  { opacity: .5; }
  100% { opacity: 0; transform: translateY(-40px) scale(1.2); }
}

/* Hero content sits above overlay */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 24px 32px;
  width: 100%;
  animation: heroContentIn .8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,175,55,.25);
  border: 1px solid rgba(212,175,55,.5);
  color: var(--gold-light);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
  animation: badgePop .6s .3s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-title {
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-title span {
  color: var(--gold);
  display: inline-block;
  animation: shimmerText 3s ease-in-out infinite;
}
@keyframes shimmerText {
  0%, 100% { text-shadow: 0 0 8px rgba(212,175,55,.4); }
  50%       { text-shadow: 0 0 20px rgba(212,175,55,.9), 0 0 40px rgba(212,175,55,.4); }
}

.hero-subtitle {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-tagline {
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  font-style: italic;
  margin-bottom: 20px;
}

.hero-stats {
  display: flex;
  gap: 0;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  margin-bottom: 16px;
}
.hero-stat {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.15);
}
.hero-stat-value {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
}
.hero-stat-label {
  color: rgba(255,255,255,.6);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Promo CTA button in hero */
.hero-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: var(--dark);
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(212,175,55,.5);
  transition: all var(--transition);
  animation: pulseGlow 2.5s ease-in-out infinite;
}
.hero-promo-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(212,175,55,.65);
}
.hero-promo-btn-fire { animation: fireWiggle 1s ease-in-out infinite; display: inline-block; }
@keyframes fireWiggle {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg); }
}
.hero-promo-btn-arrow { transition: transform var(--transition); }
.hero-promo-btn:hover .hero-promo-btn-arrow { transform: translateX(4px); }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(212,175,55,.5); }
  50%       { box-shadow: 0 4px 28px rgba(212,175,55,.85); }
}

/* ── Search Bar ───────────────────────────────────────────── */
.search-wrap {
  padding: 16px 16px 0;
  background: var(--white);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  padding: 10px 16px;
  transition: border-color var(--transition);
}
.search-box:focus-within {
  border-color: var(--red);
  background: var(--white);
}
.search-box svg { flex-shrink: 0; color: var(--gray-400); }
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .875rem;
  color: var(--dark);
  outline: none;
}
.search-box input::placeholder { color: var(--gray-400); }

/* ── Category Pills ───────────────────────────────────────── */
.categories-wrap {
  padding: 16px 0 8px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 2px solid transparent;
  transition: all var(--transition);
  flex-shrink: 0;
}
.cat-pill:hover {
  background: rgba(196,30,58,.08);
  color: var(--red);
}
.cat-pill.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(196,30,58,.35);
}
.cat-pill .cat-icon { font-size: .9rem; }

/* ── Section Headers ──────────────────────────────────────── */
.section {
  padding: 20px 16px 8px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: linear-gradient(to bottom, var(--red), var(--gold));
  border-radius: 2px;
}
.section-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--red);
}

/* ── Promo Banner ─────────────────────────────────────────── */
.promo-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scrollbar-width: none;
}
.promo-scroll::-webkit-scrollbar { display: none; }

.promo-card {
  flex-shrink: 0;
  width: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.promo-card-inner {
  padding: 20px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.promo-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.promo-name {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.promo-prices {
  display: flex;
  align-items: center;
  gap: 8px;
}
.promo-original {
  font-size: .75rem;
  text-decoration: line-through;
  opacity: .6;
}
.promo-discounted {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.promo-emoji {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  opacity: .25;
}

/* ── Menu Grid ────────────────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp .45s ease both;
  display: flex;
  flex-direction: column;
}
.menu-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md);
}
.menu-card:hover .menu-card-img img {
  transform: scale(1.06);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.menu-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  overflow: hidden;
}
.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.badge-bestseller {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--gold);
  color: var(--dark);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 8px;
}
.badge-promo {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--red);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
}

/* ── Special Label Badges ─────────────────────────────────── */
.menu-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.label-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: .03em;
  white-space: nowrap;
}
.label-chef {
  background: linear-gradient(135deg, #7b3f00, #c0622a);
  color: #fff;
  box-shadow: 0 1px 4px rgba(123,63,0,.35);
}
.label-spicy {
  background: linear-gradient(135deg, #b71c1c, #ff5722);
  color: #fff;
  box-shadow: 0 1px 4px rgba(183,28,28,.35);
}
.label-gluten {
  background: linear-gradient(135deg, #1b5e20, #43a047);
  color: #fff;
  box-shadow: 0 1px 4px rgba(27,94,32,.35);
}

/* Card body — position relative agar btn-add bisa absolute di pojok kanan bawah */
.menu-card-body {
  padding: 10px 10px 44px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}.menu-card-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-card-desc {
  font-size: .7rem;
  color: var(--gray-600);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
}
.menu-card-price {
  font-size: .8rem;
  font-weight: 700;
  color: var(--red-dark);
}
.menu-card-price-original {
  font-size: .68rem;
  color: var(--gray-400);
  text-decoration: line-through;
  display: block;
}

.btn-add {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 3px 10px rgba(196,30,58,.35);
  /* Anchor ke pojok kanan bawah card body */
  position: absolute;
  bottom: 12px;
  right: 10px;
}
.btn-add:hover {
  background: var(--red-dark);
  transform: scale(1.1);
}
.btn-add:active { transform: scale(.95); }



/* ── Best Sellers (horizontal scroll) ────────────────────── */
.bestseller-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scrollbar-width: none;
}
.bestseller-scroll::-webkit-scrollbar { display: none; }

.bestseller-card {
  flex-shrink: 0;
  width: 150px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.bestseller-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  position: relative;
  overflow: hidden;
}
.bestseller-body {
  padding: 8px 10px 44px; /* space for absolute btn */
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bestseller-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bestseller-stars {
  color: var(--gold);
  font-size: .7rem;
  margin-bottom: 4px;
}
.bestseller-price {
  font-size: .78rem;
  font-weight: 700;
  color: var(--red-dark);
}
.bestseller-add {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: absolute;
  bottom: 10px;
  right: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(196,30,58,.35);
}
.bestseller-add:hover { background: var(--red-dark); transform: scale(1.1); }

/* ── Reviews ──────────────────────────────────────────────── */
.reviews-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scrollbar-width: none;
}
.reviews-scroll::-webkit-scrollbar { display: none; }

.review-card {
  flex-shrink: 0;
  width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.review-stars {
  color: var(--gold);
  font-size: .85rem;
  margin-bottom: 6px;
}
.review-comment {
  font-size: .75rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.review-name {
  font-size: .75rem;
  font-weight: 600;
  color: var(--dark);
}
.review-room {
  font-size: .65rem;
  color: var(--gray-400);
}

/* ── Review Form ──────────────────────────────────────────── */
.review-form-wrap {
  margin: 0 16px 20px;
  background: linear-gradient(135deg, rgba(196,30,58,.05), rgba(212,175,55,.05));
  border: 1px solid rgba(196,30,58,.15);
  border-radius: var(--radius-md);
  padding: 16px;
}
.review-form-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.star-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.star-picker button {
  font-size: 1.4rem;
  color: var(--gray-300);
  transition: color var(--transition), transform var(--transition);
}
.star-picker button.active,
.star-picker button:hover { color: var(--gold); transform: scale(1.15); }

.form-group { margin-bottom: 10px; }
.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .82rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 70px; }

.btn-submit-review {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(196,30,58,.35);
}
.btn-submit-review:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(196,30,58,.45); }

/* ── Floating Cart Button ─────────────────────────────────── */
.cart-fab {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 28px rgba(139,0,0,.45);
  z-index: 200;
  transition: all var(--transition);
  text-decoration: none;
}
.cart-fab:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 36px rgba(139,0,0,.55);
}
.cart-fab.hidden { transform: translateX(-50%) translateY(100px); opacity: 0; pointer-events: none; }

.cart-fab-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-fab-badge {
  background: var(--gold);
  color: var(--dark);
  font-size: .7rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop .2s ease;
}
@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.cart-fab-text { font-size: .85rem; font-weight: 600; }
.cart-fab-total { font-size: .9rem; font-weight: 700; color: var(--gold); }

/* ── Toast Notification ───────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 448px;
}
.toast {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s ease;
  border-left: 4px solid var(--gold);
}
.toast.success { border-left-color: #4caf50; }
.toast.error   { border-left-color: var(--red); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}

/* ── Skeleton Loader ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.skeleton-img  { width: 100%; aspect-ratio: 1/1; }
.skeleton-body { padding: 10px; }
.skeleton-line { height: 10px; margin-bottom: 6px; }
.skeleton-line.short { width: 60%; }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-text { font-size: .9rem; font-weight: 500; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 0 0 80px;
  font-size: .75rem;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
}

/* Animated top border */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 200%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--red), var(--gold), transparent);
  animation: footerLine 4s linear infinite;
}
@keyframes footerLine {
  from { transform: translateX(-50%); }
  to   { transform: translateX(50%); }
}

.footer-inner {
  padding: 28px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Brand row */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 18px;
}
.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  padding: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1);
  transition: opacity .3s;
}
.footer-logo:hover { opacity: .85; }
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-brand-name {
  color: var(--gold);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.footer-brand-sub {
  color: rgba(255,255,255,.55);
  font-size: .72rem;
}
.footer-tagline {
  color: rgba(255,255,255,.35);
  font-size: .68rem;
  font-style: italic;
}

/* Divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.12), transparent);
  margin: 4px 0;
}

/* Info row */
.footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.footer-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
}
.footer-info-icon {
  font-size: .85rem;
}
.footer-info-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

/* Order CTA */
.footer-order-cta {
  display: block;
  margin: 4px 0 8px;
  background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,.06));
  border: 1px solid rgba(212,175,55,.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: rgba(255,255,255,.8);
  font-size: .76rem;
  line-height: 1.7;
  text-align: center;
  animation: footerCtaPulse 3s ease-in-out infinite;
}
.footer-ext {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-weight: 800;
  font-size: .82rem;
  padding: 1px 10px;
  border-radius: 20px;
  margin: 0 2px;
  letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(212,175,55,.5);
}
@keyframes footerCtaPulse {
  0%, 100% { border-color: rgba(212,175,55,.3); box-shadow: none; }
  50%       { border-color: rgba(212,175,55,.6); box-shadow: 0 0 16px rgba(212,175,55,.15); }
}

/* Copyright row */
.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 4px;
}
.footer-copyright-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  padding: 4px;
  opacity: .75;
  border: 1px solid rgba(255,255,255,.08);
}
.footer-copyright-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  color: rgba(255,255,255,.35);
}
.footer-copyright-text strong {
  color: rgba(255,255,255,.55);
  font-weight: 600;
}
.footer-version {
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.25);
  color: var(--gold);
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  letter-spacing: .05em;
}
.pb-cart { padding-bottom: 100px; }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.fw-700 { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

/* ── Extra Animations (Ibis Styles – Creative & Stylish) ──── */

/* ── Section scroll-reveal ────────────────────────────────── */
/* Dinonaktifkan — menyebabkan section blank saat refresh/load pertama */
/* Animasi tetap ada di level card (fadeInUp) */
.section { opacity: 1; transform: none; }
.section.reveal-ready { opacity: 1; transform: none; }
.section.visible { opacity: 1; transform: none; }

/* Promo card hover lift + shimmer */
.promo-card {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  cursor: pointer;
}
.promo-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 12px 32px rgba(139,0,0,.35);
}
.promo-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: cardShimmer 3s ease-in-out infinite;
}
@keyframes cardShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Category pill bounce on click */
.cat-pill:active { transform: scale(.92); }

/* Bestseller card tilt on hover */
.bestseller-card {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.bestseller-card:hover {
  transform: translateY(-5px) rotate(.5deg);
  box-shadow: var(--shadow-md);
}

/* Review card slide */
.review-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* btn-add spin on click */
.btn-add.clicked {
  animation: spinAdd .35s ease;
}
@keyframes spinAdd {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.3) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* Floating label badge entrance */
.label-badge {
  animation: labelPop .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes labelPop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* Search bar focus glow */
.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(196,30,58,.15);
}

/* Footer wave decoration */
.footer {
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 200%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--red), var(--gold), transparent);
  animation: footerLine 4s linear infinite;
}
@keyframes footerLine {
  from { transform: translateX(-50%); }
  to   { transform: translateX(50%); }
}

/* Scroll-to-top pulse on cart FAB */
.cart-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  z-index: -1;
  opacity: 0;
  animation: fabPulse 2.5s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: .3; transform: scale(1.04); }
}

/* ============================================================
   RESPONSIVE — Tablet / Landscape / iPad
   ============================================================ */

/* ── Tablet portrait (600px+) ─────────────────────────────── */
@media (min-width: 600px) {

  .hero { min-height: 360px; }
  .hero-title { font-size: 2rem; }
  .hero-content { padding: 56px 32px 36px; }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0 20px;
  }

  .promo-card { width: 280px; }
  .bestseller-card { width: 165px; }
  .review-card { width: 260px; }

  .section { padding: 22px 20px 8px; }
  .search-wrap { padding: 18px 20px 0; }
  .categories-scroll { padding: 0 20px; }
  .promo-scroll { padding: 0 20px 4px; }
  .bestseller-scroll { padding: 0 20px 4px; }
  .reviews-scroll { padding: 0 20px 4px; }
  .review-form-wrap { margin: 0 20px 20px; }

  .cart-fab { max-width: calc(100% - 40px); }
  .toast-container { max-width: calc(100% - 40px); }

  /* Footer */
  .footer-inner { padding: 28px 28px 0; }
  .footer-info { justify-content: center; }
}

/* ── iPad / Tablet landscape (768px+) ─────────────────────── */
@media (min-width: 768px) {

  .hero { min-height: 420px; }
  .hero-title { font-size: 2.6rem; }
  .hero-content { padding: 72px 40px 48px; }
  .hero-badge { font-size: .78rem; padding: 6px 16px; }
  .hero-promo-btn { font-size: .9rem; padding: 11px 22px; }
  .hero-stat { padding: 14px 12px; }
  .hero-stat-value { font-size: 1.4rem; }
  .hero-stat-label { font-size: .72rem; }

  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 28px;
  }

  .menu-card-name { font-size: .88rem; }
  .menu-card-price { font-size: .85rem; }
  .btn-add { width: 34px; height: 34px; font-size: 1.2rem; }

  .promo-card { width: 310px; }
  .promo-card-inner { min-height: 145px; padding: 22px; }
  .promo-name { font-size: 1.05rem; }

  .bestseller-card { width: 180px; }
  .bestseller-name { font-size: .85rem; }
  .bestseller-price { font-size: .85rem; }

  .review-card { width: 290px; }
  .review-comment { font-size: .8rem; }

  .section { padding: 28px 28px 12px; }
  .search-wrap { padding: 24px 28px 0; }
  .categories-scroll { padding: 0 28px; }
  .promo-scroll { padding: 0 28px 4px; }
  .bestseller-scroll { padding: 0 28px 4px; }
  .reviews-scroll { padding: 0 28px 4px; }
  .review-form-wrap { margin: 0 28px 24px; }

  .search-box { padding: 12px 20px; }
  .search-box input { font-size: .95rem; }
  .cat-pill { padding: 9px 18px; font-size: .82rem; }
  .section-title { font-size: 1.1rem; }

  .cart-fab { max-width: calc(100% - 56px); padding: 16px 24px; }
  .cart-fab-text { font-size: .9rem; }
  .cart-fab-total { font-size: .95rem; }
  .toast-container { max-width: calc(100% - 56px); }

  .footer { padding: 32px 28px 120px; font-size: .82rem; }
  .footer-order-cta { font-size: .85rem; padding: 14px 24px; }
}

/* ── iPad Pro / Desktop (1024px+) ─────────────────────────── */
@media (min-width: 1024px) {

  .hero { min-height: 480px; }
  .hero-title { font-size: 3.2rem; }
  .hero-content { padding: 88px 56px 60px; }
  .hero-stat-value { font-size: 1.6rem; }

  .menu-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    padding: 0 40px;
  }

  .promo-card { width: 340px; }
  .bestseller-card { width: 200px; }
  .review-card { width: 320px; }

  .section { padding: 36px 40px 16px; }
  .search-wrap { padding: 28px 40px 0; }
  .categories-scroll { padding: 0 40px; }
  .promo-scroll { padding: 0 40px 4px; }
  .bestseller-scroll { padding: 0 40px 4px; }
  .reviews-scroll { padding: 0 40px 4px; }
  .review-form-wrap { margin: 0 40px 32px; }

  .search-box { padding: 14px 24px; }
  .search-box input { font-size: 1rem; }
  .cat-pill { padding: 10px 20px; font-size: .85rem; }
  .section-title { font-size: 1.2rem; }

  .cart-fab { max-width: calc(100% - 80px); }
  .toast-container { max-width: calc(100% - 80px); }

  .footer { padding: 40px 40px 140px; font-size: .85rem; }
}

/* ── Large desktop (1280px+) ──────────────────────────────── */
@media (min-width: 1280px) {
  .menu-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .section { padding: 36px 48px 16px; }
  .search-wrap { padding: 28px 48px 0; }
  .categories-scroll { padding: 0 48px; }
  .promo-scroll { padding: 0 48px 4px; }
  .bestseller-scroll { padding: 0 48px 4px; }
  .reviews-scroll { padding: 0 48px 4px; }
  .review-form-wrap { margin: 0 48px 32px; }
  .cart-fab { max-width: calc(100% - 96px); }
  .toast-container { max-width: calc(100% - 96px); }
}
