/* =========================
   Root Variables
========================= */
:root {
  --bg: #f7faf8;
  --card: #fff;
  --text: #142a1f;
  --muted: #6b7d73;

  --brand: #2ea46c;
  --brand-600: #238a59;
  --accent: #f5a623;

  --shadow: 0 10px 24px rgba(0, 0, 0, .08);
  --radius: 18px;
}

/* =========================
   Base & Global
========================= */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   Navbar
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 248, .85);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.logo.small {
  width: 28px;
  height: 28px;
}

.links {
  display: flex;
  gap: 16px;
  margin-left: auto;
  margin-right: 8px;
}

.links a {
  color: inherit;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}

.links a:hover {
  color: white;
  background: green;
}

.icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  width: 20px;
  height: 20px;
}

.iconbtn {
  position: relative;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  border-radius: 999px;
  padding: 8px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #111;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: .72rem;
  font-weight: 700;
  border: 2px solid #fff;
}

.hamburger {
  display: none;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #333;
  margin: 3px 0;
}

/* =========================
   Search Bar
========================= */
/* hide search bar by default */
#searchbar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* show search bar */
#searchbar.show {
  max-height: 100px; /* adjust based on your input height */
}

.searchbar {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 8px 0;
  background: #fff;
}

.searchbar.show {
  display: block;
}

.searchbar input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  font: inherit;
}



/* Sidebar hidden by default */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: #fff;
  border-right: 3px solid #ff9800;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  transition: left 0.3s ease-in-out;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* Show menu */
.mobile-menu.active {
  left: 0;
}

