/* AgriManual Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700;800;900&display=swap');

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

/* Hero background with overlay */
.hero-bg {
    background-image:
        linear-gradient(to bottom, rgba(21,80,61,0.88) 0%, rgba(20,83,45,0.75) 50%, rgba(5,46,22,0.92) 100%),
        url('https://images.unsplash.com/photo-1560493676-04071c5f467b?w=1600&q=80&auto=format');
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero-bg { background-attachment: scroll; }
}

/* Product card hover effect */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(21,80,61,0.15);
}

/* Brand card hover */
.brand-card {
    transition: all 0.2s ease;
}
.brand-card:hover {
    transform: translateY(-2px);
    border-color: #16a34a;
}

/* Animated wheat decoration */
@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}
.wheat-sway { animation: sway 3s ease-in-out infinite; transform-origin: bottom center; }

/* Category card */
.category-card {
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.category-card:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    transform: scale(1.03);
}
.category-card:hover .cat-icon { filter: brightness(0) invert(1); }
.category-card:hover .cat-count { color: rgba(255,255,255,0.8); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb { background: #16a34a; border-radius: 4px; }

/* Product type badge colors */
.badge-service { background: #dcfce7; color: #15803d; }
.badge-repair { background: #fef3c7; color: #b45309; }
.badge-parts { background: #dbeafe; color: #1d4ed8; }
.badge-workshop { background: #f3e8ff; color: #7c3aed; }
.badge-owners { background: #fce7f3; color: #be185d; }

/* Star rating */
.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }

/* Pulse animation for "new" badge */
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}
.pulse-green { animation: pulse-green 2s infinite; }

/* Search suggestions dropdown */
#search-suggestions {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Fade in animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }

/* Trust badges */
.trust-badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Tractor divider */
.section-divider {
    position: relative;
    height: 3px;
    background: linear-gradient(90deg, transparent, #16a34a 30%, #f59e0b 50%, #16a34a 70%, transparent);
}

/* Price styling */
.price-main { font-size: 1.25rem; font-weight: 700; color: #15803d; }
.price-compare { font-size: 0.875rem; text-decoration: line-through; color: #9ca3af; }

/* Loader skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0fdf4 25%, #dcfce7 50%, #f0fdf4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
