:root {
  --z-bg: #F6F8F1;
  --z-surface: #FFFFFF;
  --z-surface-2: #EEF3E6;
  --z-text: #1B2A1B;
  --z-muted: #5B6B57;
  --z-primary: #2E7D32;
  --z-primary-2: #7CB342;
  --z-accent: #C9A227;
  --z-border: rgba(46, 125, 50, 0.15);
  --z-shadow: 0 14px 36px rgba(27, 42, 27, 0.08);
  --z-shadow-lg: 0 24px 60px rgba(27, 42, 27, 0.14);
  --z-glass: rgba(255, 255, 255, 0.78);
  --z-radius: 22px;
  --z-pill: 999px;
  --z-font-heading: 'Playfair Display', Georgia, serif;
  --z-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sync Astra Light Globals */
  --ast-global-color-0: #2E7D32;
  --ast-global-color-1: #7CB342;
  --ast-global-color-2: #1B2A1B;
  --ast-global-color-3: #5B6B57;
  --ast-global-color-4: #F6F8F1;
  --ast-global-color-5: #FFFFFF;
  --ast-global-color-6: #EEF3E6;
  --ast-global-color-7: #152019;
  --ast-global-color-8: #C9A227;
}

html[data-theme="dark"] {
  --z-bg: #0D1410;
  --z-surface: #152019;
  --z-surface-2: #1C2A21;
  --z-text: #E9F1E4;
  --z-muted: #A7B5A2;
  --z-primary: #8BC34A;
  --z-primary-2: #4CAF50;
  --z-accent: #D9B648;
  --z-border: rgba(139, 195, 74, 0.18);
  --z-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --z-shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.5);
  --z-glass: rgba(21, 32, 25, 0.82);

  /* Sync Astra Dark Globals */
  --ast-global-color-0: #8BC34A;
  --ast-global-color-1: #4CAF50;
  --ast-global-color-2: #E9F1E4;
  --ast-global-color-3: #A7B5A2;
  --ast-global-color-4: #0D1410;
  --ast-global-color-5: #152019;
  --ast-global-color-6: #1C2A21;
  --ast-global-color-7: #0A100C;
  --ast-global-color-8: #D9B648;
  color-scheme: dark;
}

html[data-theme="dark"] body[class*="elementor-kit-"] {
  --e-global-color-primary: #8BC34A;
  --e-global-color-secondary: #4CAF50;
  --e-global-color-text: #E9F1E4;
  --e-global-color-accent: #D9B648;
}

html.z-theme-animating,
html.z-theme-animating *,
html.z-theme-animating *::before,
html.z-theme-animating *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}

body {
  background-color: var(--z-bg) !important;
  color: var(--z-text) !important;
  font-family: var(--z-font-body);
  overflow-x: hidden;
}

h1, h2, h3, h4, .elementor-heading-title, .site-title {
  font-family: var(--z-font-heading);
  color: var(--z-text);
}

p, li, span, label, .elementor-widget-text-editor {
  color: inherit;
}

a {
  color: var(--z-primary);
  transition: color 0.25s ease;
}

/* Preloader */
#z-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--z-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
#z-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
html[data-shot="1"] #z-preloader {
  display: none !important;
}
.z-preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.z-preloader-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  animation: zBounce 0.9s ease-in-out infinite alternate;
}
.z-preloader-brand {
  font-family: var(--z-font-heading);
  letter-spacing: 0.28em;
  font-size: 14px;
  font-weight: 700;
  color: var(--z-primary);
}
@keyframes zBounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-10px) scale(1.06); }
}

/* Scroll Progress Bar */
#z-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  z-index: 99990;
  background: linear-gradient(90deg, var(--z-primary), var(--z-primary-2), var(--z-accent));
  border-radius: 0 999px 999px 0;
}

/* Cursor Glow (desktop only) */
#z-cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 179, 66, 0.14) 0%, rgba(201, 162, 39, 0.05) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
html[data-theme="dark"] #z-cursor-glow {
  background: radial-gradient(circle, rgba(139, 195, 74, 0.16) 0%, rgba(217, 182, 72, 0.06) 40%, transparent 70%);
}
html[data-shot="1"] #z-cursor-glow {
  display: none !important;
}

