/*
Theme Name: FoodApp
Theme URI: https://example.com/foodapp
Author: Claude
Author URI: https://anthropic.com
Description: A mobile-app inspired food WordPress theme with bold visuals, card layouts, smooth interactions, splash screen, and multivendor support.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodapp
Tags: food, restaurant, mobile, one-column, custom-colors, custom-menu, featured-images, full-width-template, multivendor
*/

/* =============================================
   GOOGLE FONTS
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* =============================================
   CSS VARIABLES
============================================= */
:root {
  --primary:       #FF4D1C;
  --primary-light: #FF7A52;
  --primary-dark:  #CC3A10;
  --accent:        #FFB703;
  --dark:          #1A1A2E;
  --dark-2:        #16213E;
  --dark-3:        #0F3460;
  --surface:       #FFFFFF;
  --surface-2:     #F8F4F0;
  --surface-3:     #EFE9E2;
  --text:          #1A1A2E;
  --text-muted:    #7A7A9D;
  --text-light:    #B0AFBF;
  --border:        #E8E3DC;
  --shadow-sm:     0 2px 8px rgba(26,26,46,.08);
  --shadow-md:     0 8px 24px rgba(26,26,46,.12);
  --shadow-lg:     0 20px 48px rgba(26,26,46,.16);
  --radius-sm:     12px;
  --radius-md:     20px;
  --radius-lg:     28px;
  --radius-xl:     40px;
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --nav-height:    72px;
  --max-width:     430px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--surface-2);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =============================================
   SPLASH SCREEN
============================================= */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity .5s ease, visibility .5s ease;
}

#splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: splashReveal .6s ease both;
}

@keyframes splashReveal {
  from { opacity: 0; transform: scale(.85) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.splash-logo img {
  max-width: 120px;
  filter: brightness(0) invert(1);
}

.splash-logo__icon {
  font-size: 4rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.2));
  animation: splashBounce 1.2s ease infinite;
}

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

.splash-logo__wordmark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.splash-tagline {
  font-family: var(--font-body);
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .04em;
}

.splash-loader {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 24px;
}

.splash-loader__bar {
  height: 100%;
  background: #fff;
  border-radius: 100px;
  animation: splashLoad 1.6s ease forwards;
}

@keyframes splashLoad {
  from { width: 0%; }
  to   { width: 100%; }
}

/* =============================================
   APP WRAPPER — Mobile App Container
============================================= */
#app-wrapper {
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 80px rgba(0,0,0,.15);
  overflow-x: hidden;
}

/* =============================================
   SITE HEADER / APP HEADER
============================================= */
.site-header {
  padding: 16px 20px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__greeting {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: .03em;
}

.site-header__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}

.site-header__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
  overflow: hidden;
  transition: box-shadow .2s;
}

.site-header__avatar:hover {
  box-shadow: 0 0 0 3px rgba(255,77,28,.3);
}

.site-header__notification {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  right: 8px;
  border: 2px solid var(--surface);
}

/* =============================================
   SEARCH BAR
============================================= */
.search-bar {
  padding: 0 20px 16px;
  background: var(--surface);
}

.search-bar__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar__icon {
  position: absolute;
  left: 16px;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar__input {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--surface-2);
  padding: 0 50px 0 46px;
  font-size: .9rem;
  color: var(--text);
  outline: none;
  transition: box-shadow .2s;
}

.search-bar__input:focus {
  box-shadow: 0 0 0 2px var(--primary);
}

.search-bar__input::placeholder { color: var(--text-light); }

.search-bar__filter-btn {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  transition: transform .15s;
}

.search-bar__filter-btn:active { transform: scale(.93); }

/* =============================================
   CATEGORY CHIPS
============================================= */
.category-chips {
  padding: 0 20px 20px;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-chips::-webkit-scrollbar { display: none; }

.category-chips__list {
  display: flex;
  gap: 10px;
  width: max-content;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-display);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all .2s;
  cursor: pointer;
}

.category-chip.active,
.category-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,77,28,.3);
}

.category-chip__emoji { font-size: 1rem; }

/* =============================================
   SECTION HEADER
============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 14px;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.section-header__link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
}

/* =============================================
   HERO BANNER / PROMO CARD
============================================= */
.promo-banner {
  margin: 0 20px 8px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #8B1A00 100%);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.promo-banner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: 60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.promo-banner__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  margin-bottom: 10px;
  width: fit-content;
}

