/*
Theme Name: Shohoj Agro
Theme URI: https://shohojagro.com
Author: Shohoj IT
Author URI: https://shohojagro.com
Description: গরু কেনাবেচার সহজ প্ল্যাটফর্ম - Shohoj Agro WordPress Theme
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shohoj-agro
Tags: agriculture, marketplace, cattle, bangla, responsive
*/

/* ========================================
   CSS Variables
======================================== */
:root {
  --primary: #1a7a1a;
  --primary-dark: #145c14;
  --primary-light: #e8f5e9;
  --primary-hover: #22a022;
  --secondary: #f5a623;
  --secondary-dark: #d4891a;
  --text-dark: #1a1a1a;
  --text-medium: #444444;
  --text-light: #777777;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #f0f0f0;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --font-bangla: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  --transition: all 0.3s ease;
}

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-bangla);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: var(--font-bangla); }

/* ========================================
   Utility Classes
======================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 1.6rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.section-title span { color: var(--primary); }
.section-divider { width: 50px; height: 3px; background: var(--primary); border-radius: 2px; margin-bottom: 24px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-primary { background: var(--primary); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
}
.btn-white:hover { background: var(--primary-light); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-success { background: #28a745; color: white; border-color: #28a745; }
.btn-success:hover { background: #218838; }
.btn-danger { background: #dc3545; color: white; border-color: #dc3545; }
.btn-danger:hover { background: #c82333; }

/* ========================================
   Header / Navigation
======================================== */
#site-header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 44px; width: auto; }
.site-logo .logo-text { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.site-logo .logo-text span { color: var(--text-dark); }

/* Main Nav */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav ul li a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a { color: var(--primary); background: var(--primary-light); }
.main-nav ul li.underline-item a {
  border-bottom: 2px solid var(--primary);
  border-radius: 0;
  background: transparent;
  color: var(--primary);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-medium);
  transition: var(--transition);
  position: relative;
}
.header-icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.header-icon-btn .badge {
  position: absolute; top: -4px; right: -4px;
  background: red; color: white;
  font-size: 0.65rem; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
  background: none; border: none;
}
.mobile-menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
  background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 50%, #f5f9f5 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a7a1a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { padding: 40px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.hero-title .text-green { color: var(--primary); }
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-medium);
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-features { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-feature {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-medium);
}
.hero-feature .icon { color: var(--primary); font-size: 1rem; }
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-image img {
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-leaf {
  position: absolute;
  font-size: 3rem;
  opacity: 0.15;
  animation: spin 20s linear infinite;
}
.hero-leaf.leaf-1 { top: 10%; left: 5%; }
.hero-leaf.leaf-2 { bottom: 15%; right: 5%; animation-direction: reverse; font-size: 2rem; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ========================================
   Search Section
======================================== */
.search-section { background: white; padding: 0; margin-top: -30px; position: relative; z-index: 10; }
.search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 10px 16px;
  transition: var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--primary); background: white; }
.search-input-wrap input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 0.92rem; color: var(--text-dark);
}
.search-select-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 10px 16px;
  min-width: 140px;
  transition: var(--transition);
}
.search-select-wrap:focus-within { border-color: var(--primary); background: white; }
.search-select-wrap svg { flex-shrink: 0; color: var(--text-light); }
.search-select-wrap select {
  border: none; background: none; outline: none;
  font-size: 0.88rem; color: var(--text-dark);
  width: 100%; cursor: pointer;
}
.search-btn { padding: 12px 28px; flex-shrink: 0; border-radius: var(--radius-xl); border: none; }

/* ========================================
   Listings Grid
======================================== */
.listings-section { padding: 60px 0; background: var(--bg-light); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-nav { display: flex; gap: 8px; }
.section-nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%; border: 1.5px solid var(--border);
  background: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-medium);
  transition: var(--transition);
}
.section-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.view-all-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.view-all-link:hover { text-decoration: underline; }

.cattle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Cattle Card */
.cattle-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}
.cattle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-image-wrap {
   position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-gray);
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.cattle-card:hover .card-image-wrap img { transform: scale(1.12); }
.card-wishlist {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-light);
  transition: var(--transition);
  z-index: 2;
}
.card-wishlist:hover, .card-wishlist.active { color: #e53935; }
.card-wishlist.active svg { fill: #e53935; }
.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
}
.card-body { padding: 14px; }
.card-title { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.card-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.card-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-light);
}
.card-meta-item svg { flex-shrink: 0; color: var(--primary); }
.card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.card-price small { font-size: 0.75rem; font-weight: 500; color: var(--text-light); }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; justify-content: center; font-size: 0.82rem; padding: 8px 12px; }

