/* ============================================================
   Indian Nature Fresh Exports - Main Stylesheet
   Palette: light green & white
   ============================================================ */
:root {
  --infe-green-dark: #2e7d32;
  --infe-green: #4caf50;
  --infe-green-light: #a5d6a7;
  --infe-green-pale: #e8f5e9;
  --infe-white: #ffffff;
  --infe-text: #1b2e1c;
  --infe-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
  --infe-radius: 14px;
  --infe-font: 'Poppins', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--infe-font);
  color: var(--infe-text);
  background-color: var(--infe-white);
}

a { text-decoration: none; }

/* ---------- Navbar ---------- */
.infe-navbar {
  background: var(--infe-white);
  box-shadow: var(--infe-shadow);
  padding: 0.7rem 0;
}
.infe-navbar .navbar-brand {
  color: var(--infe-green-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
}
.infe-navbar .nav-link {
  color: var(--infe-text);
  font-weight: 500;
  margin: 0 6px;
  position: relative;
}
.infe-navbar .nav-link.active,
.infe-navbar .nav-link:hover {
  color: var(--infe-green-dark);
}
.infe-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--infe-green);
  border-radius: 2px;
}
.infe-badge { background: var(--infe-green); color: #fff; font-weight: 500; font-size: 0.6rem; vertical-align: middle; }
.infe-btn-outline {
  border: 1.5px solid var(--infe-green);
  color: var(--infe-green-dark);
  border-radius: 30px;
  padding: 4px 18px;
  transition: all 0.25s ease;
}
.infe-btn-outline:hover { background: var(--infe-green); color: #fff; }

.infe-logout-btn {
    background-color: var(--infe-green);
    color: var(--infe-white);
    border: 1px solid var(--infe-green);
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 30px;
}

.infe-logout-btn:hover {
    background-color: var(--infe-green-pale);
    color: var(--infe-green-dark);
    border-color: var(--infe-green-pale);
}

.navbar-social-icon {
  display: inline-flex;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--infe-green-pale);
  color: var(--infe-green-dark);
  align-items: center; justify-content: center;
  margin-left: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}
.navbar-social-icon:hover { background: var(--infe-green); color: #fff; }

.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
  display: none;
  top: 0; left: 100%; margin-top: -1px;
}
.dropdown-submenu.show > .dropdown-menu {
  display: block;
  animation: dropdownFadeIn 0.22s ease;
}
.dropdown-submenu > .dropdown-toggle.submenu-open {
  background-color: #4caf50 !important;
  color: #fff !important;
}
@media (max-width: 991px) {
  .dropdown-submenu > .dropdown-menu { left: 0; position: static; }
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Mango varieties: two-panel dropdown with side image ---------- */
.mango-dropdown-panel {
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  min-width: 300px;
}
.dropdown-submenu.show > .dropdown-menu.mango-dropdown-panel {
  display: flex;
}
.mango-dropdown-image {
  flex: 0 0 90px;
  background-color: var(--infe-green-pale);
  background-size: cover;
  background-position: center;
  min-height: 200px;
}
.mango-variety-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
  max-height: 220px;
  overflow-y: auto;
}
.mango-variety-list .dropdown-item { padding: 8px 18px; transition: background 0.15s ease; }
.mango-variety-list::-webkit-scrollbar { width: 6px; }
.mango-variety-list::-webkit-scrollbar-track { background: transparent; }
.mango-variety-list::-webkit-scrollbar-thumb { background: var(--infe-green-light); border-radius: 3px; }
@media (max-width: 991px) {
  .mango-dropdown-panel { min-width: 0; }
  .mango-variety-list { max-height: 180px; }
}
/* ---------- Buttons ---------- */
.btn-infe {
  background: var(--infe-green);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-infe:hover { background: var(--infe-green-dark); color: #fff; transform: translateY(-2px); }

/* ---------- Hero Slideshow ---------- */
.hero-slideshow {
  position: relative;
  height: 78vh;
  min-height: 420px;
  overflow: hidden;
}
.hero-slideshow.hero-slideshow-sm {
  height: 38vh;
  min-height: 260px;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,46,28,0.55) 0%, rgba(46,125,50,0.35) 100%);
}
.hero-caption {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  padding-left: 8vw;
  max-width: 650px;
}
.hero-caption.hero-caption-center {
  align-items: center;
  text-align: center;
  padding-left: 0;
  margin: 0 auto;
  max-width: 700px;
}
.hero-caption h1 { font-weight: 700; font-size: 2.8rem; animation: fadeUp 1s ease; }
.hero-caption p { font-size: 1.15rem; animation: fadeUp 1.3s ease; }
.hero-slide-caption { transition: opacity 0.5s ease; }
.hero-slide-caption.is-fading { opacity: 0; }
.hero-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s ease;
}
.hero-brand-line {
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: font-size 0.3s ease, opacity 0.3s ease;
}
.hero-brand-line:hover { opacity: 0.85; }
.hero-brand-line--main {
  font-weight: 700;
  font-size: 2.4rem;
}
.hero-brand-line--sub {
  font-weight: 500;
  font-size: 1.3rem;
  margin-top: 6px;
}
.hero-brand-divider {
  border: none;
  border-top: 2px solid rgba(255,255,255,0.6);
  margin: 12px auto;
  width: 60%;
}
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; }
.hero-dot.active { background: #fff; }

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

/* ---------- Sections ---------- */
.section-pale { background: var(--infe-green-pale); }
.section-title {
  font-weight: 700;
  color: var(--infe-green-dark);
  position: relative;
  margin-bottom: 2rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: var(--infe-green);
  margin-top: 10px;
  border-radius: 3px;
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Category / feature cards ---------- */
.infe-card {
  background: var(--infe-green-light);
  border-radius: var(--infe-radius);
  box-shadow: var(--infe-shadow);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.infe-card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(46,125,50,0.2); }
.infe-card .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--infe-green-pale);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--infe-green-dark);
}

