/* ==========================================================================
   GreenLeaf Organics - Full Application Stylesheet & Design Tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #0b572a;
  --primary-hover: #073b1c;
  --primary-light: #13733a;
  --accent-green: #28a745;
  --accent-light: #ebf5ee;
  --accent-badge: #d4edda;
  --accent-gold: #c9881e;
  --text-dark: #1f2a24;
  --text-muted: #5f7065;
  --text-light: #ffffff;
  --bg-cream: #f9fbf9;
  --bg-card: #ffffff;
  --border-color: #e2e8e4;
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  --border-radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(11, 87, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(11, 87, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; transition: var(--transition); }
input, select, textarea { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Top Announcement Bar */
.top-bar { background-color: #084320; color: #d1ebd8; font-size: 0.825rem; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.top-bar-left, .top-bar-center, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-item svg { width: 14px; height: 14px; fill: currentColor; }
.social-links { display: flex; align-items: center; gap: 12px; }
.social-links a { color: #d1ebd8; transition: var(--transition); }
.social-links a:hover { color: #ffffff; transform: translateY(-1px); }

/* Header */
.header { background-color: #ffffff; padding: 16px 0; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-title { display: flex; flex-direction: column; }
.brand-name { font-size: 1.6rem; font-weight: 700; color: var(--primary); line-height: 1.1; letter-spacing: -0.5px; }
.brand-tagline { font-size: 0.65rem; font-weight: 700; letter-spacing: 2.5px; color: var(--text-muted); text-transform: uppercase; }

/* Search Bar */
.search-box { flex: 1; max-width: 550px; position: relative; display: flex; }
.search-input { width: 100%; padding: 12px 18px; font-size: 0.925rem; border: 1px solid var(--border-color); border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm); background-color: #f5f8f6; transition: var(--transition); }
.search-input:focus { background-color: #ffffff; border-color: var(--primary); outline: none; }
.search-btn { background-color: var(--primary); color: #ffffff; padding: 0 24px; font-weight: 600; font-size: 0.9rem; border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0; display: flex; align-items: center; gap: 8px; }
.search-btn:hover { background-color: var(--primary-hover); }

/* User Actions */
.user-actions { display: flex; align-items: center; gap: 24px; }
.action-item { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; color: var(--text-dark); }
.action-icon { position: relative; display: flex; align-items: center; justify-content: center; }
.action-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.badge-count { position: absolute; top: -8px; right: -8px; background-color: var(--primary); color: #ffffff; font-size: 0.7rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.action-text { display: flex; flex-direction: column; }
.action-label { font-size: 0.75rem; color: var(--text-muted); }
.action-value { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }

/* Navigation Bar */
.nav-bar { background-color: var(--primary); box-shadow: 0 4px 12px rgba(11, 87, 42, 0.15); }
.nav-bar .container { display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 14px 20px; color: #ffffff; font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-link:hover, .nav-item.active .nav-link { background-color: rgba(255, 255, 255, 0.12); }
.dropdown-menu { position: absolute; top: 100%; left: 0; width: 220px; background-color: #ffffff; border-radius: 0 0 var(--border-radius-md) var(--border-radius-md); box-shadow: var(--shadow-lg); display: none; flex-direction: column; padding: 8px 0; z-index: 99; }
.nav-item:hover .dropdown-menu { display: flex; }
.dropdown-item { padding: 10px 18px; color: var(--text-dark); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.dropdown-item:hover { background-color: var(--accent-light); color: var(--primary); }

/* Hero Slider */
.hero-slider { position: relative; background: linear-gradient(135deg, #f0f7f2 0%, #e1efe5 100%); overflow: hidden; margin-bottom: 40px; }
.slide-track { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; padding: 60px 0; }
.slide-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.hero-text-col h1 { font-size: 2.8rem; font-weight: 700; color: var(--primary); line-height: 1.2; margin-bottom: 16px; }
.hero-text-col p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; max-width: 500px; }
.hero-badges { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 8px; background-color: #ffffff; padding: 8px 16px; border-radius: var(--border-radius-pill); font-size: 0.875rem; font-weight: 600; color: var(--primary); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background-color: var(--primary); color: #ffffff; padding: 14px 32px; border-radius: var(--border-radius-sm); font-size: 1rem; font-weight: 700; box-shadow: 0 4px 14px rgba(11, 87, 42, 0.25); transition: var(--transition); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(11, 87, 42, 0.35); }
.hero-image-col { position: relative; text-align: center; }
.hero-img-wrapper { position: relative; display: inline-block; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img-wrapper img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background-color: rgba(0, 0, 0, 0.4); color: #ffffff; display: flex; align-items: center; justify-content: center; z-index: 10; transition: var(--transition); }
.slider-btn:hover { background-color: var(--primary); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background-color: #cbd8cf; cursor: pointer; transition: var(--transition); }
.dot.active { background-color: var(--primary); width: 28px; border-radius: 6px; }

/* Sections & Product Cards */
.section-padding { padding: 30px 0; }
.section-header { margin-bottom: 24px; }
.section-title { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.section-subtitle { font-size: 0.95rem; color: var(--text-muted); }
.section-action { text-align: center; margin-top: 28px; }
.btn-secondary { background-color: var(--primary); color: #ffffff; padding: 10px 26px; border-radius: var(--border-radius-sm); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.btn-secondary:hover { background-color: var(--primary-hover); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.product-card { background-color: #ffffff; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; transition: var(--transition); position: relative; }
.product-card:hover { box-shadow: var(--shadow-md); border-color: #c5dacb; transform: translateY(-3px); }
.product-badge { position: absolute; top: 10px; left: 10px; background-color: var(--primary); color: #ffffff; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; z-index: 2; text-transform: uppercase; }
.product-img-container { width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; overflow: hidden; border-radius: var(--border-radius-sm); background-color: #fafcfb; cursor: pointer; }
.product-img-container img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.product-card:hover .product-img-container img { transform: scale(1.06); }
.product-title { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); line-height: 1.25; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.5em; cursor: pointer; }
.product-unit { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.add-cart-btn { width: 34px; height: 34px; border-radius: 50%; background-color: var(--primary); color: #ffffff; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.add-cart-btn:hover { background-color: var(--primary-hover); transform: scale(1.1); }
.add-cart-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Value Proposition Banner */
.features-bar { background-color: var(--accent-light); border-radius: var(--border-radius-md); padding: 24px; margin: 40px 0; border: 1px solid #dbe8dd; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon { width: 44px; height: 44px; border-radius: 50%; background-color: #ffffff; display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.feature-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.feature-info p { font-size: 0.8rem; color: var(--text-muted); }

/* Fertiliser Layout */
.fertiliser-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; }
.feature-sidebar-card { background-color: var(--accent-light); border-radius: var(--border-radius-md); padding: 24px 20px; display: flex; flex-direction: column; justify-content: space-around; gap: 20px; border: 1px solid #d4e5d8; }
.sidebar-feature-item { display: flex; align-items: flex-start; gap: 12px; }
.sidebar-icon { width: 36px; height: 36px; border-radius: 50%; background-color: #ffffff; color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-text h5 { font-size: 0.875rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.sidebar-text p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }

/* Footer */
.footer { background-color: #07381b; color: #cde2d3; padding: 50px 0 20px 0; margin-top: 60px; font-size: 0.875rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-col h4 { color: #ffffff; font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }
.footer-col p { line-height: 1.6; margin-bottom: 16px; color: #a8c9b0; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cde2d3; transition: var(--transition); }
.footer-links a:hover { color: #ffffff; padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--accent-green); flex-shrink: 0; margin-top: 2px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-input { width: 100%; padding: 10px 14px; border-radius: var(--border-radius-sm); border: 1px solid rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.95); font-size: 0.875rem; }
.newsletter-btn { background-color: #2b9348; color: #ffffff; padding: 10px; border-radius: var(--border-radius-sm); font-weight: 700; font-size: 0.9rem; text-align: center; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; color: #8dae94; }
.payment-methods { display: flex; align-items: center; gap: 10px; }
.payment-badge { background-color: #ffffff; color: #333333; padding: 4px 8px; border-radius: 4px; font-weight: 700; font-size: 0.75rem; }

/* Modals & Drawers Overlay */
.modal-overlay, .cart-drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.modal-overlay.open, .cart-drawer-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer { position: fixed; top: 0; right: -420px; width: 100%; max-width: 400px; height: 100%; background-color: #ffffff; z-index: 1001; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.cart-drawer.open { right: 0; }
.cart-drawer-header { padding: 20px; background-color: var(--primary); color: #ffffff; display: flex; align-items: center; justify-content: space-between; }
.close-drawer-btn, .close-btn { background: none; color: #ffffff; font-size: 1.5rem; line-height: 1; border: none; cursor: pointer; }
.shipping-progress-container { padding: 14px 20px; background-color: var(--accent-light); border-bottom: 1px solid var(--border-color); }
.shipping-progress-text { font-size: 0.8rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.shipping-bar { height: 6px; background-color: #d1e3d6; border-radius: 3px; overflow: hidden; }
.shipping-fill { height: 100%; background-color: var(--primary); width: 0%; transition: width 0.3s ease; }
.cart-items-list { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); align-items: center; }
.cart-item-img { width: 60px; height: 60px; border-radius: var(--border-radius-sm); background-color: #f5f8f6; object-fit: contain; }
.cart-item-details { flex: 1; }
.cart-item-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; }
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border-color); background-color: #f5f8f6; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-drawer-footer { padding: 20px; border-top: 1px solid var(--border-color); background-color: #ffffff; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.btn-checkout { width: 100%; padding: 14px; background-color: var(--primary); color: #ffffff; font-size: 1rem; font-weight: 700; border-radius: var(--border-radius-sm); text-align: center; }

/* Toast Notifications */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { background-color: #ffffff; color: var(--text-dark); padding: 12px 20px; border-radius: var(--border-radius-md); box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary); display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 600; animation: slideInRight 0.3s ease; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Form Fields */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; text-align: left; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.input-field { padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); font-size: 0.9rem; background-color: #fafcfb; width: 100%; }
.input-field:focus { border-color: var(--primary); outline: none; background-color: #fff; }

/* Status Badges with Required Colors */
.status-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--border-radius-pill); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge-yellow { background-color: #fef9c3; color: #a16207; border: 1px solid #fde047; } /* Pending - Yellow */
.badge-blue { background-color: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }   /* Confirmed - Blue */
.badge-purple { background-color: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; } /* Processing - Purple */
.badge-indigo { background-color: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; } /* Shipped - Indigo */
.badge-orange { background-color: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; } /* Out for Delivery - Orange */
.badge-green { background-color: #dcfce7; color: #15803d; border: 1px solid #86efac; }  /* Delivered - Green */
.badge-red { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }    /* Cancelled - Red */

/* Customer Dashboard Layout */
.dashboard-container { background: #ffffff; width: 95%; max-width: 1080px; height: 85vh; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.dashboard-header { background: var(--primary); color: #ffffff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.avatar-circle { width: 42px; height: 42px; border-radius: 50%; background: #28a745; color: #fff; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.avatar-circle-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }

.dashboard-layout { display: flex; flex: 1; overflow: hidden; }
.dashboard-sidebar { width: 240px; background: #f4f8f5; border-right: 1px solid var(--border-color); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-item { padding: 12px 16px; border-radius: var(--border-radius-sm); text-align: left; font-size: 0.9rem; font-weight: 600; color: var(--text-dark); background: none; }
.sidebar-item:hover, .sidebar-item.active { background: #e0eee4; color: var(--primary); }
.text-danger { color: #dc3545 !important; }
.dashboard-content { flex: 1; padding: 24px; overflow-y: auto; }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.metric-card { padding: 16px; border-radius: var(--border-radius-md); color: #ffffff; }
.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.bg-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.bg-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.bg-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.metric-num { font-size: 1.8rem; font-weight: 700; }
.metric-lbl { font-size: 0.8rem; opacity: 0.9; }

.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-btn { padding: 6px 14px; border-radius: var(--border-radius-pill); font-size: 0.78rem; font-weight: 600; border: 1px solid var(--border-color); background: #ffffff; color: var(--text-dark); }
.pill-btn.active { background: var(--primary); color: #ffffff; border-color: var(--primary); }

.order-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); padding: 16px; margin-bottom: 14px; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--border-color); flex-wrap: wrap; gap: 10px; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; border-radius: 4px; font-weight: 600; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--accent-light); }

/* 8 Stages Visual Stepper Timeline */
.stepper-wrapper { display: flex; justify-content: space-between; margin: 30px 0; position: relative; }
.stepper-wrapper::before { content: ''; position: absolute; top: 16px; left: 0; right: 0; height: 3px; background: #e1e8e2; z-index: 1; }
.stepper-item { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; }
.stepper-circle { width: 32px; height: 32px; border-radius: 50%; background: #ffffff; border: 2px solid #cbd8cf; color: #777; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; transition: var(--transition); }
.stepper-label { font-size: 0.7rem; font-weight: 600; color: #777; max-width: 70px; line-height: 1.2; }
.stepper-item.completed .stepper-circle { background: var(--primary); border-color: var(--primary); color: #ffffff; }
.stepper-item.completed .stepper-label { color: var(--primary); }
.stepper-item.current .stepper-circle { background: var(--accent-green); border-color: var(--accent-green); color: #ffffff; box-shadow: 0 0 0 4px rgba(40,167,69,0.2); }

.timeline-log { display: flex; flex-direction: column; gap: 14px; position: relative; padding-left: 20px; border-left: 2px solid var(--accent-light); }
.timeline-log-item { position: relative; display: flex; gap: 12px; }
.timeline-dot { position: absolute; left: -26px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }

/* Admin Panel Table & Modal */
.admin-container { background: #ffffff; width: 95%; max-width: 1200px; height: 90vh; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.admin-header { background: #084320; color: #ffffff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.admin-body { flex: 1; padding: 20px; overflow-y: auto; }
.admin-controls { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; text-align: left; }
.admin-table th { background: #f0f7f2; color: var(--primary); padding: 12px; font-weight: 700; border-bottom: 2px solid var(--border-color); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 20px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* Comprehensive Responsive Styles */
@media (max-width: 992px) {
  .header .container { flex-wrap: wrap; gap: 14px; }
  .search-box { order: 3; max-width: 100%; width: 100%; }
  .fertiliser-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar .container { justify-content: center; text-align: center; }
  .top-bar-left, .top-bar-center, .top-bar-right { justify-content: center; width: 100%; gap: 10px; flex-wrap: wrap; }
  
  .header { padding: 12px 0; }
  .brand-name { font-size: 1.35rem; }
  .user-actions { gap: 14px; }
  .action-text { display: none; }
  
  .mobile-nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-hover);
    padding: 0;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-link { padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0;
  }

  .slide { padding: 30px 0; }
  .slide-content { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero-text-col h1 { font-size: 1.75rem; }
  .hero-text-col p { margin: 0 auto 20px auto; font-size: 0.95rem; }
  .hero-badges { justify-content: center; }
  .hero-img-wrapper img { max-height: 220px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 10px; }
  .product-img-container { height: 120px; }
  .product-title { font-size: 0.82rem; height: 2.4em; }
  .product-price { font-size: 1rem; }
  .add-cart-btn { width: 30px; height: 30px; }

  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cart-drawer { max-width: 100%; }
  .dashboard-container { width: 95%; height: 90vh; }
  .dashboard-layout { flex-direction: column; }
  .dashboard-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 10px; }
  .sidebar-item { white-space: nowrap; padding: 8px 12px; font-size: 0.82rem; }
  .dashboard-content { padding: 16px; }

  .stepper-wrapper { overflow-x: auto; padding-bottom: 10px; justify-content: flex-start; }
  .stepper-item { min-width: 80px; flex: none; }

  .modal-overlay > div { width: 95% !important; margin: 20px auto !important; padding: 18px !important; max-height: 90vh; overflow-y: auto; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card { padding: 8px; }
  .product-img-container { height: 100px; }
  .product-price { font-size: 0.95rem; }
}

/* Payment Success Animation Keyframes */
@keyframes popSuccess {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --- Wishlist Drawer & Eye Toggle Styles --- */
.wishlist-badge {
  background: #dc3545;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 2px 7px;
  margin-left: 4px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  user-select: none;
}

/* Skeleton Loading Shimmer */
.skeleton-box {
  background: #e6eee8;
  background: linear-gradient(90deg, #e6eee8 25%, #f4f8f5 50%, #e6eee8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