/* Sticky Glassmorphism Pill Header */
.site-header {
  position: sticky !important;
  top: 12px;
  z-index: 9990;
  margin: 12px auto 0;
  max-width: 1320px;
  width: calc(100% - 28px);
  border-radius: var(--z-pill);
  background: var(--z-glass) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--z-border);
  box-shadow: var(--z-shadow);
  transition: all 0.3s ease;
}
.site-header .ast-primary-header-bar {
  background: transparent !important;
  border-bottom: none !important;
  border-radius: var(--z-pill);
  padding-top: 6px;
  padding-bottom: 6px;
  transition: padding 0.3s ease;
}
body.z-scrolled .site-header {
  top: 8px;
  box-shadow: var(--z-shadow-lg);
}
body.z-scrolled .site-header .ast-primary-header-bar {
  padding-top: 2px;
  padding-bottom: 2px;
}
.site-header .site-title a {
  font-family: var(--z-font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  color: var(--z-text) !important;
}
.site-header .main-header-menu .menu-link {
  color: var(--z-text) !important;
  font-weight: 500;
  border-radius: var(--z-pill);
  padding: 8px 14px !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.site-header .main-header-menu .menu-link:hover,
.site-header .main-header-menu .current-menu-item > .menu-link {
  background: var(--z-surface-2);
  color: var(--z-primary) !important;
}
.site-header .sub-menu {
  background: var(--z-surface) !important;
  border: 1px solid var(--z-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--z-shadow-lg) !important;
  padding: 8px !important;
  overflow: hidden;
}

/* Theme Toggle Pill */
.z-menu-theme-item {
  display: flex;
  align-items: center;
  margin-left: 8px;
}
.z-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--z-surface-2) !important;
  border: 1px solid var(--z-border) !important;
  border-radius: var(--z-pill) !important;
  padding: 5px 10px 5px 6px !important;
  cursor: pointer;
  color: var(--z-text) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.z-theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.18);
}
.z-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 46px;
  height: 24px;
  padding: 0 5px;
  border-radius: var(--z-pill);
  background: linear-gradient(135deg, var(--z-primary), var(--z-primary-2));
  color: #fff;
  font-size: 12px;
}
.z-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
html[data-theme="dark"] .z-toggle-thumb {
  transform: translateX(22px);
  background: #0D1410;
}
.z-theme-toggle--float {
  display: none;
  position: fixed;
  left: 18px;
  bottom: 20px;
  z-index: 9980;
  padding: 6px !important;
  box-shadow: var(--z-shadow-lg);
}
@media (max-width: 921px) {
  .z-theme-toggle--float {
    display: inline-flex;
  }
}

/* Back-to-top button with SVG progress ring */
#z-back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--z-surface);
  color: var(--z-primary);
  box-shadow: var(--z-shadow-lg);
  cursor: pointer;
  z-index: 9980;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#z-back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#z-back-top svg {
  position: absolute;
  inset: 1px;
  transform: rotate(-90deg);
}
#z-back-top .z-ring-bg {
  fill: none;
  stroke: var(--z-border);
  stroke-width: 2.5;
}
#z-back-top .z-ring-fg {
  fill: none;
  stroke: var(--z-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 119.38;
}
#z-back-top .z-back-arrow {
  position: relative;
  font-size: 16px;
  font-weight: 700;
}

/* Rounded Design Language & Cards */
.z-card,
.z-post-card,
.woocommerce ul.products li.product,
.woocommerce div.product div.images img,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.widget-area .widget,
.eael-post-grid-container .eael-grid-post-holder,
.elementor-widget-image img,
.elementor-accordion .elementor-accordion-item {
  border-radius: var(--z-radius) !important;
}

.z-card,
.z-post-card,
.woocommerce ul.products li.product,
.widget-area .widget,
.eael-post-grid-container .eael-grid-post-holder {
  background: var(--z-surface) !important;
  border: 1px solid var(--z-border) !important;
  box-shadow: var(--z-shadow) !important;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.z-card:hover,
.z-post-card:hover,
.woocommerce ul.products li.product:hover,
.eael-post-grid-container .eael-grid-post-holder:hover {
  transform: translateY(-6px);
  box-shadow: var(--z-shadow-lg) !important;
  border-color: var(--z-primary-2) !important;
}

/* Surface Sections */
.z-section-surface {
  background: var(--z-surface-2) !important;
  border-radius: 32px;
}
.z-section-dark-olive {
  background: linear-gradient(135deg, #15381A 0%, #234F27 55%, #1A3A1E 100%) !important;
  color: #F6F8F1 !important;
  border-radius: 32px;
}
.z-section-dark-olive h1,
.z-section-dark-olive h2,
.z-section-dark-olive h3,
.z-section-dark-olive p,
.z-section-dark-olive .elementor-heading-title,
.z-section-dark-olive .elementor-icon-box-title,
.z-section-dark-olive .elementor-icon-box-description {
  color: #F6F8F1 !important;
}

/* Pill Buttons & Inputs */
.ast-button,
.button,
button,
input[type="submit"],
.elementor-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: var(--z-pill) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.z-btn-primary .elementor-button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce ul.products li.product .button,
.searchandfilter input[type="submit"],
.wpcf7-submit {
  background: linear-gradient(135deg, var(--z-primary), var(--z-primary-2)) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 600 !important;
  padding: 13px 28px !important;
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.26) !important;
}

.z-btn-primary .elementor-button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce ul.products li.product .button:hover,
.searchandfilter input[type="submit"]:hover,
.wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(46, 125, 50, 0.36) !important;
}