.promo-banner__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.promo-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  width: fit-content;
  position: relative;
  z-index: 1;
  transition: transform .15s;
}

.promo-banner__cta:active { transform: scale(.95); }

.promo-banner__image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 160px;
  object-fit: cover;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  opacity: .85;
}

/* =============================================
   HORIZONTAL SCROLL CARDS (Featured)
============================================= */
.cards-scroll {
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cards-scroll::-webkit-scrollbar { display: none; }

.cards-scroll__list {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-bottom: 4px;
}

/* =============================================
   FOOD CARD — Horizontal (Featured)
============================================= */
.food-card {
  width: 200px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}

.food-card:active { transform: scale(.97); box-shadow: var(--shadow-md); }

.food-card__image-wrap {
  position: relative;
  height: 140px;
  background: var(--surface-3);
  overflow: hidden;
}

.food-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.food-card:hover .food-card__image { transform: scale(1.05); }

.food-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
}

.food-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: transform .2s;
}

.food-card__fav:active { transform: scale(.85); }

.food-card__body {
  padding: 12px 14px 14px;
}

.food-card__name {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.food-card__restaurant {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.food-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.food-card__price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.food-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
}

.food-card__rating .star { color: var(--accent); }

/* =============================================
   FOOD LIST CARD — Vertical (Popular)
============================================= */
.food-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.food-list-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  align-items: center;
  transition: transform .15s;
}

.food-list-card:active { transform: scale(.98); }

.food-list-card__image-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-3);
}

.food-list-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-list-card__info { flex: 1; min-width: 0; }

.food-list-card__name {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.food-list-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.food-list-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-light);
}

.food-list-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.food-list-card__price {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
}

.food-list-card__add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
}

.food-list-card__add-btn:active {
  transform: scale(.88);
  box-shadow: 0 4px 12px rgba(255,77,28,.4);
}

/* =============================================
   RESTAURANT CARD
============================================= */
.restaurant-cards {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.restaurant-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s;
}

.restaurant-card:active { transform: scale(.98); }

.restaurant-card__image-wrap {
  height: 160px;
  overflow: hidden;
  background: var(--surface-3);
  position: relative;
}

.restaurant-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.restaurant-card:hover .restaurant-card__image { transform: scale(1.04); }

.restaurant-card__tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--dark);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(4px);
}

.restaurant-card__body {
  padding: 14px 16px;
}

.restaurant-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.restaurant-card__stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--text-muted);
}

.restaurant-card__stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.restaurant-card__stat .icon { font-size: .9rem; }

/* =============================================
   VENDOR / SELLER CARD  (Multivendor)
============================================= */
.vendor-cards {
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vendor-cards::-webkit-scrollbar { display: none; }

.vendor-cards__list {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-bottom: 4px;
}

.vendor-card {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .2s;
}

.vendor-card:active { transform: scale(.95); }

.vendor-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-3);
  overflow: hidden;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: border-color .2s;
}

.vendor-card:hover .vendor-card__avatar {
  border-color: var(--primary);
}

.vendor-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vendor-card__name {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.vendor-card__rating {
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.vendor-card__rating .star { color: var(--accent); }

/* Vendor badge on food cards */
.food-card__vendor-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.food-card__vendor-badge .vendor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* Vendor store page banner */
.vendor-store-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 32px 20px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.vendor-store-header__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2);
  overflow: hidden;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
}

.vendor-store-header__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.vendor-store-header__meta {
  display: flex;
  gap: 20px;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}

.vendor-store-header__follow-btn {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 28px;
  border-radius: var(--radius-xl);
  transition: background .2s, transform .15s;
}

.vendor-store-header__follow-btn:active {
  transform: scale(.95);
  background: var(--primary-dark);
}

/* =============================================
   SINGLE POST / RECIPE PAGE
============================================= */
.post-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--surface-3);
}

.post-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.85) 0%, transparent 60%);
}

.post-hero__back-btn {
  position: absolute;
  top: 60px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .2s;
}

.post-hero__back-btn:hover { background: rgba(255,255,255,.25); }

.post-hero__share-btn {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.post-hero__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

.post-hero__category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  margin-bottom: 8px;
}

.post-hero__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.post-content {
  padding: 24px 20px;
  background: var(--surface);
  flex: 1;
}

.post-stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.post-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 14px 0;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}

.post-stat__icon { font-size: 1.3rem; }

