/* Forest Green Theme for Bread N' Brew */

/* Custom Color Palette */
:root {
  --forest-green: #065f46;
  --forest-green-dark: #064e3b;
  --forest-green-light: #10b981;
  --navy-blue: #1e3a8a;
  --elegant-brown: #292524;
  --elegant-brown-dark: #1c1917;
  --elegant-brown-light: #44403c;
}

/* Typography System */
body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.font-display {
  font-family: "Playfair Display", serif;
}

/* Color Classes */
.bg-forest-green {
  background-color: var(--forest-green);
}
.bg-forest-green-dark {
  background-color: var(--forest-green-dark);
}
.bg-forest-green-light {
  background-color: var(--forest-green-light);
}
.text-forest-green {
  color: var(--forest-green);
}
.text-forest-green-dark {
  color: var(--forest-green-dark);
}
.text-forest-green-light {
  color: var(--forest-green-light);
}
.border-forest-green {
  border-color: var(--forest-green);
}
.ring-forest-green {
  --tw-ring-color: var(--forest-green);
}
.hover\:text-forest-green:hover {
  color: var(--forest-green);
}
.hover\:bg-forest-green:hover {
  background-color: var(--forest-green);
}
.hover\:bg-forest-green-dark:hover {
  background-color: var(--forest-green-dark);
}
.hover\:text-forest-green-light:hover {
  color: var(--forest-green-light);
}
.focus\:ring-forest-green:focus {
  --tw-ring-color: var(--forest-green);
}
.focus\:border-forest-green:focus {
  border-color: var(--forest-green);
}

/* Navy Blue */
.bg-navy-blue {
  background-color: var(--navy-blue);
}
.text-navy-blue {
  color: var(--navy-blue);
}

/* Elegant Brown Colors */
.bg-amber-700 {
  background-color: var(--elegant-brown);
}
.bg-amber-800 {
  background-color: var(--elegant-brown-dark);
}
.text-amber-700 {
  color: var(--elegant-brown);
}
.text-amber-800 {
  color: var(--elegant-brown-dark);
}
.hover\:bg-amber-700:hover {
  background-color: var(--elegant-brown);
}
.hover\:bg-amber-800:hover {
  background-color: var(--elegant-brown-dark);
}
.hover\:text-amber-700:hover {
  color: var(--elegant-brown);
}
.focus\:ring-amber-700:focus {
  --tw-ring-color: var(--elegant-brown);
}
.focus\:border-amber-700:focus {
  border-color: var(--elegant-brown);
}

/* Hero Section */
.hero-section {
  background-image:
    linear-gradient(
      135deg,
      rgba(17, 24, 39, 0.8) 0%,
      rgba(17, 24, 39, 0.4) 100%
    ),
    url("https://images.unsplash.com/photo-1497935586351-b67a49e012bf?q=80&w=2071&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Menu Item Cards */
.menu-item-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgb(229, 231, 235);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
}

.menu-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.15);
}

.menu-item-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Featured Item Cards (no add to cart button) */
.featured-item-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgb(229, 231, 235);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
}

.featured-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.15);
}

/* Redesigned Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid rgb(229, 231, 235);
  border-radius: 25px;
  padding: 2px;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quantity-btn {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(236, 72, 153, 0.3);
}

.quantity-btn:hover {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(236, 72, 153, 0.4);
}

.quantity-input {
  background: transparent;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--forest-green);
  width: 50px;
  padding: 4px;
}

.quantity-input:focus {
  outline: none;
}

/* Filter Buttons */
.filter-btn {
  background: white;
  border: 2px solid rgb(229, 231, 235);
  color: rgb(75, 85, 99);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.selected {
  background: var(--forest-green);
  color: white;
  border-color: var(--forest-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.3);
}

/* Cart Styling */
.cart {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
  box-shadow: -8px 0 32px rgba(17, 24, 39, 0.2);
  z-index: 10000;
  max-height: 100vh;
  overflow: hidden;
}

.cart-hidden {
  transform: translateX(110%);
}

/* Cart Backdrop */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.cart-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

.cart-item-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  border: 1px solid rgb(243, 244, 246);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}

.cart-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}

/* Floating Cart Button */
.floating-cart-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(0);
  opacity: 0;
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.3);
  z-index: 1000;
}

.floating-cart-btn.visible {
  transform: scale(1);
  opacity: 1;
}

.floating-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(6, 95, 70, 0.4);
}

/* Toast Notifications */
.toast-wrapper {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(200%);
  opacity: 0;
  pointer-events: none;
}

.toast-wrapper.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile Menu */
.mobile-menu-transition {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.mobile-menu-hidden {
  max-height: 0;
  opacity: 0;
}

.mobile-menu-visible {
  max-height: 500px;
  opacity: 1;
}

/* Search Bar */
#search-bar {
  transition: all 0.3s ease;
}

#search-bar:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.15);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--forest-green) 0%,
    var(--forest-green-dark) 100%
  );
  border: none;
  color: white;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(6, 95, 70, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.4);
}

