/* ---------------------------------------------------------------------
   THEME TOKENS
   Defines brand colors and common text/background values used site-wide.
   --------------------------------------------------------------------- */
:root {
  --green: #0bbf71;       /* Primary brand green */
  --green-dark: #0a8f55;  /* Darker shade for hover/active */
  --text: #1f2937;        /* Body text color */
  --muted: #6b7280;       /* Secondary/Muted text color */
  --soft: #f8fafc;        /* Soft neutral background */
}


/* ---------------------------------------------------------------------
   GLOBAL RESET / TYPOGRAPHY
   Normalizes box model, sets base font and page background.
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f6f7ff;
  background-image: 
  linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
  url("../img/Backgroundimage.jpeg");

  background-size: cover;       /* full screen */
  background-position: center;  /* center image */
  background-repeat: no-repeat; /* stop repeating */
  background-attachment: fixed;
  font-size: 18px;
  overscroll-behavior: none;
}


/* ---------------------------------------------------------------------
   LAYOUT PRIMITIVES
   Container, flex/grid helpers to compose sections quickly.
   --------------------------------------------------------------------- */
.container {
  width: 95%;
  /*max-width: 1200px;*/
  margin-inline: auto;
}

/* Flex utility classes */
.flex { display: flex; gap: 16px; }
.between { justify-content: space-between; }
.align-center { align-items: center; }

/* Grid utility classes */
.grid { display: grid; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-16 { gap: 16px; }
.gap-24 { gap: 60px; }

.btncolor{
	background-color: #528B6E !important;
	color: white !important;
	border-color: #fff !important;
}
.btncolor:hover{
	background: var(--green) !important; 
	color: #fff !important;
}

.btncolor:disabled {
  opacity: 0.5;       /* makes it look faded */
  cursor: not-allowed; /* shows a blocked cursor */
}
/* ---------------------------------------------------------------------
   TOPBAR
   Narrow strip above the header showing phone and email.
   Hidden on mobile via media query below.
   --------------------------------------------------------------------- */
.topbar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
  display: block;           /* visible by default on larger screens */
}
.topbar a {
  color: #e2e8f0;
  text-decoration: none;
}
.topbar .container { padding: 8px 0; }
.sep { opacity: .6; margin: 0 8px; }

/* Hide topbar on small screens (saves vertical space) */
@media (max-width: 767.98px) {
  .topbar { display: none; }
}


/* ---------------------------------------------------------------------
   SITE HEADER / NAVIGATION BAR
   Sticky brand bar with logo, desktop nav, and mobile hamburger.
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #528B6E;        /* your green header background */
  border-bottom: 1px solid #e5e7eb;
}

.logo img {
  height: 85px;
  right: 15px;
  position: relative;
}

.logo-area{
display:flex;
gap:12px;
position: relative;
height:100px;
}

.logo-area img{
height:99px;
width:auto;
}

.logo-text h2{
margin:0;
font-size:45px;
font-weight:700;
color:white;
}

.logo-text span{
font-size:18px;
color:wheat;
letter-spacing:1px;
}

/* Desktop nav list */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;        /* horizontal on desktop */
  gap: 22px;
}
.nav a {
  display: block;
  padding: 35px 10px;
  color: inherit;
  text-decoration: none;
}
.nav a.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}

/* Dropdown (desktop) */
.has-dropdown { position: relative; }
.dropdown {
  display: none !important;       /* hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  min-width: 240px;
  padding: 8px 0;
}
.has-dropdown:hover .dropdown { display: block !important; }
.dropdown a { padding: 10px 14px; }

/* Mobile menu controls (hidden on desktop) */
.nav-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: #0f172a;
  border-radius: 2px;
}


/* ---------------------------------------------------------------------
   HERO / SLIDER
   Full-width carousel with three slides and overlay text panel.
   --------------------------------------------------------------------- */
.slider {
  position: relative;   /* establishes positioning context for arrows */
  overflow: hidden;
  background: #eee;     /* fallback */
}
.slides {
  display: flex;                 /* horizontal filmstrip */
  transition: transform .6s ease;/* animated slide */
}
.slide {
  min-width: 100%;                         /* each slide = viewport width */
  height: clamp(320px, 50vw, 520px);       /* responsive height */
  position: relative;
}