.post-stat__value {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
}

.post-stat__label {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.entry-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.entry-content {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.entry-content h2, .entry-content h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 24px 0 10px;
}

.entry-content h2 { font-size: 1.15rem; font-weight: 800; }
.entry-content h3 { font-size: 1rem; font-weight: 700; }

.entry-content p { margin-bottom: 14px; }

.entry-content ul, .entry-content ol {
  margin: 0 0 14px 20px;
  list-style: disc;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 16px 0;
}

/* =============================================
   ADD TO CART / ORDER BUTTON
============================================= */
.order-btn-wrap {
  padding: 16px 20px;
  padding-bottom: calc(16px + var(--nav-height));
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
}

.order-btn {
  width: 100%;
  height: 56px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(255,77,28,.35);
}

.order-btn:active {
  transform: scale(.97);
  background: var(--primary-dark);
}

/* =============================================
   MAIN CONTENT PADDING (for nav)
============================================= */
.site-main {
  flex: 1;
  padding-bottom: calc(var(--nav-height) + 16px);
}

/* =============================================
   SITE FOOTER (minimal)
============================================= */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: .75rem;
  color: var(--text-light);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.food-card, .food-list-card, .restaurant-card, .promo-banner {
  animation: fadeSlideUp .4s ease both;
}

.food-card:nth-child(1) { animation-delay: .05s; }
.food-card:nth-child(2) { animation-delay: .10s; }
.food-card:nth-child(3) { animation-delay: .15s; }
.food-card:nth-child(4) { animation-delay: .20s; }

.food-list-card:nth-child(1) { animation-delay: .05s; }
.food-list-card:nth-child(2) { animation-delay: .10s; }
.food-list-card:nth-child(3) { animation-delay: .15s; }

/* =============================================
   DESKTOP CENTERING
============================================= */
@media (min-width: 480px) {
  body {
    background: #111;
    padding: 0;
    align-items: flex-start;
  }
  #app-wrapper {
    margin: 0 auto;
  }
}

/* =============================================
   UTILITY
============================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

Theme URI: https://example.com/foodapp
Author: Claude
Author URI: https://anthropic.com
Description: A mobile-app inspired food WordPress theme with bold visuals, card layouts, and smooth interactions.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodapp
Tags: food, restaurant, mobile, one-column, custom-colors, custom-menu, featured-images, full-width-template
*/

/* =============================================
   GOOGLE FONTS
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* =============================================
   CSS VARIABLES
============================================= */
:root {
  --primary:       #FF4D1C;
  --primary-light: #FF7A52;
  --primary-dark:  #CC3A10;
  --accent:        #FFB703;
  --dark:          #1A1A2E;
  --dark-2:        #16213E;
  --dark-3:        #0F3460;
  --surface:       #FFFFFF;
  --surface-2:     #F8F4F0;
  --surface-3:     #EFE9E2;
  --text:          #1A1A2E;
  --text-muted:    #7A7A9D;
  --text-light:    #B0AFBF;
  --border:        #E8E3DC;
  --shadow-sm:     0 2px 8px rgba(26,26,46,.08);
  --shadow-md:     0 8px 24px rgba(26,26,46,.12);
  --shadow-lg:     0 20px 48px rgba(26,26,46,.16);
  --radius-sm:     12px;
  --radius-md:     20px;
  --radius-lg:     28px;
  --radius-xl:     40px;
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --nav-height:    72px;
  --max-width:     430px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--surface-2);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =============================================
   APP WRAPPER — Mobile App Container
============================================= */
#app-wrapper {
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 80px rgba(0,0,0,.15);
  overflow-x: hidden;
}

/* =============================================
   TOP STATUS BAR
============================================= */
.status-bar {
  height: 44px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.status-bar__time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--text);
}

.status-bar__icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: .75rem;
}

/* =============================================
   SITE HEADER / APP HEADER
============================================= */
.site-header {
  padding: 16px 20px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__greeting {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: .03em;
}

.site-header__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}

.site-header__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}

.site-header__notification {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  right: 8px;
  border: 2px solid var(--surface);
}

/* =============================================
   SEARCH BAR
============================================= */
.search-bar {
  padding: 0 20px 16px;
  background: var(--surface);
}

.search-bar__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar__icon {
  position: absolute;
  left: 16px;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar__input {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--surface-2);
  padding: 0 50px 0 46px;
  font-size: .9rem;
  color: var(--text);
  outline: none;
  transition: box-shadow .2s;
}