/* ---------- Product grid ---------- */
.product-card {
  background: #fff;
  border-radius: var(--infe-radius);
  overflow: hidden;
  box-shadow: var(--infe-shadow);
  transition: transform 0.3s ease;
  height: 100%;
  border: 1px solid var(--infe-green-dark);
}
.product-card:hover { transform: translateY(-6px); }
.product-card img {
  width: 100%; height: 190px; object-fit: cover;
}
.product-card .product-body { padding: 14px 16px; text-align: center; }
.product-card .product-body h6 { margin: 0; font-weight: 600; color: var(--infe-green-dark); }
.product-filter-bar .btn { border-radius: 30px; margin: 4px; }

/* ---------- Footer ---------- */
.infe-footer {
  background: var(--infe-green-dark);
  color: #eafaea;
}
.infe-footer h5, .infe-footer h6 { color: #fff; }
.infe-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.infe-footer-logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.infe-footer ul.footer-links { list-style: none; padding: 0; margin: 0; }
.infe-footer ul.footer-links li { margin-bottom: 8px; }
.infe-footer ul.footer-links a { color: #d9ecd9; transition: color 0.2s ease; }
.infe-footer ul.footer-links a:hover { color: #fff; }
.infe-footer .get-in-touch p { color: #d9ecd9; margin-bottom: 10px; }
.infe-footer .get-in-touch a { color: #d9ecd9; }
.infe-footer .get-in-touch a:hover { color: #fff; }
.infe-social-icon {
  display: inline-flex;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  align-items: center; justify-content: center;
  margin-right: 8px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.infe-social-icon:hover { background: var(--infe-green); transform: translateY(-3px); }

/* .navbar-socials {
    margin-left: 20px;
}

@media (min-width: 992px) {
    .navbar-socials {
        position: relative;
        right: 1rem;
    }
} */

/* ---------- Login / Landing page ---------- */
.landing-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(27,46,28,0.65), rgba(46,125,50,0.55)),
    url('https://images.unsplash.com/photo-1610832958506-aa56368176cf?w=1600') center/cover no-repeat;
}
/* To use your own photo instead, drop it at assets/images/landing-bg.jpg and swap the url() above. */
.login-card {
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  padding: 40px;
  max-width: 430px;
  margin: auto;
  animation: fadeUp 0.8s ease;
}
.role-toggle { display: flex; background: var(--infe-green-pale); border-radius: 30px; padding: 4px; margin-bottom: 22px; }
.role-toggle button {
  flex: 1; border: none; background: transparent; padding: 8px 0;
  border-radius: 30px; font-weight: 600; color: var(--infe-green-dark);
  transition: all 0.25s ease;
}
.role-toggle button.active { background: var(--infe-green); color: #fff; }
.landing-brand { color: #fff; text-align: center; margin-bottom: 26px; }
.landing-brand h1 { font-weight: 700; font-size: 1.9rem; }
.landing-brand p { opacity: 0.9; }

/* ---------- About page ---------- */
.about-img { border-radius: var(--infe-radius); box-shadow: var(--infe-shadow); width: 100%; object-fit: cover; }

/* ---------- Contact page ---------- */
.contact-card { background: #fff; border-radius: var(--infe-radius); box-shadow: var(--infe-shadow); padding: 30px; }
.contact-map-wrap {
  border-radius: var(--infe-radius);
  overflow: hidden;
  box-shadow: var(--infe-shadow);
  line-height: 0;
}
.form-control:focus { border-color: var(--infe-green); box-shadow: 0 0 0 0.2rem rgba(76,175,80,0.2); }

/* ---------- Admin dashboard ---------- */
.stat-card {
  background: linear-gradient(135deg, var(--infe-green), var(--infe-green-dark));
  color: #fff;
  border-radius: var(--infe-radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--infe-shadow);
}
.stat-card .stat-number { font-size: 2.4rem; font-weight: 700; }
.stat-card .stat-label { opacity: 0.9; }

@media (max-width: 768px) {
  .hero-caption h1 { font-size: 2rem; }
  .hero-brand-line--main { font-size: 1.6rem; }
  .hero-brand-line--sub { font-size: 1rem; }
  .hero-brand-line { font-size: 1.6rem; }
  .hero-brand-line.hero-brand-sub { font-size: 1rem; }
  .hero-caption { padding-left: 6vw; }
}

/* Styling for the floating button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover and active effect */
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* ---------- Featured Categories carousel (home page) ---------- */
.category-scroll-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4px 16px;
  scrollbar-width: none;
  flex: 1;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-card {
  flex: 0 0 320px; /* Increased size so 4 cards overflow the viewport */
  width: 320px;
  border-radius: var(--infe-radius);
  overflow: hidden;
  box-shadow: var(--infe-shadow);
  text-decoration: none;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(46,125,50,0.2); }
.category-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.category-card span {
  display: block;
  text-align: center;
  padding: 12px 8px;
  font-weight: 600;
  color: var(--infe-green-dark);
}
.category-scroll-btn {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--infe-green);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--infe-shadow);
  transition: background 0.25s ease, transform 0.2s ease;
}
.category-scroll-btn:hover { background: var(--infe-green-dark); transform: scale(1.05); }

/* ---------- Small decorative touch next to section titles ---------- */
.title-gif {
  height: 32px;
  width: auto;
  vertical-align: middle;
  margin-left: 10px;
  border-radius: 8px;
}

@media (max-width: 576px) {
  .category-card { width: 150px; }
  .category-card img { height: 100px; }
}
