﻿


/*--------------Slider--------------*/
/* Slider Section - agrinshop Brand Styling (Corrected) */
.container.Slider {
    margin-top: 30px; /* Consistent spacing from the header */
    margin-bottom: 50px; /* Space from sections below */
}

.slider-box {
    width: 100%;
    color: #333; /* Darker text for better readability */
    padding: 25px; /* Slightly reduced padding for a more compact design */
    text-align: right; /* Default text alignment for RTL */
    background: linear-gradient(135deg, #F0FBF0 0%, #E6F0F7 100%); /* Soft green-blue gradient background */
    background-size: cover;
    position: relative;
    line-height: 1.6; /* Standard line-height for readability */
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Stronger, more elegant shadow for prominence */
    overflow: hidden; /* Hide anything overflowing the rounded corners */
}

    .slider-box .carousel-inner {
        width: 100%;
        height: 300px; /* Fixed height for the carousel inner container to control overall slider height */
        overflow: hidden; /* Ensure content doesn't break out of the fixed height */
    }

    .slider-box .carousel-item {
        height: 100%; /* Ensure carousel item takes full height of carousel-inner */
        /* Remove display:flex directly here to let Bootstrap manage visibility */
    }

        /* Style for the new inner flex container within carousel-item */
        .slider-box .carousel-item > div.d-flex {
            /* These styles apply to the new div.d-flex inside carousel-item */
            height: 100%; /* Take full height of the carousel-item */
            padding: 0 15px; /* Add horizontal padding for content */
        }

    .slider-box img {
        height: 200px; /* Reduced image height to make the slider more compact */
        max-width: 90%; /* Allow image to take more width within its column */
        object-fit: contain; /* Ensure image fits without cropping */
        display: block; /* Ensure no extra space below image */
        margin: 0 auto; /* Center image within its column */
    }

    /* Specific classes for text and image columns for better control */
    .slider-box .slider-content-text {
        flex: 1; /* Allow text column to take available space */
        min-width: 280px; /* Minimum width for text content on smaller screens */
        padding: 0 15px; /* Add internal padding */
        text-align: right;
        display: flex; /* Use flexbox for content within the column */
        flex-direction: column; /* Stack elements vertically */
        justify-content: center; /* Center content vertically */
        align-items: flex-end; /* Align text to the right for RTL */
    }

    .slider-box .slider-content-image {
        flex: 1; /* Allow image column to take available space */
        min-width: 200px; /* Minimum width for image column */
        display: flex; /* Use flex to center the image */
        justify-content: center;
        align-items: center;
    }


    /* Content Styling within Slider */
    .slider-box h2 {
        color: #0A66C2; /* Brand's dark blue for main titles (trust, professionalism) */
        font-size: 30px; /* Slightly larger and bolder for impact */
        margin-bottom: 12px;
        font-weight: bold;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05); /* Subtle text shadow for depth */
    }

    .slider-box span {
        color: #555; /* Slightly softer gray for subtitles */
        font-size: 17px;
        display: block;
        margin-bottom: 12px;
    }

    .slider-box p {
        color: #666; /* Standard gray for descriptions */
        font-size: 14px; /* Slightly smaller for body text */
        line-height: 1.8;
        margin-bottom: 25px;
        max-width: 90%; /* Control width for better line length */
    }

    .slider-box .btn {
        border-radius: 50px; /* Fully rounded button for a friendly, modern look */
        font-size: 17px;
        padding: 10px 28px; /* Slightly adjusted padding for the rounded button */
        background-color: #32CD32; /* Bright green for the Call to Action button (freshness, action) */
        color: #FFFFFF;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Enhanced button shadow */
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        font-weight: 600; /* Medium bold for prominence */
    }

        .slider-box .btn:hover {
            background-color: #28A745; /* Darker green on hover */
            transform: translateY(-3px); /* More pronounced lift effect */
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        }

    /* Carousel Indicators (Dots) */
    .slider-box .carousel-indicators {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
    }

        .slider-box .carousel-indicators button {
            width: 10px; /* Smaller, more elegant dots */
            height: 10px;
            background-color: #0A66C2; /* Brand's dark blue for inactive dots (trust, stability) */
            border: none;
            border-radius: 50%; /* Make them perfectly round */
            opacity: 0.4; /* Slightly transparent when inactive */
            margin: 0 6px; /* Spacing between dots */
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .slider-box .carousel-indicators .active {
            width: 12px; /* Slightly larger active dot */
            height: 12px;
            background-color: #32CD32; /* Bright green for the active dot (freshness, current focus) */
            opacity: 1;
            box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.4); /* Green ring around active dot for emphasis */
        }

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .slider-box {
        padding: 20px;
        /* No flex-direction: column here, it's handled by inner d-flex */
        text-align: center; /* Center text on mobile */
    }

        .slider-box .carousel-inner {
            height: auto; /* Allow height to adjust based on content on mobile */
            min-height: 400px; /* Minimum height to ensure content is visible */
        }

        .slider-box .carousel-item > div.d-flex {
            flex-direction: column-reverse; /* Put image above text for better mobile presentation */
            padding: 0;
            height: auto;
        }

        .slider-box img {
            height: 180px; /* Further reduce image height on mobile */
            max-width: 80%; /* Allow image to take more width on mobile */
            margin-bottom: 15px; /* Space below image */
        }

        .slider-box .slider-content-text {
            min-width: unset; /* Remove min-width constraint */
            width: 100%;
            padding: 10px 20px;
            text-align: center; /* Center text on mobile */
            align-items: center; /* Center items for content column */
        }

        .slider-box h2 {
            font-size: 24px;
            margin-bottom: 10px;
        }

        .slider-box span {
            font-size: 15px;
            margin-bottom: 10px;
        }

        .slider-box p {
            font-size: 13px;
            max-width: 95%;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 20px;
        }

        .slider-box .btn {
            font-size: 16px;
            padding: 10px 25px;
        }

        .slider-box .carousel-indicators {
            bottom: 10px; /* Adjust indicator position on mobile */
        }
}