.z-btn-outline .elementor-button {
  background: transparent !important;
  color: var(--z-primary) !important;
  border: 1.5px solid var(--z-primary) !important;
  padding: 12px 26px !important;
  font-weight: 600 !important;
}
.z-btn-outline .elementor-button:hover {
  background: var(--z-primary) !important;
  color: #FFFFFF !important;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea,
select,
.select2-container--default .select2-selection--single {
  border-radius: 16px !important;
  background-color: var(--z-surface-2) !important;
  color: var(--z-text) !important;
  border: 1px solid var(--z-border) !important;
  padding: 10px 14px;
}

/* WooCommerce Product Cards & Shop Polish */
.woocommerce ul.products li.product {
  padding: 16px !important;
  text-align: left;
}
.woocommerce ul.products li.product a img {
  border-radius: 16px !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.woocommerce ul.products li.product:hover a img {
  transform: scale(1.04);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--z-font-heading) !important;
  font-size: 1.12rem !important;
  color: var(--z-text) !important;
  margin-top: 8px;
}
.woocommerce ul.products li.product .price {
  color: var(--z-primary) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
}
.woocommerce span.onsale {
  background: linear-gradient(135deg, var(--z-accent), #E0BA42) !important;
  color: #1B2A1B !important;
  border-radius: var(--z-pill) !important;
  padding: 4px 12px !important;
  min-height: auto !important;
  line-height: 1.4 !important;
  font-weight: 700;
}
.woocommerce .star-rating span::before {
  color: var(--z-accent) !important;
}
.woocommerce ul.products li.product .button.added {
  background: var(--z-accent) !important;
  color: #1B2A1B !important;
}

/* Marquee */
.z-marquee {
  overflow: hidden;
  border-radius: var(--z-pill);
  background: var(--z-surface-2);
  border: 1px solid var(--z-border);
  padding: 14px 0;
  white-space: nowrap;
}
.z-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  animation: zMarquee 28s linear infinite;
}
.z-marquee:hover .z-marquee-track {
  animation-play-state: paused;
}
.z-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--z-text);
}
.z-marquee-dot {
  color: var(--z-accent);
}
@keyframes zMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Shimmer Heading */
.z-shimmer .elementor-heading-title,
.z-shimmer {
  background: linear-gradient(110deg, var(--z-primary) 20%, var(--z-accent) 45%, var(--z-primary-2) 70%, var(--z-primary) 95%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: zShimmer 5.5s linear infinite;
}
@keyframes zShimmer {
  to { background-position: 220% center; }
}

/* Floating Olive Leaves */
.z-floating-leaves {
  position: relative;
  width: 100%;
  height: 36px;
  pointer-events: none;
  overflow: visible;
}
.z-leaf {
  position: absolute;
  color: var(--z-primary-2);
  opacity: 0.55;
  animation: zLeafFloat 6s ease-in-out infinite;
}
.z-leaf svg { width: 30px; height: auto; }
.z-leaf-1 { left: 4%; top: 0; animation-delay: 0s; }
.z-leaf-2 { left: 28%; top: 8px; animation-delay: 1.5s; transform: rotate(22deg); color: var(--z-primary); }
.z-leaf-3 { right: 24%; top: 2px; animation-delay: 2.8s; transform: rotate(-18deg); color: var(--z-accent); }
.z-leaf-4 { right: 5%; top: 10px; animation-delay: 4s; transform: rotate(30deg); }
@keyframes zLeafFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(12deg); }
}

/* Reveal on Scroll */
.z-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.z-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
html[data-shot="1"] .z-reveal,
html[data-shot="1"] .elementor-invisible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

/* Post Grid Cards */
.z-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.z-post-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.z-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.z-post-card:hover .z-post-thumb img {
  transform: scale(1.06);
}
.z-post-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--z-glass);
  backdrop-filter: blur(8px);
  color: var(--z-text);
  padding: 5px 12px;
  border-radius: var(--z-pill);
  font-size: 12px;
  font-weight: 600;
}
.z-post-body {
  padding: 20px 22px 24px;
}
.z-post-meta {
  font-size: 12px;
  color: var(--z-muted);
  margin-bottom: 6px;
}
.z-post-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.z-post-title a {
  color: var(--z-text);
  text-decoration: none;
}
.z-post-excerpt {
  color: var(--z-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.z-post-more {
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* Search & Filter Styling */
.searchandfilter ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.searchandfilter li h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  color: var(--z-muted);
}

/* Footer Polish */
.site-footer,
.ast-footer-overlay,
.site-below-footer-wrap,
.site-primary-footer-wrap {
  background-color: var(--z-surface) !important;
  color: var(--z-text) !important;
  border-top: 1px solid var(--z-border);
}
.site-footer a {
  color: var(--z-muted);
}
.site-footer a:hover {
  color: var(--z-primary);
}
.site-footer .widget-title {
  font-family: var(--z-font-heading);
  color: var(--z-text);
  margin-bottom: 14px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .z-reveal { opacity: 1; transform: none; }
}
