/* ========================================
   Agriculture Theme Custom Styles
   ======================================== */

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

/* Product Card Enhancements */
.agri-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.agri-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(45, 80, 22, 0.3);
}

/* Button Ripple Effect */
.agri-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.agri-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.agri-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Gradient Backgrounds */
.agri-gradient {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 50%, #7cb342 100%);
}

.agri-gradient-light {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Leaf Pattern Background */
.leaf-pattern {
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10zm0 0c0 5.5-4.5 10-10 10s-10-4.5-10-10 4.5-10 10-10 10 4.5 10 10z' fill='%234a7c2c' fill-opacity='0.04'/%3E%3C/svg%3E");
}

/* Badge Animations */
.product-badge-new {
    background: linear-gradient(135deg, #7cb342, #4a7c2c);
    animation: pulse 2s infinite;
}

/* Slider Overlay */
.slider-overlay {
    background: linear-gradient(to right, rgba(45, 80, 22, 0.85), rgba(74, 124, 44, 0.6));
}

/* Category Pills */
.category-pill {
    transition: all 0.3s ease;
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
}

/* Image Hover Effects */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Rating Stars Custom Colors */
.rating-stars i {
    color: #fbbf24;
}

/* Countdown Timer Styling */
.countdown {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.countdown>div {
    background: linear-gradient(135deg, #7cb342, #4a7c2c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

/* Owl Carousel Custom Dots */
.owl-theme .owl-dots .owl-dot span {
    background: #d1d5db;
    transition: all 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #7cb342;
    width: 30px;
    border-radius: 10px;
}

/* Owl Carousel Navigation */
.owl-theme .owl-nav [class*='owl-'] {
    background: white;
    color: #2d5016;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: #7cb342;
    color: white;
    transform: scale(1.1);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #7cb342;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Text */
@media (max-width: 768px) {
    .text-responsive-xl {
        font-size: 1.5rem;
    }

    .text-responsive-2xl {
        font-size: 1.875rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #7cb342;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a7c2c;
}

/* Text Truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grayscale Filter */
.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.grayscale:hover {
    filter: grayscale(0%);
}

/* Box Shadow Utilities */
.shadow-agri {
    box-shadow: 0 4px 6px -1px rgba(45, 80, 22, 0.1), 0 2px 4px -1px rgba(45, 80, 22, 0.06);
}

.shadow-agri-lg {
    box-shadow: 0 10px 15px -3px rgba(45, 80, 22, 0.1), 0 4px 6px -2px rgba(45, 80, 22, 0.05);
}

/* Hover Glow Effect */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(124, 179, 66, 0.5);
}

/* Section Spacing */
.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

/* Agriculture Color Utilities (for inline use) */
.bg-agri-green {
    background-color: #2d5016;
}

.bg-agri-light-green {
    background-color: #4a7c2c;
}

.bg-agri-lime {
    background-color: #7cb342;
}

.bg-agri-earth {
    background-color: #8b6f47;
}

.bg-agri-sand {
    background-color: #d4a574;
}

.text-agri-green {
    color: #2d5016;
}

.text-agri-light-green {
    color: #4a7c2c;
}

.text-agri-lime {
    color: #7cb342;
}

.text-agri-earth {
    color: #8b6f47;
}

.text-agri-sand {
    color: #d4a574;
}

.border-agri-green {
    border-color: #2d5016;
}

.border-agri-lime {
    border-color: #7cb342;
}

/* Hover State Colors */
.hover\:bg-agri-green:hover {
    background-color: #2d5016;
}

.hover\:bg-agri-lime:hover {
    background-color: #7cb342;
}

.hover\:text-agri-lime:hover {
    color: #7cb342;
}

.hover\:text-agri-green:hover {
    color: #2d5016;
}