/* ============================================================
   ECOMMERCE-V2 — STYLES.CSS — Verde & Co
   Light eco · Green + Cream · DM Sans + Lora
   ============================================================ */

:root {
  --green: #15803d;
  --green-dark: #166534;
  --green-light: #f0fdf4;
  --green-rgb: 21, 128, 61;

  --white: #ffffff;
  --cream: #faf8f4;
  --gray-50: #f8f7f3;
  --gray-100: #f1efea;
  --gray-200: #e2dfda;
  --gray-300: #c8c3b8;
  --gray-400: #9a9488;
  --gray-500: #6b6458;
  --gray-600: #4d4639;
  --gray-700: #3a3428;
  --gray-800: #262118;
  --gray-900: #1a1610;

  --canvas: var(--cream);
  --canvas-alt: var(--white);
  --ink: var(--gray-900);
  --ink-soft: var(--gray-700);
  --muted: var(--gray-500);
  --border: var(--gray-200);

  --font-main: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Lora', Georgia, serif;

  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.78rem);
  --fs-sm: clamp(0.82rem, 0.76rem + 0.3vw, 0.9rem);
  --fs-base: clamp(0.92rem, 0.86rem + 0.3vw, 1rem);
  --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --fs-lg: clamp(1.15rem, 1rem + 0.75vw, 1.4rem);
  --fs-xl: clamp(1.4rem, 1.1rem + 1.5vw, 2rem);
  --fs-2xl: clamp(1.8rem, 1.3rem + 2.5vw, 2.8rem);
  --fs-3xl: clamp(2.2rem, 1.5rem + 3.5vw, 3.6rem);
  --fs-4xl: clamp(2.8rem, 1.8rem + 5vw, 4.5rem);

  --section-py: clamp(60px, 8vw, 110px);
  --container-max: 1140px;
  --container-px: clamp(16px, 4vw, 32px);

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-2xl: 28px; --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04); --shadow-md: 0 4px 16px rgba(0,0,0,0.06); --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1); --duration: 0.35s;
  --z-sticky: 200; --z-overlay: 300; --z-preloader: 500;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; overflow-x: hidden; }
body { font-family: var(--font-main); font-size: var(--fs-base); color: var(--ink); background: var(--canvas); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
::selection { background: rgba(var(--green-rgb), 0.12); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-px); }
.kicker { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.section-title { font-size: var(--fs-3xl); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 14px; }
.section-title em { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--green); }
.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); border-radius: var(--radius-full); padding: 12px 28px; transition: all var(--duration) var(--ease); border: 2px solid transparent; white-space: nowrap; }
.btn .material-icons { font-size: 18px; }
.btn--primary { background: var(--green); color: var(--white); box-shadow: 0 4px 14px rgba(var(--green-rgb), 0.2); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--green-rgb), 0.3); }
.btn--outline { border-color: var(--border); color: var(--ink); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn--sm { padding: 8px 20px; font-size: var(--fs-xs); }
.btn--lg { padding: 16px 36px; font-size: var(--fs-base); }

/* PRELOADER */
.preloader { position: fixed; inset: 0; z-index: var(--z-preloader); background: var(--cream); display: flex; align-items: center; justify-content: center; transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease); }
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__leaf { font-size: 32px; margin-bottom: 8px; animation: leafBounce 1s ease-in-out infinite; }
@keyframes leafBounce { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(5deg); } }
.preloader__text { font-size: var(--fs-sm); font-weight: 800; color: var(--ink); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: calc(var(--z-sticky) + 1); background: var(--green); transform-origin: left; transform: scaleX(0); }

/* ANNOUNCE */
.announce { text-align: center; font-size: var(--fs-xs); font-weight: 600; color: var(--green-dark); padding: 8px; background: var(--green-light); border-bottom: 1px solid rgba(var(--green-rgb), 0.1); }

/* NAVBAR */
.navbar { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(250,248,244,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0,0,0,0.04); transition: box-shadow var(--duration); }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.navbar__brand { font-size: var(--fs-base); font-weight: 400; color: var(--ink); }
.navbar__brand strong { font-weight: 800; }
.navbar__list { display: flex; gap: 4px; }
.navbar__link { padding: 6px 14px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); border-radius: var(--radius-md); transition: color var(--duration), background var(--duration); }
.navbar__link:hover { color: var(--green); background: var(--green-light); }
.navbar__actions { display: flex; align-items: center; gap: 4px; }
.navbar__icon-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--muted); border-radius: var(--radius-md); transition: color var(--duration), background var(--duration); }
.navbar__icon-btn:hover { color: var(--green); background: var(--green-light); }
.navbar__icon-btn .material-icons { font-size: 20px; }
.navbar__cart { position: relative; }
.navbar__cart-count { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.navbar__burger { display: none; flex-direction: column; gap: 5px; width: 24px; }
.navbar__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--duration); }
.navbar__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.active span:nth-child(2) { opacity: 0; }
.navbar__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero { padding: clamp(60px, 8vw, 100px) 0 var(--section-py); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__badge { display: inline-block; font-size: var(--fs-xs); font-weight: 700; color: var(--green); padding: 6px 16px; border: 1px solid rgba(var(--green-rgb), 0.15); border-radius: var(--radius-full); background: var(--green-light); margin-bottom: 20px; }
.hero__title { font-size: var(--fs-4xl); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 20px; }
.hero__title em { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--green); }
.hero__lead { font-size: var(--fs-md); color: var(--muted); line-height: 1.8; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__trust { display: flex; gap: 20px; flex-wrap: wrap; }
.hero__trust span { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.hero__img img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius-2xl); }