/* Header inside menu */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.menu-header .logo {
  width: 40px;
  margin-right: 10px;
}
.close-btn {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* Menu links */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.menu-links a {
  text-decoration: none;
  font-size: 18px;
  color: #333;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.menu-links a:hover {
  background: green;
  color: #fff;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  width: 22px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* Show hamburger on small screen */
@media (max-width: 768px) {
  .links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    width: 70%; /* Full menu on very small screen */
  }
}




/* =========================
   Hero Section
========================= */
.hero {
  padding: 24px 0 10px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  background: linear-gradient(120deg, #eafdf6, #e7fff4 40%, #fff);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #dcf7eb;
  box-shadow: var(--shadow);
}

.copy {
  padding: 24px;
}

.copy h1 {
  margin: 6px 0 6px;
  font-size: clamp(1.6rem, 2.4vw + .5rem, 2.2rem);
}

.copy p {
  color: var(--muted);
  margin: 6px 0 14px;
}

.cta {
  display: flex;
  padding-top: 50px;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn.outline {
  background: #fff;
  color: var(--text);
}

.hero-img {
  padding: 24px; /* adjust as per your design (400px, 600px, etc.) */
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the box without stretching */
  display: block;
}


/* =========================
   Toolbar & Products Grid
========================= */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-count {
  color: var(--muted);
  margin-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .links {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Product Card
========================= */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1f5f3;
  overflow: hidden;
}

.info {
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  flex: 1;
}

.title {
  font-weight: 600;
}

.muted {
  color: var(--muted);
  font-size: .92rem;
}

.price {
  font-weight: 700;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.add {
  margin: 10px 0 4px;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

/* =========================
   Categories
========================= */
.categories {
  padding: 10px 0 0;
}

.chipbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chip {
  padding: 6px 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.chip.active {
  background: #e8fbf3;
  border-color: #b6f2dc;
  color: #0b6a47;
  font-weight: 600;
}

/* =========================
   Testimonials
========================= */
.testimonials {
  padding: 28px 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 10px;
}

.slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px;
}

.tcard {
  min-width: 260px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px;
  text-align: center;
}

.tcard img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 8px;
  object-fit: cover;
}

.stars {
  color: #f5b301;
}

.slider-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

/* =========================
   Blog Section
========================= */
/* Blog Section */
.blog {
  padding: 50px 20px;
  background: #fafafa;
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

/* Slider */
.blog-slider {
  overflow: hidden;
  position: relative;
}

.blog-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.blog-card {
  min-width: 300px;
  max-width: 300px;
  margin: 0 10px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.blog-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 15px;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.blog-content p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 15px;
}

.btn-read {
  text-decoration: none;
  color: #fff;
  background: #28a745;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.slider-btn:hover {
  background: #28a745;
}
.blog-slider { position: relative; overflow: hidden; }
.blog-track { display: flex; gap: 16px; will-change: transform; }
.blog-card { flex: 0 0 auto; pointer-events: auto; }
.slider-btn { z-index: 20; } /* ensure buttons are above track */


/* Responsive */
@media (max-width: 768px) {
  .blog-card {
    min-width: 250px;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .blog-card {
    min-width: 220px;
    max-width: 220px;
  }
}



/* Contact Section */
.contact {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f6f9fc, #eafaf1); /* soft gradient */
  border-top: 8px solid #27ae60;
  border-bottom: 8px solid #27ae60;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
  color: #2c3e50;
  border-bottom: 4px solid #27ae60;
  display: inline-block;
  padding-bottom: 5px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

/* Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: white;
  padding: 30px;
  border-radius: 16px;
  border: 3px solid #27ae60;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Contact Info */
.contact-info h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #222;
  border-left: 5px solid #27ae60;
  padding-left: 10px;
}

.contact-info p {
  margin: 10px 0;
  color: #444;
  font-size: 1rem;
}

.contact-info i {
  margin-right: 10px;
  color: #27ae60;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  display: inline-block;
  margin-right: 12px;
  font-size: 1.2rem;
  color: #27ae60;
  border: 2px solid #27ae60;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #27ae60;
  color: white;
}

/* Contact Form */
.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background: #fefefe;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #27ae60;
  background: #f4fff8;
  box-shadow: 0 0 8px rgba(39, 174, 96, 0.3);
}

.btn-submit {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background: linear-gradient(45deg, #219150, #27ae60);
}

/* Map */


/* Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Footer
========================= */
.site-footer {
  background: #111;
  color: #eee;
  margin-top: 24px;
  padding: 24px 0 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr;
  gap: 16px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.foot-col h4 {
  margin: 6px 0 8px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.socials {
  display: flex;
  gap: 8px;
}

.social {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #222;
}

.social svg {
  width: 18px;
  height: 18px;
  fill: #eee;
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.foot-links a {
  color: #bbb;
  text-decoration: none;
}

.foot-links a:hover {
  color: #fff;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.newsletter input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: #222;
  color: #fff;
}

.newsletter .btn {
  border-color: transparent;
}

.tiny {
  color: #888;
  margin-top: 10px;
  text-align: center;
  font-size: .9rem;
}

/* =========================
   Overlay & Drawer (Cart)
========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 80;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 360px;
  max-width: 100%;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .15);
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
}

.drawer.show {
  transform: translateX(0);
}

.drawer-head {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.drawer .content {
  padding: 8px 16px;
  overflow: auto;
  flex: 1;
  display: grid;
  gap: 8px;
}

.drawer-foot {
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: 12px 16px;
  display: grid;
  gap: 10px;
}

/* =========================
   Login Modal
========================= */
.login-modal {
  border: 0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  width: min(92vw, 380px);
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.login-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .12);
}

.close-x {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  box-shadow: var(--shadow);
}


/* Language Switcher */
.language-switch {
  position: relative;
  margin-left: 15px;
}

.lang-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 120px;
  list-style: none;
  padding: 5px 0;
}

.lang-menu li {
  text-align: left;
}

.lang-menu li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
}

.lang-menu li a:hover {
  background: #f2f2f2;
}

/* Show menu on hover */
.language-switch:hover .lang-menu {
  display: block;
}
/* Dropdown base (override hover-based behavior) */
/* Base dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Button style */
.dropdown .iconbtn {
  background-color: #28a745;
  color: #fff;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #218838;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, border 0.3s;
}

.dropdown .iconbtn:hover {
  background-color: #218838;
  border-color: #1e6c2f;
}

/* Dropdown menu */
.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background-color: #fff;
  min-width: 120px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 100;
}

/* Dropdown links */
.dropdown .dropdown-menu a {
  display: block;
  padding: 6px 10px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.dropdown .dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown .dropdown-menu a:hover {
  background-color: #f2f2f2;
}

/* Show menu on toggle */
.dropdown.show .dropdown-menu {
  display: block;
}

/* ---------------- Responsive for mobile ---------------- */

/* Medium screens (tablets) */
@media (max-width: 768px) {
  .dropdown .iconbtn {
    font-size: 13px;
    padding: 5px 8px;
  }
  .dropdown .dropdown-menu a {
    font-size: 13px;
    padding: 5px 8px;
  }
}

/* Small screens (mobile) */
@media (max-width: 480px) {
  .dropdown {
    width: auto; /* keep it small and inline */
  }
  .dropdown .iconbtn {
    font-size: 12px;
    padding: 4px 6px; /* smaller padding for compact look */
    border-radius: 4px;
  }
  .dropdown .dropdown-menu {
    min-width: 100px; /* smaller width for mobile */
    top: 100%;
    right: 0;
    border-radius: 4px;
  }
  .dropdown .dropdown-menu a {
    font-size: 12px;
    padding: 4px 6px;
  }
}