/* Customize Button */
.customize-btn {
  background: rgba(6, 95, 70, 0.1);
  border: 2px solid rgba(6, 95, 70, 0.3);
  color: var(--forest-green);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.customize-btn:hover {
  background: var(--forest-green);
  color: white;
  border-color: var(--forest-green);
  transform: translateY(-1px);
}

/* Test Options Styling */
.test-options {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.test-option-btn {
  background: white;
  border: 2px solid rgba(6, 95, 70, 0.3);
  color: var(--forest-green);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.test-option-btn:hover,
.test-option-btn.selected {
  background: var(--forest-green);
  color: white;
  border-color: var(--forest-green);
}

/* Price Display */
.price-display {
  font-weight: 600;
  color: var(--forest-green);
  font-size: 1.1em;
}

/* Cart Item Image */
.cart-item-image {
  border: 1px solid rgb(229, 231, 235);
  transition: transform 0.2s ease;
}

.cart-item-image:hover {
  transform: scale(1.05);
}

/* Text truncation for cart descriptions */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cart Scrolling */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ec4899 rgb(243, 244, 246);
  min-height: 0;
  max-height: calc(100vh - 200px);
  padding-right: 4px;
}

.cart-items-container::-webkit-scrollbar {
  width: 8px;
}

.cart-items-container::-webkit-scrollbar-track {
  background: rgb(243, 244, 246);
  border-radius: 4px;
}

.cart-items-container::-webkit-scrollbar-thumb {
  background: #ec4899; /* pink-500 */
  border-radius: 4px;
  border: 1px solid rgb(243, 244, 246);
}

.cart-items-container::-webkit-scrollbar-thumb:hover {
  background: #db2777; /* pink-600 */
}

/* Cart Header */
.cart-header {
  flex-shrink: 0;
  background: white;
  border-bottom: 2px solid var(--elegant-brown);
  z-index: 1;
}

/* Cart Footer */
.cart-footer {
  flex-shrink: 0;
  background: white;
  border-top: 2px solid var(--elegant-brown);
  z-index: 1;
  max-height: 50vh;
  overflow-y: auto;
}

/* Form Styling */
input,
textarea,
select {
  transition: all 0.3s ease;
  border-radius: 8px;
  border: 2px solid rgb(229, 231, 235);
  padding: 12px 16px;
  font-size: 16px;
  background: white;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--forest-green);
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
  transform: translateY(-1px);
}

/* Top Bar Styling */
.top-bar {
  background: var(--forest-green);
  color: white;
  font-size: 14px;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 95, 70, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Touch Targets */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced Hover Effects */
.hover-lift {
  transition: transform 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Section Spacing */
.section-padding {
  padding: 5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .responsive-container {
    padding: 0 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    min-height: 80vh;
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: 3rem;
    line-height: 1.1;
  }

  .hero-section p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .menu-item-card:hover {
    transform: translateY(-2px);
  }

  .cart {
    width: 100% !important;
    max-width: 100% !important;
  }

  .cart-item-card {
    padding: 12px;
    margin-bottom: 12px;
  }

  .cart-item-image {
    width: 14;
    height: 14;
  }

  .filter-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .quantity-controls {
    gap: 4px;
  }

  .top-bar {
    font-size: 12px;
    padding: 0.5rem 0;
  }

  .top-bar .flex {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .section h2 {
    font-size: 2.5rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .glimpse-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-section .flex {
    flex-direction: column;
    gap: 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .test-options {
    gap: 4px;
  }

  .test-option-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  .feature-card {
    padding: 1rem;
  }

  .map-container {
    min-height: 250px;
  }

  .filter-container {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .filter-btn {
    flex-shrink: 0;
    min-width: fit-content;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .responsive-container {
    padding: 0 0.75rem;
  }

  .feature-card {
    padding: 0.75rem;
  }

  .quantity-controls {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

/* Featured Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Glimpse Gallery */
.glimpse-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .glimpse-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-section {
    background-attachment: scroll;
  }
}

/* Focus States */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--forest-green);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--forest-green);
  color: white;
}

/* Custom Scrollbar - Pink */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(243, 244, 246);
}

::-webkit-scrollbar-thumb {
  background: #ec4899; /* pink-500 */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #db2777; /* pink-600 */
}

/* Enhanced Card Shadows */
.shadow-elegant {
  box-shadow:
    0 10px 40px rgba(17, 24, 39, 0.1),
    0 4px 16px rgba(17, 24, 39, 0.05);
}

/* Button Scale Effects */
.scale-hover {
  transition: transform 0.2s ease;
}

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

/* Category Headers */
.category-header {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.category-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--forest-green);
  border-radius: 2px;
}

/* Premium Spacing */
.content-spacing > * + * {
  margin-top: 1.5rem;
}

/* Smooth Animations */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Interactive Elements */
.interactive-hover {
  transition: all 0.2s ease;
}

.interactive-hover:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

/* Text Shadow for Hero */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Border Improvements */
.border-elegant {
  border: 1px solid rgba(229, 231, 235, 0.8);
}

/* Map Styling */
.map-container {
  height: 100%;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(17, 24, 39, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Design Improvements */
.responsive-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.responsive-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Spacing */
.section-spacing {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 3rem 0;
  }

  .responsive-container {
    padding: 0 1rem;
  }

  .responsive-grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .map-container {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .section-spacing {
    padding: 2rem 0;
  }

  .responsive-container {
    padding: 0 0.75rem;
  }

  .responsive-grid {
    gap: 1rem;
  }
}

/* Card Improvements */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(17, 24, 39, 0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
}

@media (max-width: 768px) {
  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 1rem;
  }
}