/* CATEGORIES */
.categories { padding: var(--section-py) 0; }
.categories__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { text-align: center; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: all var(--duration); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card img { width: 100%; height: 200px; object-fit: cover; }
.cat-card h3 { font-size: var(--fs-sm); font-weight: 800; padding: 14px; }

/* PRODUCTS */
.products { padding: var(--section-py) 0; background: var(--canvas-alt); }
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: var(--cream); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); transition: all var(--duration); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__img { position: relative; overflow: hidden; }
.product-card__img img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-card__img img { transform: scale(1.03); }
.product-card__badge { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800; padding: 3px 10px; background: var(--green); color: var(--white); border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.04em; }
.product-card__info { padding: 16px; }
.product-card__cat { font-size: var(--fs-xs); font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 4px; }
.product-card__info h3 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.product-card__bottom { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-size: var(--fs-base); font-weight: 800; color: var(--green); }
.product-card__add { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; transition: all var(--duration); }
.product-card__add:hover { background: var(--green-dark); transform: scale(1.1); }
.product-card__add .material-icons { font-size: 18px; }

/* VALUES */
.values { padding: var(--section-py) 0; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-card { text-align: center; padding: 28px 20px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--white); transition: all var(--duration); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .material-icons { font-size: 32px; color: var(--green); margin-bottom: 12px; }
.value-card h3 { font-size: var(--fs-sm); font-weight: 800; margin-bottom: 6px; }
.value-card p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }

/* ABOUT */
.about { padding: var(--section-py) 0; background: var(--canvas-alt); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__img img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius-2xl); }
.about__content p { font-size: var(--fs-md); color: var(--muted); line-height: 1.8; margin-bottom: 14px; }

/* BLOG */
.blog { padding: var(--section-py) 0; }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: all var(--duration); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card__info { padding: 18px; }
.blog-card__info span { font-size: var(--fs-xs); font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 6px; }
.blog-card__info h3 { font-size: var(--fs-sm); font-weight: 700; line-height: 1.4; }

/* NEWSLETTER */
.newsletter { padding: var(--section-py) 0; background: var(--green); text-align: center; color: var(--white); }
.newsletter .section-title { color: var(--white); }
.newsletter .section-title em { color: rgba(255,255,255,0.7); }
.newsletter p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.newsletter__form { display: flex; gap: 0; max-width: 440px; margin: 0 auto; }
.newsletter__form input { flex: 1; border: none; border-radius: var(--radius-full) 0 0 var(--radius-full); background: rgba(255,255,255,0.15); padding: 14px 20px; color: var(--white); font-size: var(--fs-sm); }
.newsletter__form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter__form input:focus { outline: none; background: rgba(255,255,255,0.2); }
.newsletter__form .btn { border-radius: 0 var(--radius-full) var(--radius-full) 0; background: var(--white); color: var(--green); }
.newsletter__form .btn:hover { background: var(--gray-100); }

/* FOOTER */
.footer { padding: 48px 0 0; border-top: 1px solid var(--border); }
.footer__top { display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px; padding-bottom: 36px; }
.footer__logo { font-size: var(--fs-base); font-weight: 400; color: var(--ink); margin-bottom: 10px; display: inline-block; }
.footer__logo strong { font-weight: 800; }
.footer__brand p { font-size: var(--fs-sm); color: var(--gray-400); line-height: 1.5; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h5 { font-size: var(--fs-sm); font-weight: 800; margin-bottom: 12px; }
.footer__cols a { display: block; font-size: var(--fs-sm); color: var(--gray-400); padding: 3px 0; transition: color var(--duration); }
.footer__cols a:hover { color: var(--green); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--gray-400); flex-wrap: wrap; gap: 10px; }
.footer__bottom div { display: flex; gap: 16px; }
.footer__bottom a { color: var(--gray-400); transition: color var(--duration); }
.footer__bottom a:hover { color: var(--green); }

.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(var(--green-rgb), 0.25); z-index: var(--z-overlay); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all var(--duration); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__img { display: none; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .navbar__menu { position: fixed; inset: 0; width: 100vw; height: 100dvh; background: var(--cream); z-index: var(--z-overlay); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s; }
  .navbar__menu.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.4s var(--ease); }
  .navbar__list { flex-direction: column; gap: 8px; }
  .navbar__link { font-size: var(--fs-lg); padding: 12px 24px; }
  .navbar__burger { display: flex; position: relative; z-index: calc(var(--z-overlay) + 1); }
}
@media (max-width: 768px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter__form { flex-direction: column; }
  .newsletter__form input { border-radius: var(--radius-full); }
  .newsletter__form .btn { border-radius: var(--radius-full); }
}
@media (max-width: 480px) {
  .hero__title { font-size: var(--fs-2xl); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .categories__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
