@import url('https://fonts.googleapis.com/css2?family=Lavs+Grunge&display=swap');

:root {
  /* Premium Color Palette */
  --jungle-green: #2e7d32;
  --jungle-dark: #1b5e20;
  --jungle-light: #4caf50;
  --soft-beige: #fdf6e3;
  --gold-accent: #ffb300;
  --gold-dark: #f53500;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #9e9e9e;
  --gray-dark: #424242;
  --shadow-sm: 0 4px 12px rgba(46, 125, 50, 0.08);
  --shadow-md: 0 8px 32px rgba(46, 125, 50, 0.12);
  --shadow-lg: 0 15px 50px rgba(46, 125, 50, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--jungle-green) 0%, var(--jungle-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--soft-beige) 0%, #e8f5e8 100%);
  /* Global page side gutters */
  --page-gap: 20px;
}

/* Note: removed previous global override that forced transparency
   to restore original visuals and button backgrounds. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--white);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  color: var(--jungle-dark);
}

/* Keep full-width base, sections will center inner content themselves */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--page-gap); }
/* Home page: use 90% width for containers and key sections */
.home-page .container { max-width: none; width: 90%; margin: 0 auto; }
/* Override index sub-sections that cap at 1180px */
.home-page .categories-strip .section-head,
.home-page .categories-strip .swiper,
.home-page .featured-swiper,
.home-page .section .section-head,
.home-page .flash-sale-section .container,
.home-page .testimonials-section .container,
.home-page .blog-section .container,
.home-page .trust-section .section-head,
.home-page .trust-section .trust-grid,
.home-page .grid-reco {
  max-width: none;
  width: 90%;
  margin: 0 auto;
}