.search-bar__input:focus {
  box-shadow: 0 0 0 2px var(--primary);
}

.search-bar__input::placeholder { color: var(--text-light); }

.search-bar__filter-btn {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  transition: transform .15s;
}

.search-bar__filter-btn:active { transform: scale(.93); }

/* =============================================
   CATEGORY CHIPS
============================================= */
.category-chips {
  padding: 0 20px 20px;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-chips::-webkit-scrollbar { display: none; }

.category-chips__list {
  display: flex;
  gap: 10px;
  width: max-content;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-display);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all .2s;
  cursor: pointer;
}

.category-chip.active,
.category-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,77,28,.3);
}

.category-chip__emoji { font-size: 1rem; }

/* =============================================
   SECTION HEADER
============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 14px;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.section-header__link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
}

/* =============================================
   HERO BANNER / PROMO CARD
============================================= */
.promo-banner {
  margin: 0 20px 8px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #8B1A00 100%);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.promo-banner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: 60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.promo-banner__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  margin-bottom: 10px;
  width: fit-content;
}

.promo-banner__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.promo-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  width: fit-content;
  position: relative;
  z-index: 1;
  transition: transform .15s;
}

.promo-banner__cta:active { transform: scale(.95); }

.promo-banner__image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 160px;
  object-fit: cover;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  opacity: .85;
}

/* =============================================
   HORIZONTAL SCROLL CARDS (Featured)
============================================= */
.cards-scroll {
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cards-scroll::-webkit-scrollbar { display: none; }

.cards-scroll__list {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-bottom: 4px;
}

/* =============================================
   FOOD CARD — Horizontal (Featured)
============================================= */
.food-card {
  width: 200px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}

.food-card:active { transform: scale(.97); box-shadow: var(--shadow-md); }

.food-card__image-wrap {
  position: relative;
  height: 140px;
  background: var(--surface-3);
  overflow: hidden;
}

.food-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.food-card:hover .food-card__image { transform: scale(1.05); }

.food-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
}

.food-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: transform .2s;
}

.food-card__fav:active { transform: scale(.85); }

.food-card__body {
  padding: 12px 14px 14px;
}

.food-card__name {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.food-card__restaurant {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.food-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.food-card__price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.food-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
}

.food-card__rating .star { color: var(--accent); }

/* =============================================
   FOOD LIST CARD — Vertical (Popular)
============================================= */
.food-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.food-list-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  align-items: center;
  transition: transform .15s;
}

.food-list-card:active { transform: scale(.98); }

.food-list-card__image-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-3);
}

.food-list-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-list-card__info { flex: 1; min-width: 0; }

.food-list-card__name {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.food-list-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.food-list-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-light);
}

.food-list-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.food-list-card__price {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
}

.food-list-card__add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
}

.food-list-card__add-btn:active {
  transform: scale(.88);
  box-shadow: 0 4px 12px rgba(255,77,28,.4);
}

/* =============================================
   RESTAURANT CARD
============================================= */
.restaurant-cards {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.restaurant-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s;
}

.restaurant-card:active { transform: scale(.98); }

.restaurant-card__image-wrap {
  height: 160px;
  overflow: hidden;
  background: var(--surface-3);
  position: relative;
}

.restaurant-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.restaurant-card:hover .restaurant-card__image { transform: scale(1.04); }

.restaurant-card__tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--dark);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(4px);
}

.restaurant-card__body {
  padding: 14px 16px;
}

.restaurant-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.restaurant-card__stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--text-muted);
}

.restaurant-card__stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.restaurant-card__stat .icon { font-size: .9rem; }

/* =============================================
   SINGLE POST / RECIPE PAGE
============================================= */
.post-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--surface-3);
}

.post-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.85) 0%, transparent 60%);
}

.post-hero__back-btn {
  position: absolute;
  top: 60px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .2s;
}

.post-hero__back-btn:hover { background: rgba(255,255,255,.25); }

.post-hero__share-btn {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.post-hero__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

.post-hero__category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  margin-bottom: 8px;
}

.post-hero__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.post-content {
  padding: 24px 20px;
  background: var(--surface);
  flex: 1;
}

.post-stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.post-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 14px 0;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}

.post-stat__icon { font-size: 1.3rem; }

.post-stat__value {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
}

