/* Livestock Section - Modern Envato Style */
.livestock-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.livestock-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.livestock-section .section-header h2 {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2c3e50 0%, #28a745 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.livestock-section .section-header p {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

.livestock-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.livestock-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.livestock-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.livestock-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.livestock-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.livestock-card:hover .livestock-image img {
    transform: scale(1.05);
}

.sold-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.limited-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff9800;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.livestock-content {
    padding: 20px;
}

.livestock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.livestock-header h3 {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.livestock-price {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

.livestock-details {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: #555;
}

.detail-row i {
    color: #28a745;
    width: 20px;
}

.stock-progress {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stock-info-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.stock-info-bar strong {
    color: #28a745;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.3s ease;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.quantity-input {
    width: 70px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.btn-order {
    flex: 1;
    padding: 10px 18px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-order:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-order.disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-order.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .livestock-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .livestock-section {
        padding: 50px 0;
    }
    
    .livestock-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .livestock-section .section-header h2 {
        font-size: 28px;
    }
    
    .livestock-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .livestock-grid {
        grid-template-columns: 1fr;
    }
    
    .livestock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