/* ========================================
   Features Section
======================================== */
.features-section { padding: 40px 0; background: white; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}
.feature-card:hover { background: var(--primary-light); }
.feature-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
}
.feature-card:hover .feature-icon { background: white; }
.feature-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; color: var(--text-dark); }
.feature-text p { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }

/* ========================================
   How It Works
======================================== */
.how-section { padding: 60px 0; background: var(--bg-light); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: 18%; right: 18%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary) 0, var(--primary) 8px, transparent 8px, transparent 16px);
}
.step-card { text-align: center; position: relative; }
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(26,122,26,0.3);
}
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ========================================
   CTA Banner
======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '🐄';
  position: absolute; right: 5%; top: 50%;
  transform: translateY(-50%);
  font-size: 8rem; opacity: 0.15;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 1; }
.cta-content { color: white; }
.cta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2);
  color: white; padding: 6px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 12px;
}
.cta-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.cta-desc { font-size: 0.95rem; opacity: 0.9; max-width: 500px; line-height: 1.7; }

/* ========================================
   Testimonials
======================================== */
.testimonials-section { padding: 60px 0; background: white; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.testimonial-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.testimonial-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.testimonial-stars { color: #f5a623; font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.9rem; color: var(--text-medium); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); }
.author-info h5 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.author-info span { font-size: 0.78rem; color: var(--text-light); }
.testimonial-quote {
  position: absolute; bottom: 16px; right: 20px;
  font-size: 3rem; color: var(--primary-light);
  font-family: Georgia, serif; line-height: 1;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background: #0f2f0f;
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo-text { color: white; font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; opacity: 0.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.9rem; transition: var(--transition);
}
.social-link:hover { background: var(--primary); }
.footer-col h4 { color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; opacity: 0.8; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-hover); opacity: 1; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; margin-bottom: 10px; opacity: 0.85; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--primary-hover); }
.footer-newsletter input {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.85rem;
  margin-bottom: 10px;
  outline: none;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter input:focus { background: rgba(255,255,255,0.15); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ========================================
   Single Cattle Page
======================================== */
.cattle-single { padding: 40px 0; }
.cattle-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gallery-main { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb {
  width: 70px; height: 60px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); flex-shrink: 0;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cattle-info-card { background: white; border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.cattle-name { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.cattle-price-large { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.cattle-details-table { width: 100%; margin-bottom: 20px; }
.cattle-details-table tr td { padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border-light); }
.cattle-details-table tr td:first-child { color: var(--text-light); width: 40%; }
.cattle-details-table tr td:last-child { font-weight: 600; }
.cattle-contact-btns { display: flex; gap: 12px; }
.cattle-contact-btns .btn { flex: 1; justify-content: center; }
.cattle-description { margin-top: 30px; padding: 24px; background: var(--bg-light); border-radius: var(--radius-md); }
.cattle-description h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.cattle-description p { font-size: 0.9rem; color: var(--text-medium); line-height: 1.8; }
.seller-card { margin-top: 20px; background: var(--bg-light); border-radius: var(--radius-md); padding: 20px; }
.seller-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.seller-info { display: flex; align-items: center; gap: 14px; }
.seller-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }
.seller-details h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.seller-details p { font-size: 0.82rem; color: var(--text-light); }

/* ========================================
   User Dashboard
======================================== */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 40px 0; min-height: 70vh; }
.dashboard-sidebar { position: sticky; top: 90px; align-self: start; }
.dashboard-user-card { background: white; border-radius: var(--radius-md); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); margin-bottom: 16px; border: 1px solid var(--border-light); }
.user-avatar-large { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--primary-light); background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.dashboard-user-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.dashboard-user-card p { font-size: 0.82rem; color: var(--text-light); }
.dashboard-nav { background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.dashboard-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-medium);
  border-left: 3px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
}
.dashboard-nav-item:last-child { border-bottom: none; }
.dashboard-nav-item:hover, .dashboard-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}
.dashboard-content { background: white; border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); min-height: 400px; }
.dashboard-section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-light); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.stat-card .stat-icon { font-size: 1.8rem; margin-bottom: 8px; }
.stat-card .stat-number { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.contact-history-table { width: 100%; border-collapse: collapse; }
.contact-history-table th, .contact-history-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; }
.contact-history-table th { font-weight: 700; color: var(--text-light); font-size: 0.8rem; text-transform: uppercase; }
.contact-history-table tr:hover td { background: var(--bg-light); }

