/* ============================================
   MOVIRA - Static Clone Stylesheet
   Font: Outfit (Google Fonts)
   Color system: oklch-based theme converted to hex
   ============================================ */

/* --- CSS Custom Properties (Theme) --- */
:root {
  --background: #f5edd8;
  --foreground: #3d2e1f;
  --secondary: #ebe0c4;
  --secondary-foreground: #3d2e1f;
  --muted: #ddd1b5;
  --muted-foreground: #7a6b54;
  --card: #faf5e8;
  --card-foreground: #3d2e1f;
  --accent: #d4600a;
  --accent-foreground: #faf5e8;
  --border: #e5dcc6;
  --input: #ede5d0;
  --ring: #3d2e1f;
  --destructive: #e53e3e;
  --radius: 0.625rem;
  --font: 'Outfit', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

input {
  font-family: inherit;
}

/* --- Utility --- */
.text-center { text-align: center; }
.fw-semibold { font-weight: 600; }

/* --- Container --- */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.container-sm {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container-sm { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container-sm { padding: 0 2rem; }
}

/* --- Section --- */
.section {
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .section { padding: 4rem 0; }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}
.section-title-lg-mb {
  margin-bottom: 3rem;
}

.bg-background { background-color: var(--background); }
.bg-secondary { background-color: var(--secondary); }

/* --- Grid Layouts --- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.gap-lg { gap: 2rem; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(245, 237, 216, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) {
  .nav-container { padding: 1rem 1.5rem; }
}
@media (min-width: 1024px) {
  .nav-container { padding: 1rem 2rem; }
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  flex-shrink: 0;
  transition: color 0.2s;
}
.logo:hover { color: var(--accent); }
@media (min-width: 768px) {
  .logo { font-size: 1.25rem; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  color: var(--foreground);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }

/* Search */
.search-desktop {
  display: none;
  flex: 1;
  max-width: 28rem;
}
@media (min-width: 1024px) {
  .search-desktop { display: block; }
}

.search-mobile {
  display: block;
  padding: 0 1rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .search-mobile { display: none; }
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 28rem;
}

.search-input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--background);
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.search-input::placeholder {
  color: var(--muted-foreground);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212, 96, 10, 0.25);
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover {
  background-color: var(--secondary);
}

.account-btn {
  display: none;
}
@media (min-width: 640px) {
  .account-btn { display: flex; }
}

.cart-wrapper {
  display: none;
}
@media (min-width: 640px) {
  .cart-wrapper { display: block; }
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.625rem;
  font-weight: 700;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: flex;
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 1rem 1rem;
  gap: 0.25rem;
}
.mobile-menu.open {
  display: flex;
}
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}
.mobile-menu-link:hover {
  background-color: var(--secondary);
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 28rem;
  height: 100vh;
  background-color: var(--background);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 70;
}
.cart-sidebar.open {
  transform: translateX(0);
}

.cart-content {
  padding: 1.5rem;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cart-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.cart-close {
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-close:hover {
  background-color: var(--secondary);
}

.cart-empty {
  color: var(--muted-foreground);
  text-align: center;
  padding: 3rem 0;
}

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

.cart-item-img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.375rem;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}

.cart-item-price {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-qty-btn {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  background: var(--background);
  cursor: pointer;
  transition: background-color 0.2s;
}
.cart-qty-btn:hover {
  background-color: var(--secondary);
}

.cart-qty-num {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 1rem;
  text-align: center;
}

.cart-footer {
  border-top: 2px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-total-label {
  font-weight: 700;
  font-size: 1.125rem;
}

.cart-total-price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}
.cart-checkout-btn:hover {
  opacity: 0.9;
}

.add-to-cart-btn.added {
  background-color: #16a34a;
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(to bottom, var(--secondary), var(--background));
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .hero-section { padding: 6rem 0; }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background-color 0.2s, opacity 0.2s;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.5rem 1.5rem;
}
.btn-primary:hover {
  opacity: 0.9;
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.btn-full {
  display: block;
  width: 100%;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--foreground);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  text-align: center;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}
.btn-outline:hover {
  background-color: var(--secondary);
}

/* ============================================
   PROMO CARDS
   ============================================ */
.promo-card {
  background-color: var(--background);
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}
.promo-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.promo-percent {
  color: var(--accent);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.promo-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.promo-desc {
  color: var(--foreground);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.promo-code-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.promo-code {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: var(--accent);
}

.promo-min {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* ============================================
   MENU CARDS
   ============================================ */
.menu-card {
  background-color: var(--background);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.menu-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.menu-card-img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
}

.menu-card-body {
  padding: 1rem;
}

.menu-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.menu-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.badge {
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-card-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.menu-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.menu-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.star {
  color: #eab308;
}

.rating-num {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.rating-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.menu-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ============================================
   FEATURES / WHY CHOOSE
   ============================================ */
.feature-icon-wrapper {
  background-color: rgba(212, 96, 10, 0.1);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon {
  font-size: 1.875rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--muted-foreground);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card {
  display: block;
  background-color: var(--background);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
  text-decoration: none;
}
.category-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.category-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.category-desc {
  color: var(--muted-foreground);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .cta-section { padding: 4rem 0; }
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-cta {
  display: inline-block;
  background-color: var(--accent-foreground);
  color: var(--accent);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: background-color 0.2s;
}
.btn-cta:hover {
  background-color: #ffffff;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--secondary);
  color: var(--foreground);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.footer-contact {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--foreground);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-link {
  color: var(--muted-foreground);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-link:hover {
  color: var(--foreground);
}

.footer-policies {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.footer-policies a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-policies a:hover {
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.footer-trust {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
