/* Farm E-commerce Grid */
.farm-shop-section {
    background: var(--gray-50);
}

.farm-grid {
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    /* Green */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    animation: flash-green 1.5s infinite;
}

@keyframes flash-green {

    0%,
    100% {
        background-color: #10b981;
        opacity: 1;
        transform: scale(1);
    }

    50% {
        background-color: #059669;
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Quantity Controls for Farm Items */
.quantity-control-farm {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--gray-100);
    padding: 0.4rem;
    border-radius: 8px;
    justify-content: center;
}

.q-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.q-btn:hover {
    background: var(--primary-color);
    color: white;
}

.q-input {
    width: 80px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 800;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

/* Hide spin buttons */
.q-input::-webkit-outer-spin-button,
.q-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Moving Text Marquee */
.moving-text-marquee {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    overflow: hidden;
    border-radius: 12px;
    white-space: nowrap;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Farm Filter Buttons */
.farm-filter-btn {
    padding: 0.8rem 2rem;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    color: var(--gray-600);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.farm-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Controls Layout */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.05);
}

.sub-selection {
    margin-bottom: 1rem;
}

.small {
    font-size: 0.8rem !important;
}

.mt-sm {
    margin-top: 0.5rem;
}

.mt-md {
    margin-top: 1rem;
}

.mt-xl {
    margin-top: 3rem;
}

.p-option-select {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    font-weight: 600;
}

/* Static Farm Row Spacing */
.farm-row {
    padding: 2rem 0;
    /* Reduced from 4rem */
    border-bottom: 1px solid var(--gray-100);
}

.farm-row:nth-child(even) {
    background: white;
}

.farm-row:nth-child(odd) {
    background: var(--gray-50);
}

/* Static Farm Cards */
.card-farm {
    background: white;
    border-radius: 12px;
    /* Smoother radius */
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-farm:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color);
}

.card-farm-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.card-farm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-farm:hover .card-farm-image img {
    transform: scale(1.05);
}

.card-farm-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-farm h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    /* Reduced from 1.5rem */
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.card-farm p {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
    font-size: 0.85rem;
}

.card-farm-tag,
.item-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.card-farm-tag {
    background: #10b981;
    color: white;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    animation: flash-green 1.5s infinite;
}

.item-badge {
    background: #eff6ff;
    color: #3b82f6;
}

.btn-farm {
    margin-top: auto;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.btn-farm:hover {
    background: var(--primary-dark);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gray-50);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0000;
    /* Bright Red */
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    animation: flash-red 0.8s infinite alternate;
    /* Aggressive flashing */
    transition: opacity 0.5s ease, visibility 0.5s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    border: 2px solid white;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes flash-red {
    from {
        background-color: #ff0000;
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    }

    to {
        background-color: #b91c1c;
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    }
}

/* Wholesale Quote Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modal-slide-in 0.4s ease-out;
}

@keyframes modal-slide-in {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
}

.quote-form .form-group {
    margin-bottom: 1.5rem;
}

.quote-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.quote-form input,
.quote-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gray-100);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.quote-form input:focus,
.quote-form select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 500px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .scroll-indicator {
        padding: 0.7rem 1.2rem;
        font-size: 0.75rem;
        bottom: 1.5rem;
        gap: 0.5rem;
        letter-spacing: 1px;
    }
}

/* Section Title Refinement */
.farm-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    /* Reduced from 2.5rem */
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.farm-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.5rem auto;
    border-radius: 2px;
}