@media (max-width: 576px) {
    .slider-box .carousel-inner {
        min-height: 380px; /* افزایش ارتفاع برای نمایش بهتر محتوا */
    }

    .slider-box img {
        height: 160px; /* تنظیم ارتفاع تصاویر */
    }

    .slider-box .btn {
        font-size: 15px;
        padding: 12px 30px; /* افزایش اندازه دکمه برای لمس راحت‌تر */
        min-width: 120px; /* حداقل عرض برای دکمه */
    }

    .btn-primary-agrinshop, .btn-secondary-agrinshop {
        padding: 12px 25px; /* دکمه‌های بزرگ‌تر برای لمس */
        font-size: 15px;
        min-width: 140px; /* حداقل عرض برای دکمه */
    }
}

.slider-box img {
    height: 200px;
    max-width: 90%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    /*background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);*/ /* انیمیشن placeholder */
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 20px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: 0 0;
    }
}
/*--------------Slider--------------*/

/* Special Offer / Opportunity Section */
.coopen {
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa; /* Light background for the coupon image section */
    text-align: center;
    border-radius: 8px; /* Softer rounded corners */
    margin-bottom: 25px; /* Consistent margin */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    padding: 15px; /* Added padding */
}

    .coopen img {
        max-height: 200px; /* Control height of the coupon image */
        object-fit: contain;
    }

.vizheh {
    width: 100%;
    background-color: #FFFFFF; /* Clean white background */
    margin-bottom: 25px; /* Consistent margin */
    border-radius: 12px; /* More pronounced rounded corners for a modern feel */
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Stronger, more elegant shadow */
    padding: 25px; /* Internal padding */
}

    /* Special Offer Tag */
    .vizheh .vizheh-tag {
        width: 150px;
        height: 35px; /* Reduced height */
        top: 15px; /* Adjusted position */
        right: -40px;
        color: #FFFFFF;
        background-color: #32CD32; /* **Brand's Bright Green for the "Special Opportunity" tag (Freshness, Urgency)** */
        position: absolute;
        padding: 5px 0; /* Adjusted padding */
        font-size: 16px; /* Slightly smaller font for clarity */
        font-weight: bold;
        text-align: center;
        transform: rotate(45deg);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Shadow for the tag */
        z-index: 5; /* Ensure it's above other content */
    }

        .vizheh .vizheh-tag span {
            display: block; /* Ensure text fills the tag */
        }

    /* Image Column within Vizheh */
    .vizheh .vizheh-img {
        padding: 10px; /* Padding around the image */
        display: flex;
        justify-content: center; /* Center the image horizontally */
        align-items: center; /* Center the image vertically */
        height: 100%; /* Ensure it takes full height of content area */
    }

        .vizheh .vizheh-img img {
            height: 220px; /* **Increased image height for better visibility** */
            max-width: 100%; /* Ensure it fits the column */
            object-fit: contain;
            transition: transform 0.3s ease-in-out; /* Smooth transition for hover */
        }

    .vizheh:hover .vizheh-img img {
        transform: scale(1.05); /* Slight zoom on hover for product image */
    }

    /* Content Column within Vizheh */
    .vizheh .vizheh-content {
        padding: 10px 20px; /* Increased padding for content */
        text-align: right; /* Ensure content is right-aligned for RTL */
    }

