/* Eco-Friendly Color Palette */
:root {
    /* Primary Nature Colors */
    --forest-green: #2d5a27;
    --moss-green: #4a7c59;
    --sage-green: #87a96b;
    --mint-green: #a8d5ba;
    --leaf-green: #6b8e23;
    
    /* Earth Tones */
    --earth-brown: #8b4513;
    --bark-brown: #654321;
    --sand-beige: #f5e6d3;
    --cream-white: #faf8f5;
    
    /* Accent Colors */
    --sunset-orange: #d2691e;
    --golden-yellow: #daa520;
    --sky-blue: #4a90e2;
    
    /* Neutral Grays */
    --charcoal: #2c3e50;
    --slate-gray: #5a6c7d;
    --light-gray: #ecf0f1;
    --white-smoke: #f8f9fa;
    
    /* Bootstrap Override Variables */
    --bs-primary: #2d5a27;
    --bs-primary-rgb: 45, 90, 39;
    --bs-success: #4a7c59;
    --bs-success-rgb: 74, 124, 89;
    --bs-warning: #daa520;
    --bs-warning-rgb: 218, 165, 32;
    --bs-info: #4a90e2;
    --bs-info-rgb: 74, 144, 226;
    --bs-danger: #dc3545;
    --bs-danger-rgb: 220, 53, 69;
    
    /* Background Gradients */
    --bg-gradient-light: linear-gradient(135deg, var(--cream-white) 0%, var(--white-smoke) 100%);
    --bg-gradient-green: linear-gradient(135deg, var(--forest-green) 0%, var(--moss-green) 100%);
    --bg-gradient-earth: linear-gradient(135deg, var(--bark-brown) 0%, var(--earth-brown) 100%);
    
    /* Text Colors */
    --text-primary: var(--charcoal);
    --text-secondary: var(--slate-gray);
    --text-muted: #6c757d;
    --text-light: var(--cream-white);
}