.post-stat__label {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.entry-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.entry-content {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.entry-content h2, .entry-content h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 24px 0 10px;
}

.entry-content h2 { font-size: 1.15rem; font-weight: 800; }
.entry-content h3 { font-size: 1rem; font-weight: 700; }

.entry-content p { margin-bottom: 14px; }

.entry-content ul, .entry-content ol {
  margin: 0 0 14px 20px;
  list-style: disc;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 16px 0;
}

/* =============================================
   ADD TO CART / ORDER BUTTON
============================================= */
.order-btn-wrap {
  padding: 16px 20px;
  padding-bottom: calc(16px + var(--nav-height));
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
}

.order-btn {
  width: 100%;
  height: 56px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(255,77,28,.35);
}

.order-btn:active {
  transform: scale(.97);
  background: var(--primary-dark);
}

/* =============================================
   MAIN CONTENT PADDING (for nav)
============================================= */
.site-main {
  flex: 1;
  padding-bottom: calc(var(--nav-height) + 16px);
}

/* =============================================
   SITE FOOTER (minimal)
============================================= */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: .75rem;
  color: var(--text-light);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.food-card, .food-list-card, .restaurant-card, .promo-banner {
  animation: fadeSlideUp .4s ease both;
}

.food-card:nth-child(1) { animation-delay: .05s; }
.food-card:nth-child(2) { animation-delay: .10s; }
.food-card:nth-child(3) { animation-delay: .15s; }
.food-card:nth-child(4) { animation-delay: .20s; }

.food-list-card:nth-child(1) { animation-delay: .05s; }
.food-list-card:nth-child(2) { animation-delay: .10s; }
.food-list-card:nth-child(3) { animation-delay: .15s; }

/* =============================================
   DESKTOP CENTERING
============================================= */
@media (min-width: 480px) {
  body {
    background: #111;
    padding: 0;
    align-items: flex-start;
  }
  #app-wrapper {
    margin: 0 auto;
  }
}

/* =============================================
   UTILITY
============================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* =============================================
   LOCATION PERMISSION MODAL
============================================= */
.location-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.location-modal.is-open {
  display: flex;
}

.location-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 0;        /* stays behind the card */
  pointer-events: auto;
}

.location-modal__card {
  position: relative;
  z-index: 2;        /* above backdrop — buttons are always clickable */
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 32px 28px 48px;
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  animation: slideUp .35s cubic-bezier(.34,1.56,.64,1) both;
  pointer-events: auto;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.location-modal__icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: locPulse 1.5s ease infinite;
}

@keyframes locPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

.location-modal__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.location-modal__text {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.location-modal__allow-btn {
  display: block;
  width: 100%;
  height: 54px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  margin-bottom: 12px;
  transition: background .2s, transform .15s;
  box-shadow: 0 8px 24px rgba(255,77,28,.35);
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  border: none;
}

.location-modal__allow-btn:active {
  transform: scale(.97);
  background: var(--primary-dark);
}

.location-modal__deny-btn {
  display: block;
  width: 100%;
  height: 44px;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  border: none;
  background: none;
}

/* =============================================
   NEAR ME DRAWER
============================================= */
.nearme-drawer {
  position: fixed;
  inset: 0;
  z-index: 7000;
  pointer-events: none;
  display: none;
}

.nearme-drawer.is-open {
  display: block;
  pointer-events: auto;
}

/* keep legacy .open selector working too */
.nearme-drawer.open {
  display: block;
  pointer-events: auto;
}

.nearme-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  transition: opacity .3s ease;
}

.nearme-drawer.open .nearme-drawer__backdrop,
.nearme-drawer.is-open .nearme-drawer__backdrop {
  opacity: 1;
}

.nearme-drawer__panel {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.34,1.1,.64,1);
  overflow: hidden;
}

.nearme-drawer.open .nearme-drawer__panel,
.nearme-drawer.is-open .nearme-drawer__panel {
  transform: translateX(-50%) translateY(0);
}

.nearme-drawer__handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.nearme-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.nearme-drawer__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.nearme-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   NEAR ME TABS
============================================= */
.nearme-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.nearme-tabs::-webkit-scrollbar { display: none; }

.nearme-tab {
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: var(--radius-xl);
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--font-display);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  transition: all .2s;
  cursor: pointer;
}

.nearme-tab.active,
.nearme-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,77,28,.25);
}

