/* ============================================================
   AMUL SHOP — JAPANESE STREET-FOOD MENU
   A clean, high-contrast white aesthetic with warm accents
   ============================================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Light, high-contrast palette */
  --bg: #f7f5f2;
  --bg-warm: #ffffff;
  --surface: #ffffff;
  --surface-light: #f0ece7;
  --accent: #c0392b;
  /* rich chili red   */
  --accent-glow: #e74c3c;
  --gold: #b8860b;
  /* deep lantern gold */
  --gold-dim: #996515;
  --cream: #1a1410;
  /* dark for headings on white */
  --text: #2c2218;
  /* dark text for contrast */
  --text-muted: #6b5e50;
  --green: #27ae60;
  --orange: #e67e22;

  /* Typography */
  --font-display: 'Shippori Mincho B1', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Sizing */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0, 0, 0, .08);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- RESET / BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* subtle noise texture overlay removed for clean white look */

/* ============================================================
   HERO / HEADER
   ============================================================ */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(192, 57, 43, .08) 0%, transparent 60%),
    linear-gradient(180deg, #1a1410 0%, #2c2218 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z' fill='none' stroke='%23e6b85c' stroke-width='.3' opacity='.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
}

.hero-jp {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: .3em;
  color: #e6b85c;
  margin-bottom: .25rem;
}

.hero-mal {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: .3em;
  color: #e6b85c;
  margin-bottom: .25rem;
}

/* Rotating multilingual text */
.hero-rotating {
  position: relative;
  height: clamp(1.8rem, 4.5vw, 2.4rem);
  overflow: hidden;
}

.rotate-text {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.rotate-text.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(214, 67, 42, .3);
}

.hero-sub {
  font-family: var(--font-hand);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: #c4b8a8;
  margin-top: .4rem;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.2rem;
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e6b85c;
}

.divider-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e6b85c, transparent);
}

/* -- Lanterns -- */
.lantern {
  position: absolute;
  top: -10px;
  width: 36px;
  height: 54px;
  border-radius: 50% / 60%;
  background: radial-gradient(ellipse at center, #f0c36d, #c44b2b 80%);
  box-shadow: 0 0 30px rgba(230, 184, 92, .5);
  z-index: 3;
  animation: sway 4s ease-in-out infinite;
}

.lantern::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 10px;
  background: var(--gold-dim);
  border-radius: 3px 3px 0 0;
}

.lantern::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 12px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
}

.lantern-left {
  left: 8%;
  animation-delay: 0s;
}

.lantern-right {
  right: 8%;
  animation-delay: 1.5s;
}

@keyframes sway {

  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

/* -- Noren (decorative wave divider at bottom of hero) -- */
.noren {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 101;
  pointer-events: none;
  height: 40px;
  overflow: hidden;
  display: block;
}

.noren span {
  display: none;
}

.noren::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  right: -5%;
  height: 40px;
  background: var(--bg-warm);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ============================================================
   CONTROLS — SEARCH & FILTER CHIPS
   ============================================================ */
.controls {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-warm);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.search-bar {
  position: relative;
  max-width: 560px;
  margin: 0 auto .75rem;
  flex: 1;
}

.controls-top-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  max-width: 600px;
  margin: 0 auto .75rem;
}

.controls-top-row .search-bar {
  margin: 0;
}

/* View toggle button */
.view-toggle {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #ddd5cb;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text-muted);
}

.view-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(192, 57, 43, .06);
}

.toggle-icon {
  width: 20px;
  height: 20px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.search-bar input {
  width: 100%;
  padding: .7rem 1rem .7rem 2.6rem;
  border: 1.5px solid #ddd5cb;
  border-radius: 50px;
  background: var(--surface-light);
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border var(--transition);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .1);
}

