/* Eirene Sans font faces for fruit listings */
@font-face {
  font-family: 'Eirene Sans';
  src: url('/static/products/fonts/EireneSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Eirene Sans';
  src: url('/static/products/fonts/EireneSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Alias family to use bold glyphs without changing font-weight */
@font-face {
  font-family: 'Eirene Sans Bold Only';
  src: url('/static/products/fonts/EireneSans-Bold.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Fruit listing card typography */
/* Force override against global !important font in premium.css */
.fruit-card,
.fruit-card * {
  font-family: 'Eirene Sans', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}
.fruit-card h2 { font-weight: 700 !important; }
.fruit-card .no-image { font-weight: 400 !important; }
/* Prices use bold font face without adjusting font-weight */
.fruit-card .fruit-info {
  font-family: 'Eirene Sans Bold Only', 'Eirene Sans', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Fruit detail typography */
.fruit-detail-container,
.fruit-detail-container * {
  font-family: 'Eirene Sans', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}
.fruit-detail-info h1 { font-weight: 700 !important; }
.fruit-detail-info .price,
.fruit-detail-info .stock,
.fruit-detail-info .desc { font-weight: 400 !important; }
/* Light theme overrides */

/* Base */
body {
  background: #ffffff;
  color: #222222;
}

/* Navbar Layout and Logo Styling */
.navbar {
  background: #ffffff;
  color: #111111;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  justify-content: center; /* Centers nav-links */
  align-items: center;
  font-weight: bold;
  font-size: 0.9rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  padding: 1rem 2rem;
}

.logo {
  position: absolute;
  left: 2rem; /* Flushed left with margin */
  top: 50%;
  transform: translateY(-50%);
}

.logo img {
  height: 40px; /* Scaled to navbar height */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 40px;
  /* Centered by parent .navbar's justify-content: center */
}

.nav-links a,
.nav-auth a {
  color: #111111;
}
.nav-links a.active-link {
  color: #8a6d1f; /* dark gold */
}

/* Mode Indicator */
.mode-indicator {
  margin-top: 8px;
  text-align: center;
}

.mode-badge {
  display: inline-block;
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
  animation: modePulse 2s ease-in-out infinite;
}

@keyframes modePulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.9;
  }
  50% { 
    transform: scale(1.05); 
    opacity: 1;
  }
}



/* Wide Secondary Action Button for Display Mode */
.secondary-action-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
  width: 100%;
  margin-top: 12px;
}

.secondary-action-wide:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
  color: white;
  text-decoration: none;
}

.cart-section {
  position: fixed;
  right: 24px;
  bottom: 24px;
  top: auto;
  transform: none;
  z-index: 1100;
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #8a6d1f, #c09e2c);
  border-radius: 20px;
  text-decoration: none;
  color: white;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(138, 109, 31, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  border-radius: 20px;
}

.cart-icon:hover::before {
  left: 100%;
}

.cart-icon:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 35px rgba(138, 109, 31, 0.35);
  color: white;
  border-radius: 24px;
}

.cart-icon.has-items {
  animation: cartPulse 2s infinite;
}

.cart-icon-svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: all 0.3s ease;
}

.cart-icon:hover .cart-icon-svg {
  transform: scale(1.1);
  stroke-width: 2.5;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border-radius: 12px;
  min-width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  animation: countBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  letter-spacing: 0.5px;
  z-index: 1200;
}

@keyframes cartPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 8px 25px rgba(138, 109, 31, 0.25);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 12px 35px rgba(138, 109, 31, 0.4);
  }
}

@keyframes countBounce {
  0% { 
    transform: scale(0) rotate(-180deg); 
    opacity: 0;
  }
  50% { 
    transform: scale(1.1) rotate(10deg); 
    opacity: 1;
  }
  100% { 
    transform: scale(1) rotate(0deg); 
    opacity: 1;
  }
}

/* Cart Notifications */
.cart-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: #ffffff;
  color: #2c3e50;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #28a745;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 1001;
  max-width: 300px;
  font-weight: 500;
}

.cart-notification.show {
  transform: translateX(0);
}

.cart-notification.error {
  border-left-color: #dc3545;
}

.cart-notification.warning {
  border-left-color: #ffc107;
}