/* =============================================
   NEAR ME RESULTS LIST
============================================= */
.nearme-results {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 32px;
  -webkit-overflow-scrolling: touch;
}

.nearme-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: .9rem;
}

.nearme-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.nearme-place {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .15s;
}

.nearme-place:last-child { border-bottom: none; }
.nearme-place:active { opacity: .7; }

.nearme-place__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.nearme-place__info { flex: 1; min-width: 0; }

.nearme-place__name {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.nearme-place__type {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.nearme-place__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  color: var(--text-muted);
}

.nearme-place__distance {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--primary);
  font-weight: 600;
}

.nearme-place__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.nearme-place__open {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.nearme-place__open.open  { background: #d4f7e0; color: #1a7a40; }
.nearme-place__open.closed { background: #fde8e8; color: #c0392b; }

.nearme-place__chevron {
  color: var(--text-light);
  font-size: .9rem;
  flex-shrink: 0;
}

.nearme-error {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.nearme-error__icon { font-size: 2.5rem; margin-bottom: 12px; }

.nearme-error__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.nearme-error__retry {
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
}

/* =============================================
   SEARCH DROPDOWN
============================================= */
.search-dropdown {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 5000;
  background: var(--surface);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 130px;
  display: none;
}

.search-dropdown:not([hidden]) {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover { background: var(--surface-2); }
.search-result-item:last-child { border-bottom: none; }

.search-result-item__thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  object-fit: cover;
  flex-shrink: 0;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-result-item__name {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}

.search-result-item__type {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Category chip filtering */
.food-list-card[data-category],
.food-card[data-category] {
  transition: opacity .3s, transform .3s;
}

.food-list-card.filtered-out,
.food-card.filtered-out {
  display: none;
}

/* Favourite active state */
.food-card__fav.faved { color: #e74c3c; }

/* Notification button active */
.site-header__notification.has-new { animation: bellRing .5s ease; }

@keyframes bellRing {
  0%,100% { transform: rotate(0); }
  25%      { transform: rotate(-15deg); }
  75%      { transform: rotate(15deg); }
}

/* =============================================
   BOTTOM NAVIGATION — Premium
   Clean SVG icons, elegant active state,
   refined proportions, smooth transitions
============================================= */

/* ── Layout ──────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 68px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(232, 227, 220, 0.8);
  box-shadow: 0 -1px 0 rgba(0,0,0,.04), 0 -8px 32px rgba(26,26,46,.07);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 500;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Nav Item Base ───────────────────────── */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  padding: 8px 4px 6px;
  color: var(--text-light);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.22s ease;
  position: relative;
  min-width: 0;
}

/* ── Active State ────────────────────────── */
.nav-item--active {
  color: var(--primary);
}

/* ── Icon Wrap ───────────────────────────── */
.nav-item__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

/* ── SVG Icon ────────────────────────────── */
.nav-item__svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: stroke 0.22s ease, transform 0.22s cubic-bezier(.34,1.56,.64,1);
}

/* Active icon gets a subtle scale-up */
.nav-item--active .nav-item__svg {
  stroke: var(--primary);
  transform: scale(1.08);
}

/* Tap feedback */
.nav-item:active .nav-item__svg {
  transform: scale(0.88);
}

/* ── Active Dot Indicator ────────────────── */
.nav-item__dot {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.nav-item--active .nav-item__dot {
  opacity: 1;
}

/* ── Label ───────────────────────────────── */
.nav-item__label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: currentColor;
  white-space: nowrap;
  transition: color 0.22s ease;
}

/* ── Cart Button (elevated center) ───────── */
.nav-item--cart {
  flex: 1.1;
  color: var(--text-light);
}

.nav-item__cart-bubble {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 77, 28, 0.38), 0 1px 4px rgba(255,77,28,.2);
  margin-top: -16px;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s ease;
  flex-shrink: 0;
}

.nav-item--cart:active .nav-item__cart-bubble {
  transform: scale(0.91);
  box-shadow: 0 2px 8px rgba(255, 77, 28, 0.28);
}

.nav-item__cart-svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  flex-shrink: 0;
}

/* Cart badge */
.nav-item__cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  line-height: 1;
}

.nav-item__cart-badge--visible {
  display: flex;
}

/* Cart label color always slightly muted */
.nav-item--cart .nav-item__label {
  color: var(--text-light);
  margin-top: 3px;
}

/* =============================================
   MAIN CONTENT PADDING (for nav)
============================================= */
.site-main {
  flex: 1;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px) + 16px);
}