/* Bootstrap compatibility */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif !important;
    background: var(--bg-gradient-light);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}
  
  footer {
    margin-top: auto;
    /* Rest of your footer styles */
    background: linear-gradient(135deg, #4a7c59 0%, #2d5016 100%);
    color: white;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(74, 124, 89, 0.2);
  }
  
  header {
    display: flex;
    
    justify-content: flex-end;
    align-items: center;
    padding: 1% 10%;
    padding-bottom: 0px;
    background: linear-gradient(135deg, #4a7c59 0%, #2d5016 100%);
    box-shadow: 0 2px 10px rgba(74, 124, 89, 0.2);
  }
  ul li a {
    display: block;
    padding:  10px;
  }

  ul li ul.dropdown li {
    display: block;
  }

  ul li ul.dropdown {
    width: auto;
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    position: absolute;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
    border-radius: 8px;
  }

  .navbar_list:hover {
    background: rgba(74, 124, 89, 0.3);
    height: 50%;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  ul li:hover ul.dropdown {
    display: block;
  }


  .lang {
    padding-left: 20px;
  }

  .logo {
    margin-right: auto;
    border-radius: 50%;
    width: 30%;
  }
  .logo-checkout {
    margin-left: 20px;
    background-color: #edf0f1;
    border-radius: 50%;
  }

  .language-selector {
    margin-left: 20px;
    border-radius: 50%;
  }

  .language-selector img{
    width: 30px;
    height: auto;
  }

  .logo-checkout img{
    width: 50px;
    height: auto;
  }

  .logo img{
    margin-right: auto;
    width: 30%;
    border-radius: 50%;
    height: auto;
    padding: 0%;
  }
  
  .nav__links {
    list-style: none;
    display: flex;
  }
  
  .nav__links a,
  .cta,
  .overlay__content a {
    font-family: "Big Shoulders Inline", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: #edf0f1;
    text-decoration: none;
    font-size: 30px;
  }
  
  .nav__links li {
    padding: 0px;
  }
  
  .nav__links li a {
    transition: all 0.3s ease 0s;
  }
  
  .nav__links li a:hover {
    color: #DCBCAA;
  }
  
  .cta {
    margin-left: 20px;
    padding: 9px 25px;
    background-color: #8B4513;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
  }
  
  .cta:hover {
    background-color: #6B4513;
  }
  
  /* Mobile Nav */
  
  .menu {
    display: none;
  }
  
  .overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #4a7c59 0%, #2d5016 100%);
    overflow-x: hidden;
    transition: all 0.5s ease 0s;
  }
  
  .overlay--active {
    width: 100vw;
    right: 0;
  }
  
  .overlay__content {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .overlay a {
    padding: 15px;
    font-size: 36px;
    display: block;
    transition: all 0.3s ease 0s;
  }
  
  .overlay a:hover,
  .overlay a:focus {
    color: #DCBCAA;
  }
  .overlay .close {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    color: #edf0f1;
    cursor: pointer;
  }
  .footer-info {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch; /* This will stretch the children to fill the container */
    padding: 20px;
    background-color: #8B4513;
    color: white;
    border-top: 1px solid lightgray;
}

.footer-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1; /* This will allow the section to expand */
    padding: 20px;
    border-left: 1px solid lightgray;
    /* No need for border-top here, as it's already been set in .footer-info for the first child */
}

.footer-section:first-child {
    border-left: none;
}

.footer-section .footer-head {
    margin-bottom: 10px;
    margin-top: 20px;
    color: #eee;
    font-size: medium;
}

.footer-section a,
.footer-section p {
    color: white;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    font-size: small;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    margin-bottom: 5px;
    font-size: small;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-logo {
   border-radius: 50%;
    max-width: 50%;  
    margin-top: 10px;
    margin-bottom: 10px; /* Add this if you want to ensure some space below the image as well */
    align-self: center; /* This will also help ensure the logo is centered horizontally in its container */
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* Bootstrap navbar mobile adjustments */
  .navbar-brand span {
    display: none !important;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Mobile hero section */
  .hero-section {
    padding: 3rem 0 !important;
  }

  .hero-section .display-4 {
    font-size: 2rem !important;
  }

  .hero-section .lead {
    font-size: 1rem !important;
  }

  .hero-section .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }

  /* Mobile cards and sections */
  .card-body {
    padding: 1.5rem !important;
  }

  .section {
    padding: 2rem 0 !important;
  }

  /* Mobile typography */
  h1, .h1 {
    font-size: 1.75rem !important;
  }

  h2, .h2 {
    font-size: 1.5rem !important;
  }

  h3, .h3 {
    font-size: 1.25rem !important;
  }

  /* Mobile navigation improvements */
  .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }

  /* Mobile product grid */
  .product-grid {
    gap: 1rem;
  }

  /* Mobile forms */
  .form-control,
  .form-select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  /* Mobile buttons */
  .btn {
    min-height: 44px; /* Touch-friendly size */
  }

  .btn-lg {
    min-height: 48px;
  }

  /* Mobile spacing */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Mobile images */
  .img-fluid {
    border-radius: 0.5rem !important;
  }

  /* Mobile tables (for cart) */
  .table-responsive {
    border: none;
  }

  /* Mobile footer */
  .footer-info {
    flex-direction: column;
    align-items: stretch;
  }
  
  .footer-section {
    border-left: none;
    border-top: 1px solid lightgray;
    padding: 10px 0;
  }
  
  .footer-section:first-child {
    border-top: none;
  }
  
  .footer-logo {
    margin: 10px auto;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 576px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .card {
    margin-bottom: 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .row.g-2 .btn,
  .row.g-3 .btn {
    width: auto;
    margin-bottom: 0;
  }

  /* Mobile hero adjustments */
  .hero-section .display-4 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }

  .hero-section .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .hero-section .btn:last-child {
    margin-bottom: 0;
  }

  /* Mobile step indicators */
  .col-lg-2.col-md-4.col-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* Eco Theme Enhancements */
.text-warning {
    color: var(--golden-yellow) !important;
}

.text-info {
    color: var(--sky-blue) !important;
}

.text-primary {
    color: var(--forest-green) !important;
}

.bg-warning {
    background-color: var(--golden-yellow) !important;
}

.bg-info {
    background-color: var(--sky-blue) !important;
}

.bg-primary {
    background-color: var(--forest-green) !important;
}

/* Custom eco button hover effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Card hover effects */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Icon color consistency */
.bi-fire {
    color: var(--sunset-orange) !important;
}

.bi-leaf, .bi-leaf-fill {
    color: var(--sage-green) !important;
}

.bi-shop, .bi-cart3, .bi-cart-plus {
    color: var(--moss-green) !important;
}

/* Success states */
.alert-success {
    background-color: var(--mint-green) !important;
    color: var(--charcoal) !important;
    border-color: var(--moss-green) !important;
}

/* Breadcrumb styling */
.breadcrumb-item.active {
    color: var(--slate-gray) !important;
}

.breadcrumb-item a {
    color: var(--moss-green) !important;
}

.breadcrumb-item a:hover {
    color: var(--forest-green) !important;
}

/* Form controls enhancement */
.form-control:focus, .form-select:focus {
    border-color: var(--moss-green) !important;
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25) !important;
}

/* Badge improvements */
.badge {
    font-weight: 500 !important;
}

/* Navbar improvements */
.navbar-nav .nav-link:hover {
    color: var(--mint-green) !important;
}

.dropdown-item:hover {
    background-color: var(--light-gray) !important;
    color: var(--forest-green) !important;
}

/* Footer hover effects */
.hover-link:hover {
    color: #a8d5ba !important;
    text-decoration: underline !important;
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }
  .overlay .close {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }

  .logo img {
    margin-right: auto;
    width: 50px;
    border-radius: 50%;
    height: 50px;
    padding: 0%;
  }

  .logo {
    width: 50px;
  }
}

@media only screen and (max-width: 800px) {
  .nav__links,
  .cta {
    display: none;
  }
  .menu {
    display: initial;
  }
}