/* Price Styling */
.vizheh-content .old-price {
    font-size: 16px;
    color: #888; /* Softer gray for old price */
    text-decoration: line-through; /* Strikethrough for old price */
    margin-bottom: 5px;
    font-weight: 500;
}

.vizheh-content .current-price {
    color: #E74C3C; /* **A vibrant red for the discounted price (urgency, attention)** */
    font-size: 32px; /* **Larger and bolder for prominence** */
    font-weight: bold;
    margin-bottom: 10px;
}

/* Product Title */
.vizheh-content h3 {
    color: #0A66C2; /* **Brand's Dark Blue for the product name (trust, identity)** */
    font-size: 26px; /* Larger product title */
    margin-bottom: 15px;
    font-weight: 700; /* Extra bold for the product name */
}

/* Product Features List */
.vizheh-content .product-features {
    list-style: none; /* Remove default list style */
    padding: 0;
    margin-bottom: 15px;
}

    .vizheh-content .product-features li {
        color: #555; /* Darker gray for features */
        font-size: 15px;
        margin-bottom: 8px;
        display: flex; /* Use flexbox for icon and text alignment */
        align-items: center;
        direction: rtl; /* Ensure RTL for features */
    }

        .vizheh-content .product-features li i {
            color: #32CD32; /* **Bright Green checkmark icons (positive, healthy, fresh)** */
            margin-left: 8px; /* Space between icon and text for RTL */
            font-size: 14px;
        }

/* Separator */
.vizheh-content .vizheh-divider {
    border-top: 1px solid #eee; /* Lighter, subtle horizontal rule */
    margin: 20px 0; /* More spacing around the divider */
}

/* Special Offer / Opportunity Section (Previous styles unchanged for other sections) */
/* ... (previous .coopen and .vizheh styles) ... */

/* Countdown Timer Styling */
.vizheh-content .timer-label {
    font-size: 15px;
    color: #666;
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: right; /* Ensure label is right-aligned for RTL */
}

.counter {
    display: flex; /* Use flexbox for horizontal alignment */
    flex-direction: row-reverse; /* **IMPORTANT: Reverse order for RTL display (seconds, minutes, hours)** */
    justify-content: flex-end; /* Align timer group to the right for RTL overall layout */
    gap: 8px; /* Space between time units */
    margin-bottom: 25px; /* Space below timer */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    /* If you want the ENTIRE timer group to be centered on mobile, change justify-content to center in media query */
}

    /* Style for each time unit (jst-hours, jst-minutes, jst-seconds) */
    .counter .jst-hours,
    .counter .jst-minutes,
    .counter .jst-seconds {
        background-color: #0A66C2; /* Brand's Dark Blue background for timer digits */
        color: #FFFFFF; /* White text for numbers */
        padding: 8px 12px; /* Adjusted padding */
        border-radius: 6px; /* Slightly rounded corners for timer boxes */
        font-weight: bold;
        text-align: center; /* Center content within each unit */
        min-width: 60px; /* Ensure consistent width for digits */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        display: flex; /* **Make each unit a flex container itself** */
        flex-direction: column; /* **Stack number and label vertically** */
        align-items: center; /* **Center content (number and label) horizontally within the unit** */
        justify-content: center; /* **Center content vertically within the unit** */
    }

        /* Style for the actual numbers (assuming they are direct text nodes or within a span) */
        .counter .jst-hours > span,
        .counter .jst-minutes > span,
        .counter .jst-seconds > span {
            display: none; /* Ensure it behaves as a block for line-height and margin */
        }

            /* Style for the labels (assuming they are within a span inside the time unit div) */
            .counter .jst-hours > span:last-child, /* Assuming the label is the last span */
            .counter .jst-minutes > span:last-child,
            .counter .jst-seconds > span:last-child {
                display: none; /* Ensure it behaves as a block */
            }