/* =============================================
   MINI CART DRAWER
============================================= */
.minicart-drawer {
  position: fixed;
  inset: 0;
  z-index: 7100;
  pointer-events: none;
  display: none;
}

.minicart-drawer.is-open {
  display: block;
  pointer-events: auto;
}

.minicart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
  opacity: 0;
  transition: opacity .3s ease;
}

.minicart-drawer.is-open .minicart-drawer__backdrop {
  opacity: 1;
}

.minicart-drawer__panel {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.34,1.1,.64,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.minicart-drawer.is-open .minicart-drawer__panel {
  transform: translateX(-50%) translateY(0);
}

.minicart-items {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px;
}

.minicart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.minicart-item:last-child { border-bottom: none; }

.minicart-item__emoji {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.minicart-item__info { flex: 1; }

.minicart-item__name {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.minicart-item__price {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 800;
  color: var(--primary);
}

.minicart-item__remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  cursor: pointer;
  border: none;
  transition: background .15s;
}

.minicart-item__remove:hover { background: #fde8e8; color: #c0392b; }

.minicart-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.minicart-total {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.minicart-checkout-btn {
  display: block;
  width: 100%;
  height: 54px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(255,77,28,.3);
  transition: background .2s, transform .15s;
}

.minicart-checkout-btn:active {
  transform: scale(.97);
  background: var(--primary-dark);
}

.minicart-empty {
  padding: 48px 20px;
  text-align: center;
}

/* =============================================
   DESKTOP CENTERING
============================================= */
@media (min-width: 480px) {
  body {
    background: #111;
    padding: 0;
    align-items: flex-start;
  }
  #app-wrapper {
    margin: 0 auto;
  }
}

/* =============================================
   UTILITY
============================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* =============================================
   WOOCOMMERCE INTEGRATION
============================================= */
.woocommerce-page .woocommerce,
.woocommerce-wrapper { padding: 0 20px; }

.woocommerce a.button,.woocommerce button.button,
.woocommerce input.button,.woocommerce #respond input#submit,
.woocommerce .button.alt {
  background: var(--primary) !important; color: #fff !important;
  font-family: var(--font-display) !important; font-weight: 700 !important;
  border-radius: var(--radius-xl) !important; border: none !important;
  padding: 14px 24px !important; font-size: .9rem !important;
  box-shadow: 0 6px 20px rgba(255,77,28,.3) !important;
  transition: background .2s !important;
}
.woocommerce a.button:hover,.woocommerce button.button:hover {
  background: var(--primary-dark) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important; padding: 12px 16px !important;
  font-family: var(--font-body) !important; font-size: .9rem !important;
  color: var(--text) !important; background: var(--surface) !important;
  width: 100% !important; transition: border-color .2s !important;
}
.woocommerce form .form-row input.input-text:focus {
  border-color: var(--primary) !important; outline: none !important;
}

.woocommerce table.shop_table { border: none !important; font-size: .9rem !important; }
.woocommerce table.shop_table th {
  font-family: var(--font-display) !important; font-weight: 700 !important;
  border-bottom: 2px solid var(--border) !important; padding: 10px 8px !important;
}
.woocommerce table.shop_table td {
  border-bottom: 1px solid var(--border) !important; padding: 12px 8px !important;
  vertical-align: middle !important;
}

.woocommerce .order-total .amount,
.woocommerce .cart_totals .order-total .amount {
  color: var(--primary) !important;
  font-family: var(--font-display) !important; font-weight: 800 !important;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none !important; padding: 0 !important;
  margin: 0 0 24px !important; display: flex !important;
  flex-wrap: wrap !important; gap: 8px !important;
}
.woocommerce-MyAccount-navigation ul li a {
  display: inline-block !important; padding: 8px 18px !important;
  border-radius: var(--radius-xl) !important; background: var(--surface-2) !important;
  font-family: var(--font-display) !important; font-size: .82rem !important;
  font-weight: 600 !important; color: var(--text-muted) !important;
  transition: background .2s, color .2s !important;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--primary) !important; color: #fff !important;
}

.woocommerce-message { border-top-color: var(--primary) !important; font-size: .9rem !important; }
.woocommerce-error   { border-top-color: #e74c3c !important; font-size: .9rem !important; }
.woocommerce .woocommerce-breadcrumb { display: none; }