/* Address bar */
.address {
  background: #f7f7f7;
  color: #555555;
  padding: 6px 0;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

/* Hero overlay */
.overlay {
  color: #111111;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.title { color: #111111; }
.subtitle { color: #444444; }

/* Buttons */
.button {
  background-color: #8a6d1f;
  color: #ffffff;
}
.button:hover {
  background-color: #6f5618;
}

/* Restaurant section */
.restaurant-section {
  color: #111111;
}
.restaurant-overlay {
  background-color: rgba(255, 255, 255, 0.9);
  color: #222222;
}
.restaurant-title { color: #8a6d1f; }
.feature h3 { color: #8a6d1f; }
.feature h4 { color: #333333; }
.feature p { color: #555555; }

/* Reservation note */
.reservation-note {
  background-color: #ffffff;
  color: #222222;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}
.reservation-note h3 { color: #8a6d1f; }

/* Footer */
footer {
  background: #ffffff;
  color: #666666;
  border-top: 1px solid #eeeeee;
}

/* Slideshow styles */
.hero {
  position: relative;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide:nth-child(1) { background-image: url('/static/products/img/slideshow/main1.jpg'); }
.slide:nth-child(2) { background-image: url('/static/products/img/slideshow/main2.jpg'); }
.slide:nth-child(3) { background-image: url('/static/products/img/slideshow/main3.jpg'); }
.slide:nth-child(4) { background-image: url('/static/products/img/slideshow/main4.jpg'); }
.slide:nth-child(5) { background-image: url('/static/products/img/slideshow/main5.jpg'); }
.slide:nth-child(6) { background-image: url('/static/products/img/slideshow/main6.jpg'); }
.slide:nth-child(7) { background-image: url('/static/products/img/slideshow/main7.jpg'); }
.slide:nth-child(8) { background-image: url('/static/products/img/slideshow/main8.jpg'); }
.slide:nth-child(9) { background-image: url('/static/products/img/slideshow/main9.jpg'); }
.slide:nth-child(10) { background-image: url('/static/products/img/slideshow/main10.jpg'); }

/* Slideshow controls */
.slideshow-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.slide-dot.active {
  background: #8a6d1f;
}

/* Overlay positioning for slideshow */
.overlay {
  z-index: 5;
  position: relative;
}

/* Page-specific styles */
.wholesale-container,
.faq-container,
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.wholesale-title,
.faq-title,
.contact-title {
  text-align: center;
  color: #8a6d1f;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-family: 'Lulo Clean Bold', 'Lulo Clean', sans-serif;
}

/* Wholesale page styles */
.wholesale-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.wholesale-info {
  padding: 40px;
}

.info-card h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.info-card p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.bulk-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.feature-item {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #8a6d1f;
}

.feature-item h3 {
  color: #8a6d1f;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.feature-item p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

.contact-section {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
}

.contact-section h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-method .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-method strong {
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.contact-method a {
  color: #8a6d1f;
  text-decoration: none;
}

.contact-method a:hover {
  text-decoration: underline;
}

/* FAQ page styles */
.faq-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.faq-table-container {
  padding: 0 40px 40px;
}

.faq-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.faq-table th {
  background: #8a6d1f;
  color: #ffffff;
  padding: 20px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-table td {
  padding: 25px 20px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.faq-table .question {
  font-weight: 600;
  color: #333;
  font-size: 1.05rem;
  width: 35%;
}

.faq-table .answer {
  color: #555;
  width: 65%;
}

.faq-table ul {
  margin: 0;
  padding-left: 20px;
}

.faq-table li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.faq-table li:last-child {
  margin-bottom: 0;
}

.faq-footer {
  background: #f8f8f8;
  padding: 30px 40px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.faq-footer p {
  color: #555;
  margin: 0;
}

.faq-footer a {
  color: #8a6d1f;
  text-decoration: none;
  font-weight: 600;
}

.faq-footer a:hover {
  text-decoration: underline;
}

/* Contact page styles */
.contact-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.contact-info {
  padding: 40px;
  background: #f8f8f8;
}

.info-section h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.info-section p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.contact-item .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-item h3 {
  color: #333;
  margin: 0 0 8px 0;
  font-size: 1.1rem;
}

.contact-item p {
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.contact-item a {
  color: #8a6d1f;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.additional-info {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.additional-info h3 {
  color: #333;
  margin: 0 0 15px 0;
  font-size: 1.2rem;
}

.additional-info ul {
  margin: 0;
  padding-left: 20px;
  color: #555;
}

.additional-info li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.map-container {
  padding: 40px;
  background: #ffffff;
}

.map-container h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
}

.map-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.map-actions {
  text-align: center;
}

.map-link {
  display: inline-block;
  background: #8a6d1f;
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.map-link:hover {
  background: #6f5618;
}

/* Responsive design */
@media (max-width: 768px) {
  /* General mobile adjustments */
  body {
    padding-top: 60px; /* Reduce top padding for mobile */
  }
  
  /* Navbar mobile adjustments */
  .navbar {
    height: 60px;
    padding: 0.5rem 1rem;
  }
  
  .logo img {
    height: 32px; /* Smaller logo on mobile */
  }
  
  /* Compact top contact banner */
  .address {
    font-size: 12px;
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Contact page */
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .contact-info, .map-container { 
    padding: 20px; 
  }
  
  .contact-item { 
    padding: 16px; 
  }
  
  .map-frame, gmp-map { 
    height: 320px; 
  }
  
  /* FAQ */
  .bulk-features {
    grid-template-columns: 1fr;
  }
  
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .faq-table {
    font-size: 0.9rem;
  }
  
  .faq-table th,
  .faq-table td {
    padding: 15px 10px;
  }
  
  .faq-table .question {
    width: 40%;
  }
  
  .faq-table .answer {
    width: 60%;
  }
  
  /* Page containers */
  .wholesale-container,
  .faq-container,
  .contact-container {
    padding: 20px 15px;
  }
  
  /* Titles */
  .wholesale-title,
  .faq-title,
  .contact-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  /* Restaurant section mobile adjustments */
  .restaurant-section {
    padding: 40px 0;
  }
  
  .restaurant-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .restaurant-features {
    gap: 20px;
  }
  
  .feature {
    max-width: 100%;
  }
  
  .feature h3 {
    font-size: 1.5rem;
  }
  
  /* Footer mobile adjustments */
  footer {
    padding: 15px 0;
    font-size: 0.8rem;
  }
  
  /* Cart mobile adjustments */
  .cart-section {
    bottom: 15px;
    right: 15px;
  }
  
  .cart-icon {
    width: 60px;
    height: 60px;
  }
  
  .cart-icon-svg {
    width: 24px;
    height: 24px;
  }
  
  /* Hero section - keep slides unchanged on mobile */
  .hero {
    height: 90vh; /* Maintain full viewport height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .overlay {
    padding: 30px 20px; /* Slightly reduce padding for mobile */
  }
  
  .title {
    font-size: 3rem; /* Slightly smaller but still prominent */
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Google Maps specific styling */
gmp-map {
  width: 100%;
  height: 450px;
  display: block;
  border-radius: 8px;
}

.map-frame {
  width: 100%;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback for when map is loading */
.map-frame:empty::before {
  content: "Loading map...";
  color: #666;
  font-style: italic;
}