/* ========================================
   Contact Modal
======================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg-light); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: var(--transition); }
.modal-close:hover { background: var(--border); }
.modal-cattle-info { display: flex; gap: 14px; align-items: center; background: var(--bg-light); border-radius: var(--radius-md); padding: 14px; margin-bottom: 20px; }
.modal-cattle-img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-gray); flex-shrink: 0; }
.modal-cattle-name { font-weight: 700; margin-bottom: 4px; }
.modal-cattle-price { color: var(--primary); font-weight: 700; font-size: 0.95rem; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--text-medium); }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font-bangla);
  outline: none; transition: var(--transition);
  color: var(--text-dark);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,122,26,0.1); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

/* ========================================
   Alerts / Notices
======================================== */
.alert { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 16px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.alert-error { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }
.alert-info { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }

/* ========================================
   Pagination
======================================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 600; transition: var(--transition); color: var(--text-medium); }
.page-btn:hover, .page-btn.active { border-color: var(--primary); background: var(--primary); color: white; }

/* ========================================
   Breadcrumb
======================================== */
.breadcrumb-bar { background: var(--bg-light); padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text-dark); font-weight: 600; }

/* ========================================
   Filter Sidebar (Archive)
======================================== */
.archive-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 40px 0; }
.filter-sidebar { position: sticky; top: 90px; align-self: start; }
.filter-card { background: white; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); margin-bottom: 16px; }
.filter-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.price-range { display: flex; gap: 10px; align-items: center; }
.price-range input { flex: 1; }
.price-range span { color: var(--text-light); }
.filter-checkboxes { display: flex; flex-direction: column; gap: 8px; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.88rem; }
.filter-checkbox input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }

/* ========================================
   Notifications / Toast
======================================== */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--text-dark); color: white;
  padding: 14px 20px; border-radius: var(--radius-md);
  font-size: 0.88rem; max-width: 320px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}
.toast.toast-success { background: var(--primary); }
.toast.toast-error { background: #c62828; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateX(20px); } }

/* ========================================
   Loading Skeleton
======================================== */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ========================================
   Back to Top
======================================== */
#back-to-top {
  position: fixed; bottom: 80px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0; transform: translateY(10px);
  transition: var(--transition);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .archive-layout, .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .filter-sidebar { position: static; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-title { font-size: 1.8rem; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .cattle-single-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .search-box { flex-direction: column; }
  .search-input-wrap, .search-select-wrap { width: 100%; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cattle-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   Mobile Nav
======================================== */
.mobile-nav {
  display: none;
  background: white;
  border-top: 1px solid var(--border-light);
  padding: 16px 0;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav ul li a { display: block; padding: 12px 20px; font-size: 0.95rem; color: var(--text-dark); border-bottom: 1px solid var(--border-light); }
.mobile-nav ul li a:hover { background: var(--primary-light); color: var(--primary); }

/* Print */
@media print {
  #site-header, .site-footer, #back-to-top, #toast-container { display: none; }
}

/* =====================================================
   FINAL MOBILE FIX
===================================================== */

@media (max-width: 768px) {

    /* Header */
    .header-top {

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 0 !important;
    }

    .site-logo {

        max-width: 120px;
    }

    .site-logo img {

        max-height: 42px;
        width: auto;
    }

    .header-actions {

        display: flex;
        align-items: center;
        gap: 6px;
    }

    .header-actions .btn {

        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    /* GRID */
    .cattle-grid {

        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    /* CARD */
    .cattle-card {

        width: 100% !important;
        overflow: hidden;
        border-radius: 18px;
    }

    /* IMAGE */
    .cattle-card-image img {

        width: 100%;
        height: 220px;
        object-fit: contain;
    }

    /* CONTENT */
    .cattle-card-content {

        padding: 14px !important;
    }

    /* TITLE */
    .cattle-card-title {

        font-size: 22px !important;
        line-height: 1.3;
    }

    /* META */
    .cattle-meta {

        font-size: 15px;
    }

    /* PRICE */
    .cattle-price {

        font-size: 24px !important;
    }

    /* BUTTONS */
    .cattle-card-actions {

        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 14px;
    }

    .cattle-card-actions .btn {

        width: 100% !important;
        justify-content: center;
        text-align: center;
        font-size: 15px !important;
        padding: 12px 14px !important;
    }

    /* Sections */
    section {

        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* Footer */
    .footer-grid {

        grid-template-columns: 1fr !important;
    }
}

/* ====================================
   ONLY CATTLE CARD MOBILE FIX
==================================== */

@media (max-width: 520px){

    .recent-listings .cattle-grid,
    .cattle-archive .cattle-grid,
    .gorur-talika .cattle-grid{
        grid-template-columns:1fr !important;
        gap:16px !important;
    }

    .cattle-card{
        width:100% !important;
        max-width:100% !important;
        overflow:hidden !important;
    }

    .cattle-card .card-actions{
        display:flex !important;
        flex-direction:column !important;
        gap:10px !important;
    }

    .cattle-card .btn{
        width:100% !important;
        justify-content:center !important;
    }

}

/* ================================
   CARD BUTTON STACK FIX
================================ */

.cattle-card .card-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.cattle-card .card-actions .btn{
    width:100%;
    justify-content:center;
    text-align:center;
}