/* Ensure Trust section background spans edge-to-edge */
.home-page .trust-section {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

/* Utility for centering content to a nice measure */
.inner { max-width: 1180px; margin: 0 auto; padding: 0; }

/* Hero */
.hero-advanced { background: var(--jungle-green); color: var(--white); display: flex; align-items: center; position: relative; }
.hero-advanced::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.15); z-index: 0; }
.hero-advanced .hero-content { padding: 80px var(--page-gap); position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; width: 100%; text-align: center; }
.hero-advanced h1 { color: #fff; font-size: clamp(32px, 5vw, 64px); line-height: 1.1; }
.hero-advanced .lead { color: #e8f5e9; margin: 10px 0 24px; }
.hero-cta-btn { background: var(--gradient-primary); }

/* CTA strip (image-backed, centered) */
.cta-advanced { background: var(--gradient-primary); color: #fff; padding: 72px 0; position: relative; overflow: hidden; min-height: 50vh; }
.cta-advanced .cta-inner { display: flex; gap: 32px; align-items: center; justify-content: center; max-width: 1180px; margin: 0 auto; padding: 0 var(--page-gap); text-align: center; flex-direction: column; position: relative; z-index: 1; }
/* Ensure spacing between CTA title, text, and button */
.cta-advanced .cta-inner > div:first-child { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-advanced .cta-inner > div:first-child h2,
.cta-advanced .cta-inner > div:first-child p { margin: 0; }
.cta-advanced h2 { color: #fff; margin-bottom: 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; }
.cta-advanced .muted { color: rgba(255,255,255,0.92); }
.cta-advanced .btn.lg { padding: 20px 44px; font-size: 1.15rem; }
.cta-advanced .cta-graphic { display: none; }
/* Image element used as background for CTA */
.cta-advanced .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: brightness(0.7); }
/* CTA: apply background image via CSS (not transparent) */
.cta-advanced.quotation-bg {
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
              url('../images%20and%20logo/quotation_section_img.png') center/cover no-repeat;
}

/* Flash Sale */
.flash-sale-section { background: var(--gradient-primary); padding: 60px 0; color: #fff; }
.flash-sale-section .container { max-width: 1180px; margin: 0 auto; padding: 0 var(--page-gap); }
.flash-sale-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.flash-sale-section .section-head { text-align: center; }
.flash-sale-section .section-head h2 { color: #fff; }
.flash-sale-section .section-head .countdown-timer { display: inline-block; margin-top: 6px; }
.countdown-timer { background: rgba(255,255,255,0.2); border-radius: 10px; padding: 10px 14px; font-weight: 700; letter-spacing: 1px; }
.flash-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.flash-product-card { background: #fff; color: var(--gray-dark); border-radius: 16px; box-shadow: var(--shadow-md); padding: 18px; text-align: center; position: relative; }
.flash-product-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; }
.flash-product-card .sale-badge { position: absolute; top: 12px; left: 12px; background: #16a34a; color: #fff; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.flash-product-card .flash-price { font-weight: 700; margin: 10px 0; }
.flash-product-card .original-price { text-decoration: line-through; color: #9e9e9e; font-weight: 500; margin-left: 6px; }

/* Testimonials */
.testimonials-section { background: #fff7e6; padding: 60px 0; }
.testimonials-section .container { max-width: 1180px; margin: 0 auto; padding: 0 var(--page-gap); }
.testimonials-section h2 { margin-bottom: 20px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-md); padding: 18px; }
.testimonial-content { color: #555; margin-bottom: 14px; }
.testimonial-author strong { color: var(--jungle-dark); }

/* Why Choose Jungle Mart (Trust) */
.trust-section { padding: 36px 0; background: var(--soft-beige); }
.trust-section .section-head { max-width: 1180px; margin: 0 auto 20px; padding: 0; }
.trust-section .trust-grid { max-width: 1180px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 22px; text-align: center; }
.trust-icon { font-size: 28px; margin-bottom: 8px; }

/* Blog */
.blog-section { background: #fff; padding: 60px 0; }
.blog-section .container { max-width: 1180px; margin: 0 auto; padding: 0 var(--page-gap); }
.testimonials-section h2,
.blog-section h2 { text-align: center; font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 12px; }
.blog-section .section-subtitle { text-align: center; margin: 0 auto 16px; color: #6b7280; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.blog-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.blog-content { padding: 16px; }
.blog-content h3 { margin-bottom: 8px; }
.read-more { color: var(--jungle-green); text-decoration: none; font-weight: 600; }

/* Recommended grid */
.recommended-section { padding: 24px var(--page-gap); }
.recommended-section .section-head { max-width: 1180px; margin: 0 auto 16px; }
.grid-reco { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; padding: 0 0 16px; }
.product-card.small img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.product-card.small .card-body { padding: 12px; }

/* Categories + Featured (Swipers) */
.categories-strip { padding: 28px 0; }
.categories-strip .section-head { max-width: 1180px; margin: 0 auto 16px; padding: 0 var(--page-gap); text-align: center; }
.categories-strip .swiper { max-width: 1180px; margin: 0 auto; padding: 0 var(--page-gap); }
.featured-swiper { max-width: 1180px; margin: 0 auto; padding: 0 var(--page-gap); }
.section .section-head { max-width: 1180px; margin: 0 auto 16px; padding: 0 var(--page-gap); text-align: center; }

/* Swiper nav buttons visible on light background */
.categories-strip .swiper-button-prev, .categories-strip .swiper-button-next,
.featured-swiper .swiper-button-prev, .featured-swiper .swiper-button-next {
  color: var(--jungle-green);
  background: #fff;
  width: 38px; height: 38px; border-radius: 50%;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}

/* Place Categories arrows at the horizontal corners of the slider */
.categories-strip .swiper { position: relative; }
.categories-strip .swiper-button-prev { left: 0; right: auto; top: 50%; transform: translateY(-50%); }
.categories-strip .swiper-button-next { right: 0; left: auto; top: 50%; transform: translateY(-50%); }

@media (max-width: 992px) {
  .flash-products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-section .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-reco { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .flash-products-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trust-section .trust-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .grid-reco { grid-template-columns: 1fr; }
}

/* ===============================
   Premium Button Styles
================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 1;
  visibility: visible !important;
}

.btn::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.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.05);
  -webkit-transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.3);
}

.btn.secondary {
  background: transparent;
  color: var(--jungle-green);
  border: 2px solid var(--jungle-green);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  background: var(--jungle-green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn.lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn.ghost {
  background: transparent;
  color: var(--jungle-green);
  border: 2px solid transparent;
}

.btn.ghost:hover {
  border-color: var(--jungle-green);
  background: rgba(46, 125, 50, 0.1);
}

/* ===============================
   Premium Hover Effects
================================= */
.hover-3d {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  visibility: visible !important;
}

.hover-3d:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 25px 50px rgba(46, 125, 50, 0.2);
}

.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 20px rgba(46, 125, 50, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
  opacity: 1;
}

/* ===============================
   Premium Scroll Animations
================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  visibility: visible !important;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   Premium Focus States
================================= */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.3);
}

/* ===============================
   Premium Selection Styles
================================= */
::selection {
  background: var(--jungle-green);
  color: var(--white);
}

::-moz-selection {
  background: var(--jungle-green);
  color: var(--white);
}

/* AOS fallback: keep content visible if animations don't run */
body:not(.aos-enabled) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* Generic sections + headings */
.section { padding: 32px 0; }
.section-head { text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 8px; }
.section-head .muted, .muted { color: #6b7280; margin: 0; max-width: 780px; margin-left: auto; margin-right: auto; }

/* Global page titles across inner pages */
main h1, .page-title, .products-header h1, .products-header h2, .contact-title, .cart-title {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  margin: 12px 0 20px;
}

/* Responsive media */
img, video { max-width: 100%; height: auto; }

/* Home page heading emphasis */
.home-page .section-head h2 { font-size: clamp(26px, 3.8vw, 40px); }

/* Generic: center the first heading inside page containers on inner pages */
.container > h1:first-child,
.container > h2:first-child {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 12px 0 20px;
}
.section-head .muted, .muted { color: #6b7280; }

/* Product card defaults (Featured + Recommended) */
.product-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.product-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.product-card .card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .card-actions { margin-top: auto; display: flex; gap: 10px; }

/* Swiper slides auto-height for product cards */
.featured-swiper .swiper-slide { height: auto; }