/* Media Queries for Responsiveness */
@media (max-width: 767px) {
    /* ... (previous vizheh and image mobile styles) ... */

    .counter {
        justify-content: center; /* Center timer on mobile */
        gap: 5px; /* Smaller gap on mobile */
    }

        .counter .jst-hours,
        .counter .jst-minutes,
        .counter .jst-seconds {
            font-size: 24px; /* Smaller font for numbers on mobile */
            padding: 6px 10px;
            min-width: 45px;
        }

            .counter .jst-hours > span,
            .counter .jst-minutes > span,
            .counter .jst-seconds > span {
                font-size: 24px; /* Ensure mobile font size for numbers */
            }

                .counter .jst-hours > span:last-child,
                .counter .jst-minutes > span:last-child,
                .counter .jst-seconds > span:last-child {
                    font-size: 11px; /* Smaller font for labels on mobile */
                }
}

/* Call to Action Button */
.vizheh-content .btn-vizheh {
    border-radius: 50px; /* Fully rounded button */
    font-size: 18px;
    padding: 12px 35px; /* Larger padding for a more prominent button */
    background-color: #32CD32; /* **Bright Green for the main CTA (Freshness, Action)** */
    color: #FFFFFF;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-block; /* Allow padding to work correctly */
    text-align: center;
}

    .vizheh-content .btn-vizheh:hover {
        background-color: #28A745; /* Darker green on hover */
        transform: translateY(-3px); /* Lift effect */
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    }

/* Media Queries for Responsiveness */
@media (max-width: 767px) {
    .vizheh {
        padding: 20px;
        text-align: center; /* Center text on mobile */
    }

        .vizheh .vizheh-tag {
            width: 120px; /* Smaller tag on mobile */
            height: 30px;
            font-size: 14px;
            top: 10px;
            right: -30px;
        }

        .vizheh .vizheh-img {
            margin-bottom: 15px; /* Space between image and text on mobile */
            height: auto; /* Allow image container height to adjust */
        }

            .vizheh .vizheh-img img {
                height: 160px; /* Reduced image height on mobile */
                max-width: 70%; /* Adjust width on mobile */
            }

    .vizheh-content {
        padding: 0; /* Remove horizontal padding on mobile */
    }

        .vizheh-content .old-price {
            font-size: 15px;
        }

        .vizheh-content .current-price {
            font-size: 28px;
        }

        .vizheh-content h3 {
            font-size: 22px;
        }

        .vizheh-content .product-features {
            text-align: center; /* Center features on mobile */
            justify-content: center; /* Center icons and text */
        }

        .vizheh-content .timer-label {
            font-size: 14px;
        }

    .counter {
        justify-content: center; /* Center timer on mobile */
        gap: 5px; /* Smaller gap on mobile */
    }

        .counter div {
            font-size: 24px;
            padding: 6px 10px;
            min-width: 45px;
        }

    .vizheh-content .btn-vizheh {
        font-size: 16px;
        padding: 10px 30px;
    }
}

/*////////////////////////////////////////*/
/* Newest Products Banner Section */
.new-products-banner-section {
    margin-top: 50px; /* Ample space above banner */
    margin-bottom: 50px; /* Ample space below banner */
}

.new-products-banner-box { /* Renamed from .new-products-banner for clarity */
    position: relative;
    border-radius: 12px; /* Rounded corners for the banner */
    overflow: hidden; /* Ensure image and title respect border-radius */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Prominent shadow for the banner */
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

    .new-products-banner-box:hover {
        transform: translateY(-5px); /* Lift effect on hover */
    }

    .new-products-banner-box img {
        display: block; /* Remove extra space below image */
        width: 100%; /* Ensure image fills the container */
        height: auto;
        transition: transform 0.3s ease; /* Smooth transition for image zoom */
    }

    .new-products-banner-box:hover img {
        transform: scale(1.02); /* Slight zoom on image hover */
    }

    .new-products-banner-box .banner-title { /* Style for the h4 title on the banner */
        position: absolute;
        top: 50%; /* Center vertically */
        right: 50%; /* Center horizontally */
        transform: translate(50%, -50%); /* Adjust for perfect centering */
        color: #FFFFFF; /* White text for contrast on banner */
        font-size: 38px; /* Large, impactful font size */
        font-weight: bold;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Stronger shadow for readability */
        text-align: center;
        width: 80%; /* Limit width for text wrapping */
        pointer-events: none; /* Make text non-interactive to allow clicks on the image/link */
        z-index: 2; /* Ensure text is above the image */
        background: rgba(0, 0, 0, 0.3); /* Semi-transparent dark background for better contrast */
        padding: 10px 20px;
        border-radius: 8px;
    }
/*////////////////////////////////////////*/