/* Gradient placeholders if no image is present */
.slide.hero1 { background: linear-gradient(120deg, #fde7b0, #fff); }
.slide.hero2 { background: linear-gradient(120deg, #dff9df, #fff); }
.slide.hero3 { background: linear-gradient(120deg, #dbe7ff, #fff); }

/* Text panel over the slide image */
.slide-text {
  position: absolute;
  left: 6%;
  bottom: 14%;
  background: rgba(255, 255, 255, .9);
  padding: 18px 20px;
  border-radius: 12px;
  max-width: min(560px, 88%);
}

/* Small pill badges used in hero (CTAs) */
.badges { display: flex; gap: 8px; margin-top: 6px; }
.badge  {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
}

.hero{
  display: flex;
  align-items: center;
}

.hero-container{
  width: 100%;
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

.hero-text h1{
  font-size:50px;
  line-height:1.2;
  margin-bottom:20px;
}

.hero-text p{
  font-size:18px;
  max-width:520px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-slider{
  width:100%;
  height:240px;
  border-radius:15px;
  overflow:hidden;
  margin-top:20px;
}

.hero-slides {
  display: flex;
  animation: slide 15s infinite;
}

.hero-slider img{
  width:100%;
  height:100%;
  object-fit:cover;
}

@keyframes slide {

  0% {transform: translateX(0);}
  33% {transform: translateX(-100%);}
  56% {transform: translateX(-200%);}
  79% {transform: translateX(-300%);}
  100% {transform: translateX(0);}

}

.why{
background:#f9fafb;
}

.why-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
}

.why-card{
flex:0 0 calc(33.333% - 10px);
background:#528B6E;
padding:20px;
border-radius:12px;
text-align:center;
box-shadow:0 5px 15px rgba(0,0,0,0.05);
transition:0.3s;
color:white;
}

.why-card:hover{
transform:translateY(-6px);
}

.why-card i{
font-size:32px;
color:#0a7a3c;
margin-bottom:12px;
display:block;
}

.why-card h3{
margin-bottom:10px;
font-size:18px;
 color: wheat;
}

.why-slider{
position:relative;
overflow:hidden;
}

.why-track {
  display: flex;
  gap: 14px;          /* keep in sync with JS reading this gap */
  overflow: hidden;
  scroll-behavior: smooth;
  flex: 1 1 auto;     /* occupy the space between arrows */
  padding:10px;
}

.carousel2 {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.why-prev,
.why-next {
  background: #e5e7eb;
  border: 0;
  border-radius: 8px;
  width: 60px;
  height: 36px;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease;
}
.why-prev:hover,
.why-next:hover { background: #d1d5db; }

/* ---------------------------------------------------------------------
   CATEGORY GALLERY (6 tiles)
   Clickable tiles that link to category pages with text overlay.
   --------------------------------------------------------------------- */
.product-gallery {
  /*background: #0c7a43; /* green band behind the grid */
  padding: 20px 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Tile visual - image background + bottom label overlay */
.tile {
  height: 180px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  position: relative;      /* for ::after label positioning */
  display: block;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

/* Pull label text from data-label attribute */
.tile::after {
  content: attr(data-label);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 65%);
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
  letter-spacing: .3px;
  line-height: 1.2;
  pointer-events: none; /* clicks pass through to <a> */
}

/* Decorative gradient fallbacks if image is absent */
.g1 { background: linear-gradient(120deg, #ffeacc, #ffd7a6); }
.g2 { background: linear-gradient(120deg, #eef2f3, #e2ebf0); }
.g3 { background: linear-gradient(120deg, #e3ffe5, #cdf7d1); }
.g4 { background: linear-gradient(120deg, #ffe3e0, #ffc9c3); }
.g5 { background: linear-gradient(120deg, #fff4bf, #ffe58a); }
.g6 { background: linear-gradient(120deg, #f0f0f0, #e2e2e2); }


/* ---------------------------------------------------------------------
   SECTIONS / CARDS / CHECKLIST / FEATURES
   Generic building blocks used across pages.
   --------------------------------------------------------------------- */
.section-title{
text-align:center;
}

.section { padding: 25px 0; }

.card {
  border: 1px solid #0bbf71;
  border-radius: 15px;
  padding: 28px;
  background: #528B6E;
  color: white;
  font-size: 22px;
}

.card-count{
	font-size:28px; color:wheat; font-weight:700;"
}

.checklist { list-style: '✔️ '; padding-left: 25px; }

.features-band { 
/*background: #fff7d6; */
padding: 25px 0; 
}

.feature-card {
  background: #528B6E;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  color:white;
}
.feature-card .icon { font-size: 28px; }

.feature-card h3{
	color: wheat;
}


/* ---------------------------------------------------------------------
   TESTIMONIALS CAROUSEL
   One-card-in-view horizontal scroller with arrows.
   --------------------------------------------------------------------- */
/*.testimonials { background: linear-gradient(180deg, #fff, #f6f7ff); }

/* Wrapper aligns arrows with the track */
.carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Track: overflow clipped horizontal row */
.car-track {
  display: flex;
  gap: 14px;          /* keep in sync with JS reading this gap */
  overflow: hidden;
  scroll-behavior: smooth;
  flex: 1 1 auto;     /* occupy the space between arrows */
}

/* Card size = full track width on mobile; JS scrolls by card width */
.tcard {
  flex: 0 0 100%;
  margin: 12px 0;
  padding: 20px;
  border-left: 4px solid var(--green, #0bbf71);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.tcard footer {
  margin-top: 8px;
  color: var(--muted, #6b7280);
  font-style: normal;
}

/* Arrow buttons */
.car-prev,
.car-next {
  background: #e5e7eb;
  border: 0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease;
}
.car-prev:hover,
.car-next:hover { background: #d1d5db; }


/* ---------------------------------------------------------------------
   CALL TO ACTION (CTA) STRIP
   Green band with prominent WhatsApp / Enquiry buttons.
   --------------------------------------------------------------------- */
.cta.green { background: #528B6E; color: #fff; padding: 24px 0; }
.cta .btn.light { border: 2px solid #fff; color: #fff; }


/* ---------------------------------------------------------------------
   FOOTER
   Site footer with quick links and contact info.
   --------------------------------------------------------------------- */
.site-footer {
  margin-top: 8px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 30px 0;
}
.site-footer a { color: #e2e8f0; }
.copy { text-align: center; opacity: .8; margin-top: 14px; }

.follow-title{
  font-weight: bold;
  margin-top: 25px;
}

.social-links{
display:grid;
gap:5px;
}

.social-links a{
display:flex;
align-items:center;
gap:8px;
color:#fff;
text-decoration:none;
margin-bottom:8px;
font-size:15px;
}

.social-links a i{
font-size:18px;
}

.list-quick{
	position:relative;
	right:20px;
	display: grid;
    gap: 10px;
}

.list-address{
	position:relative;
	right:20px;
}
/* ---------------------------------------------------------------------
   FLOATING WHATSAPP BUTTON
   Fixed circular action button at bottom-right of the viewport.
   --------------------------------------------------------------------- */
.whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}


/* ---------------------------------------------------------------------
   BUTTONS
   Primary, outline and light variants used across the site.
   --------------------------------------------------------------------- */
.btn {
  border: 2px solid var(--green);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--green);
  display: inline-block;
}
.btn.primary { background: var(--green); color: #fff; }
.btn.outline { background: transparent; }
.btn.light   { background: transparent; }
.btn:hover{
	background: var(--green); color: #fff;
}

.product-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:25px;
margin-top:30px;
}

.product-card{
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
padding-bottom:15px;
transition:0.3s;
text-align:center;
}

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

.product-card h3{
font-size:20px;
margin:15px;
}

.product-card p{
font-size:18px;
margin:0 15px 15px;
color:#555;
}

.product-card:hover{
transform:translateY(-5px);
box-shadow:0 10px 25px rgba(0,0,0,0.12);
}

.cert-page{
	text-align:center;
	margin-bottom:30px;
}

.cert-slider{
display:flex;
gap:20px;
overflow-x:auto;
scroll-behavior:smooth;
padding:10px;
}

.slide{
min-width:320px;
background:#fff;
border-radius:10px;
box-shadow:0 5px 20px rgba(0,0,0,0.08);
padding:10px;
height:auto;
}

.slide img{
width:100%;
}

.policy-header{
color:black;
text-align:center;
}

.policy-header h1{
font-size:40px;
margin-bottom:10px;
}

.policy-container{
margin:auto;
padding:25px 0px;
}

.policy-section{
background:white;
padding:35px;
margin-bottom:30px;
border-radius:10px;
box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.policy-section h2{
color:#0b3d63;
margin-bottom:15px;
}

.policy-section p{
line-height:1.7;
color:#444;
}

.policy-section ul{
margin-top:10px;
padding-left:20px;
}

.policy-section li{
margin-bottom:8px;
}

.highlight{
background:#f4f8fb;
padding:15px;
border-left:4px solid #0b3d63;
margin-top:15px;
border-radius:5px;
}
/* ---------------------------------------------------------------------
   CART DRAWER (BASE)
   Right-side slide-in panel for cart, shared by desktop/mobile.
   --------------------------------------------------------------------- */
#cartDrawer {
  width: 420px;
  max-width: 92%;
}

/* Disabled state for the checkout button (accessibility + UX) */
#checkoutBtn.is-disabled,
#checkoutBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;   /* prevent hover/clicks */
}

/* Always full width for the action button */
#checkoutBtn { width: 100%; }

/* Prevent background scroll when cart is open */
body.cart-open { overflow: hidden; }

/* Highlight selected filter button */
[data-filter].active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* --- Contact page Optional polish (uses your palette); remove if you don't want extra CSS --- */
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.form-card  { background:#528B6E; border:1px solid #e2e8f0; border-radius:12px; padding:18px; color:white}
.form-field { display:flex; flex-direction:column; gap:6px; }
.form-field label { font-weight:600; font-size:14px; }
.form-field input, .form-field select, .form-field textarea {
  border:1px solid #dfe3ea; border-radius:8px; padding:10px 12px; font:inherit;
  outline: none; background:#fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11,191,113,.12);
}
.help { font-size:15px; }
.error { color:#b42318; font-size:13px; display:none; }
.is-invalid { border-color:#b42318 !important; box-shadow:0 0 0 3px rgba(180,35,24,.10) !important; }
.actions { display:flex; gap:10px; flex-wrap:wrap; }
.btn.icon { display:inline-flex; gap:8px; align-items:center; font-size:16px;}
.contact-card li { margin:6px 0; }
.divider { height:1px; background:#eef2f7; margin:12px 0; }
@media (max-width:900px){ .form-grid{ grid-template-columns:1fr; } 

/* About page Optional polish — keeps layout consistent with your updated pages */
.about-head {
  margin-bottom: 16px;
  max-width: 760px;
}
.stat-box {
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:18px;
  text-align:center;
}
.stat-box h2 {
  margin:0;
  font-size:28px;
  color:var(--green);
}
.stat-box p {
  margin:6px 0 0;
  font-size:14px;
  color:#6b7280;
}
.line {
  height:1px;
  background:#e5e7eb;
  margin:18px 0;
}
/* ---------------------------------------------------------------------
   RESPONSIVE: TABLET & DOWN (<= 900px)
   Converts desktop nav into a full-screen mobile sheet.
   --------------------------------------------------------------------- */
@media (max-width: 900px){

.hero{
	padding: 0px 0;
}
.hero-container{
grid-template-columns:1fr;
text-align:center;
}

.hero-buttons{
justify-content:center;
}
}

@media (max-width: 900px) {

  /* Grid stacks to one column on smaller screens */
  .cols-2 { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }

  /* Hide desktop nav; show hamburger */
  .nav ul { display: none; }
  .hamburger { display: flex; right: 12px; position: absolute; }

  /* Show mobile nav sheet when checkbox is checked */
  .nav-toggle:checked + .hamburger + .nav ul {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 64px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    padding: 10px;
  }

  /* Dropdown becomes part of the flow on mobile */
  .dropdown { position: static; border: none; box-shadow: none; }
}


/* ---------------------------------------------------------------------
   RESPONSIVE: PHONE & DOWN (<= 620px)
   Mobile-first tweaks: nav sheet, spacing, grid, cart drawer, etc.
   --------------------------------------------------------------------- */
@media (max-width: 620px) {

  /* Header polish on mobile */
  .site-header { border-bottom: none; }
  .logo img { height: 60px; right: 0; }

  /* Mobile nav "sheet" (full-screen panel) */
  .nav ul {
    /* Hidden by default; shown when checkbox is checked (see media <=900px rule) */
    display: none;
    position: fixed !important;
    top: 56px;      /* below header */
    left: 0; right: 0;
    bottom: 0;
    background: #ffffff;
    padding: 10px 14px 24px;
    border-top: 1px solid #e5e7eb;
    overflow-y: auto;
    gap: 0;
  }
  .nav ul li a {
    padding: 14px 6px;
    border-bottom: 1px solid #eef2f7;
  }
  .nav ul li:last-child a { border-bottom: none; }

  /* Hamburger location & visual (white bars on green header) */
  .hamburger { display: flex; position: absolute; right: 12px; top: 20px; }
  .hamburger span { background: #fff; }

  /* Tighter vertical rhythm on small screens */
  .section { padding: 24px 0; }
  .features-band { padding: 18px 0; }

  /* Gallery becomes 2 columns on mobile */
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Mobile type scale */
  h1 { font-size: 22px; margin: 8px 0; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }
  .btn { padding: 10px 14px; }

  /* Product grid: 2 columns on small phones (shop page) */
  #productGrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ---------------- CART DRAWER: MOBILE LAYOUT ----------------
     Make drawer full-screen width and move actions into a sticky bar.
     ------------------------------------------------------------ */
  #cartDrawer {
    right: -100%;            /* start off-screen */
    width: 100%;             /* full-width drawer on mobile */
    max-width: 100%;
    padding: 16px 14px 84px; /* leave bottom space for sticky actions */
    border-left: none;
    box-shadow: 0 -6px 24px rgba(0,0,0,.14);
  }

  /* Sticky action bar at the bottom of the screen */
  #cartDrawer .cart-actions {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 14px;

    /* IMPORTANT: Stack elements vertically to stop subtotal wrapping */
    display: flex;
    flex-direction: column;   /* ← stacks: [totals], [note], [buttons] */
    align-items: stretch;
    gap: 12px;
  }

  /* Keep "Subtotal — ₹amount" on one line within its own row */
  #cartDrawer .cart-actions > .flex.between.align-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 24px;
  }

  /* Advisory note styling inside the sticky bar */
  #cartDrawer .cart-actions > p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
  }

  /* Buttons row inside the sticky bar */
  #cartDrawer .cart-actions > .flex.between {
    display: flex;
    gap: 10px;
  }
  #cartDrawer .cart-actions .btn { width: 50%; } /* Clear / Checkout widths */
}


/* ---------------------------------------------------------------------
   RESPONSIVE: TINY DEVICES (<= 380px)
   Single-column product grid to avoid crowding.
   --------------------------------------------------------------------- */
@media (max-width: 380px) {
  #productGrid { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------------------
   NAV OVERLAY + BODY SCROLL LOCK
   Dark overlay when the mobile menu is open; prevents background scroll.
   --------------------------------------------------------------------- */
#navOverlay {
  position: fixed;
  inset: 0;                      /* shorthand for top/right/bottom/left:0 */
  background: rgba(0, 0, 0, .35);
  z-index: 40;                   /* header is z-index: 50 */
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

/* Lock page scroll while menu is open */
body.menu-open {
  overflow: hidden;
  overscroll-behavior: contain;  /* prevents Android rubber banding */
  width: 100%;
}
/* ---------- Mobile quality-of-life additions ---------- */

/* Make all inline images responsive (prevents overflow in cards/tiles) */
img, svg, video {
  max-width: 100%;
  height: auto;
}

/* Improve tap size and safe areas (optional QoL) */
@media (max-width: 620px) {
  .btn, .nav a, .tile { min-height: 44px; }
  .slide-text { left: 4%; right: 4%; bottom: 10%; padding: 14px 16px; }
}
.site-header { padding-top: env(safe-area-inset-top); }
@supports (padding: max(0px)) {
  #cartDrawer .cart-actions { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* Make the hero overlay breathe a bit on tiny screens */
@media (max-width: 480px) {
  .slide-text { left: 4%; right: 4%; bottom: 10%; padding: 14px 16px; }
}

/* Ensure tiles have a minimum height on very small screens */
@media (max-width: 380px) {
  .tile { height: 160px; }
}

/* Slightly larger hero heading on mid-size phones */
@media (min-width: 381px) and (max-width: 620px) {
  h1 { font-size: 24px; }
  
 .has-dropdown:hover .dropdown { display: none !important; }
}

/* Prevent long words from breaking layout in cards on small screens */
.card, .feature-card, .tcard { word-wrap: break-word; overflow-wrap: anywhere; }

/* Mobile horizontal scroll for filters row (Shop page) */
.filters-scroll {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; scroll-snap-type: x proximity;
}
.filters-scroll .btn { white-space: nowrap; scroll-snap-align: start; }

//* ===== Mobile: Products behaves as a plain link (no dropdown) ===== */

@media (max-width: 900px) {
  /* Hide submenu completely */
 .has-dropdown:hover .dropdown { display: none !important; }

  /* (Polish) Mobile sheet look & feel */
  .nav ul {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    z-index: 60; /* keep above FAB */
  }
  .nav ul li a {
    padding: 14px 12px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav ul li a:active { background: #f8fafc; }
}