/* ========================================
   PREMIUM CUSTOMER MENU THEME
   ======================================== */

/* Color Variables -- Premium Restaurant/cafe Mobile Menu */
:root {
  --ivory: #F7F2E8;
  --darkgreen: #173A2B;
  --gold: #B9823A;
  --primary-text: #1E1B18;
  --secondary-text: #6F675F;
  --divider: #E5DED2;
  --card-bg: #F7F2E8;
  --overlay: rgba(23, 58, 43, 0.4);
  --gold-accent: #C9924B;
  --gold-light: #D4A557;
  --gold-dark: #9A6D2C;
  
  /* Button colors */
  --btn-primary-bg: #173A2B;
  --btn-primary-text: #F7F2E8;
  --btn-primary-hover: #284D3C;
  
  --btn-gold-bg: rgba(185, 130, 58, 0.2);
  --btn-gold-text: #B9823A;
  --btn-gold-border: rgba(185, 130, 58, 0.5);
  --btn-gold-hover-bg: rgba(185, 130, 58, 0.3);
  
  --call-btn-bg: #B9823A;
  --call-btn-text: #1E1B18;
  --call-btn-hover: #C9924B;
  
  --success-bg: #22C55E;
  --success-text: #1E1B18;
  
  --bg-ivory: #F7F2E8;
  --bg-white: #FFFFFF;
  --bg-gold-subtle: #FFF5E5;
}

/* Tailwind config overrides for premium theme */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ========================================
   CUSTOM UTILITIES
   ======================================== */

/* Color utility classes */
.bg-ivory { background-color: var(--ivory) !important; }
.bg-darkgreen { background-color: var(--darkgreen) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-gold-subtle { background-color: #FFF5E5 !important; }
.text-primary-text { color: var(--primary-text) !important; }
.text-secondary-text { color: var(--secondary-text) !important; }
.text-gold { color: var(--gold) !important; }
.text-gold-accent { color: var(--gold-accent) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-gold-dark { color: var(--gold-dark) !important; }
.text-divider { color: var(--divider) !important; }

/* Background for cards and sections */
.card { background-color: var(--card-bg) !important; }
.overlay { background-color: var(--overlay) !important; }
.bg-gold-subtle { background-color: var(--bg-gold-subtle) !important; }

/* Divider */
.divider { border-color: var(--divider) !important; }

/* ========================================
   BUTTONS
   ======================================== */

/* Primary CTA Button (Premium Green) */
.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 1rem;
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(23, 58, 43, 0.15);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Gold/Gold-themed buttons */
.btn-gold {
  background-color: var(--btn-gold-bg);
  color: var(--btn-gold-text);
  border: 1px solid var(--btn-gold-border);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-gold:hover {
  background-color: var(--btn-gold-hover-bg);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

.btn-gold:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

/* Call Waiter Button */
.call-waiter-btn {
  background-color: var(--call-btn-bg);
  color: var(--call-btn-text);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.call-waiter-btn:hover {
  background-color: var(--call-btn-hover);
  transform: translateY(-1px);
}

.call-waiter-btn:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

/* Secondary buttons */
.btn-secondary {
  background-color: var(--gold);
  color: var(--primary-text);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--gold-light);
}

/* Increment/Decrement buttons (product cards) */
.increment-btn, .decrement-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: var(--gold);
  color: var(--primary-text);
  font-weight: bold;
  font-size: 1.25rem;
  border: none;
  transition: all 0.2s ease;
}

.increment-btn:hover, .decrement-btn:hover {
  background-color: var(--gold-accent);
  transform: scale(1.05);
}

.increment-btn:focus-visible, .decrement-btn:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

/* ========================================
   CARDS AND PRODUCTS
   ======================================== */

/* Product card */
.card-product {
  background-color: var(--card-bg) !important;
  border: 1px solid #E5DED2 !important;
  border-radius: 0.5rem !important;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 100%;
}

.card-product:hover {
  box-shadow: 0 4px 12px rgba(23, 58, 43, 0.08);
}

/* Product image */
.card-product img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-product:hover img {
  transform: scale(1.05);
}

/* Product name */
.product-name {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-text);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

/* Product description */
.product-desc {
  font-size: 0.75rem;
  color: var(--secondary-text);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price */
.product-price {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

/* Quantity controls */
.quantity-controls {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.quantity-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.4375rem;
  background-color: var(--gold);
  color: var(--primary-text);
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.quantity-btn:hover {
  background-color: var(--gold-accent);
}

.quantity-btn:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

/* Section padding */
.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-padding-small {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Max width containers */
.max-w-premium {
  max-width: 100%;
}

/* Safe area utilities */
.safe-area {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile first - base styles already mobile-optimized */

/* Tablet @media (min-width: 640px) */
@media (min-width: 640px) {
  .btn-primary {
    font-size: 1.25rem;
    padding: 0.875rem 2rem;
  }
  
  .call-waiter-btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
  
  .increment-btn, .decrement-btn {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.125rem;
  }
}

/* Desktop @media (min-width: 768px) */
@media (min-width: 768px) {
  .grid.grid-cols-1 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid.grid-cols-2 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid.grid-cols-3 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .max-w-2xl {
    max-width: 22rem;
  }
  
  .cta-btn {
    width: auto;
  }
}

/* Large desktop @media (min-width: 1024px) */
@media (min-width: 1024px) {
  .grid.grid-cols-1 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid.grid-cols-2 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  color: var(--primary-text);
  background-color: var(--ivory);
  padding: 0.5rem;
  z-index: 1000;
}

/* ========================================
   TRANSITIONS
   ======================================== */

* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  transition-duration: 150ms;
}

/* ========================================
   PREMIUM THEME OVERIDES FOR EXISTING CLASSES
   ======================================== */

/* Tailwind-generated classes - override colors */
.btn-primary[data-variant="primary"] {
  --bg-opacity: 1;
  background-color: rgb(var(--btn-primary-bg) / var(--bg-opacity));
  --text-opacity: 1;
  color: rgb(var(--btn-primary-text) / var(--text-opacity));
}

.card[data-variant="elevated"] {
  --bg-opacity: 1;
  background-color: rgb(var(--card-bg) / var(--bg-opacity));
  --border-opacity: 1;
  border-color: rgb(var(--divider) / var(--border-opacity));
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */

@media (prefers-contrast: more) {
  :root {
    --primary-text: #111827;
    --secondary-text: #374151;
    --gold: #D97706;
  }
}