.filter-chips {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  max-width: 800px;
  margin: 0 auto;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: .4rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid #ddd5cb;
  background: transparent;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 700;
  text-transform: capitalize;
  transition: all var(--transition);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   MENU GRID
   ============================================================ */
.menu-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* ======== CARD ======== */
.menu-card {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  animation: fadeUp .5s ease both;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* image */
.card-img {
  width: 120px;
  min-height: 130px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: var(--surface-light);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.menu-card:hover .card-img img {
  transform: scale(1.08);
}

/* placeholder when no image */
.card-img .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, #f5f0eb 0%, #ede5db 100%);
}

/* info */
.card-body {
  flex: 1;
  padding: .9rem 1rem .9rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  flex-wrap: wrap;
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1410;
  line-height: 1.3;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-stock {
  background: rgba(91, 168, 101, .15);
  color: var(--green);
}

.badge-low {
  background: rgba(232, 152, 64, .15);
  color: var(--orange);
}

.badge-out {
  background: rgba(212, 67, 42, .15);
  color: var(--accent-glow);
}

.badge-qty {
  background: rgba(184, 134, 11, .12);
  color: var(--gold-dim);
}

/* Tag pills on cards */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: .35rem;
}

.card-tag-pill {
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(184, 134, 11, .08);
  color: var(--gold-dim);
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
  letter-spacing: .02em;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .6rem;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gold);
}

/* Veg / Non-veg indicator */
.card-veg {
  width: 16px;
  height: 16px;
  border: 1.5px solid;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-veg::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.card-veg.veg {
  border-color: var(--green);
}

.card-veg.veg::after {
  background: var(--green);
}

.card-veg.nonveg {
  border-color: var(--accent);
}

.card-veg.nonveg::after {
  background: var(--accent);
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.loader-bowl {
  position: relative;
  display: inline-block;
  font-size: 3rem;
  margin-bottom: .5rem;
}

.steam {
  position: absolute;
  width: 6px;
  border-radius: 50%;
  background: rgba(245, 239, 230, .25);
  animation: rise 1.6s ease-in infinite;
}

.steam.s1 {
  height: 16px;
  left: 30%;
  top: -18px;
  animation-delay: 0s;
}

.steam.s2 {
  height: 20px;
  left: 50%;
  top: -22px;
  animation-delay: .4s;
}

.steam.s3 {
  height: 14px;
  left: 70%;
  top: -16px;
  animation-delay: .8s;
}

@keyframes rise {
  0% {
    opacity: .7;
    transform: translateY(0) scaleX(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-28px) scaleX(1.8);
  }
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ============================================================
   CLASSIC LIST VIEW
   ============================================================ */
.classic-view {
  display: block !important;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.classic-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1rem;
  margin-bottom: 1.25rem;
  animation: fadeUp .5s ease both;
}

.classic-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1410;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}

.classic-section-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold), transparent);
  margin-bottom: .9rem;
  border-radius: 1px;
}

.classic-item {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  padding: .45rem 0;
  transition: background var(--transition);
  border-radius: 4px;
}

.classic-item:hover {
  background: rgba(184, 134, 11, .04);
}

.classic-item-left {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 1;
  min-width: 0;
}

.classic-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.classic-veg-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid;
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.classic-veg-dot::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.classic-veg-dot.veg {
  border-color: var(--green);
}

.classic-veg-dot.veg::after {
  background: var(--green);
}

.classic-veg-dot.nonveg {
  border-color: var(--accent);
}

.classic-veg-dot.nonveg::after {
  background: var(--accent);
}

.classic-name {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.classic-qty {
  font-size: .75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.classic-dots {
  flex: 1;
  border-bottom: 1.5px dotted #d5cdc3;
  min-width: 20px;
  align-self: center;
  margin: 0 .3rem;
  position: relative;
  top: -2px;
}

.classic-price {
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold);
  white-space: nowrap;
}

/* Classic view desktop: 2-column grid */
@media (min-width: 960px) {
  .classic-view {
    max-width: 1000px;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .classic-section {
    margin-bottom: 0;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1a1410;
  border-top: none;
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.footer-jp {
  font-family: var(--font-display);
  color: #e6b85c;
  font-size: .95rem;
  letter-spacing: .15em;
  margin-bottom: .25rem;
}

.footer-ep {
  letter-spacing: .25em;
  margin-bottom: .25rem;
}

.footer p {
  color: #a89a8a;
  font-size: .85rem;
}

.footer-copy {
  margin-top: .8rem;
  font-size: .75rem;
  opacity: .5;
  color: #a89a8a;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (≥ 600px) */
@media (min-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-img {
    width: 140px;
    min-height: 150px;
  }

  .hero {
    min-height: 48vh;
  }
}

/* Desktop (≥ 960px) */
@media (min-width: 960px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-img {
    width: 150px;
    min-height: 160px;
  }

  .controls {
    padding: 1.2rem 2rem;
  }

  .menu-section {
    padding: 2.5rem 2rem 5rem;
  }
}

/* Large desktop (≥ 1200px) */
@media (min-width: 1200px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0ece7;
}

::-webkit-scrollbar-thumb {
  background: #c4b8a8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ============================================================
   SMALL MOBILE TWEAKS (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
  .card-img {
    width: 100px;
    min-height: 110px;
  }

  .card-name {
    font-size: 1rem;
  }

  .card-price {
    font-size: 1rem;
  }
}