:root {
  --mf-primary: #2E7D32; /* Deep Agricultural Green */
  --mf-primary-dark: #1B5E20;
  --mf-primary-light: #4CAF50;
  --mf-secondary: #F9A825; /* Harvest Gold */
  --mf-secondary-dark: #F57F17;
  --mf-text-main: #1C2833; /* Dark Slate */
  --mf-text-muted: #5D6D7E;
  --mf-bg-light: #F4F6F6;
  --mf-bg-white: #FFFFFF;
  
  --mf-font-heading: 'Playfair Display', serif;
  --mf-font-body: 'Nunito', sans-serif;
  
  --mf-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --mf-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --mf-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --mf-shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
  --mf-shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
  
  --mf-border-radius: 12px;
  --mf-border-radius-lg: 24px;
}

/* Base Typography */
body {
  font-family: var(--mf-font-body);
  color: var(--mf-text-main);
  background-color: var(--mf-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .has-outfit-font {
  font-family: var(--mf-font-heading);
  font-weight: 700;
  color: var(--mf-text-main);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Glassmorphism Utilities */
.mf-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mf-glass-dark {
  background: rgba(28, 40, 51, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--mf-bg-white);
}

/* Custom Buttons */
.mf-btn, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px !important;
  font-family: var(--mf-font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: var(--mf-transition) !important;
  cursor: pointer;
  border: none;
}

.mf-btn-primary, .wp-block-button.is-style-primary .wp-block-button__link {
  background-color: var(--mf-primary);
  color: #fff;
  box-shadow: var(--mf-shadow-md);
}

.mf-btn-primary:hover, .wp-block-button.is-style-primary .wp-block-button__link:hover {
  background-color: var(--mf-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--mf-shadow-lg);
}

.mf-btn-secondary, .wp-block-button.is-style-secondary .wp-block-button__link {
  background-color: var(--mf-secondary);
  color: var(--mf-text-main);
  box-shadow: var(--mf-shadow-md);
}

.mf-btn-secondary:hover, .wp-block-button.is-style-secondary .wp-block-button__link:hover {
  background-color: var(--mf-secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--mf-shadow-lg);
}

/* Card Hover Effects */
.mf-card {
  background: var(--mf-bg-white);
  border-radius: var(--mf-border-radius);
  padding: 2rem;
  box-shadow: var(--mf-shadow-sm);
  transition: var(--mf-transition);
  height: 100%;
}

.mf-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--mf-shadow-hover);
}

/* Animations */
.mf-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.mf-fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky Header Customization for GeneratePress */
.site-header {
  transition: all 0.4s ease;
}
.site-header.is-sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Back to Top */
.mf-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--mf-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--mf-transition);
  z-index: 999;
  box-shadow: var(--mf-shadow-md);
}

.mf-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.mf-back-to-top:hover {
  background: var(--mf-primary-dark);
  transform: translateY(-5px);
}

/* Floating WhatsApp */
.mf-floating-wa {
  position: fixed;
  bottom: 95px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  transition: var(--mf-transition);
  z-index: 999;
  box-shadow: var(--mf-shadow-md);
  text-decoration: none;
}
.mf-floating-wa:hover {
  background: #128C7E;
  transform: scale(1.1);
}

/* Accessibility Focus States */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--mf-secondary);
  outline-offset: 2px;
}

/* Revolution Slider */
.mf-rev-slider-container {
  width: 100vw;
  max-width: 100%;
  height: 80vh;
  min-height: 600px;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background-color: var(--mf-text-main);
}
.mf-rev-slider {
  width: 100%;
  height: 100%;
  position: relative;
}
.mf-rev-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
  z-index: 1;
}
.mf-rev-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.mf-rev-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.0);
}
.mf-rev-slide.active .mf-rev-bg {
  animation: kenburns 10s ease-out forwards;
}
@keyframes kenburns {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.15); }
}
.mf-rev-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%);
}
.mf-rev-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 0 2rem;
  color: white;
  z-index: 3;
}
.mf-rev-title {
  font-family: var(--mf-font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(50px);
}
.mf-rev-slide.active .mf-rev-title {
  animation: slideUpFade 0.8s ease forwards 0.3s;
}
.mf-rev-desc {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(30px);
  color: #d1fae5;
}
.mf-rev-slide.active .mf-rev-desc {
  animation: slideUpFade 0.8s ease forwards 0.6s;
}
.mf-rev-btn-wrap {
  opacity: 0;
  transform: translateY(20px);
}
.mf-rev-slide.active .mf-rev-btn-wrap {
  animation: slideUpFade 0.8s ease forwards 0.9s;
}
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.mf-rev-controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.mf-rev-prev, .mf-rev-next {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 5px;
}
.mf-rev-prev:hover, .mf-rev-next:hover {
  background: var(--wp--preset--color--primary-green);
  border-color: var(--wp--preset--color--primary-green);
}
.mf-rev-dots {
  display: flex;
  gap: 10px;
}
.mf-rev-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.mf-rev-dot.active {
  background: var(--wp--preset--color--primary-green);
  transform: scale(1.3);
}

/* =========================================
   CART PANEL & CHECKOUT STYLES
   ========================================= */

/* Slide-out Cart Panel */
.mf-cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mf-cart-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mf-cart-panel {
  position: fixed;
  top: 0; right: -400px;
  width: 400px; max-width: 100%;
  height: 100vh;
  background: white;
  z-index: 2001;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mf-cart-panel.active {
  right: 0;
}
.mf-cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mf-cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--mf-text-muted);
}
.mf-cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.mf-cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 1.5rem;
}
.mf-cart-item img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.mf-cart-item-details {
  flex-grow: 1;
}
.mf-cart-item-title {
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}
.mf-cart-item-price {
  color: var(--mf-primary);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}
.mf-cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mf-cart-qty-btn {
  background: #f1f5f9;
  border: none;
  width: 25px; height: 25px;
  border-radius: 4px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mf-cart-remove {
  color: #ef4444;
  font-size: 0.8rem;
  border: none; background: none;
  cursor: pointer; padding: 0;
  margin-top: 0.5rem;
  text-decoration: underline;
}
.mf-cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #eee;
  background: #f8fafc;
}
.mf-cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Checkout Page Styles */
.mf-checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}
@media (max-width: 992px) {
  .mf-checkout-grid { grid-template-columns: 1fr; }
}
.mf-form-group {
  margin-bottom: 1.5rem;
}
.mf-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--mf-text-main);
}
.mf-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: var(--mf-font-body);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
.mf-form-control:focus {
  outline: none;
  border-color: var(--mf-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}
.mf-order-summary {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.mf-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--mf-text-muted);
}
.mf-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e2e8f0;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--mf-text-main);
}
.mf-payment-methods {
  margin-top: 2rem;
}
.mf-payment-method {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}
.mf-payment-method.selected {
  border-color: var(--mf-primary);
  background: rgba(46, 125, 50, 0.05);
}

/* Modals */
.mf-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.mf-modal.active {
  opacity: 1; visibility: visible;
}
.mf-modal-content {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.mf-modal.active .mf-modal-content {
  transform: translateY(0);
}
.mf-spinner {
  border: 4px solid rgba(0,0,0,0.1);
  border-left-color: var(--mf-primary);
  border-radius: 50%;
  width: 40px; height: 40px;
  animation: mf-spin 1s linear infinite;
  margin: 0 auto 1.5rem auto;
}
@keyframes mf-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
